prompt-hardening

Fail

Audited by Gen Agent Trust Hub on Oct 13, 2026

Risk Level: HIGHCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The script scripts/audit.sh contains multiple command injection vulnerabilities. It reads the contents of a user-provided file and evaluates it within a shell if statement using the $1 argument expansion. This allows an attacker to execute arbitrary commands by placing shell metacharacters or command substitutions (e.g., $(command)) inside the file being audited.
  • [DYNAMIC_EXECUTION]: The audit tool utilizes unsafe dynamic evaluation of strings. Content from external prompt files is interpolated into shell commands without escaping, leading to the execution of code embedded within the data. Specifically, the expansion of $LOWER and the command substitutions in the check function calls facilitate this behavior.
  • [INDIRECT_PROMPT_INJECTION]: The skill provides a surface for indirect prompt injection by ingesting untrusted data from external prompt files. The ingestion point is in scripts/audit.sh where file content is read into the $CONTENT variable. The script lacks boundary markers to delimit untrusted data and provides no sanitization or escaping before the content is evaluated in a shell context. Given the script's capability to execute shell commands via the if $1 pattern, this lack of protection allows malicious instructions within the audited data to influence or compromise the execution environment.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Oct 13, 2026, 01:06 AM