Lately I've been seeing posts about malicious job interviews a lot more. While I'm not directly affected, I realized my OpSec could be improved.
Already I am utilizing strong passwords, a password manager and hardware security keys. The following will largely focus on protecting against infostealers.
Network monitoring
First of all, even if an infostealer is running on your device, the information still needs to be exfiltrated. LuLu, by the Objective-See foundation, monitors outgoing network traffic. It only lets requests through once you allow them and shows a popup for requests not covered by a rule yet, letting you decide what to do.
I set it to allow Apple signed programs, DNS traffic and localhost traffic. On macOS 27 you can also activate "Self-Defense", preventing other programs from terminating or pausing LuLu, which I would recommend.
For curl and git-remote you may want to consider only allowing specific hosts&ports instead of all. It can help your protection against malicious scripts, but it shouldn't get too annoying, otherwise you might feel tempted to just click allow on every popup.
After the first few days, LuLu is now mostly silent for me.
Persistence
Malware often tries to get automatically executed upon restart or login. Objective-See also got a tool covering that: BlockBlock.
BlockBlock shows an alert when something tries to install a persistent piece of software and like LuLu lets you choose.
It can also do some additional things:
I activated Notarization mode, blocking and alerting on non-notarized programs, Block Scripts mode blocks and alerts on execution of downloaded scripts and Paste Protection with Apply Heuristics on alerts when you're trying to paste suspicous looking things into a terminal (if you use ghostty, set clipboard-paste-protection = true in you config).
Keyloggers
Keyloggers on macOS most commonly use CoreGraphics event taps. ReiKey, by (you might've guessed it) the Objective-See foundation, monitors registrations of these event taps. Not every alert is necessarily malicious, there are legitamate usecases for event taps, but it's good to be able to review them.
I set it to ignore Apple signed binaries.
Unfortunately it doesn't work right on macOS 27 right now but it will hopefully be updated soon.
Storing SSH Keys
As everyone should know, using passphrases for ssh-ing into something isn't the safest option. Ideally your server blocks every password request. But storing the keys in plaintext in your .ssh folder makes them pretty accessible to info stealers.
Secretive allows you to protect them with the Secure Enclave and Keychain.
Bonus
Physical Access
The builtin Lockdown mode blocks external device connections while locked. If you want to know if someone touched your mac while you weren't there or looking, DoNotDisturb logs lid opens and can notify you via telegram.
Ransomware
RansomWhere? continuously analyzes file entropy to identify encryption activity to detect suspicous processes and stop ransomware. I have not tried it yet, I'm a bit worried about overhead in compilation, but I wanted to include it here. Of course it's best to have backups of your important data. In my case most of what I need is on GitHub or synced to multiple devices.
Other things
Objective-See also got tools to monitor camera/mic usage, scan currently installed login items and more, I highly recommend looking through them
Conclusion
It's pretty easy to improve your security with some of the right tools. But every tool can only protect you as long as you make concious decisions, so don't overdo it! Don't get tempted to just accept things!
I do not get sponsored by the tool developers, but please consider supporting them if you can. They're building great tools making us more secure, and it's all open source :)
I hope you learned something and got a bit more secure, until next time, Mia