Skip to content

Practical Hardening and Resilience tips

Attack surface, least privilege, software whitelisting, network segmentation and immutable backups: how to harden systems without costly tools.

7 min read
Also inenit

In short: hardening means strengthening the systems you already have, without costly tools. For an SME the most effective practices are six: least privilege, software whitelisting, network segmentation, restrictive firewall rules, immutable backups and response playbooks. They do not replace antivirus or EDR, and they do not detect who is already inside: they reduce the attack surface and the damage that is possible.

Would you believe me if I tell you the best and most effective cybersecurity solutions are completely free?

I’m not talking about free and open source software, I’m talking about hardening the systems with what’s already available and configurable.

The list of hardening possibilities is endless, I want to stay concise and infrastructure-agnostic.

How do you reduce the attack surface?

The mantra is one. You should always ask yourself if there are ways to lock things up without breaking the functionality, sometimes sacrificing a bit of user friendliness yields massive gains in security.
What might feel like a little friction for a user, is a cliff for an intruder. It is the most effective move against attacks that pick their victims by what they expose. (Why SMBs are picked is explained in Why SMBs are targeted by cybercriminals.)

This reasoning, ideally coupled with some knowledge of the offensive security, can yield incredible results - really.

What is the Principle of Least Privilege (POLP)?

The idea is simple: if a user/account doesn’t need something, it shouldn’t have access to it, conservatively!

  • That shared directory where everyone can read and write from? Restrict access to it.
  • Old files should be moved to safe, permanent storage, ideally encrypted. They usually have no place in working directories.
  • The CEO does NOT need Domain Admin privileges. If s/he does, read below.
  • IT staff and Admins should have two accounts: one for inspecting (read-only) and another for acting (read/write). With different credentials!
  • Check privileges inherited from groups. I’ve found multiple new employee accounts one click away from Domain Admin!
  • Never, ever give users Local Administrator privileges. EVER!
  • Limit authentication methods to what’s actually required, not potentially useful.

Why whitelist software?

This could’ve been on the previous list, but it’s so impactful it deserves its own chapter.

Ask yourself, if Karen from HR only needs Office 365 and Chrome to do her job, why she has Candy Crush installed?
By allowing only an explicit and conservative list of software to run on the workstation you drastically reduce all malware-associated risks.
All malware requires to be executed to do harm. You could have Terabytes of malicious code on a machine being as dangerous as a .txt file if it cannot run.

It’s not just my opinion: the Australian Cyber Security Centre includes application control in its Essential Eight and considers it one of the most effective mitigation strategies.

Also make sure Office Macros are disabled and cannot be enabled by the user.

Whitelisting does not replace antivirus or EDR: it works alongside them, and it is one of the measures with the best ratio of effect to cost. (Why antivirus and EDR alone are not enough is explained in The weakness of Endpoint Detection.) Karen can keep her Candy Crush, as long as it is on a separate laptop outside the company network.

How do you segment the network?

Divide the network into separated segments, there’s not a single reason all endpoints should all reside in the same subnet.

The first and most important candidate for segmentation is the Operational Technology network. No, the CNC machine running on Windows 95 shouldn’t be on the same subnet HR uses.

Bringing the smartphone to work and having wifi access is perfectly legitimate, but the phone should connect to a different network entirely, not touching any of the company assets.

This has to be strongly enforced with proper Network Access Control with whitelisting.

How do you fine-tune the firewall?

Firewalls are much harder to bypass than antiviruses. A “smart” system can be deceived, one that stubbornly says "You can’t connect to 1.2.3.4. Period” is much harder to talk around.

If workstation A, B and C only need access to a SMB Share and to the Domain Controller, why should they be able to talk to each other? Implement Firewall rules that use a whitelist-approach to necessary servers and deny all the rest by default.

This greatly reduces the room for Man-in-the-Middle attacks.

It’s also useful to limit outbound connections to the bare minimum.

What does a ransomware-proof backup look like?

Backup servers are not replicas of file servers. Backup shouldn’t be treated as a simple copy.
A proper backup should be immutable and completely locked from access, even from Domain Admins.

Everyone stresses over the 3-2-1 rule and the need to test backups - true - yet few seem to care that the backups are writable and are shocked when they get encrypted as well by a ransomware attack. CISA’s #StopRansomware guide recommends offline, encrypted backups, precisely because many ransomware variants try to delete or encrypt the ones they can reach.

There’s a huge difference between an incident and a threat. An attacker will hunt your backups down.
Make them immutable and avoid giving access to any other host. It’s the backup server who should actively connect and pull the backups, not the other way around. DO NOT join the backup server in the Domain.

Why do you need playbooks, inventories and policies?

You should be aware of any piece of technology in the infrastructure and have plans ready to use in case of disaster.
They don’t have to be extremely complex and detailed, you just have to react quickly.
A simple, well crafted firewall rule that blocks all outbound traffic with pre-built exceptions can stop an attack immediately without causing massive disservices, it just has to be ready for an emergency!

It’s also very important to define restrictive use of the company’s assets.

What are wargames and what are they for?

Train your brain to always ask “what if” and play hypothetical breach scenarios.
What if this asset is compromised and under full control of an adversary? What can they see? Where can they pivot to?

This teaches to see the network/infrastructure as a tactical battle map and helps to identify paths and chokepoints that should then be further assessed to harden the security.

What is the Zero-Trust approach?

Whitelist, whitelist, whitelist. Access has to be consciously granted, the default is deny. In short, fully embrace the Zero-Trust Principle.


I’m fully aware this takes time and work, but the improvement on security cannot be overstated.

For a typical SMB internal IT infrastructure, without significant internet-facing asset (that’s another story), these changes yield incredible results. They are the first layer of a layered defense. The next layer is knowing when someone gets past them: that is what a honeypot is for.

Hoxey is an Italian cyber deception solution for SMEs: it detects threats already inside the network through interactive honeypots, and it works alongside hardening, not instead of it. To learn how to spot a breach, read How to tell if your company network has been breached.

Frequently asked questions

What is hardening?

It is the strengthening of systems and network using what is already available and configurable: removing unnecessary access and functions, restricting privileges, separating the network, denying by default and protecting backups. The goal is to reduce the attack surface and the damage that is possible.

Where should an SME start?

With the measures that have the biggest impact: removing Local Administrator privileges from users, making backups immutable and isolated from the rest of the network, and allowing only authorized software to run.

Is hardening enough to be safe?

No. It greatly reduces the attack surface, but it does not remove the possibility that someone gets in. That is why you also need a signal that warns you when the defenses have been passed, such as the one from a honeypot.

Send threat actorsfrom your network into ours.

From €145 per decoy per month. Free trial available, no hardware, no setup fees.

Join The Hive

Threat intel from our own decoys, first-hand. Not another newsletter.

  • Intel from our network. What our decoys catch: the credentials threats try, the tools they bring, the techniques that are new. First-hand, not recycled.
  • Alerts, when it matters. When something we see is worth acting on, you hear it from us, with what to do.
  • Attack stories. The story behind the intel: a real attack, narrated step by step from the offensive side.

Low volume, high quality.

Plus occasional Hoxey news, and we remember your visits. Unsubscribe anytime.

Get in touch

Write to us here and we'll email you back.

We'll reply by email. Privacy policy Prefer a call? Book one