Start here

Hardening

Hardening is reducing what a device gives away: fewer ways in, less data out, and you deciding both.

01 Why now
This series is named techno guerrilla for a reason. A guerrilla never wins by meeting the larger force head on. It wins by staying small and dispersed, supplied by tools it controls, holding ground the big force cannot take cheaply. The same logic runs through the information environment. Privacy, as Privacy Guides puts it, "is about power," and by default that power sits with the platforms and the carriers, not with you. The answer is not to hide. It is to choose ground you can actually hold, and to hold it with tools that answer to you. The smallest and most personal piece of that ground is the device in your hand. Out of the box it does not answer to you, since it reports to its maker and can be reached by demands you never see. Making it yours, the phone and the laptop both, is the first move, and it comes before every other skill in this series.
02 Case files
You do not need to outrun a spy agency to need this, and you do not win it through fear or by turning on every setting at once. A guerrilla fights only where the fight can be won and leaves the rest alone, and Privacy Guides calls that same discipline threat modeling: decide what you are protecting and who you are protecting it from, then match your effort to that. For most people the threats are ordinary and constant. Surveillance capitalism is the default business of the open internet, where ad platforms and data brokers gather and resell what you do all day. Breaches spill what services hold on you whether or not you ever did anything wrong. What you leave in public stays findable for years. None of this is a thriller plot, and all of it answers to the same deliberate setup: give away less, hand over less, and keep the keys to what is yours. That is what the rest of this module does, one decision at a time.
03 Overview
You start with the phone and the laptop you already own, and you finish with both set to answer to you: the phone locked down and giving away far less, the laptop encrypted and holding the keys the rest of the series uses. First the ideas, kept short: what privacy, security, and anonymity each mean, and where a phone actually leaks. Then the work, in order: back up, lock down the phone, harden the laptop, and make your keys. If you own a Pixel, the phone path installs GrapheneOS; if you do not, you harden the phone you already carry. Either way you finish ready for Networking.
On this page
01

What you are building

You set up two devices: the phone you carry and the laptop you work from. By the end the phone gives away far less, and the laptop has an encrypted disk, a firewall, and the SSH keys every server you build later will trust.

This is the one module you do before the others, because every skill that follows runs on these two machines. As the Light Fighter essay Encryption Is Not Trust puts it, "the technology-first mindset treats security as a product you can install. It is not. It is a set of behaviors maintained under pressure." This module builds those behaviors and the ground they stand on.

The work is device-agnostic. The principles hold for any phone and any laptop. Where a stronger choice exists, GrapheneOS for the phone and a hardened Linux for the laptop, you get the reasoning and the honest cost, not an order.

Check on learning
What do you finish this module with?
Why does this module come first?
02

Threat modeling

You cannot protect everything from everyone, and trying is how people burn out and quit. You decide what matters and aim your effort there. This is the oldest idea in security. The Army calls it OPSEC and runs it in five steps; Privacy Guides asks the same five questions in plain words:

  1. What do I want to protect?
  2. Who do I want to protect it from?
  3. How likely is it that I will need to?
  4. How bad are the consequences if I fail?
  5. How much trouble am I willing to go through?

Two ideas from the military version are worth keeping. The first is the indicator: a detectable action an adversary can piece together. One app permission, one post, a phone that pings a tower, each is an indicator, and the next unit maps yours. The second is the discipline of looking at your setup from the adversary's side, not your own.

The rule under all of it, from Privacy Guides: "Everything is a trade-off. There is high security, but never full security." A no-measures answer can be the right one when the cost outweighs the risk. Build your model below and it hands you a plan scaled to it.

Check on learning
What is the point of threat modeling?
An app permission, a post, a phone pinging a tower. What are these?
03

Privacy, security, anonymity

Three words get used as one. Privacy is the assurance your data is seen only by the people you intend. Security is being able to trust your device and software are not tampered with. Anonymity is acting with no persistent identifier. They overlap, but they are not the same, and hardening buys the first two, not the third. Your phone still authenticates to a tower with a subscriber identity, and your accounts still carry your name.

