Skip to content
VITI Security

Active Directory Hardening: A 90-Day Rebuild After a Password Spray Attack

by VITI Security TeamApr 28, 2026Illustrative scenario

A composite scenario: an overnight password spray compromises three service accounts at a 350-person logistics company. How the attack was contained, and the 90-day Active Directory hardening plan that followed, step by step.

Active Directory Hardening: Critical Case - VITI Security

Illustrative scenario: a composite example built from common engagements, not a specific client.

This scenario is a composite, built from Active Directory incidents and hardening projects we have worked on, not a single client. At 4:11 one morning, the EDR at a 350-person logistics company raised its first alert. Within half an hour there had been thousands of authentication attempts against domain accounts from dozens of IP addresses, and three service accounts with weak, never-changed passwords had been compromised. The EDR caught the attacker's next steps and the team contained it. But the incident exposed an Active Directory that had grown for fifteen years without a real review, and a 90-day hardening project followed.

Containing the attack

The first hours focused on stopping the attacker. The compromised service accounts were disabled and their passwords reset, the external authentication endpoints being sprayed were restricted, and sessions were revoked. Responders checked the domain controllers, privileged groups and recent changes for persistence, found the attacker had created a scheduled task on one server and removed it, and reset the Kerberos ticket-granting account. Because the EDR had blocked the lateral movement early, no ransomware was deployed.

What the review found

A full review of the directory found the usual results of years of growth.

  • Hundreds of dormant user accounts, many belonging to former staff and contractors.
  • Dozens of service accounts with old, simple passwords, several in Domain Admins.
  • No separation between admin accounts and daily-use accounts; IT staff browsed the web as domain admins.
  • The same local administrator password on most workstations.
  • Legacy protocols such as NTLMv1 and LLMNR still enabled.
  • Certificate services misconfigured in a way that let ordinary users request certificates for privileged accounts.
  • No MFA on admin accounts or remote access to servers.

Days 1 to 30: the urgent fixes

The team removed every account from Domain Admins that did not need to be there, disabled the dormant accounts after confirming with managers, reset all service account passwords to long random values and fixed the certificate template misconfiguration. Windows LAPS was deployed so every workstation and server had a unique, rotated local admin password. MFA was required for all remote access and for administrator sign-in.

Days 31 to 60: the tier model

Next came structure. A tiered administration model separated control of domain controllers and identity systems (tier 0), servers (tier 1) and workstations (tier 2), with separate admin accounts for each tier and rules that higher-tier credentials are never used on lower-tier machines. Dedicated, hardened admin workstations were introduced for tier 0 work. Privileged accounts were placed in the Protected Users group where compatible, and admin accounts lost email and internet access.

Days 61 to 90: service accounts, protocols and monitoring

Service accounts were moved to group managed service accounts, which rotate passwords automatically, wherever applications supported them; the rest got long passwords stored in a vault and restricted logon rights. LLMNR and NBT-NS were disabled, NTLMv1 was turned off and SMB signing enforced. Identity threat detection was turned on, with alerts for password spraying, Kerberoasting, changes to privileged groups and unusual replication requests, routed to round-the-clock monitoring.

Keeping the business running during the change

Hardening an old directory can break things: applications that use a service account in unexpected ways, scripts that rely on NTLM, printers and scanners that need legacy protocols. The team avoided outages by auditing authentication logs before each change, making changes in small batches with a rollback plan, testing on a pilot group of machines first and keeping a list of exceptions with an owner and an end date for each. Communicating the plan to staff in advance, especially the change to separate admin accounts, cut down on help desk calls.

Results in the scenario

After the project, privileged group membership was a small fraction of its earlier size, every admin used MFA and a separate account, and the internal penetration test that closed the project could not reach domain admin through the paths that had existed before. Over the following year, further spraying attempts were detected and blocked without success.

Lessons for your Active Directory

Start with the cheap, high-impact fixes: clean up privileged groups and dormant accounts, deploy LAPS, require MFA for admins and fix weak service account passwords. Then build the tier model and monitoring. Test the result with an internal penetration test, because attackers will look for the paths you missed. Our guide to network penetration testing explains how those tests work.

Our VAPT services include Active Directory attack path testing, our incident response team handles live identity attacks, and our 24x7 SOC watches for spraying and privilege abuse around the clock.

Frequently asked questions

Where do we start hardening Active Directory?

Cut privileged access: take unnecessary members out of Domain Admins and the other privileged groups, disable dormant accounts and require MFA for administrators.

What is the AD tier model?

Splitting administration of identity systems, servers and workstations into tiers with separate admin accounts, so a credential stolen at a lower tier can't be used to take over a higher one.

What are group managed service accounts?

Service accounts whose passwords Windows rotates automatically, so there are no old, weak service passwords sitting around.

How do we spot password spraying?

Watch for lots of failed sign-ins across many accounts from the same sources, use identity threat detection, and alert on unusual authentication patterns.

Find the paths to domain admin before attackers do

We test Active Directory for the attack paths real intruders use and help you close them with a practical hardening plan.