Loading…
Client-Side Container Security Auditor
Audit docker-compose.yml files locally in your browser for privileged containers, exposed Docker socket mounts, plaintext secrets, and unpinned tags.
Test our product-specific security engine across 10 server stacks and 8 simulated hacking scenarios for free—or lint Docker/Kubernetes manifests, generate hardened DNS zones, optimize SQL indexes, and calculate your savings.
Running a container with privileged: true disables kernel namespace isolation and allows trivial host root takeover (CWE-250).
Fix: Remove privileged: true and add security_opt: ["no-new-privileges:true"] and cap_drop: ["ALL"].
Mounting /var/run/docker.sock gives the container full root-equivalent control over the host Docker daemon.
Fix: Remove the /var/run/docker.sock mount or route read-only discovery through tecnativa/docker-socket-proxy.
Publishing "5432:5432" or "2375:2375" binds to 0.0.0.0 and bypasses UFW host firewall rules via Docker iptables chains.
Fix: Bind internal ports explicitly to loopback: "127.0.0.1:5432:5432".
Using :latest can introduce breaking changes or unverified upstream layers during restarts.
Fix: Pin images to explicit version tags (e.g., nginx:1.27-alpine) or @sha256: digests.
Committing plaintext passwords or API keys inside docker-compose.yml exposes credentials in version control (CWE-798).
Fix: Reference environment variables (${DATABASE_PASSWORD}) from a restricted chmod 600 .env file or Docker Secrets.
Without no-new-privileges:true, processes inside the container can escalate privileges via SUID binaries.
Fix: Add security_opt: ["no-new-privileges:true"] to each service.
Add a clean, ad-free interactive frame to technical tutorials, runbooks, Notion pages, or courseware—zero API key required.
Explore With AI & Cite This Page
Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.
| Risk Pattern | Insecure Example | Hardened Replacement | Severity |
|---|---|---|---|
| Host root escape | privileged: true | cap_drop: [ALL] + minimal cap_add | Critical |
| Docker daemon takeover | /var/run/docker.sock:/var/run/docker.sock | Remove socket mount or use read-only socket proxy | Critical |
| Public database port | "5432:5432" | "127.0.0.1:5432:5432" or internal Compose network | High |
| Unpinned mutable tag | image: nginx:latest | image: nginx:1.27-alpine (or SHA256 digest) | Medium |
| Unbounded memory OOM | (no deploy/mem_limit) | mem_limit: 1g + restart: unless-stopped | Medium |
Build on infrastructure you can see
Every product page shows its price and whether you can buy it today. What is on sale is set up automatically after payment.