dockerfile-generation
Pass
Audited by Gen Agent Trust Hub on Apr 5, 2026
Risk Level: SAFECOMMAND_EXECUTION
Full Analysis
- [SAFE]: The skill implements strong security principles for Dockerfile generation, including the use of non-root users (UID 10001+), mandatory version pinning for base images (no :latest), and multi-stage builds to ensure a minimal runtime attack surface.
- [SAFE]: Explicit input sanitization rules are defined for base image names, port numbers, and file paths to prevent common shell injection and path traversal attacks during the generation phase.
- [COMMAND_EXECUTION]: The skill uses
docker buildanddocker runto verify that the generated containers function as intended. This process includes running the container and capturing the first 50 lines of logs for debugging. - [COMMAND_EXECUTION]: Includes utility shell scripts (
dockerfile-lint.sh,image-size-report.sh) that interface with thedockerCLI andhadolintto provide automated linting and image size analysis.
Audit Metadata