Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tahirraufkeeyu/software-development-agent-stack--sdas --skill container-scangit clone --depth 1 https://github.com/tahirraufkeeyu/software-development-agent-stack--sdasWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/container-scan)<a href="https://agentmods.dev/skills/tahirraufkeeyu/software-development-agent-stack--sdas/container-scan"><img src="https://agentmods.dev/badge/skills/tahirraufkeeyu/software-development-agent-stack--sdas/container-scan.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00065 | $0.01735 |
| Opus 5 | $0.00032 | $0.00868 |
| Sonnet 5 | $0.00013 | $0.00347 |
| Haiku 4.5 | $0.00006 | $0.00173 |
Grade B, and why
container-scan scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
- Never suggest `chmod 777` or `USER root` as a fix for a permissions How it starts
The opening of the file, as written. The whole thing — 165 lines — stays where its author put it; the contents beside it link to each section on GitHub.
When to use
Trigger on any of:
- "Scan this Docker image before I push."
- "Is
ghcr.io/acme/api:1.14.2safe to ship?" - Pre-release gate: CI job that builds an image and needs a pass/fail.
- Investigating a base-image upgrade ("did alpine:3.19 clear the openssl CVE?").
Do not use for running-container runtime monitoring (that is Falco/EDR
territory) or for dependency scanning of the source tree pre-build (use
dependency-audit).
Inputs
IMAGE— OCI reference to scan, e.g.ghcr.io/acme/api:1.14.2or a local tagapi:dev. Required unlessDOCKERFILEis given.DOCKERFILE(optional) — path to a Dockerfile to lint and scan.CONTEXT(optional) — build context whenDOCKERFILEis provided.OUT_DIR(default:./container-scan-out).FAIL_ON(default:CRITICAL,HIGH) — severities that cause non-zero exit.IGNORE_UNFIXED(default:0) — Trivy--ignore-unfixed.- Optional env:
TRIVY_CACHE_DIR— share vulnerability DB across runs.TRIVY_IGNOREFILE— path to.trivyignore.
Outputs
trivy-image.json— Trivy CVE scan of the image.trivy-secret.json— secrets found in image layers.trivy-config.json— Dockerfile / IaC misconfiguration scan.hadolint.json— Dockerfile lint (ifDOCKERFILEprovided).image-inspect.json—docker inspectoutput.container-scan-report.md— human summary with pass/fail gates.
Tool dependencies
trivy>= 0.50 (https://aquasecurity.github.io/trivy/).dockerorpodman(forimage inspectand saving images).hadolint>= 2.12 (optional; auto-skipped if missing).jq.syft(optional) for SBOM generation.
Procedure
- Validate inputs. If
IMAGEnot provided andDOCKERFILEis, build first:docker build -t scan-target:tmp -f "$DOCKERFILE" "$CONTEXT". - Pull the image if remote:
docker pull "$IMAGE"(orpodman pull). - Inspect:
docker image inspect "$IMAGE" > "$OUT_DIR/image-inspect.json". ParseConfig.User,Config.ExposedPorts,RootFS.Layers,History[].CreatedBy. - Trivy vulnerability scan:
trivy image \ --format json --output "$OUT_DIR/trivy-image.json" \ --severity CRITICAL,HIGH,MEDIUM,LOW \ --vuln-type os,library \ --scanners vuln \ ${IGNORE_UNFIXED:+--ignore-unfixed} \ "$IMAGE" - Trivy secret scan (examines each layer):
trivy image --scanners secret \ --format json --output "$OUT_DIR/trivy-secret.json" "$IMAGE" - Trivy config scan (Dockerfile + embedded IaC):
trivy config --format json --output "$OUT_DIR/trivy-config.json" \ ${DOCKERFILE:+"$(dirname "$DOCKERFILE")"} \ ${DOCKERFILE:-"$IMAGE"} - If
DOCKERFILEprovided, run hadolint:hadolint --format json "$DOCKERFILE" > "$OUT_DIR/hadolint.json". - Best-practice checks against
image-inspect.json:Config.Usermust be non-empty and notroot/0(else FAIL).RootFS.Layerscount should be <= 20 (advisory).- Base image SHOULD be distroless, Chainguard Wolfi, or
*-slim— heuristic: missing/bin/sh,/bin/bash, or no shell in manifest. - No
ADD http://URLs in history (useCOPY+ verified artefact). - No secrets in
Config.Env(cross-check againsttrivy-secret.json). - Healthcheck defined (
Config.Healthcheck) — advisory.
- Optional SBOM:
syft "$IMAGE" -o cyclonedx-json > "$OUT_DIR/sbom.cdx.json". - Aggregate and write
container-scan-report.md:- Gate table: Critical CVE, High CVE, Secrets in layers, Non-root, Dockerfile issues (each row: status + count).
- Findings grouped by severity with fix-version hints.
- Upgrade plan: which base-image bump clears the most CVEs.
- Exit non-zero if any gate in
$FAIL_ONfailed.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 165 lines · 65 tokens per session scan B b26351652619
container-scan is a skill published in the GitHub repository tahirraufkeeyu/software-development-agent-stack--sdas (18 stars, last pushed 4mo ago), licensed MIT. It adds 65 tokens to every session and 1,735 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
deploy-docker-compose
Run the Omnigent server as a Docker compose stack (server + Postgres) on any Docker host — your laptop, a VPS, EC2 by hand, or as the base layer of any container-platform deploy. Invoke when the user wants to build the image, bring up the compose stack, debug the stack on a host they already have, or extend the stack…
compute-env-setup
Set up a reproducible Feynman compute environment for research jobs. Use when a task needs Python/R packages, GPU libraries, containers, Modal, SSH, caches, or managed model runtime setup.
securing-kubernetes-on-cloud
This skill covers hardening managed Kubernetes clusters on EKS, AKS, and GKE by implementing Pod Security Standards, network policies, workload identity, RBAC scoping, image admission controls, and runtime security monitoring. It addresses cloud-specific security features including IRSA for EKS, Workload Identity for…
detecting-privilege-escalation-in-kubernetes-pods
Detect and prevent privilege escalation in Kubernetes pods by monitoring security contexts, capabilities, and syscall patterns with Falco and OPA policies.
implementing-rbac-hardening-for-kubernetes
Harden Kubernetes Role-Based Access Control by implementing least-privilege policies, auditing role bindings, eliminating cluster-admin sprawl, and integrating external identity providers.
docker-socket-mount
Docker / containerd socket mounted into a container → host RCE. Common in CI runners, GitOps controllers (ArgoCD, Flux), and 'Docker-in-Docker' setups. Single-command escape via docker run --rm --privileged -v /:/host alpine chroot /host.