terraform-infra
Warn
Audited by Gen Agent Trust Hub on Mar 14, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The main execution script
scripts/main.cjsuseschild_process.spawnto run theterraformCLI with arguments passed directly from the process. It lacks any logic to filter or validate these arguments, allowing for the execution of any valid Terraform command, including destructive ones. - [PROMPT_INJECTION]: The documentation in
SKILL.mdincludes 'Safety Controls' and 'Iron Laws' that claim to block commands likedestroyandstate-rm. Since these constraints are not implemented in the code, they serve only as natural language instructions for the agent, which can be bypassed or overridden through prompt injection. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection. 1. Ingestion points: The skill reads
.tffiles from the working directory (SKILL.md). 2. Boundary markers: No delimiters or warnings are used when processing these files. 3. Capability inventory: Themain.cjsscript can execute any Terraform command, which can modify cloud resources or local files. 4. Sanitization: No sanitization or validation of the ingested infrastructure code is performed before execution.
Audit Metadata