reforge
Warn
Audited by Socket on Aug 16, 2026
1 alert found:
AnomalyAnomalyscripts/change-archive.mjs
LOWAnomalyLOW
scripts/change-archive.mjs
No clear evidence of stealthy malware (no networking, credential access, persistence, or exfiltration) is present in this snippet. However, the module carries meaningful security risk due to (1) potential shell command injection from execSync where the command string includes a path derived from user-controlled --id, and (2) high-impact recursive forced deletion of srcDir derived from --id, which could be dangerous if helper path construction does not enforce strict path confinement and symlink/path traversal safety. Verification of input validation and the implementations of changeDir/readManifest/writeManifest (and their path handling) is required to reduce risk.
Confidence: 62%Severity: 62%
Audit Metadata