setup-harness
Pass
Audited by Gen Agent Trust Hub on Oct 11, 2026
Risk Level: SAFECOMMAND_EXECUTIONPERSISTENCEINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The skill uses Python's
subprocessmodule to executegitcommands (e.g.,git rev-parse,git symbolic-ref,git remote) across several scripts (install_hooks.py,file_size_hint.py,git_sync_policy.py). These calls are used for environment discovery, such as resolving the repository root and identifying the default branch. - [PERSISTENCE]: The installation script (
scripts/install_hooks.py) modifies the local.git/hooks/post-commitfile and registers tool-use hooks in.codex/hooks.jsonand.cursor/hooks.json. These hooks ensure specific Python logic (file size monitoring and Git sync policy enforcement) runs automatically during Git events and agent tool invocations. - [DYNAMIC_EXECUTION]: The skill generates shell launcher scripts and configuration files (
.agents/hooks/cleanup,.mergify.yml) at runtime. It also usesast.literal_evalto parse tool inputs inhooks/file_size_hint.py. These behaviors are used to bridge the agent environment with the local shell and are consistent with the skill's configuration purpose. - [INDIRECT_PROMPT_INJECTION]: The skill explores repository content, including workflow files in
.github/workflows/, to suggest configuration settings. This ingestion of potentially untrusted data from the repository serves as an attack surface for indirect prompt injection. - Ingestion points: Reads
.github/workflows/and repository metadata viagit remoteandgh pr listcommands to determine merge and hook requirements. - Boundary markers: No explicit instruction delimiters are used in the prompt when interpolating repository data, though the skill requires human confirmation before writing files.
- Capability inventory: Includes file system writing (
writefunction), permission modification (chmod), and arbitrary shell command execution viasubprocess.runon Git binaries. - Sanitization: Employs
shlex.quoteinscripts/install_hooks.pyto sanitize paths when generating the Git hook launcher shell script.
Audit Metadata