containerization-best-practices
Pass
Audited by Gen Agent Trust Hub on Oct 16, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill includes Python and Bash utility scripts (
scripts/image-optimizer.py,scripts/image-scanner.sh) that execute system commands to analyze container environments. scripts/image-optimizer.pyutilizessubprocess.runto calldocker inspectfor retrieving image metadata. The implementation uses list-based arguments and avoidsshell=True, preventing shell injection.scripts/image-scanner.shacts as a wrapper for thedockerCLI and thetrivysecurity scanner. These operations are essential for the skill's purpose of image auditing and optimization.- [INDIRECT_PROMPT_INJECTION]: The skill includes a Dockerfile linter (
scripts/dockerfile-linter.py) that processes external Dockerfile content provided by the user. - Ingestion points: The script reads the content of a Dockerfile from a local path.
- Boundary markers: Not present; the script performs standard static analysis.
- Capability inventory: The linter logic is restricted to file reading and regex processing; it does not perform network operations or filesystem writes.
- Sanitization: The script uses standard regex matching to identify patterns without executing the content.
- [SAFE]: Security-sensitive examples (such as hardcoded credentials) within
SKILL.mdandexamples/dockerfile-audit.jsonare explicitly labeled as insecure practices for educational purposes. - [SAFE]: All external references point to reputable technology sources including official Docker and Kubernetes documentation, and well-known security tools like Trivy and Distroless.
Audit Metadata