# Pentest Container K8S

> Test Docker and Kubernetes security controls for RBAC abuse, breakout, and secret exposure.

- Skill: `majiayu000/pentest-container-k8s` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds add majiayu000/pentest-container-k8s`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/pentest-container-k8s/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/pentest-container-k8s

---


# Pentest Container K8s

## Stage

- PTES: 5-6
- MITRE: T1610, T1611

## Objective

Map container and cluster misconfigurations with exploit relevance.

## Required Workflow

1. Validate scope before any active action and reject out-of-scope targets.
2. Run only authorized checks aligned to PTES, OWASP WSTG, NIST SP 800-115, and MITRE ATT&CK.
3. Write findings in canonical finding_schema format with reproducible PoC notes.
4. Honor dry-run mode and require explicit --i-have-authorization for live execution.
5. Export deterministic artifacts for downstream skill consumption.

## Execution

```bash
python skills/pentest-container-k8s/scripts/container_k8s.py --scope scope.json --target <target> --input <path> --output <path> --format json --dry-run
```

## Outputs

- `container-findings.json`
- `k8s-rbac-risks.json`
- `k8s-report.json`

## References

- `references/tools.md`
- `skills/autonomous-pentester/shared/scope_schema.json`
- `skills/autonomous-pentester/shared/finding_schema.json`

## Legal and Ethical Notice

```text
WARNING AUTHORIZED USE ONLY
This skill executes real security testing tools against live targets.
Use only with written authorization.

```

