security-docker

Audit Dockerfiles and Docker Compose configurations for security vulnerabilities.

124|12|Updated Nov 17, 2025
One-click install
npx skills add https://github.com/IgorWarzocha/Opencode-Workflows --skill security-docker-igorwarzocha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-docker
Source: https://github.com/IgorWarzocha/Opencode-Workflows/tree/main/agents/security-reviewer/.opencode/skill/security-docker
Command: npx skills add https://github.com/IgorWarzocha/Opencode-Workflows --skill security-docker-igorwarzocha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires rg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and mitigate common security vulnerabilities within Dockerfiles and Docker Compose configurations, protecting your containerized applications from exposure.

Core Features & Use Cases

  • Dockerfile Auditing: Detects secrets in ENV/ARG, insecure COPY operations, and missing non-root users.
  • Docker Compose Security: Flags exposed sensitive ports, dangerous volume mounts (like the Docker socket), and privileged container settings.
  • Use Case: Before deploying a new microservice, run this Skill to automatically scan its Dockerfile and docker-compose.yml for critical security flaws like hardcoded API keys or exposed database ports.

Quick Start

Run the security-docker skill to audit the Dockerfile and docker-compose.yml in the current directory.

Frequently Asked Questions about security-docker

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a Dockerfile for security vulnerabilities and hardcoded secrets?

To scan a Dockerfile for security vulnerabilities, run an audit to detect hardcoded secrets in ENV or ARG instructions, insecure COPY operations, and missing non-root user configurations, identifying common anti-patterns before deployment.

What are common Docker Compose security risks like exposed ports and privileged settings?

Common Docker Compose security risks include exposed sensitive ports, dangerous volume mounts like the Docker socket, and privileged container settings. Auditing configurations flags these insecure settings to protect containerized applications from exposure.

Does this Docker security audit require installing ripgrep?

Yes, this Docker security audit requires installing ripgrep (rg). The Skill utilizes shell scripting and ripgrep for pattern matching against common security anti-patterns in your Dockerfile and Docker Compose configurations.

Can I check Docker Compose configurations for dangerous volume mounts?

Yes, you can check Docker Compose configurations for dangerous volume mounts. The audit specifically flags risky mounts like the Docker socket, exposed sensitive ports, and privileged container settings to prevent security exposure.

What is the best way to find hardcoded API keys in Dockerfiles before deployment?

The best way to find hardcoded API keys in Dockerfiles is to run a security audit that checks build arguments and environment variables. This automatically scans for critical security flaws like secrets before deploying a new microservice.