News for hackers. Stuff that matters.
Re:Shellfirm: Intercept risky patterns at the command line by travisd on Sunday July 31, 2022 @02:52AM (#32293786)
Other than rm -rf / (which can happen if you manage to hit enter rather than another key) this feels not terribly useful. Who has accidentally kubectl delete ns prod? Anecdotally, the accidental enter seems like a much more likely scenario (I once ruined a server by chmod -r a+r / ing — that feels like a better use case for accident protection).
Re:Shellfirm: Intercept risky patterns at the command line by IshKebab on Sunday July 31, 2022 @04:24AM (#32294188)
I've accidentally deleted all Docker containers on a shared system (who knew - Docker has no user-level security at all). Though this command wouldn't help in that case since I didn't know the command I was running was dangerous.
Re:Shellfirm: Intercept risky patterns at the command line by EdwardDiego on Sunday July 31, 2022 @03:03AM (#32293827)
If you are able to `kubectl delete ns prod-stuff` then you have somewhat earned the lesson you're about to learn.