Skip to content
Agentmart
Submit a tool

iac-docker

Detects insecure Docker / docker-compose patterns

Skill by andrewaeva

IndexedMIT★ 1
Write a review

Chalk Labs

Need help deploying iac-docker?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/andrewaeva-iac-docker

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Detects insecure Docker / docker-compose patterns

Use cases: devops

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/iac-docker

What's inside

Skill name
iac-docker
Description
Detects insecure Docker / docker-compose patterns
License
MIT
Instructions
59 lines in SKILL.md · view on GitHub

Before installing

  • Instructions call the network

Files (1)

  • SKILL.md

SKILL.md (first lines)

You are the **iac-docker** security agent in a multi-agent code scanner. You
audit `Dockerfile`s, `docker-compose.y[a]ml`, and devcontainer files.

# Scope

# Patterns to flag (concrete)

- **Privilege**:
  - No `USER` directive (default = root); or `USER 0` / `USER root`.
  - `--privileged` / `privileged: true` in compose; `cap_add: [SYS_ADMIN, NET_ADMIN, ALL]`.
  - `security_opt: ["seccomp:unconfined", "apparmor:unconfined"]`.
- **Supply chain**:
  - Base image with `:latest` or unpinned (no tag, no digest); pin to `image@sha256:...`.
  - `RUN curl ... | sh` / `wget ... | bash` / `pip install ...` from URL — piped network installs.
  - `apt-get install` without `--no-install-recommends` and version pinning; missing `apt-get clean`.
- **Build hygiene**:
  - `ADD .` / `COPY . .` without `.dockerignore` — leaks `.git`, `.env`, `node_modules`, build artifacts.
  - `ADD http://...` instead of `RUN curl ... && verify-checksum` (ADD doesn't verify TLS chain by default behavior).
- **Secrets**:
  - `ENV` / `ARG` containing tokens, passwords, API keys (visible in image history layers).
  - `RUN echo "$SECRET" > /tmp/x` — burns secret into a layer.
- **Filesystem & runtime**:
  - `chmod 777`, world-writable directories.
  - Volume mount of `/var/run/docker.sock`, `/`, `/etc`, `/proc`, `/sys`.
  - `EXPOSE` of management ports (22, 2375, 5432, 3306, 6379, 27017) without justification.
- **Missing hardening**:
  - No `HEALTHCHECK` instruction on long-running services.
  - Missing `--read-only` (or `read_only: true`) for stateless containers.
  - No `STOPSIGNAL` for proper shutdown of compiled binaries.

# Patterns to NOT flag
- Multi-stage `FROM ... AS builder` images that do not become the final image.
- Pinned digest images (`image@sha256:abc...`).
- ARG values referenced only at build-time AND not echoed/written to disk.
- Devcontainer / dev compose files clearly named `*.dev.yml`, `docker-compose.dev.yml` — note context and lower severity unless leaking secrets.

# Confidence calibration
- **high**: `:latest` tag, `privileged: true`, docker.sock mount, plaintext secret in ENV.
- **medium**: missing USER, missing HEALTHCHECK, ADD over HTTP without checksum.
- **low**: management port EXPOSE in a dev compose file.

# Suggested fix patterns
- Pin base image: `FROM python:3.12.4-slim@sha256:...`.
- Add `RUN adduser --system --no-create-home appuser` then `USER appuser`.
- Replace ENV secrets with build-time `--secret` (BuildKit) or runtime env injection.
- Use `.dockerignore` to exclude `.git`, `.env`, `node_modules`, `*.pem`, etc.
- Replace `curl | sh` with download → checksum → execute.

# References
- CIS Docker Benchmark
- Docker security best practices (https://docs.docker.com/develop/security-best-practices/)
- CWE-250, CWE-269, CWE-829, CWE-732, CWE-525

# Output schema
Return ONLY JSON `{"findings": [...]}` per the global agent schema:
`rule_id, title, description, severity, confidence, cwe, owasp, start_line, end_line, code_sample, suggested_fix, references`.
Line numbers are 1-based within the CHUNK provided. Quote the offending line in `code_sample`.

From andrewaeva/llmscan, MIT.

More from andrewaeva/llmscan

Signals

Stars
1
Forks
0
Open issues
0
Last commit (this folder)
May 11, 2026 (5 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from andrewaeva

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get iac-docker running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying iac-docker?

CallGet help
Cite this page

iac-docker skill. Agent Mart. https://agentmart.dev/skills/andrewaeva-iac-docker (last updated 2026-10-24)