ralph-loop
Audited by Socket on Jul 14, 2026
1 alert found:
AnomalyThis snippet is best characterized as a high-blast-radius automation wrapper around an external AI tool rather than standalone malware. The main security concern is operational/supply-chain risk: it repeatedly sends locally stored prompt content to `claude` while explicitly using `--dangerously-skip-permissions`, and it immediately pushes the current Git branch to `origin` after each run. If `claude` can modify files or create commits, the script can rapidly publish unintended or malicious repository changes. There is no direct evidence of classic malware (credential theft, obfuscation payloads, hardcoded exfil domains) within this fragment itself, but the combination of permission bypass + automated remote publishing warrants careful review and guardrails (branch protections, controlled prompts, and validating what `claude` can do).