create-locked-down-skill
Warn
Audited by Gen Agent Trust Hub on Mar 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The shell script template
templates/claude/hooks/dir-jail.shis vulnerable to command injection. The script takes a file path ($TARGET) and interpolates it directly into apython3 -ccommand string using single quotes. A file path containing a single quote followed by Python code (e.g.,'); import os; os.system('...) would lead to arbitrary command execution when the hook is executed during tool calls such asReadorWrite. This is particularly critical as the script is intended to serve as a security control. - [DYNAMIC_EXECUTION]: The hook scripts provided in the templates utilize
python3 -cto execute dynamically constructed Python snippets for path normalization. While intended as a utility, this pattern introduces a code execution vector if inputs are not strictly sanitized before interpolation into the command string. - [INDIRECT_PROMPT_INJECTION]: The skill facilitates the creation of workflows by embedding 'source content' provided by users into configuration and instruction files. This process lacks sanitization or the use of boundary markers, creating an ingestion point for untrusted data that could influence the behavior of agents operating within the generated environment.
- Ingestion points:
SKILL.md(Step 1: Gather Requirements - Source content).
- Boundary markers: Absent in the provided templates and instructions.
- Capability inventory: The generated workflows typically allow file operations (
Read,Write,Edit,Glob,Grep) and occasionally shell access. - Sanitization: No sanitization or validation of the user-provided content is implemented.
Audit Metadata