branch-risk-audit
Pass
Audited by Gen Agent Trust Hub on Jul 19, 2026
Risk Level: SAFECOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/changed_lines.pyexecutesgitcommands usingsubprocess.runto retrieve diff data.\n - Evidence: The
run_gitandgit_outputfunctions wrapsubprocess.runto call git subcommands.\n - Security Context: The implementation uses argument lists rather than shell strings, preventing shell injection vectors.\n- [PROMPT_INJECTION]: The skill exhibits an indirect prompt injection surface when processing untrusted diff data.\n
- Ingestion points:
scripts/changed_lines.pyingests untrusted code content viagit diff.\n - Boundary markers: No explicit delimiters or instructions are provided to the agent to ignore instructions embedded in hunks.\n
- Capability inventory: The skill script executes
subprocess.runfor git-specific operations.\n - Sanitization: Code content from the diff is passed directly to the agent context without sanitization.
Audit Metadata