Skip to content
Back to skills

Dockerfile Security Hardening Advisor

ASecurity

Audits Dockerfiles for security vulnerabilities using Hadolint and Trivy container scanner. Recommends hardening steps based on CIS Docker Benchmark and Snyk container advisories.

  • 36 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added June 8, 2026
ai-agentsgobashdockergitsecurity

Works with

  • claude code

Security analysis

A100/100

Scanned June 8, 2026

npx -y skills add agentskillexchange/skills --skill dockerfile-security-hardening-advisor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Dockerfile Security Hardening Advisor?

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

Security grade badge for Dockerfile Security Hardening Advisor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-dockerfile-security-hardening-advisor/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-dockerfile-security-hardening-advisor)

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: "Dockerfile Security Hardening Advisor"
slug: "dockerfile-security-hardening-advisor"
description: "Audits Dockerfiles for security vulnerabilities using Hadolint and Trivy container scanner. Recommends hardening steps based on CIS Docker Benchmark and Snyk container advisories."
github_stars: 12100
verification: "security_reviewed"
source: "https://github.com/hadolint/hadolint"
author: "hadolint"
category: "Runbooks & Diagnostics"
framework: "Claude Code"
tool_ecosystem:
  github_repo: "hadolint/hadolint"
  github_stars: 12100
---

# Dockerfile Security Hardening Advisor

Audits Dockerfiles for security vulnerabilities using Hadolint and Trivy container scanner. Recommends hardening steps based on CIS Docker Benchmark and Snyk container advisories.

## Installation

Use the upstream install or setup path that matches your environment:
- Docker comes to the rescue, providing an easy way how to run hadolint on most
- docker run --rm -i hadolint/hadolint < Dockerfile
- docker run --rm -i ghcr.io/hadolint/hadolint < Dockerfile
- brew install hadolint

Requirements and caveats from upstream:
- [![Docker pulls][docker-img]][docker]
- A smarter Dockerfile linter that helps you build [best practice][] Docker
- Just pipe your Dockerfile to docker run:

Basic usage or getting-started notes:
- the Bash code inside RUN instructions.
- You can run hadolint locally to lint your Dockerfile.
- podman run --rm -i ghcr.io/hadolint/hadolint < Dockerfile

- Source: https://github.com/hadolint/hadolint
- Extracted from upstream docs: https://raw.githubusercontent.com/hadolint/hadolint/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/dockerfile-security-hardening-advisor/)

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.

Comments

Loading comments…

Newsletter

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