Blue Teamby OneToSecure
Book a call

Chapter 05 · Prevention

Hardening and architecture: shrinking the attack surface

Every weakness fixed is an attack path closed and one less alert to handle. Hardening is the Blue Team's most cost-effective work: tiered administration, Zero Trust, baseline configurations, patching and backups that can genuinely be restored.

Chapter 05 of 095 min readUpdated

Large circular brushed-steel vault door ajar at the back of a bright white data centre
Frameworks
CIS · ANSSI · Microsoft
Principle
Least privilege
Backups
3-2-1-1-0

The priorities that change everything

Incident reports converge: the vast majority of compromises exploit known and avoidable weaknesses. Before any advanced technology, these basic measures offer the best return on investment.

  • Phishing-resistant MFA

    FIDO2, passkeys or smart cards for administrators and exposed populations; MFA for all remote access and cloud services.

  • Prioritised patching

    Actively exploited vulnerabilities (CISA KEV catalogue) and internet-facing devices are patched in days, not months.

  • Controlled privileged accounts

    Inventory, drastic reduction, dedicated admin accounts, just-in-time access, password vault (PAM).

  • EDR everywhere

    100% coverage of workstations and servers, tamper protection enabled, minimal and reviewed exclusions.

  • Immutable backups

    At least one offline or immutable copy, isolated from the production directory, and tested restores.

  • Controlled exposure

    Continuous inventory of the external surface, no admin protocol (RDP, SMB) exposed to the internet.

Active Directory: the tiered administration model

Active Directory holds the keys to the information system. The tiered administration model, recommended by Microsoft (Enterprise Access Model) and by ANSSI, compartmentalises privileges so that a compromised workstation does not lead to control of the domain.

  1. T0The core of identityDomain controllers, AD CS, ADFS, Entra Connect, PAM: administered only from dedicated T0 workstations
  2. T1Servers and applicationsBusiness servers, databases, hypervisors: separate T1 admin accounts
  3. T2WorkstationsUser workstations and devices: support with T2 accounts, never T0 or T1 accounts
The tiered administration model

High-impact AD hardening measures

  • Protected Users group for privileged accounts
  • LAPS (Windows LAPS) on all workstations and servers
  • Service accounts as gMSA with AES only
  • Disable NTLMv1, LLMNR, NBT-NS and SMBv1
  • SMB and LDAP signing, LDAPS channel binding
  • Review of unconstrained Kerberos delegations
  • Audit of AD CS certificate templates (ESC1 to ESC8)
  • Regular attack path analysis (BloodHound, PingCastle)
  • Privileged access workstations (PAW) for tier 0
  • Scheduled double reset of the KRBTGT account
Quick checks (read-only examples)
# Privileged accounts not in the Protected Users group
Get-ADGroupMember "Domain Admins" -Recursive |
  Where-Object { $_.objectClass -eq "user" -and
    -not ((Get-ADUser $_ -Properties MemberOf).MemberOf -match "^CN=Protected Users,") } |
  Select-Object SamAccountName

# Accounts with unconstrained Kerberos delegation (excluding domain controllers)
Get-ADComputer -Filter {TrustedForDelegation -eq $true -and PrimaryGroupID -ne 516} |
  Select-Object Name

# Accounts without Kerberos pre-authentication (exposed to AS-REP Roasting)
Get-ADUser -Filter {DoesNotRequirePreAuth -eq $true} | Select-Object SamAccountName

Zero Trust: never trust by default

Zero Trust (NIST SP 800-207) abandons the idea of a trusted internal network. Every access is continuously evaluated according to identity, device state, context and resource sensitivity.

  1. 01IdentitiesStrong MFA, conditional access, risk detection
  2. 02DevicesCompliance, EDR, verified health
  3. 03NetworkMicro-segmentation, encryption, application access
  4. 04ApplicationsPer-application access, not per-network
  5. 05DataClassification, encryption, DLP
  6. 06VisibilityContinuous logging and analysis
The pillars of a Zero Trust architecture

Configuration baselines

BaselineContentUse
CIS BenchmarksDetailed security configurations per system (Windows, Linux, cloud, browsers)The most widely used reference, with two requirement levels
CIS Controls v8.118 priority controls, organised into implementation groups (IG1 to IG3)Security roadmap for any organisation
Microsoft Security BaselinesRecommended settings for Windows, Microsoft 365 and EdgeDeployment via Intune or GPO
ANSSI guidesIT hygiene, secure administration of AD-based systemsHigh-level French-language reference
CCB CyberFundamentalsBelgian tiered framework (Small, Basic, Important, Essential)Aligned with NIS2 and recognised by Belgian authorities

Vulnerability management

  1. Inventory

    You cannot fix what you do not know: continuous asset inventory, including cloud, OT and shadow IT.

  2. Detect

    Regular authenticated scans, endpoint agents, monitoring of internet-facing devices.

  3. Prioritise

    Beyond the CVSS score: active exploitation (CISA KEV), exploitation probability (EPSS), internet exposure and asset criticality.

  4. Fix

    Target deadlines per priority, maintenance windows, workarounds when no patch is available.

  5. Verify

    Re-scan, exception tracking and time-to-fix metrics by criticality.

PriorityExampleIndicative target
UrgentActively exploited vulnerability on an exposed device (VPN, firewall, gateway)24 to 72 hours
HighCritical vulnerability on an important internal system7 to 14 days
MediumHigh vulnerability with no known exploitation30 days
LowEverything elseNormal maintenance cycle

Backups: the last line of defence

Against ransomware, restorable backups make the difference between a serious incident and a disaster. The 3-2-1-1-0 rule has become the standard:

  • 3Copies of the data (production + 2 backups)
  • 2Different media or technologies
  • 1Off-site copy
  • 1Offline or immutable copy
  • 0Errors during restore tests

Network segmentation

A flat network lets an attacker reach any machine from any workstation. Segmentation limits movement and creates checkpoints where detection is easier: dedicated zones for administration, servers, workstations, OT and guests; east-west filtering; no workstation-to-workstation flows (SMB, RDP, WinRM); 802.1X network access control.

Frequently asked questions

Where should you start if everything seems a priority?

With an analysis of attack paths to your critical assets, ideally validated by a Red Team exercise. It reveals the 5 to 10 measures that cut most paths. Then: phishing-resistant MFA for administrators, full EDR coverage, immutable backups and patching of exposed devices.

Is tiering realistic in an SME?

Yes, in a simplified form: admin accounts separate from email accounts, no domain admin account used on workstations, LAPS and a dedicated workstation for directory administration. These simple measures already block most common scenarios.

Should you aim for full CIS compliance?

Not blindly. Apply level 1 recommendations first, test the impact, then adopt level 2 for the most sensitive systems. Document justified deviations.

Does your defence really see what matters?

In 45 minutes, let's review your SOC, your detection coverage and your response capability, and identify the three workstreams that will make the biggest difference.

Book a meeting