scrape-webpage
Pass
Audited by Gen Agent Trust Hub on Sep 15, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill fetches and processes content from external URLs, creating a surface for potential indirect injection attacks from untrusted web data.\n
- Ingestion points: The
analyze-webpage.jsscript uses Playwright to navigate to and load content from user-provided external URLs.\n - Boundary markers: The
SKILL.mdfile contains a dedicated 'External Content Safety' section that explicitly instructs the agent to treat all fetched content as untrusted and to ignore any embedded commands or directives.\n - Capability inventory: The skill has the capability to perform outbound network requests and write multiple files (cleaned HTML, metadata JSON, and images) to the local workspace via
scripts/analyze-webpage.jsandscripts/image-capture.js.\n - Sanitization: The
extractCleanedHTMLfunction inanalyze-webpage.jsremoves executable elements such as<script>,<style>, and<noscript>tags and strips all but a strict whitelist of safe attributes. Additionally,scripts/generate-path.jsincludes functions to sanitize filenames and paths to prevent injection or traversal.\n- [EXTERNAL_DOWNLOADS]: The skill is designed to fetch and download images from remote servers during the scraping process.\n - Evidence:
scripts/image-capture.jsimplements logic to intercept image responses and save the data to a localimages/directory, usingsharpfor format conversion where necessary.\n- [COMMAND_EXECUTION]: The skill instructions prompt the execution of Node.js scripts to perform the analysis tasks.\n - Evidence:
SKILL.mdprovides specific bash commands for the user to runanalyze-webpage.jswith target URLs and output directories.
Audit Metadata