replicate-local-workflow
Warn
Audited by Socket on Aug 5, 2026
1 alert found:
AnomalyAnomalyscripts/save-prediction.mjs
LOWAnomalyLOW
scripts/save-prediction.mjs
No definitive malicious/backdoor behavior is present in the shown module (no eval/obfuscation and no direct secret theft patterns). However, the code performs two security-critical actions driven by untrusted input: it fetches arbitrary http(s) URLs discovered in a prediction JSON (potential SSRF/outbound fetch risk in reachable environments) and it executes a runtime-resolved provenance tool via 'npx -y' using attacker-influenced downloaded content and generated metadata (supply-chain/runtime execution risk). This should be reviewed/mitigated with URL allowlisting/internal blocking, network egress controls, and pinned/integrity-verified tooling rather than runtime npx execution.
Confidence: 65%Severity: 68%
Audit Metadata