k8s-hardening-audit

k8s-hardening-audit is a skill for Codex from Agent-Hellboy/mcp-runtime. It costs 109 tokens per session (2,380 once invoked), scanned A, original, Apache-2.0.

A Kubernetes security audit workflow for checking access controls, workload security settings, network rules, secrets, manifests, and CIS controls.

In plain words
What is it for?
It is for reviewing the MCP Runtime Kubernetes namespaces, including roles, service accounts, deployments, network policies, secret access, and compliance with Kubernetes security benchmarks.
Why use it?
It helps find insecure cluster settings and excessive permissions before they create security problems.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions Codex.

Good fit It is for reviewing the MCP Runtime Kubernetes namespaces, including roles, service accounts, deployments, network policies, secret access, and compliance with Kubernetes security benchmarks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agent-hellboy/mcp-runtime/k8s-hardening-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Agent-Hellboy/mcp-runtime --skill k8s-hardening-audit
Clone the repo
git clone --depth 1 https://github.com/Agent-Hellboy/mcp-runtime

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for k8s-hardening-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit/github.svg)](https://agentmods.dev/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit)
Your own site
<a href="https://agentmods.dev/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit"><img src="https://agentmods.dev/badge/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for k8s-hardening-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit"><img src="https://agentmods.dev/badge/skills/agent-hellboy/mcp-runtime/k8s-hardening-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 109 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,380 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00109 $0.02380
Opus 5.5 $0.00044 $0.00952
Sonnet 5.5 $0.00022 $0.00476
Haiku 4.5 $0.00011 $0.00238

Measured 2mo ago against content hash 72913205b326, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

k8s-hardening-audit scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

wget -T2 -qO- http://mcp-platform-api.mcp-sentinel.svc:8080/health || echo BLOCKED
.codex/skills/k8s-hardening-audit/SKILL.md · 240 lines

How it starts

The opening of the file, as written. The whole thing — 240 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Kubernetes Hardening Audit

Overview

Use this skill to assess MCP Runtime's cluster posture: RBAC graph, Pod Security Standards, NetworkPolicy enforcement, manifest hygiene, and CIS benchmark compliance. Findings use the shared template at ../_shared/FINDINGS-TEMPLATE.md.

For runtime authn/authz, gateway policy, and protocol fuzzing, use security-audit-platform. For images and supply chain, use supply-chain-audit.

Step 1 — Inventory

Repo-owned namespaces (per CLAUDE.md):

  • mcp-runtime — operator.
  • mcp-sentinel — platform/runtime/analytics api, ui, oauth-server, ingest, processor, gateway, observability (ClickHouse, Kafka, Grafana, Prometheus, Loki, Tempo, otel-collector).
  • mcp-servers — user MCP server workloads, gateway sidecars.
  • registry — Distribution v2 registry.
  • traefik — ingress controller (or kube-system/traefik on k3s).

For each:

NS=mcp-sentinel
kubectl -n "$NS" get all,sa,role,rolebinding,networkpolicy -o name
kubectl get clusterrole,clusterrolebinding -o name | grep -iE 'mcp|sentinel'

Record SA → Role/ClusterRole bindings as a graph; this becomes the input to RBAC analysis.

Step 2 — RBAC graph analysis

Install the helpers:

go install github.com/corneliusweig/rakkess/cmd/rakkess@latest
go install github.com/reactiveops/rbac-lookup@latest

Per ServiceAccount:

for sa in $(kubectl -n mcp-sentinel get sa -o name); do
  echo "=== $sa ==="
  rakkess --sa "$(echo $sa | cut -d/ -f2)" --namespace mcp-sentinel
done

Findings to flag:

  • * verbs on secrets → High unless explicitly justified by a single controller and scoped to a single namespace.
  • Cluster-scoped roles on workload SAs → High; scope to a Role unless the controller genuinely watches cluster-wide.
  • pods/exec, pods/portforward, pods/attach → High outside break-glass paths.
  • serviceaccounts/token create → High; token impersonation primitive.
  • escalate or bind on roles → Critical.
  • Bindings to system:authenticated or system:unauthenticated → Critical.

Read the full file on GitHub · 240 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +2 lines 72913205b326
  2. 3mo ago First seen · 238 lines · 109 tokens per session scan A 29f92193530a

Subscribe to this mod's changes

k8s-hardening-audit is a skill published in the GitHub repository Agent-Hellboy/mcp-runtime (6 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 109 tokens to every session and 2,380 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

k8s-hardening-audit compared with skills from other repositories

k8s-hardening-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
k8s-hardening-auditAgent-Hellboy/mcp-runtimeSkill62mo agoApache-2.0A109Codex
clio-runtime-configiowarp/clio-kitSkill35yesterdayBSD-3-ClauseB119Claude Code
hercules-infrastructure0xMihirK/hercules-mcpSkill623d agoMITA32Claude Code
cloud-k8sxAmirHamza77/ReverseOps-SkillSkill53mo agoMITB35Claude Code, Codex
competition-agent-cloudxAmirHamza77/ReverseOps-SkillSkill53mo agoMITA107Codex
competition-container-runtimexAmirHamza77/ReverseOps-SkillSkill53mo agoMITA109Codex
competition-kernel-container-escapexAmirHamza77/ReverseOps-SkillSkill53mo agoMITA102Codex