computer-and-browser
Audited by Socket on Aug 20, 2026
3 alerts found:
Anomalyx2SecurityNo explicit malware/persistence/network exfiltration is present in this module. However, it exposes a substantial security risk surface: it enables arbitrary JavaScript execution in a target page via CDP Runtime.evaluate (page.eval with caller-controlled expression) and provides direct endpoints to extract sensitive page content (innerText/outerHTML and screenshots) and to simulate user input (mouse/keyboard/text). If command invocation/authorization is not tightly controlled, this design could be leveraged for malicious page manipulation and data collection.
This code is a native-messaging dispatcher with session bookkeeping. Its primary risk is that native-origin inputs (method and params) are forwarded to runCommand without validation or allowlisting in this module. While there is no direct evidence of malware in the snippet itself, the architecture creates a plausible high-impact conduit: if the native host or message stream is malicious/compromised, whatever runCommand does could be abused. Review should focus on runCommand’s method allowlist, parameter validation, and any authorization checks, as well as the native host’s integrity and message protocol.
This manifest-only review shows no direct malicious code or obfuscation, but it grants a highly sensitive capability surface: unrestricted site access ("<all_urls>") combined with powerful control/inspection ("debugger", "scripting") and a native bridge ("nativeMessaging"). Without the referenced background.js and native messaging host configuration, malicious intent cannot be confirmed, but the permission set is sufficiently risky that the implementation should be thoroughly reviewed for data exfiltration, credential/session theft, intrusive automation, or unsafe native messaging behavior.