repo-hygiene
Pass
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill defines patterns for the agent to execute shell commands that process filesystem entries. Specifically, in Category C6 (Orphan doc-assets), the instruction uses
grep -rl "$(basename <asset>)". If an attacker places a file in the repository with a name containing shell metacharacters or command substitutions (e.g., backticks or$(...)), the agent might inadvertently execute arbitrary code when evaluating thebasenameexpression within a shell environment. - [INDIRECT_PROMPT_INJECTION]: The skill establishes an attack surface where untrusted data (filenames and directory names) is ingested and used to drive agent actions and command construction.
- Ingestion points: Filenames and paths retrieved from the workspace via
git ls-filesandlscommands as described inSKILL.mdsections C1, C2, and C6. - Boundary markers: The instructions do not define boundary markers or delimiters to protect the shell commands from malicious filenames.
- Capability inventory: The skill uses
grep,ls,git rm, andgit check-ignore, providing the agent with file read, deletion, and shell execution capabilities. - Sanitization: There is no mention of sanitizing or escaping filenames before they are interpolated into the shell command strings, particularly for the documentation asset checks.
Audit Metadata