terragrunt-generator
Pass
Audited by Gen Agent Trust Hub on Mar 4, 2026
Risk Level: SAFECOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill provides patterns for Terragrunt
before_hook,after_hook, anderror_hookwithinreferences/common-patterns.mdand the template assets. These blocks allow the generated HCL to execute arbitrary shell commands, such asbash -c "curl ...", on the host system when Terragrunt is executed. - [REMOTE_CODE_EXECUTION]: The skill includes usage patterns for the
run_cmdfunction inreferences/common-patterns.md, which facilitates the execution of local binaries likegitandaws. While standard for Terragrunt, this mechanism enables local command execution during HCL evaluation. - [EXTERNAL_DOWNLOADS]: The skill facilitates the download of infrastructure components from external repositories, including modules from the Terraform Registry (
tfr:///), Git repositories, and OpenTofu engines from GitHub. These sources are well-known and standard in the DevOps ecosystem. - [PROMPT_INJECTION]: The skill contains an attack surface for indirect prompt injection (Category 8). It takes user-provided metadata (e.g., module names, project identifiers, and environment variables) and interpolates them into generated HCL files. If these strings are not sanitized, they could potentially inject malicious shell commands into the generated
hooksorrun_cmdblocks. - Ingestion points: User input for project-specific variables and module configuration details as described in the
SKILL.mdgeneration workflow. - Boundary markers: No explicit delimiters are suggested to isolate user input from the surrounding HCL code or shell command strings.
- Capability inventory: The generated configurations possess the capability to execute shell commands and perform network operations via
curl. - Sanitization: The skill lacks explicit instructions or logic for the agent to escape or validate user-provided data before interpolating it into executable shell arrays.
Audit Metadata