Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 87
  • 50k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-hardening

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install container-hardening in Claude Code

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

A

No 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 →

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.

container-hardening Install

Add to stack

Loading.