Ransomware Hit Active Directory or Microsoft 365? A Recovery Playbook

When ransomware hits, the instinct is to restore everything as fast as possible. That instinct can make things worse. This playbook covers the first 24 hours, the order of recovery, and the mistakes that bring attackers straight back.

1. The first 24 hours

  1. Contain. Isolate affected systems from the network, but don't power off or wipe them; you may need the evidence.
  2. Call for help. Engage your incident response provider, cyber insurer and legal counsel early. Insurers often require you to use approved responders.
  3. Protect the backups. Confirm your backups are intact and immutable, and lock down backup admin accounts.
  4. Preserve evidence. Keep logs, ransom notes and affected images for investigators.
  5. Communicate. Use out-of-band channels; assume email and Teams may be compromised.
  6. Don't pay, and don't restore yet. Not until you know when the attacker got in.

2. Why identity comes first

Most attacks rely on stolen or escalated credentials. If Active Directory or Entra ID is compromised, every system you restore can be logged into by the attacker. Recover identity first, from a point before the compromise, reset privileged credentials, and only then bring back servers and applications. See Active Directory backup & recovery.

3. Why restoring domain controller VMs can reinfect you

Attackers often sit inside a network for days or weeks before detonating ransomware; Mandiant reported a global median dwell time of 10 days in its M-Trends 2024 report. Nightly VM backups of domain controllers capture everything on them during that time: backdoor accounts, malicious Group Policy and persistence mechanisms. Restore the VM and you restore the attacker. Identity-aware backup lets you compare snapshots, see exactly which objects and attributes changed, and recover only the clean state.

4. Microsoft 365: what Microsoft will and won't restore

Microsoft keeps Microsoft 365 running, but protecting the data inside it is your responsibility. By default, deleted Exchange Online items are recoverable for 14 days (configurable up to 30), and SharePoint and OneDrive recycle bins keep items for 93 days. If an attacker with admin rights purges mailboxes or changes retention, native tools may not bring the data back. An independent, immutable Microsoft 365 backup outside your tenant can.

5. Find a clean recovery point, then recover in isolation

Before restoring, find out when the attack started. Anomaly detection across your backup history shows when unusual encryption, deletion and change began, and identifies the last clean point-in-time snapshot for each system, without touching production. Then recover into a network-isolated recovery environment, validate each system, and only then cut over to production.

6. Lessons for next time

  • Make backups immutable and require a second approver (Quorum Authorization) for destructive changes.
  • Back up identity, Active Directory, Entra ID and Okta, not just the servers it runs on.
  • Rehearse recovery in an isolated recovery environment at least once a year, and keep the evidence.
  • Document the recovery order: identity, core infrastructure, then applications and data.

Want to live through an attack before it happens? Schedule a consultation to plan a recovery drill, or contact us for emergency recovery help.