story-short-scan
Warn
Audited by Gen Agent Trust Hub on Oct 20, 2026
Risk Level: MEDIUMCREDENTIALS_UNSAFEDYNAMIC_EXECUTIONCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The script
scripts/heiyan-booklist-scraper.jsprogrammatically extracts theAdmin-Tokenfrom browser cookies usingdocument.cookie. This token is used as a Bearer credential to authenticate API requests to the platform's backend (ms.zhangwenpindu.cn). - [DYNAMIC_EXECUTION]: Multiple components, including
scripts/cdp-utils.js,scripts/dz-browse-scraper.js, andscripts/heiyan-booklist-scraper.js, utilize anevalJSONBase64function. This function constructs JavaScript code strings at runtime, encodes them in Base64, and executes them within the browser context via the Chrome DevTools Protocol. - [COMMAND_EXECUTION]: The skill invokes the
agent-browserCLI tool usingchild_process.execFileSync. Inscripts/cdp-utils.js, the skill includes logic to search the systemPATHforagent-browser.cmd, read and parse its contents to resolve the target executable, and launch it with arguments. - [INDIRECT_PROMPT_INJECTION]: The skill exhibits a significant surface for indirect prompt injection via external data processing.
- Ingestion points: Untrusted data is ingested from the web (Dianzhong, Heiyan platforms) and local Markdown files by
scripts/dz-browse-scraper.js,scripts/heiyan-booklist-scraper.js, andscripts/aggregate-rank.js. - Boundary markers: No delimiters or instructions are used to prevent the agent from obeying instructions embedded in the scraped book titles or descriptions.
- Capability inventory: The skill has access to shell execution (
execFileSyncincdp-utils.js) and file system writes (fs.writeFileSyncin several scripts). - Sanitization: The skill lacks sanitization, escaping, or validation logic for external content before it is processed or included in the final generated reports.
Audit Metadata