browsing
Audited by Socket on May 14, 2026
2 alerts found:
Anomalyx2Overall, this module is a CLI automation wrapper for Chrome DevTools with high-risk capabilities: (1) arbitrary JavaScript execution in the target page via CDP Runtime.evaluate ('eval', and selector-based injection in 'click'), (2) arbitrary JSON-RPC payload sending via 'raw' to a caller-supplied ws:// URL, and (3) arbitrary local file writes via fs.writeFileSync to a CLI-controlled filename. These behaviors are dangerous in untrusted contexts but are not, by themselves, definitive malware. No clear indicators of overt data theft or network exfiltration to third-party domains are present in the provided fragment.
No direct indicators of malware (no exfiltration of actual sensitive data, no network calls, no dynamic execution, no hardcoded credentials) are present in this fragment. However, it is security-relevant: it overrides multiple privacy-sensitive Web APIs and delegates allow/deny decisions to globally accessible window hooks, sending capability/intent metadata (including `location.origin`) to that hook implementation. If the dialog hook is untrusted or compromised, permission decisions and user privacy expectations can be subverted or observed. Overall: medium security risk due to invasive API mediation and a strong external trust boundary.