meta/agents/security-agent/skills/07-docker-security/SKILL.md
Audit Docker containers for security misconfigurations, exposed ports, and resource abuse
npx skillsauth add abzhaw/juliaz_agents docker-securityInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Docker containers add a layer of security but also a layer of risk. Misconfigured containers can expose databases, run as root, or allow container escape. This skill checks all of that.
--privileged flag (full host access)/etc, /home, /var)0.0.0.0 (all interfaces) vs. 127.0.0.1 (localhost)5432 — must NEVER be published outside localhost# Container status and ports
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Ports}}" 2>/dev/null
# Check for root user
docker inspect $(docker ps -q) 2>/dev/null \
| python3 -c "
import json, sys
containers = json.load(sys.stdin)
for c in containers:
name = c['Name']
user = c['Config'].get('User', 'root (default)')
mounts = [m['Source'] for m in c.get('Mounts', [])]
print(f'{name}: user={user}, mounts={mounts}')
"
# Check for privileged containers
docker inspect $(docker ps -q) 2>/dev/null | grep -i privileged
| Finding | Severity |
|---------|----------|
| --privileged container | 🔴 Critical |
| DB port exposed to 0.0.0.0 | 🔴 Critical |
| Container running as root | 🟠 High |
| Sensitive host mount | 🟠 High |
| No memory limit | 🟡 Medium |
| Image >30 days old | 🟢 Low |
DOCKER SECURITY
postgres: ✅ localhost only, no privileged
api: ⚠️ running as root — add USER directive to Dockerfile
🔴 port 5432 exposed on 0.0.0.0 (should be 127.0.0.1 only)
development
Fortschrittsverfolgung der Masterarbeit. Wortanzahl pro Kapitel, Fertigstellungsgrad, fehlende Elemente, Deadlines. Haelt den Ueberblick.
development
Kapitelarchitektur und Gliederung der Masterarbeit. Verwaltet die Struktur, schlaegt vor wo Inhalte hingehoeren, validiert den logischen Fluss zwischen Kapiteln.
tools
Konvertiert Protokolleinträge und Session-Logs in thesis-fähiges deutsches Narrativ. Transformiert Entwicklungsdokumentation in akademische Prosa.
research
Sucht und analysiert akademische Literatur. Findet relevante Papers, erstellt strukturierte Zusammenfassungen. Zitiert NIEMALS — schlaegt nur vor.