sap-browser-automation
Audited by Socket on Jul 22, 2026
2 alerts found:
Anomalyx2No evidence of obfuscated or overtly destructive malware (no reverse shell/process execution/network beaconing in this snippet). However, the code is security-sensitive and potentially abuse-prone: it enables arbitrary JavaScript execution in a target browser context (Runtime.evaluate), and it can export and re-import authentication/session state (cookies + localStorage/sessionStorage) to/from disk. If this library is included in a larger project without clear necessity, it could be repurposed for account/session theft or manipulation. Overall: likely a legitimate CDP automation tool, but high-impact capabilities warrant review and usage restrictions.
No clear evidence of intentional malware (no obfuscation, no persistence, no exfiltration, no overt credential theft) is present in this code fragment. However, it performs high-impact browser automation: it clones and reuses authenticated Edge profile state (Local State + profile directory) and launches Edge with loopback DevTools debugging enabled. The security risk is primarily the sensitive data handling and local DevTools exposure, which could enable session misuse if the script is run with sensitive/attacker-influenced inputs.