Privacy Guides names the traps that waste the most effort. They are worth learning before you spend a Saturday:

  • Open source is not automatically secure. Available code does not mean anyone audited it. Judge each tool on its reputation and its audits, not its license.
  • Shifting trust is not removing it. Sending your traffic through a VPN instead of your ISP just moves who sees it; it does not make it private on its own.
  • A privacy brand is not a guarantee. Judge the technical fact: is it end-to-end encrypted, and who holds the keys?
  • Complicated is not better. Every extra step is a place to fail. Match the effort to your model.

The throughline: judge each tool on what it actually guarantees, and learn where it stops. That last habit, the limit beside the tool, runs through the rest of this module.

Check on learning
Acting with no persistent identifier is called what?
You route your traffic through a VPN instead of your ISP. What did that do?
04

Where you leak

Every device throws off indicators, and you cannot defend a layer you have not named. Click through the map: each point shows what leaves, who collects it, and which kind of leak it is, one a setting closes, one a different operating system closes, or one nothing closes.

One layer does not close, and pretending it does makes you less safe. As long as a SIM is in the phone, the carrier sees which towers you touch. The Digital Panopticon essay states it plainly: "The baseband processor ... operates below the operating system. You cannot control it. You cannot audit it ... That trust is misplaced." Three facts make it stick: the phone exchanges unprotected messages with any tower that broadcasts correctly, by design; the device's IMEI is burned in and survives a wipe or a SIM swap; and phones emit radio even in airplane mode. The honest measures are radio hygiene, a separate device, or leaving it behind. There is no toggle.

The laptop leaks too, mostly through the browser, which hands every site a fingerprint with no cookie required. See your own, live, read from your real browser:

Check on learning
Which leak can NO setting on the phone close?
Browser fingerprinting identifies you using what?
05

Your accounts

Most break-ins start at a login, not a hack. Two habits close most of that door.

A unique password for every account, kept in a password manager. You never invent your own and never reuse one, so a breach at one service cannot be replayed against the rest. A manager (Bitwarden, or KeePassXC if you want it fully local) makes that practical. The limit: it protects your accounts, not the device, and the manager's master password becomes the one thing you must defend, so make it long and never reuse it.

Multi-factor authentication, by app or hardware key, not SMS. A second factor means a stolen password is not enough; the attacker also needs something you hold. A FIDO2 hardware key resists phishing outright; an offline authenticator app is the baseline. Avoid SMS codes, which fall to a SIM swap. The limit: it is only as strong as the weakest method you leave enabled, and it guards the login, not the data once someone is in.

Give each service its own email alias (the next unit), and delete accounts you no longer use; a dormant account is just a breach waiting to spill.

Check on learning
Why a unique password per account?
Which second factor should you avoid?
06

Your traffic

Two tools shape who sees your network traffic. Both help, and both are oversold, so learn exactly what each one does and does not do.

Encrypted DNS hides which site names you look up from whoever runs the network, and can get you around DNS-level blocking. The limit: it does not hide your browsing. The destination address and the unencrypted server name in the TLS handshake still show where you went. It is a small, understood gain, not a cloak.

A VPN hides your traffic from your internet provider and your address from the sites you visit, which is worth having on a network you do not trust. The limit: a VPN is not anonymity. The provider still sees your real address and your destinations, and it adds no encryption between the VPN and the site. You are shifting trust from your ISP to the provider, so pick one that is independently audited, sits in a sensible jurisdiction, and takes anonymous payment. For real anonymity the tool is Tor, not a VPN.

Check on learning
What does encrypted DNS NOT do?
A VPN mainly does what?
07

Your messages

Use an end-to-end encrypted messenger for anything that matters. Signal is the usable default; only you and the recipient hold the keys, and forward secrecy means a stolen key does not unlock past messages. The limit: the content is hidden, the metadata is not. Who you talk to, when, and how often is still visible. As Encryption Is Not Trust puts it, "to a signals analyst, the pattern is the product." And remember its larger point: "encryption protects the channel. It does not protect the network."

Treat email as the postcard it is. Use a provider that encrypts your mail at rest, and give each service its own alias so a leak at one does not expose your real address or tie your accounts together. The limit: email metadata, including the subject line, is never encrypted, and standard email has no forward secrecy, so a stolen key exposes the whole history. Keep sensitive conversation in a messenger, not in email.

