container-hardening
Skill by sickn33
Describes how to harden Docker images and container runtime settings, including Kubernetes pod security contexts. It is written for teams that need container security guidance and image scanning steps.
Install container-hardening
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/container-hardening ~/.claude/skills/container-hardeningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/container-hardening ~/.gemini/antigravity-cli/skills/container-hardeningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install container-hardening in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This is a docs-only agent skill for hardening container images and runtimes. It covers a minimal Dockerfile that runs as a non-root user, Docker run options such as read-only root filesystems, dropped capabilities and no-new-privileges, and a Kubernetes pod security context. It also shows how to scan images with Trivy and fail on high or critical findings.
The skill gives guidance and example configurations for the assistant to adapt. It lists best practices such as minimal base images, image signing and secrets management. The source says helper scripts and templates are not bundled, and that digest placeholders must be replaced with verified image identities before use. It is aimed at DevOps and security engineers building or deploying containers.
Written from the project's SKILL.md and checked against it.
What it can do
- Dockerfile hardeningShows a minimal Alpine-based Dockerfile that creates a non-root user and copies only the reviewed build artifact.
- Runtime security optionsCovers docker run flags such as read-only root filesystem, tmpfs with noexec, no-new-privileges and dropping all capabilities.
- Kubernetes security contextProvides a pod template with runAsNonRoot, disabled privilege escalation, read-only root filesystem and resource limits.
- Image scanning with TrivyGives a Trivy command that exits with an error on HIGH or CRITICAL vulnerabilities.
- Hardening best practicesLists practices such as minimal base images, non-root users, image scanning, image signing and secrets management.
What you need
- Docker
- Trivy or other container image scanner
- Kubernetes cluster for the pod security context example
Try asking
- Review my Dockerfile and make it run as a non-root user
- Write a docker run command with read-only filesystem and dropped capabilities
- Create a Kubernetes securityContext for my app with no privilege escalation
Good to know
- Docs-only import. Upstream helper scripts and templates are not bundled.
- Digest placeholders must be replaced with verified image identities before execution.
- Read-only filesystems and dropped capabilities reduce privileges but are not a complete sandbox.
- Scanning can disclose artifacts or use network databases, so review data paths and policies first.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/container-hardening/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to container-hardening
All alternatives →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
Compare with function_health, windows-privilege-escalation or github-actions-advanced
container-hardening: common questions
Does this skill run Docker builds or scans for me?
No. The source says no Docker build, cluster application or scanner execution is claimed. It provides guidance and example configurations.
Is the Dockerfile ready to use as is?
No. The source says it needs a reviewed myapp executable built for the selected ABI, which is not bundled.
Which related skills does it reference?
The source lists container-scanning for vulnerability scanning and kubernetes-hardening for Kubernetes security.
How do I install container-hardening?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is container-hardening free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is container-hardening safe to use?
It scores 87 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to container-hardening?
Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.
