# docker-security-lint

> Statically lint Dockerfiles and docker-compose files for common security mistakes — mutable or untagged base images, missing USER directive, secrets baked into ENV/ARG/environment, curl|sh installs, remote ADD, privileged containers, host networking, 0.0.0.0 port bindings, docker.sock mounts, and da

docker-security-lint is a paid AI agent skill on Agensi by Nenad Zivotic, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $15 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docker-security-lint
- Tags: docker, docker-compose, container-security, dockerfile, devsecops, supply-chain

## About this skill

Lint Dockerfiles and docker-compose files **the user owns or is authorized to analyze** using the bundled `scripts/lint.js`, then turn the JSON report into a hardening list.

- Only lint paths the user supplied or confirms they are authorized to inspect. If authorization is unclear, ask before running anything.
- The linter is static and line-based: it reads files and matches patterns. It never executes the code, pulls images, or follows symlinks.
- Never print or reuse a detected secret value. Report findings only by the rule id, file, line, and masked fingerprint the tool provides, and recommend rotation for anything that looks live.
- Do not overclaim. Zero findings means none of the known rules matched — it does not prove the configuration is secure (no image CVE scan, no runtime analysis).

Dockerfile:

- `image-latest` (warn) — `FROM` with `:latest` or no tag at all; mutable image, unreproducible builds.
- `root-user` (warn) — no `USER` directive anywhere; container runs as root.
- `baked-secret` (fail) — `ENV`/`ARG` with a secret-looking name (key, token, secret, password, …) assigned a literal value. Value is masked.
- `run-curl-sh` (fail) — `RUN` piping `curl`/`wget` output into `sh`/`bash`.
- `add-remote` (warn) — `ADD` with an `http(s)` URL; fetch has no integrity check.

## Requires

- Node.js
- Git

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the docker-security-lint skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What does docker-security-lint do?

Statically lint Dockerfiles and docker-compose files for common security mistakes — mutable or untagged base images, missing USER directive, secrets baked into ENV/ARG/environment, curl|sh installs, remote ADD, privileged containers, host networking, 0.0.0.0 port bindings, docker.sock mounts, and da

### Which AI agents support docker-security-lint?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use docker-security-lint?

Connect your AI agent to Agensi through MCP, then ask it to use docker-security-lint on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