Pair this with a search engine that does not build an advertising profile from what you look for. It denies the surveillance-advertising machine your stream of intent at the source.

Check on learning
End-to-end encryption hides the content. What does it NOT hide?
Why keep sensitive talk out of email?
08

The phone, any device

Whatever phone you carry, the same moves raise the floor, and they cost nothing:

  • Keep it updated, and retire it when it stops. A current phone beats an old one with every trick installed. Once a device is past its maker's support window, its security holes "will remain unfixed," so a phone that no longer updates is the weak point no setting fixes.
  • Grant the least each app needs. Use one-time and approximate-location grants, and let the system auto-remove permissions from apps you stop using.
  • Install from the official store, and keep fewer apps. Each app is a door.
  • Delete or reset the advertising identifier and turn off personalized ads.
  • Turn off the radios you are not using. Wi-Fi and Bluetooth are unique tracking selectors that broadcast even idle.
  • Use profiles to keep things apart, so a compromise in one does not reach the rest; each profile has its own encryption key.
  • Set a strong lockscreen. A phone is far harder to read powered off (before first unlock) than after you have unlocked it once.

This is the floor for any phone. The next unit is the stronger option, and why.

Check on learning
Why retire a phone past its support window?
Why turn off Wi-Fi and Bluetooth when unused?
09

Why a privacy OS

The settings in the last unit work on top of an operating system you did not choose and cannot fully see. The strongest phone move is to change that. On a Google Pixel you can install GrapheneOS, and Privacy Guides recommends it as the best choice for a phone. Here is the reasoning, not an order.

It adds what stock cannot. Fully supported verified boot: the phone checks on every start that the system is the signed, unmodified one, and it relocks with its own key, which ordinary custom systems cannot do. Sandboxed Google Play: Google's services run as an ordinary, unprivileged app you can wall off in one profile, instead of a part of the system with reach into everything. Network and sensor toggles stock Android lacks, to cut an app off the network or the sensors outright. Scopes that hand an app three photos instead of your library. The principle, from Encryption Is Not Trust: "if you cannot audit the system end to end, you are trusting a brand, not a protocol." A system you can verify is the point.

The honest cost GrapheneOS runs on Pixel hardware only. It fails one Google integrity check, so a few banking apps refuse to run. And it does nothing about the carrier layer from unit 04. If you do not have a Pixel, the floor from unit 08 is real and worthwhile; this is the ceiling, not the price of entry.

The install itself is a short, well-documented procedure that lives at the official web installer. This page does not retype it; the procedure stays current there. What matters is the judgment around it, so rehearse the decisions first:

Check on learning
What does locking the bootloader after install enable?
What does GrapheneOS NOT fix?
10

The laptop

The laptop holds your files, your logins, and soon the keys to your servers. A handful of settings cover most of the risk, on any operating system:

  • Full-disk encryption, and power the machine off when you leave it. FileVault on macOS, BitLocker on Windows, LUKS on Linux. Encryption only fully protects a powered-off device, because while it runs the keys live in memory.
  • A firewall on, set to block incoming connections.
  • Automatic updates, including processor microcode, since some hardware flaws "can not be fully mitigated in software alone."
  • A standard, non-admin account for daily use, so a bad click cannot quietly take the whole machine.

On the choice of system: a hardened Linux frees you from the telemetry baked into proprietary systems and gives you control of the stack. But be honest about the trade. Privacy Guides states it directly: "it is a common misconception that Linux and other open-source software are inherently secure simply because the source code is available." Desktop Linux trails macOS on verified boot and app sandboxing, so it is not secure by default; you choose it for telemetry and freedom, then you do the hardening above to close the gap. A modern Mac gives a stronger default through hardware-backed encryption and verified boot, at the cost of trusting Apple. Either can be a sound admin station; the work in this unit is what makes it one.

Write down the recovery key Full-disk encryption locks out a thief and a forgetful owner with equal force. Whatever system you use, record the recovery key on paper, stored away from the laptop. Lose both the password and the key and the data is gone for good.
Check on learning
Full-disk encryption fully protects the data when?
Why is Linux not automatically more secure?
11

