logoalt Hacker News

dcrazy • yesterday at 11:29 PM • 1 reply • view on HN

I use a hook to deny attempts to invoke `grep /` and `find /`, even as part of a complex pipeline.


Replies

awfulneutral • yesterday at 11:43 PM

I had claude write a hook to deny `find /`. It tested it thoroughly. Much later I learned that the hook denied `find /` but allowed everything else that existing permissions denied, like running whatever random python/bash code it wanted without asking.