marking-up-pages

Warn

Audited by Gen Agent Trust Hub on Nov 18, 2026

Risk Level: MEDIUMDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONCOMMAND_EXECUTIONPERSISTENCE
Full Analysis
  • [DYNAMIC_EXECUTION]: The loader script in SKILL.md uses eval() to execute the overlay source code retrieved from localStorage.getItem('page-scrawl:src'). This creates a vulnerability where a malicious website could overwrite this storage key to achieve Cross-Site Scripting (XSS) against the agent's browser tool context when the loader is executed.
  • [INDIRECT_PROMPT_INJECTION]: The skill ingests untrusted data from the DOM, including element text, component names (React/Vue/Svelte), and console logs. Evidence Chain:
  • Ingestion points: SKILL.md (via __scrawl.summary() and __scrawl.export()).
  • Boundary markers: Absent; the agent is instructed to read the output directly as a bug report.
  • Capability inventory: javascript_tool (arbitrary JS execution), computer (screenshots, keyboard input), and potential file modifications in the local project.
  • Sanitization: Absent; the script captures raw text and property values from the web page's execution environment.
  • [COMMAND_EXECUTION]: The skill provides instructions for the agent to execute arbitrary JavaScript in the page context using javascript_tool. While this is the intended purpose, the instructions specifically note that this tool ignores the page's Content Security Policy (CSP), which bypasses standard browser security controls.
  • [PERSISTENCE]: The scripts/overlay.js file contains logic to cache its own source code in localStorage under the key page-scrawl:src. This allows the tool to persist across reloads but also facilitates the dynamic execution risk mentioned above.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 18, 2026, 11:17 AM