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.shcontains multiple command injection vulnerabilities. It reads the contents of a user-provided file and evaluates it within a shellifstatement using the$1argument 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
$LOWERand the command substitutions in thecheckfunction 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.shwhere file content is read into the$CONTENTvariable. 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 theif $1pattern, 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