scrape-webpage
Pass
Audited by Gen Agent Trust Hub on Nov 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill has an inherent vulnerability surface for indirect prompt injection as its primary function is to ingest and process content from external, untrusted URLs.
- Ingestion points: The
scripts/analyze-webpage.jsscript fetches external HTML, metadata, and images using Playwright. - Boundary markers: The
SKILL.mdfile contains an explicit 'External Content Safety' warning, instructing the agent to treat all fetched content as untrusted and disregard any embedded commands. - Capability inventory: The skill uses file system operations to save analysis results (
metadata.json,screenshot.png,cleaned.html) and downloads images to a local directory. - Sanitization: The
extractCleanedHTMLfunction inscripts/analyze-webpage.jsproactively removes scripts, styles, and non-content tags while stripping all HTML attributes except for a predefined safe whitelist (src, href, alt, title, class, id). - [EXTERNAL_DOWNLOADS]: The skill performs network operations to fetch external content.
- Downloads images from user-specified URLs and saves them locally.
- References standard browser binary installation via
npx playwright install chromiumto support its scraping functionality. - [COMMAND_EXECUTION]: The skill relies on local script execution to perform its tasks.
- Executes
node <SKILL_DIR>/scripts/analyze-webpage.jswith user-provided arguments to trigger the scraping pipeline.
Audit Metadata