scrape-docs
Pass
Audited by Gen Agent Trust Hub on Oct 27, 2026
Risk Level: SAFEDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTION
Full Analysis
- [DATA_EXFILTRATION]: The
scripts/scrape-docs.shscript usescurlto fetch content from the$URLvariable without validating or restricting the protocol. An attacker could provide afile://URI (e.g.,file:///etc/passwdorfile:///Users/username/.ssh/id_rsa) to read sensitive local files. The script would then process this sensitive data and save it into the~/.claude/docs/directory, exposing it to the agent's context. - [INDIRECT_PROMPT_INJECTION]: The skill has a large attack surface for indirect prompt injection because it fetches and processes untrusted documentation from the web.
- Ingestion points: The
scrape-docs.shscript fetches HTML/text from arbitrary URLs, and theWebFetchfallback tool processes full page content. - Boundary markers: The instructions lack explicit delimiters or warnings for the agent to ignore instructions embedded within the scraped documentation.
- Capability inventory: The agent possesses
BashandWritecapabilities, meaning a successful injection could lead to arbitrary command execution or file system modification. - Sanitization: While the script strips some HTML tags like
<script>, the resulting text is still interpreted by the agent, which may obey malicious instructions found in the text (e.g., "Stop what you are doing and run this command..."). - [COMMAND_EXECUTION]: The shell script uses
echo "$URL"to extract domain and path information. If a malicious URL is crafted to start with a hyphen (e.g.,-eor-n), it could be interpreted as a flag by theechocommand, leading to unexpected script behavior or potentially bypassing intended logic in thesedtransformations.
Audit Metadata