ce-optimize
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
AnomalyAnomalyscripts/experiment-worktree.sh
LOWAnomalyLOW
scripts/experiment-worktree.sh
The code is a legitimate Git worktree management script with no apparent malware or exfiltration behavior. It has a meaningful input-validation weakness: spec_name and especially shared_file are used in filesystem paths without preventing traversal or absolute paths, which could cause files to be copied, removed, or worktrees created outside the intended locations. The automatic copying of .env files also propagates local secrets into experiment worktrees. Restrict arguments to safe identifiers and verify canonical source and destination paths before filesystem operations.
Confidence: 97%Severity: 62%
Audit Metadata