project-docs
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFECOMMAND_EXECUTIONPRIVILEGE_ESCALATIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The skill executes local Node.js scripts and Git commands to analyze repositories, manage permissions, and export diagram images.
- Evidence: Extensive use of
spawnSyncandspawninscripts/lib/repo.mjs,scripts/lib/cdp.mjs, andscripts/check.mjsto interface with the local environment. - [PRIVILEGE_ESCALATION]: The skill manages its own command permissions by writing to host-specific configuration files (e.g.,
.claude/settings.json,.codex/rules/). This allows the agent to execute specific commands without repeated prompts once approved. - Evidence: The
applycommand inscripts/permissions.mjsis designed to modify host configuration settings. - Mitigation: The implementation strictly requires user confirmation via the host's structured question tool and contains internal logic to prevent the agent from granting itself excessive or recursive permissions.
- [DYNAMIC_EXECUTION]: During the diagram export process, a JavaScript snippet is injected into a headless Chrome instance to facilitate the capture of SVG data from the generated documentation pages.
- Evidence:
Page.addScriptToEvaluateOnNewDocumentcall and theCAPTUREconstant inscripts/export-svg.mjs. - [INDIRECT_PROMPT_INJECTION]: The skill reads and processes content from user-provided git repositories (including source code, comments, and commit history), creating a surface for potential indirect prompt injection attacks.
- Evidence: The skill ingests and summarizes arbitrary repository content to build documentation templates.
- Mitigation: The skill includes automated scanning for secrets, API keys, and user-defined private terms to prevent sensitive data exposure in the generated documentation.
- [DATA_EXFILTRATION]: The skill accesses the user's home directory to read and write configuration and privacy preference files, and it drives a headless browser that could theoretically be used for network communication.
- Evidence: Access to files in
~/.config/agent-skills/project-docs/and CDP usage inscripts/lib/cdp.mjs. - Mitigation: The browser automation script specifically monitors for and warns against unexpected external network requests during the export process.
Audit Metadata