dockerfile-validator
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill possesses an attack surface for indirect prompt injection as it ingests and analyzes untrusted data from target Dockerfiles.
- Ingestion points: The agent reads the target Dockerfile using
sedand processes the output generated by the validation script inscripts/dockerfile-validate.sh. - Boundary markers: There are no explicit instructions to use delimiters or ignore instructions embedded within the Dockerfile content.
- Capability inventory: The skill is capable of executing shell commands (
bash,docker build) and performing file-write operations to apply fixes. - Sanitization: No sanitization or escaping of the external Dockerfile content is performed before interpolation into the agent's context.
- [EXTERNAL_DOWNLOADS]: The
scripts/dockerfile-validate.shscript fetches and installs thehadolint-binandcheckovpackages from PyPI at runtime if they are not already available on the host system. - [DYNAMIC_EXECUTION]: The validation script creates temporary Python virtual environments in
/tmpand executes binaries installed dynamically into those environments. - [COMMAND_EXECUTION]: The skill uses
docker buildanddocker run(e.g.,hadolint/hadolint) as fallbacks for validation, granting the agent significant execution privileges in environments where Docker is accessible.
Audit Metadata