News for hackers. Stuff that matters.
Re:Don't YOLO your file system by lxgr on Saturday March 28, 2026 @07:03AM (#47553469)
It works well so far, for you.

Are you confident it would still work against sophisticated prompt injection attacks that override your "strongly worded message"?

Strongly worded signs can be great for safety (actual mechanisms preventing undesirable actions from being taken are still much better), but are essentially meaningless for security.

Re:Don't YOLO your file system by esperent on Saturday March 28, 2026 @08:07AM (#47553826)
I mean, that's like saying are you sure that your antivirus would prevent every possible virus? Are you sure that you haven't made some mistake in your dev box setup that would allow a hacker to compromise it? What if a thief broke i to your house and stole your laptop? That's happened to me before, much more annoying to recover from that an accidental rm rf.

I do my best to keep off site back ups and don't worry about what I can't control.

Re:Don't YOLO your file system by lxgr on Saturday March 28, 2026 @08:28AM (#47553959)
> I mean, that's like saying are you sure that your antivirus would prevent every possible virus?

Yes, I'm saying it's pretty much as bad as antivirus software.

> Are you sure that you haven't made some mistake in your dev box setup that would allow a hacker to compromise it?

Different category of error: Heuristically derived deterministic protection vs. protection based on a stochastic process.

> much more annoying to recover from that an accidental rm rf.

My point is that it's a different category, not that one is on average worse than the other. You don't want your security to just stand against the median attacker.

Re:Don't YOLO your file system by unshavedyak on Saturday March 28, 2026 @11:46AM (#47555645)
Not sure about OPs impl, but the wording doesn’t matter. The hook prevents the use of whatever action you want. Eg it’s impossible for Claude to use Emojis for me. My hook doesn’t allow it.

So it’s deterministic based upon however the script it written

Re:Don't YOLO your file system by jmalicki on Sunday March 29, 2026 @12:37AM (#47560426)
If your hook prevents rm, it is possible for Claude to write a script that does the rm and execute the script.
Re:Don't YOLO your file system by unshavedyak on Sunday March 29, 2026 @11:49PM (#47570205)
Yup, that's totally possible, but you still have to approve the script. But that's a bit of a moot point right? Claude is writing code, nearly anything is possible with code, ergo claude could do anything lol.