darwin-skill
Warn
Audited by Socket on Nov 16, 2026
1 alert found:
AnomalyAnomalyscripts/screenshot.mjs
LOWAnomalyLOW
scripts/screenshot.mjs
This module appears to be a legitimate Playwright-based HTML-to-PNG screenshot utility, but it carries a meaningful security risk when run with attacker-controlled CLI arguments. The most important issue is potential command injection: outputPath from argv is interpolated into shell commands passed to execSync to open the image. The script also allows attacker-controlled file paths for reading (htmlPath) and writing (outputPath), and it dynamically resolves Playwright from global/nonstandard locations, increasing exposure if the environment is compromised. No explicit malware behavior is evident in the provided code fragment.
Confidence: 66%Severity: 58%
Audit Metadata