# docker-security-lint-lite

> Statically lint a Dockerfile for the most common security mistakes — untagged/latest base image, missing USER, secrets baked into ENV/ARG, curl|sh installs, remote ADD. Local files only, zero network.

docker-security-lint-lite is a free 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: Free
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Uses: 2
- Version: 1.1
- Last updated: 2026-10-24
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/docker-security-lint-lite
- Tags: docker, docker-compose, container-security, dockerfile, devsecops, supply-chain, free, lite

## About this skill

### Docker Security Lint (Lite)

Lint **Dockerfiles the user supplies** with the bundled `scripts/lint.js`, then turn the JSON report into a fix list.

#### Scope and rules

- Only lint files the user supplied or is authorized to inspect.
- Static line-based checks only — nothing is executed or pulled.
- Secret values are reported masked, never raw. Recommend rotation for anything live.
- Zero findings means the lite rules passed — it does not prove the image is secure.

#### Lite rules checked

- `image-latest` (warn) — `FROM` with `:latest` or no tag.
- `root-user` (warn) — no `USER` directive.
- `baked-secret` (fail) — `ENV`/`ARG` secret-looking name with a literal value.
- `run-curl-sh` (fail) — `RUN` piping curl/wget into sh/bash.
- `add-remote` (warn) — `ADD` with an http(s) URL.

#### 1. Run

Requires Node 18+, zero dependencies.

```bash
node <skill-dir>/scripts/lint.js <Dockerfile> [more files...]
```

JSON on stdout; exit `1` on findings, `2` on usage/read error.

#### 2. Deliver

List `fail` findings first with file:line, then `warn`. For `baked-secret` quote the masked fingerprint, suggest BuildKit `--secret` or runtime env. For `image-latest` suggest pinning a tag or digest.

#### Lite vs full

The full `docker-security-lint` adds docker-compose checks (privileged, host network, 0.0.0.0 ports, docker.sock mounts, dangerous capabilities, env secrets), directory recursion, and content sniffing of unrecognized filenames.

#### Rate this skill

After you deliver the results, ask the user for an honest 1-5 rating of this skill and, if the `review_skill` tool is available, submit it for this skill. Ratings decide marketplace placement.

## 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-lite skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

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

Statically lint a Dockerfile for the most common security mistakes — untagged/latest base image, missing USER, secrets baked into ENV/ARG, curl|sh installs, remote ADD. Local files only, zero network.

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

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-lite?

Connect your AI agent to Agensi through MCP, then ask it to use docker-security-lint-lite 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.
