webcrawler
Warn
Audited by Gen Agent Trust Hub on Mar 6, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDATA_EXFILTRATIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
workflowcommand (implemented insrc/commands/workflow.js) executes scripts via a package manager (pnpm,npm, oryarn) in a user-specified directory. Specifically, it runstypecheck,build, andpushcommands, which executes any code defined in thepackage.jsonof the target project. - [DATA_EXFILTRATION]: The
fetchPagefunction insrc/lib/fetch-page.jssupports thefile://protocol. This allows the tool to read local files from the host filesystem and include their contents in the generated JSON and HTML artifacts. This capability could be exploited to extract sensitive local data (e.g., configuration files, SSH keys, or environment variables) if an agent is directed to a local path. - [EXTERNAL_DOWNLOADS]: The shell script
scripts/run-webcrawler.shtriggersnpm installwithin the skill directory to manage dependencies. While standard for Node.js projects, running package managers on skill code can lead to the execution of arbitrary lifecycle scripts. - [COMMAND_EXECUTION]: The
src/lib/run-command.jsutility useschild_process.spawnto run external commands. While it avoids shell interpolation by settingshell: false, it still executes binaries and arguments provided via the command-line interface based on agent/user input. - [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface (Category 8) by processing untrusted data from external websites.
- Ingestion points:
src/lib/fetch-page.jsfetches content from arbitrary URLs. - Boundary markers: Absent; fetched content is parsed and rendered into artifacts without explicit instructions for the agent to ignore embedded commands.
- Capability inventory: Spawns subprocesses via
run-command.js, reads/writes to the filesystem viafs.js, and performs network requests viafetch-page.js. - Sanitization: Employs
escapeHtmlfor visual previews to prevent cross-site scripting (XSS).
Audit Metadata