agent-first-screenshots
Audited by Socket on Aug 15, 2026
1 alert found:
SecurityThis module is primarily an automation tool for screenshot capture and image-based verification, but it contains multiple high-risk misuse primitives. The most significant is unvalidated spec.preCapture being executed via Runtime.evaluate in the remote browser/runtime over a WebSocket connection. Additionally, it accepts wsUrl and outPath directly from CLI without validation, enabling arbitrary remote endpoint interaction and potential arbitrary filesystem writes/overwrites. There is no clear evidence of classic embedded malware (e.g., mining/backdoor/exfiltration) within this snippet, but the exposed execution and write capabilities substantially increase security risk when attacker-controlled inputs are possible.