pr-lens-diagrams
Pass
Audited by Gen Agent Trust Hub on Oct 20, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [EXTERNAL_DOWNLOADS]: The
scripts/pr-lens-setup.shscript installs the@coldtea/pr-lens-cliandplaywrightpackages from the NPM registry. It also downloads the Chromium browser binary as part of the Playwright installation process. - [COMMAND_EXECUTION]: The build process in
scripts/pr-lens-build.shinvolves executing several local commands and utilities, includingnpx pr-lensfor validation and rendering, andffmpegfor encoding image frames into GIF and MP4 files. - [DYNAMIC_EXECUTION]: The skill uses a Node.js script (
scripts/record.mjs) that leverages Playwright to load SVG files into a browser instance. It usespage.evaluateto programmatically step through SVG animations andpage.screenshotto capture frames, which involves executing code within a browser automation context. - [INDIRECT_PROMPT_INJECTION]: The skill processes user-influenced JSON data to generate visual diagrams. This represents a vulnerability surface where malicious content (e.g., scripts embedded in labels) could potentially be executed during the rendering phase in Playwright if not properly sanitized by the underlying CLI tool.
- Ingestion points: The
graph.jsonfile, specifically thetitle,label, andsubtitlefields withinnodes,edges, andlanes(processed inscripts/pr-lens-build.sh). - Boundary markers: The data is structured as JSON, which provides basic syntactic boundaries.
- Capability inventory: The skill can write files to the output directory and execute subprocesses including
node,npx, andffmpeg. - Sanitization: The
pr-lens-build.shscript invokesnpx pr-lens validateto check the JSON schema before rendering.
Audit Metadata