debug
Fail
Audited by Socket on Feb 15, 2026
1 alert found:
Obfuscated FileObfuscated Filescripts/debug_cleanup.js
HIGHObfuscated FileHIGH
scripts/debug_cleanup.js
No indicators of malware or data exfiltration. The script contains a path traversal / insufficient input validation issue: sessionId (and to a lesser extent DEBUG_LOG_DIR/projectPath) are not sanitized, allowing crafted inputs to cause truncation or deletion of arbitrary files the process can access. This is a moderate-to-high security risk for environments where untrusted users can control CLI args or environment variables. Apply input validation, absolute-path checks, and runtime path containment verification before performing destructive filesystem operations.
Confidence: 98%
Audit Metadata