You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(security): guard against rm -rf in hooks and source code
- Add rm -rf/rm -r/rm -fr/rm -Rf to deny list in .claude/settings.json
and settings.local.json (hard block, no prompt bypass)
- Replace execSync('rm -rf ...') with fs.rmSync() in ralph.ts and setup.ts
- Add validateShellCommand() to input-sanitizer.ts with DANGEROUS_SHELL_PATTERNS
regex blocking recursive rm, mkfs, dd, and fork bombs
- Export validateShellCommand from security/index.ts
- Add 4 tests covering blocked and allowed patterns
0 commit comments