guard
Pass
Audited by Gen Agent Trust Hub on Apr 1, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [SAFE]: The skill is a defensive utility that uses a PreToolUse hook to validate bash commands against a set of safety rules defined in
rules.json. It provides different operating modes (Careful, Freeze, Unfreeze) to manage operational risk. - [COMMAND_EXECUTION]: The skill includes a local bash script (
bin/check-dangerous.sh) used as a security gatekeeper. It analyzes commands using standard utilities likejqandgrepwithout executing the commands themselves. The script provides feedback to the agent to prevent execution of blocked patterns. - [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface by interpolating user-controlled command strings into its warning messages in
SKILL.md. While this is inherent to the tool's purpose of reporting what it blocked, it creates a potential channel for malicious commands to attempt to influence the agent's subsequent logic. - Ingestion points: Command strings captured by the
PreToolUsehook inSKILL.mdandbin/check-dangerous.sh. - Boundary markers: None present in the
SKILL.mdwarning template. - Capability inventory: The skill has the capability to analyze, block, and warn about shell commands using its internal logic and configuration files.
- Sanitization: Validation is performed through regex pattern matching in
rules.jsonto identify and stop dangerous commands before they are processed by the warning template.
Audit Metadata