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.sh script uses curl to fetch content from the $URL variable without validating or restricting the protocol. An attacker could provide a file:// URI (e.g., file:///etc/passwd or file:///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.sh script fetches HTML/text from arbitrary URLs, and the WebFetch fallback 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 Bash and Write capabilities, 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., -e or -n), it could be interpreted as a flag by the echo command, leading to unexpected script behavior or potentially bypassing intended logic in the sed transformations.
Audit Metadata
Risk Level
SAFE
Analyzed
Oct 27, 2026, 03:13 AM