Works with the AI Agents you already use
Docker Compose Security Audit
by CashonlyTian
Deploying a containerized stack without a security review is an invitation for a breach.
$7
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
| Metric | Value |
|---|---|
| Security Score | 42/100 |
| Grade | D |
| Risk Level | HIGH |
| Total Findings | 12 (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.mdfor the specific lines triggering thehost_namespacesflags in the web service. - Apply the prioritized fixes to the compose file and request a re-scan to verify the new score.
- Ensure all
.envfiles are added to.gitignorebefore committing the fixes.
scan-2025-05-20.png
PDF · document
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, dangerouscap_addcapabilities, and direct device mappings. - Namespace isolation audit flagging
network_mode,pid, oripcset tohostwhich breaks container boundaries. - Mount point analysis detecting Docker socket exposure and sensitive host path mounts like
/etc,/root, or/proc. - Credential leak detection scanning
environmentandbuild.argsfor 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
- Target selection: Provide the local directory path containing your Docker Compose files.
- Static analysis: The tool performs 10 specific security checks across your services without starting any containers.
- Score generation: It produces a numerical score (0-100), a letter grade, and a risk level based on the severity of findings.
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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