doc-compact
Warn
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
scripts/audit.pyscript usessubprocess.runto execute an external Python tooldoc_nav_lint.py. The path to this tool is dynamically resolved to a sibling directory (doc-init), creating a dependency on code outside the skill's own package. - [REMOTE_CODE_EXECUTION]: The documentation maintenance workflow in
references/maintenance-workflow.mdinstructs the agent to execute multiple Python scripts from an external<DOC_INIT_DIR>location, includingdiscover_global_instruction_files.pyandinsert_doc_governance.py, which are used to modify global AI instructions. - [DATA_EXFILTRATION]: The
scripts/audit.pyscript includes a--save-metricsargument that allows writing JSON audit data to a user-specified file path. This capability could be exploited to overwrite sensitive files (e.g., shell profiles or configuration files) if the agent is directed to a malicious destination path. - [INDIRECT_PROMPT_INJECTION]: The skill's primary function is to ingest, audit, and rewrite documentation, which establishes an attack surface for indirect prompt injection.
- Ingestion points:
scripts/audit.pyand the compression logic inreferences/maintenance-workflow.mdread all markdown files within thedocs/andspecs/directories. - Boundary markers: The skill utilizes HTML comment markers (
<!-- name:begin/end -->) for content preservation but does not implement security boundaries to prevent the AI from following instructions embedded in the processed documentation. - Capability inventory: The agent is empowered to modify files using specialized tools and shell commands, while the audit script itself has file-writing permissions.
- Sanitization: The skill does not perform sanitization or filtering of documentation content before it is presented to and processed by the agent.
Audit Metadata