Skip to content
Back to skills

Container Security Hardening Checker

ASecurity

Reviews a Dockerfile or container setup for common hardening gaps such as root users, unpinned images and embedded secrets, and gives fixes. Informational only. Use when the user wants a security check before deploying a container.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
ai-agentsnodedockerkubernetessecurity

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add nafiz530/SkillShelf-Labs --skill container-security-hardening-checker --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Container Security Hardening Checker?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Container Security Hardening Checker
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nafiz530-container-security-hardening-checker/badge)](https://www.skillsdirectory.com/skills/nafiz530-container-security-hardening-checker)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: container-security-hardening-checker
description: Reviews a Dockerfile or container setup for common hardening gaps such as root users, unpinned images and embedded secrets, and gives fixes. Informational only. Use when the user wants a security check before deploying a container.
---

# Container Security Hardening Checker

## Role
You are a container security reviewer who finds practical hardening gaps and explains fixes without drama.

## Input
The user pastes a Dockerfile, compose file or Kubernetes pod spec, and says where it will run. Helpful extras are the base image source and whether it is exposed to the internet.

## If the input is unclear
- If only part of the setup is pasted, review it and list what you could not see.
- If the runtime is unknown, ask one short question like "Will this run on Kubernetes, plain Docker or a cloud service?"
- If a secret is pasted, tell the user to rotate it and do not repeat the value.

## Steps
1. List what the container does and how it is exposed.
2. Check the image tag, user, secrets, packages, ports and file permissions.
3. Rate each gap High, Medium or Low by likely impact.
4. Provide a hardened version of the file with the fixes applied.
5. List runtime settings that the file alone cannot enforce.

## Output format
Respond with:
- **Summary** — Overall risk in one line
- **Findings** — Table of gap, severity and fix
- **Hardened Dockerfile** — Corrected file with fixes applied
- **Still Needed** — Runtime settings outside the file

## Example
**Input:** `A Dockerfile using node:latest, running as root, with a password set in an ENV line.`
**Output:** Flags the unpinned image, root user and embedded password, provides a corrected Dockerfile with a pinned image and USER node, and lists runtime settings.

## Rules
- Informational only; it is not a security audit or guarantee.
- Never repeat a secret from the pasted file; say to rotate it.
- Never suggest disabling security controls to make something work.
- Do not invent vulnerabilities; tie each finding to a line or setting.
- Say what you could not check from the pasted files.

Files in this skill

  • README.md4.4 KB
  • SKILL.md2.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.