search-context
Pass
Audited by Gen Agent Trust Hub on Oct 17, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill clones and inspects untrusted external GitHub repositories, presenting snippets and metadata to the agent. A malicious repository could attempt to influence agent behavior through crafted instructions in code comments or project documentation. Ingestion points:
scripts/search-context.mjsreads and processes file contents from cloned repositories usingripgrep. Boundary markers: The output is structured in a Markdown manifest with distinct headers and instructions for the agent. Capability inventory: The skill usesspawnSyncto executegh,git, andrgfor repository management and inspection. Sanitization: The script uses a restrictive regex for search terms, compacts whitespace, and trims snippets before including them in the manifest. - [COMMAND_EXECUTION]: The script executes system commands (
gh,git,rg) using Node.jsspawnSync. Evidence: Found in therunCommandfunction inscripts/search-context.mjs. Mitigation: Commands are executed with argument arrays (no shell), and user input used in search phrases is filtered through a restrictive regex (/[a-z0-9+#.]+/gi), preventing shell metacharacter injection. - [EXTERNAL_DOWNLOADS]: The skill performs repository discovery and cloning from GitHub. Evidence:
scripts/search-context.mjsusesgh apifor discovery andgit clonefor retrieval. Security Context: This is an intended primary function. The skill includes explicit security guidelines inSKILL.mdandreferences/security.mdprohibiting the execution of any downloaded code or installation of dependencies.
Audit Metadata