setup-harness
Warn
Audited by Gen Agent Trust Hub on Aug 29, 2026
Risk Level: MEDIUMPERSISTENCECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [PERSISTENCE]: The skill's primary function is to install persistent execution hooks. The
scripts/install_hooks.pyscript overwrites the.git/hooks/post-commitfile with a launcher and creates.codex/hooks.jsonand.cursor/hooks.jsonfiles. These configurations trigger the execution ofhooks/file_size_hint.pyandhooks/git_sync_policy.pyduring normal development workflows. - [COMMAND_EXECUTION]: Several scripts (
scripts/install_hooks.py,hooks/file_size_hint.py,hooks/git_sync_policy.py) usesubprocess.runto interact with the system'sgitbinary. While these calls are currently limited to repository metadata retrieval (e.g.,rev-parse,symbolic-ref), they provide a functional surface for executing shell commands. - [INDIRECT_PROMPT_INJECTION]: The hook scripts analyze external data which could contain malicious instructions designed to influence the agent's behavior. \n
- Ingestion points: The scripts in the
hooks/directory parsetool_inputandcommandpayloads provided by the IDE/agent environment (e.g., inhooks/file_size_hint.pyandhooks/git_sync_policy.py). \n - Boundary markers: Absent. There are no explicit delimiters or instructions to the LLM to ignore content within the analyzed tool inputs. \n
- Capability inventory: The scripts can execute shell commands via
subprocess.runand write/read files within the.gitdirectory. \n - Sanitization: The
hooks/file_size_hint.pyscript implements path sanitization by resolving target paths and verifying they are relative to the repository root usingpathlib.
Audit Metadata