diff-summary-md
Pass
Audited by Gen Agent Trust Hub on Sep 10, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/collect_diff_evidence.pyscript executesgitandghbinaries using thesubprocess.Popenfunction. While it implements defensive measures like cleaning environment variables and avoiding shell interpolation, the execution of external binaries based on user-supplied parameters (like commit SHAs or branch names) is a high-privilege operation.\n- [COMMAND_EXECUTION]: Thescripts/generate_summary_report.pyscript usessubprocess.runto invoke system openers (e.g.,open,xdg-open) to display generated HTML reports to the user.\n- [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and summarize external, untrusted data including Git diffs and Pull Request metadata. An attacker could embed malicious instructions within commit messages or PR descriptions to influence the AI's analysis or the resulting report artifacts. Ingestion points: Captured output fromgit diffandgh pr viewinscripts/collect_diff_evidence.py. Boundary markers: The workflow documentation (references/diff-summary-workflow.md) includes explicit warnings to treat all evidence as inert data. Capability inventory: Subprocess execution forgitandgh, and file system write access to create report artifacts. Sanitization:scripts/generate_summary_report.pyapplies HTML entity escaping for report content and JSON serialization for data embedded within script tags.\n- [DYNAMIC_EXECUTION]: The skill dynamically generates HTML reports containing interactive JavaScript from Markdown content usingscripts/generate_summary_report.py. It also manages command execution through thesubprocessmodule to interact with the local development environment.
Audit Metadata