js-secrets-extraction

Warn

Audited by Gen Agent Trust Hub on Nov 9, 2026

Risk Level: MEDIUMEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
  • [EXTERNAL_DOWNLOADS]: The skill references and encourages the use of external, third-party utilities such as waybackurls, subjs, and lazyegg.py which are not provided in the skill package.
  • [DATA_EXFILTRATION]: The documentation suggests uploading target source code and mapping files to external web services like unminify.com and source-map-visualization.netlify.app. This facilitates the exposure of potentially sensitive or proprietary code to third parties.
  • [COMMAND_EXECUTION]: A Node.js snippet in Phase 5 of the instructions writes files to the local filesystem using filenames derived from external source maps (map.sources). While it uses .pop() to isolate the filename, it remains capable of overwriting existing files in the current working directory, including the skill's own files or other project assets.
  • [DYNAMIC_EXECUTION]: The provided Node.js one-liner uses the require() function to load a downloaded file (app.js.map). In Node.js, require will execute the file if it contains JavaScript, creating a vector for arbitrary code execution if the server serves malicious JS instead of the expected JSON-formatted source map.
  • [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process large volumes of untrusted data from external web targets.
  • Ingestion points: HTML and JavaScript bundles downloaded via curl and the scan_js.py script.
  • Boundary markers: Absent; there are no instructions to the agent to treat the ingested code as data rather than instructions.
  • Capability inventory: The skill utilizes shell commands (curl, grep), Node.js, and Python, providing a broad surface for exploitation if the ingested data contains malicious instructions.
  • Sanitization: No sanitization or escaping is performed on the content extracted from the target bundles before it is displayed or processed further.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Nov 9, 2026, 04:56 AM