ghost-scan-code
Warn
Audited by Socket on Sep 14, 2026
1 alert found:
AnomalyAnomalyscripts/loop.sh
LOWAnomalyLOW
scripts/loop.sh
This is an orchestration script for dispatching Claude-based scanning workers over files and tracking unfinished work. It contains no clear malware or direct data exfiltration. The principal risks are prompt injection and path traversal through the unvalidated prompt argument, because the external claude process receives write-capable tools and follows a dynamically selected instruction file. The supplied code also contains an apparent syntax error at the final echo statement, which would prevent execution. Review and constrain prompt, path, and input values before use, and fix the unterminated quote.
Confidence: 98%Severity: 58%
Audit Metadata