News for hackers. Stuff that matters.
Re:Shellfirm: Intercept risky patterns at the command line by 3np on Sunday July 31, 2022 @03:29AM (#32293920)
One thing not clear from readme: Will it detect if it's in a TTY or might it also trigger from commands triggered inside shell scripts?
Re:Shellfirm: Intercept risky patterns at the command line by alexwasserman on Sunday July 31, 2022 @03:52AM (#32294023)
It’s loaded in via .zshrc or .bashrc (didn’t read the fish docs, but I assume it’s similar), so catches commands you enter in an interactive shell.

Commands within a shell script won’t be handled by it.

Similarly cron jobs don’t typically run with a full user environment, unless you’ve gone out of your way to make them, so would be safe.

Re:Shellfirm: Intercept risky patterns at the command line by eladkaplan on Sunday July 31, 2022 @03:56AM (#32294050)
shellfirm not execute the command. it's just get interrupt when you run the command, check the pattern and prompt your a verification. your shell is the executer