octocode-scraping
Pass
Audited by Gen Agent Trust Hub on Aug 26, 2026
Risk Level: SAFECOMMAND_EXECUTIONDATA_EXFILTRATIONPROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill's primary purpose is to ingest and process arbitrary web content from external URLs. This creates a significant surface for indirect prompt injection attacks where malicious instructions could be embedded in scraped pages. The skill acknowledges this risk in
references/scraping-policy.mdand provides sanitization utilities inscripts/lib/text.mjs(e.g.,stripTags,cleanForAgent) to mitigate it. - [DYNAMIC_EXECUTION]:
scripts/corpus-run.mjsallows the agent or user to execute local JavaScript analysis scripts against the scraped corpus usingimport(). Although thesafeScriptPathfunction inscripts/lib/bridge.mjscontains comments regarding path restrictions, the implementation currently only enforces file existence and extension checks, potentially allowing the execution of any local.jsor.mjsfile accessible to the process. - [COMMAND_EXECUTION]: The skill uses
child_process.spawnSyncinscripts/lib/client.mjsto execute system commands likelsofandpsfor managing local Chrome processes. It also invokes Node.js scripts from a sibling skill (octocode-chrome-devtools) to perform browser-based scraping via the Chrome DevTools Protocol (CDP). - [DATA_EXPOSURE_AND_EXFILTRATION]: The skill interacts with external services, specifically
api.scrapingant.com, for hosted scraping tasks. To prevent accidental leakage of sensitive information,scripts/lib/bridge.mjsimplements robust redaction logic that identifies and masks authorization headers, cookies, and common secret patterns in URLs and request bodies before they are stored in the local corpus.
Audit Metadata