Make your keys

An SSH keypair is two files born together. The private key stays on this laptop. The public key is the half you hand out, and any server holding it will trust the laptop that holds its twin. This is the credential the whole series runs on: in Networking you paste the public key into your first server, and from then on the laptop logs in with no password to steal.

laptop $ ssh-keygen -t ed25519

Accept the default location and set a passphrase. The passphrase encrypts the private key file itself, so a copied file without it is useless. Your two files land in ~/.ssh/: id_ed25519 (private) and id_ed25519.pub (public).

Output · to be captured on the bench
# [CAP] the real keygen session and fingerprint, captured during the Networking bench session.
The private key never leaves Everything legitimate wants the file ending in .pub. No server and no service ever needs the private key. Anything that asks for it is broken or hostile, and the answer is no.
Check on learning
Which file do you hand to a server?
What does the passphrase protect?
12

Verify and own it

Walk the audit. Each line is a fact you can check now, not a feeling.

  1. Phone: updated and still supported, permissions trimmed, advertising ID reset, unused radios off, strong lockscreen. If you took the Pixel path, the bootloader is locked and verified boot passed.
  2. Laptop: disk encrypted with the recovery key on paper, firewall on, updates automatic, daily use on a standard account.
  3. Accounts: a manager with unique passwords, app or hardware MFA, aliases per service.
  4. Keys: both files in ~/.ssh/, the passphrase set, the fingerprint noted.

Then the honest part. This did not make you anonymous, and it did not close the carrier layer; the SIM still talks to towers, and that is a fact to carry, not a failure to fix. Hardening is not a one-time event either. As Encryption Is Not Trust argues, it "is a set of behaviors maintained under pressure," and the updates you set are the contract that keeps it real.

What you own now is the ground the series builds on. The Digital Panopticon ends on the line worth keeping here: "the watchman is not all-seeing. He only needs you to believe he is. Stop believing." In Networking, this laptop's key goes into your first server, and the phone joins a network you run. Every later module assumes these two devices and never asks you to prepare them again.

Check on learning
Which statement about hardening is true?
After this module, which layer is still open?

Glossary

advertising ID
A resettable identifier the OS hands apps so trackers can follow you across them. Delete or reset it.
anonymity
Acting with no persistent identifier, so an act cannot be tied to you. Hardening does not provide it.
baseband
The chip that runs cellular communication. It sits below the operating system, and you cannot audit or control it.
BFU / AFU
Before First Unlock and After First Unlock. A phone not yet unlocked since boot is far harder to read than one unlocked once.
end-to-end encryption
Only the two endpoints hold the keys, so the service in the middle carries text it cannot read.
forward secrecy
Keys rotate, so a stolen key does not unlock past messages. Messengers have it; standard email does not.
full-disk encryption
Encrypts the whole drive at rest, so a powered-off device reads as noise without the password. FileVault, BitLocker, LUKS.
FIDO2 / WebAuthn
Hardware-key sign-in that resists phishing and uses no shared identifier across sites. The strongest second factor.
IMEI / IMSI
The IMEI is the device's burned-in serial; the IMSI is the SIM's secret identity. The IMEI survives a wipe and a SIM swap.
indicator
A detectable action an adversary can piece together. The OPSEC term for a leak.
metadata
Data about your data: who you talked to, when, how often. Usually not encrypted, even when content is.
OPSEC
Operations security: identify what needs protecting, the threat, the vulnerability, the risk, then apply measures. The military twin of threat modeling.
password manager
An app that stores a unique strong password per account, so you never reuse or invent one.
sandboxing
Confining an app so it cannot reach the rest of the system. GrapheneOS runs Google Play this way.
scopes
Granting an app a chosen subset of files or contacts instead of the whole library.
threat model
Your answers to the five questions: what you protect, from whom, how likely, how bad, how much trouble you will accept.
TPM / Secure Enclave
A chip that guards encryption keys in hardware. Prefer one integrated into the processor.
verified boot
The device confirming on every boot that its OS is the signed, unmodified one, and refusing downgrades.
VPN
Routes your traffic through a provider, hiding it from your ISP and your address from sites. Not anonymity.