Archive-Opsec

Search

/ to open · ↑↓ to move · Enter to open

Indexes guides, archive entries, news, resources and sources. Nothing is sent to a third party.

Guide categories

Operating Systems

Operating System Hardening Basics

A short, durable hardening routine: updates, permissions, encryption, telemetry, and what to leave alone.

Hardening is the unglamorous work that determines how much damage a mistake can do. Most of it is a one-time configuration that is then maintained by updates. Most of it is also documented by somebody, so you do not have to invent it.

1. Automatic updates, on everything

Operating system, browser, router, and anything with a firmware image. Enable automatic security updates and check that they are actually succeeding — silent failures are common on locked-down networks.

2. Full-disk encryption, and the recovery key somewhere else

BitLocker, FileVault, or LUKS. Then store the recovery key in a password manager or printed and kept physically safe. An encrypted disk with a lost recovery key is a brick, and that is a support problem, not a security failure.

3. Full-disk access control

A Windows account in the Administrators group, or a Linux user in sudo, can read and modify everything. Day-to-day use belongs in a standard account. This is the control that limits the blast radius of malware, and it costs nothing.

bash
# Linux: confirm you are not running as root in an everyday shell
id -u
groups | tr ' ' '\n' | grep -E '^(sudo|wheel|admin)$'

4. Secure boot and verified firmware

Secure boot refuses to load an unsigned bootloader, which is what stops a supply-chain implant from persisting across reboots. NIST’s SP 800-147 is the reference for what a protected firmware interface should guarantee.

5. Lock the screen

Short automatic lock, a strong password or biometric, and no window previews on the lock screen. A short lock interval is a bigger practical gain than most software hardening.

6. Turn down telemetry, knowingly

  • Disable customer-experience and diagnostic uploads where the setting exists.
  • Disable crash reporting you do not need.
  • Review what your desktop OS sends about search, location, and typing suggestions.

7. Reduce the attack surface you do not use

  • Run services as non-root.
  • Bind services to localhost rather than 0.0.0.0 unless remote access is required.
  • Keep the guest operating system and the host isolated.
  • Uninstall software rather than merely disabling it, if you no longer need it.

8. Backups you have actually tested

Three copies, two media, one off-site. A ransomware payload that encrypts your home directory is only useful because most people have one copy, on the same disk. See the security incidents archive for what has actually been used in the wild.

What to leave alone

  • Do not disable security features you do not understand to make a benchmark number go up. CIS and vendor baselines are starting points, and their “recommended” profiles are written for environments more hostile than a laptop.
  • Do not run a daily-driver daily build of a cutting-edge release. You will spend your time on breakage instead of on threats.
  • Do not install hardening scripts from a stranger’s repository without reading every line. A hardening script runs as administrator by design; that is exactly the thing you are trying to avoid.

Sources

  1. CIS Benchmarks Center for Internet Security standard Accessed
  2. NIST SP 800-147: BIOS Protection Guidelines National Institute of Standards and Technology standard Accessed
  3. Microsoft Security Baselines Microsoft Corporation company Accessed
  4. Apple Platform Security Apple Inc. company Accessed
  • Archive security incidents

    SolarWinds SUNBURST (Archive)

    A malicious update distributed through SolarWinds Orion, attributed publicly to a named threat actor, and the disclosure that followed.

    4 Dec 2020

  • Archive security incidents

    Log4Shell (CVE-2021-44228) (Archive)

    A remotely exploitable JNDI lookup in Apache Log4j 2, the disclosure-to-exploitation window, and the supply chain behind it.

    10 Dec 2021

  • Guide Introductory

    Full-Disk Encryption (Guide)

    What FDE does and does not protect against, and how to set it up without losing the recovery key.

  • Guide Intermediate

    Mobile Device Privacy (Guide)

    What a phone knows that a laptop does not, which platform settings matter, and the limits of user control.

  • Guide Introductory

    Encryption Explained (Guide)

    Encryption in transit and at rest, symmetric and asymmetric primitives, and the misconceptions that make people over- or under-trust it.

  • Guide Introductory

    Using a Password Manager (Guide)

    Why password reuse is the main threat, what to look for in a manager, and how to migrate without a lockout.