Individual skill
container-security
Hardening for Dockerfiles, OCI images, Kubernetes manifests, and Helm charts. Use when generating a Dockerfile or image build, writing Kubernetes, Helm, or Kustomize manifests, or reviewing container changes in a pull request.
skills/container-security/SKILL.md
Source commit eaba88102d91df65a9aa6397e8507c315c018f5e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- Yes
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Network or broad shell
- Last checked
- Nov 6, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
Standard SKILL.md format has not been attested at this commit. No installation command is available; inspect the source.
Repository context
- Repository stars (not skill ratings)
- 23
- Repository last updated
- Aug 14, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- claude-skills Repository topic
- llm Repository topic
- security Repository topic
- skills Repository topic
- writing Derived category
- devops Derived category
- devops-containers Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 14,360 bytesSKILL.mdcore · 14,360 bytesSKILL.mdcore · 14,360 byteschecklists/k8s_pod_security.yamlasset · 2,606 bytesreferences/eol-base-images.mddoc · 1,644 bytesreferences/verifying-findings.mddoc · 3,962 bytestests/corpus.jsonasset · 2,631 bytes
Read excerpt
# Container Security
## Rules (for AI agents)
### ALWAYS
- Use **multi-stage builds**: separate builder/test stages from the final runtime
image so build toolchains and source aren't shipped. The last stage should be a
minimal base — `gcr.io/distroless/<variant>`, `scratch`, or a versioned `-slim` /
`-alpine` variant — pinned by SHA256 digest, not just tag. Two bases have nothing
to pin: `scratch`, and a reference to an earlier stage in the same file
(`FROM base`), which is pinned on that stage's own `FROM` line.
<!-- pattern: { id: dkr-multi-stage, severity: high, check: llm } -->
<!-- pattern: { id: dkr-pinned-base-digest, severity: high, cwe: 1357, check: deterministic } -->
- Run as a non-root user: set `USER` explicitly on the **final stage**, as a **number**