Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Docker Compose Security Audit

    by CashonlyTian

    1

    Deploying a containerized stack without a security review is an invitation for a breach.

    $7

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Docker Compose Security Audit

    Docker Compose Security Audit

    Example session with this skill installed

    Run a security audit on the docker-compose files in the ./deploy/production folder for project 'fintech-api'. Use brand 'SecurityOps' and blue accent.

    • Read your context and instructions
    • Compiled the docker compose security
    • Generated the document

    I have completed the security audit for the

    fintech-api stack located in ./deploy/production. The scan analyzed all service definitions against 10 critical security vectors.

    Audit Results: fintech-api

    MetricValue
    Security Score42/100
    GradeD
    Risk LevelHIGH
    Total Findings12 (3 Critical, 5 High, 4 Medium)

    Top 3 Priority Fixes

    Remove Privileged Mode: The db-backup service has privileged: true. Replace this with specific cap_add requirements and cap_drop: [ALL].
    2.

    Close Sensitive Ports: Service cache is publishing port 6379 to the host. Remove the ports mapping and use internal networks for application access.
    3.

    Mask Environment Secrets: Found literal values for DB_PASSWORD and API_KEY in docker-compose.yml. Move these to a .env file or use Docker Secrets. (Values have been masked to *** in the full report).

    Generated Deliverables:

    • Score Card: scan-2025-05-20.png (Visual summary with grade D and risk bars)
    • Full Report: scan-report.md (Contains detailed breakdown of all 10 checks and line-by-line findings)

    Next steps

    • Review scan-report.md for the specific lines triggering the host_namespaces flags in the web service.
    • Apply the prioritized fixes to the compose file and request a re-scan to verify the new score.
    • Ensure all .env files are added to .gitignore before committing the fixes.

    scan-2025-05-20.png

    PDF · document

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Deploying a containerized stack without a security review is an invitation for a breach. This skill audits your docker-compose.yml or compose.yaml files for critical vulnerabilities before you run docker compose up. It identifies host namespace leaks, privileged containers, and exposed sensitive ports that could lead to host takeover or data exfiltration.

    What it does

    • Privilege escalation checks identifying privileged: true, dangerous cap_add capabilities, and direct device mappings.
    • Namespace isolation audit flagging network_mode, pid, or ipc set to host which breaks container boundaries.
    • Mount point analysis detecting Docker socket exposure and sensitive host path mounts like /etc, /root, or /proc.
    • Credential leak detection scanning environment and build.args for literal secrets, ensuring all values are masked in reports.
    • Network security review finding published sensitive ports like 5432 (Postgres), 6379 (Redis), or 2375 (Docker API).
    • Resource and health monitoring checking for missing memory limits, missing healthchecks, and insecure restart policies.

    How it works

    1. Target selection: Provide the local directory path containing your Docker Compose files.
    2. Static analysis: The tool performs 10 specific security checks across your services without starting any containers.
    3. Score generation: It produces a numerical score (0-100), a letter grade, and a risk level based on the severity of findings.
    4. Report delivery: You receive a prioritized fix list and a shareable score-card image summarizing the stack's posture.

    Frameworks & tools

    This skill uses a local Python-based scanner to parse YAML compose files. It requires no external API keys or Docker daemon access.

    Why this beats prompting it yourself

    Generic LLM prompts often miss subtle isolation leaks like cgroupns_mode or specific dangerous capabilities. This skill uses a structured 10-point scoring system that masks real credentials and provides a visual score-card suitable for PR reviews or client reports.

    Use cases

    • Auditing third-party compose stacks before deployment to production.
    • Reviewing agent-generated infrastructure code for security anti-patterns.
    • Generating security compliance score-cards for project documentation.
    • Validating network isolation between data services and public-facing containers.

    Known limitations

    Does not resolve include or extends directives across directories. Cannot detect settings inside the Docker images themselves or verify host-level firewall configurations.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.

    Does not resolve external includes or extends. Cannot see inside Docker images. Audits files only; does not verify live runtime state or host firewalls. Findings capped at 200.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    Software
    Python 3Pillow

    Permissions

    Terminal / Shell
    Read Files
    Write Files
    Listed4 days ago

    What's inside

    Frequently Asked Questions

    No, this skill performs a static analysis of your YAML files locally. It does not require the Docker daemon to be running or a network connection, ensuring your infrastructure code remains private during the audit.

    The skill generates a graded report (0-100) with a shareable score-card image and a prioritized list of remediations. It explicitly masks any discovered secrets in the final report to prevent further exposure of sensitive data.

    This skill is designed for static `docker-compose.yml` or `compose.yaml` files; it currently does not resolve 'include' or 'extends' directives that pull from external directories or files.

    By using a structured 10-point scoring system, this skill identifies subtle isolation leaks—like dangerous Linux capabilities and namespace breakouts—that generic LLM prompts often overlook or hallucinate.

    The audit scans for common database ports (e.g., Postgres, Redis) and administrative APIs (e.g., Docker API) that are accidentally published to the host, helping you ensure that data services remain isolated from the public internet.

    New in LLM Ops