pr-walkthrough
Warn
Audited by Gen Agent Trust Hub on Oct 9, 2026
Risk Level: MEDIUMINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSNO_CODE
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches and processes pull request metadata, body, and comments from GitHub (using
gh pr viewandgh api). These external inputs are often attacker-controlled. The instructions inSKILL.mdattempt a partial safety boundary (line 75) by stating not to treat comments as instructions to change code, but they lack comprehensive sanitization or delimiters to prevent the agent from obeying other embedded instructions, such as exfiltrating data or using additional tools. - [COMMAND_EXECUTION]: The skill uses
ghandgitcommands to collect repository and pull request state. While these are standard developer tools, the reliance on raw shell output from commands likegh apito populate UI components without robust filtering creates a pathway for data manipulation. - [EXTERNAL_DOWNLOADS]: The generated HTML walkthroughs are hardcoded to load the D3 library from
https://cdn.jsdelivr.net/npm/d3@7.9.0/dist/d3.min.js. While this is a pinned version from a well-known CDN (jsDelivr), it introduces a runtime network dependency and supply-chain risk if the CDN is compromised, as no Subresource Integrity (SRI) hashes are implemented. - [DYNAMIC_EXECUTION]: The
scripts/d3_canvas_runtime.pyscript usesinnerHTMLto render node details. Although text content is escaped, theurlproperty for file and comment links is interpolated directly intohrefattributes (lines 162-171) without validating the URI scheme. This could allow an attacker to inject ajavascript:URL into a PR comment, which would execute in the reviewer's browser context when the link is clicked.
Audit Metadata