workspace-inventory
Pass
Audited by Gen Agent Trust Hub on Oct 12, 2026
Risk Level: SAFECOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The script
scripts/inventory_repos.pyexecutesgitcommands usingsubprocess.run. It uses subcommands such asremote,log,rev-list, andstatusto gather metadata about project folders. While these are intended as read-only operations, they involve executing an external binary in the context of the user's workspace.- [INDIRECT_PROMPT_INJECTION]: The skill is designed to read and summarize content from local project files (READMEs, manifests, and source code) to generate inventory descriptions. This creates an attack surface where malicious text inside those files could attempt to influence the agent's summarization or subsequent behavior. - Ingestion points: The
read_textfunction inscripts/inventory_repos.pyreads data fromrequirements.txt,pyproject.toml,package.json,manifest.json,main.py, andREADME*files across all subdirectories in the target path. - Boundary markers: No specific boundary markers or "ignore instructions" delimiters are implemented when processing the text extracted from these project files.
- Capability inventory: The script has the capability to traverse the local filesystem, read file contents, execute
gitviasubprocess.run, and print data to standard output. - Sanitization: The script implements basic sanitization for CSV formula injection by prepending a single quote to cells starting with unsafe characters (
=+-@), but does not have specific filters for prompt injection content within the file summaries.
Audit Metadata