Ask HN: How do you trust that your personal machine is not compromised?
541 points"Compromised" meaning that malware hasn't been installed or that it's not being accessed by malicious third parties. This could be at the BIOS, firmware, OS, app or any other other level.
Comments (448) 132 threads
Earlier commentsFor adversaries below the level of the US intelligence agencies, I run everything virtualized and compartmentalized with Qubes, the installation image for which I verified the dev-provided cryptographic signature matches. I try to rigorously avoid any software operated by Google, Amazon, Microsoft, Apple, Facebook, disable all JS by default in my LibreWolf browser, refuse to connect directly websites protected by cloudflare, audit source code for almost everything I run in userland, etc etc etc.
This is all for my personal machine. For work devices, I assume they're pwned even worse and I do nothing but actual work on them.
On the mobile side, GrapheneOS on a Pixel for my first phone, and a linux phone with hardware killswitches for bt/wifi, cam/mic, and baseband for my second phone.
All of this in addition to solid fundamentals like network traffic monitoring, very restrictive firewall, offline encrypted hardware password manager with no password reuse, etc.
What do you do in case you want to use a website protected by cloudflare?
For strictly reading public webpages, public paywall bypass tools and archive sites work pretty well.
I understand that trust by default is an enormous aspect of our economy, and trust may be characterized as the single most valuable commodity, but my work involves adopting a strict zero trust mindset, and it can be difficult to turn that off after so many years.
https://puri.sm/products/librem-5/
They also have a "made in USA" version (though the case is made in China and the wifi chip is made in India). It's even more expensive, and I certainly don't trust that USG/IC hasn't attempted to backdoor this either - we know a lot of ARM processors have the TrustZone, which is very similar to ME/PSP (I believe an ARM TrustZone core is actually how PSP is implemented), but the lead time is much shorter.
https://shop.puri.sm/shop/librem-5-usa/
Note that I'm not formally endorsing them, just sharing what I use.
If you’re worried about the impact to your broader organization (which is what most of the sophisticated threats tend to target), you should think about risk mitigation through the Swiss Cheese defense model. Each system is inevitably going to have holes, but layering them on top of one another will incrementally improve your coverage.
For instance:
- Your team should be trained about phishing attacks. But inevitably some will get through, so…
- You should implement 2FA in case a password is compromised. But a threat actor may be able to capture a 2FA-passed SSO session token, so…
- Production access should be limited to a small number of individuals. But even they might get compromised, so…
- You should programmatically rotate credentials to make old leaked credentials useless. But a newer one might be captured, so…
- Data should be sufficiently encrypted at rest and in transit, and…
- Your team should have an incident management system and culture in place to quickly respond to customer reported incidents and escalate it to the right level and…
- Audit logs should be tracked to understand the blast radius in case of compromise - and so forth
When you look at incidents like CircleCI and LastPass, a good security organization will understand that there was more than just one point of failure and should talk in detail about how they are shoring up each level.
Personally, I assume the hardware is already compromised and plan for recovery accordingly, starting with the worse case scenario. Then, I ask myself "If this thing isn't compromised yet, how can I help it stay so?", starting probably with the network access, through firmware, all the way to the browser.
At some point you just have to admit there's limits to privacy and work with them. You paper journal could be stolen and read / rewritten too, yaknow? It's not a new problem, its just in a new context.
I try to limit attack surface in the following ways:
- I only use M1 Macs as desktops. This reduces attack service in various ways. M1 Macs do not have anything like UEFI firmware, it all starts from the iBoot ROM and the whole chain is verified with signatures. The OS is on a sealed system Volume that is read-only and signed. Altogether, this limit firmware/OS attacks.
- I use a U2F key and/or the Secure Enclave of the Mac for credentials (SSH keys, 2FA). They are set up to require user confirmation.
- When possible, I will install applications from the Mac App Store, since they are sandboxed by default.
- I use separate work and private Macs.
- I clean and factory restore my Macs every few months.
- I use some tools like Knock Knock to see if there is anything suspicious.
Compromise is obviously possible, but I try to push it into 'mostly state actor' territory, because I am not interesting to most state actors.
All comments shown.
Couldn't load more comments. Check your connection and try again.