Detects and prevents destructive shell operations, including root filesystem targets, home folder deletions, and remote script piping directly in shell tools.
user@hooks:~$ run-hook block-dangerous
Checking payload command "rm -rf /"...
[ai-hooks:block-dangerous-commands] blocked shell command: {"command":"rm -rf /","inspected":"rm -rf /","level":"DENY","reason":"[rm-root] rm targeting root filesystem","rule":"rm-root"}
Result: DENIED