ZTGIT

Hardening: what it means to harden a system

ZTGIT team

The idea: less is more secure

Hardening a system is reducing its attack surface — everything an attacker could try to use — before any incident. The intuition is simple: every running service, every open port, every installed package, every active account is one more door someone can try to open. The fewer doors, the fewer opportunities.

It is not about adding a defense tool; it is about removing what need not be there.

What gets hardened, in practice

  • Services and packages. Remove what you do not use. A database server does not need a print server installed.
  • Ports and network. Close what need not be exposed. The zero trust principle takes this further: not even what is “inside” is open by default.
  • Accounts and privileges. Apply least privilege: each account with only what it needs, no unnecessary admins, no services running as root when they need not.
  • Configuration. Turn off old protocols, require strong ciphers, enable logging. Factory defaults are rarely the most secure.
  • Updates. An updated system is a system with fewer known flaws. Patching is continuous hardening.

Why measure against a standard

“Hardening” becomes opinion if everyone does it their own way. What turns it into engineering is measuring against a standard — like the CIS benchmarks or equivalent guides — and treating each deviation as an item to fix. That makes hardening:

  • repeatable: the same standard applies to every machine;
  • auditable: you can show the score and what is missing;
  • durable: a periodic check catches the configuration someone loosened later.

Without measurement, today’s hardening undoes itself tomorrow, unnoticed.

In ZTGIT

ZTGIT-HardenAudit measures systems against hardening standards and flags deviations; ZTGIT-Compliance and ZTGIT-ComplianceRunner handle compliance controls; ZTGIT-Integrity watches for improper changes to critical files; and ZTGIT-Patch keeps systems updated in a controlled way.

And there is the usual consistency: ZTGIT’s own images are hardened — built on a minimal base, with an unprivileged user where possible, scanned and signed. Hardening starts in the image, before it reaches the system.

Catalogue status: ZTGIT-HardenAudit, ZTGIT-Compliance and ZTGIT-Integrity are still in preparation; each component page shows its current state.

From the blog