Ransomware recovery in Microsoft 365: what you can actually get back

Ransomware recovery in Microsoft 365 rarely fails because the data has gone. It fails because the people doing the restoring reach for the wrong mechanism, in the wrong order, while the attacker still has a valid session token.
The platform is more resilient than most organisations realise. Files are versioned, deletions are held, mailboxes keep a recoverable items folder, and Microsoft itself holds a further copy for a short period after that. Any one of those can get a file back. None of them restores a tenant.
What changes the outcome is sequencing. Microsoft’s own incident response playbook is unambiguous that containment comes before recovery, and that restoring encrypted data before the payload is gone and unauthorised access is verified closed simply hands the attacker a second pass at clean files. Most of the damage we see in the aftermath of an attack is self-inflicted in the first six hours, and Microsoft’s own response playbook sets out why.
So the useful question is not whether Microsoft 365 can recover your data. It is which recovery route applies to the failure you actually have, how many days are left on its clock, and what has to be true about your tenant before you press restore.
Quick summary
These are the windows and the rules that decide whether a restore succeeds, and in what order it has to happen.
Read that list as a decision tree rather than a feature list and the real exposure becomes clear: almost every window is counted from the moment of the event, not the moment somebody notices it, and the gap between those two moments is where recoveries are won or lost.
What ransomware actually does to a Microsoft 365 tenant
Most ransomware does not attack Microsoft 365 directly. It attacks an endpoint, encrypts what that endpoint can reach, and lets the sync client do the rest. Understanding that chain tells you which recovery route to use.
- The endpoint is encrypted first. Local files are rewritten with encrypted contents.
- The sync client replicates faithfully. OneDrive and SharePoint-synced libraries receive the encrypted versions as legitimate edits from an authenticated user, because that is exactly what they are.
- Nothing is deleted. This is the detail that catches people out. An encrypted file is a modified file, so it does not enter the recycle bin at all.
- Version history becomes the recovery mechanism. The clean copy still exists as a prior version of each affected file, which is why versioning settings, rather than backup settings, often determine whether a rollback is possible.
- Mail is usually a separate problem. Exchange Online is not sync-replicated in the same way, so mailbox damage tends to come from mailbox rules, forwarding and deletion by a compromised account rather than from encryption.
The NCSC makes the same point about cloud storage generally, warning that “cloud services often automatically synchronise immediately after your files have been replaced with encrypted copies”. A sync relationship is not a backup relationship, and in an encryption event it actively works against you.
The version history limits that bound your rollback
If version history is doing the recovery work, then version limits are the real constraint, and Microsoft has changed how they behave. This is the part worth checking in your own tenant rather than assuming.
Microsoft’s recommended setting is now an automatic version history limit rather than a fixed count. Under automatic limits, Microsoft documents that users have access to:
- all versions created within the 500 count limit in the first 30 days
- hourly versions between 30 and 60 days
- daily versions between 60 and 180 days
- weekly versions beyond 180 days, indefinitely, until the 500 count limit is reached
Microsoft states this produces roughly a 94 to 96 per cent reduction in version storage compared with count limits alone. For everyday use that is sensible housekeeping. For ransomware recovery it introduces a specific risk: the granularity you can roll back to degrades sharply after 30 days, and the 500 count limit is a ceiling that a process making repeated automated edits will consume faster than a human will.
We have deliberately not put a figure on how often a mass encryption event exhausts a library’s version count, because Microsoft does not publish one and we have not measured it. The honest action is to open your own libraries and confirm what they are actually set to, because the answer differs between tenants and between libraries in the same tenant.
The recovery routes, and which failure each one solves
Four native routes exist, and they are not interchangeable. Matching the route to the failure is most of the skill.
- OneDrive Files Restore rolls an entire OneDrive or document library back to a point within the last 30 days and is the right tool for a mass encryption event. Microsoft notes that anything created after the restore point goes to the recycle bin, and that a file permanently removed from the recycle bin “can never be recovered”.
- Version history restores individual files to a prior version and is the right tool when a handful of documents are affected or when the 30-day window has passed but versions survive.
- The recycle bin covers deletion, not encryption. Items sit in the first-stage bin for 93 days from deletion, then move to the site collection bin “for the remainder of their retention period”, which is within the same 93 days rather than in addition to it.
- Exchange Online recoverable items handles deleted mail, with a 14-day default that can be raised to 30, and is the route for a compromised mailbox rather than an encrypted one.
Beyond those, Microsoft 365 Backup extends the windows for OneDrive, SharePoint and Exchange Online with configurable retention, and Microsoft positions it specifically around “fast, secure, and efficient self-service bulk recovery”. Our guide to Microsoft 365 backup sets out its scope, retention options and published pricing in full.
Pick the route by the shape of the damage, not by which one you have heard of. A library-wide encryption event handled file by file through version history is a week of work that Files Restore does in an afternoon.
The limitation vendor content leaves out
There is one structural point that both Microsoft’s marketing and the backup vendors’ marketing tend to walk past, each for their own reasons, and it is the single most important thing to understand before you decide you are covered.
Microsoft 365 Backup stores backup data inside Microsoft 365. Microsoft’s own documentation is clear that “Data never leaves the Microsoft 365 data trust boundary and honors the geographic locations of your current data residency”, and the restore targets are the same or a new location within the same tenant. There is no documented export and no cross-tenant restore.
For data residency that is a genuine advantage. Against the NCSC’s test for an offline backup it is a gap. The NCSC’s guidance on mitigating ransomware is to “Make offline backups that are kept separate, in a different location (ideally offsite), from your network and systems”, and to ensure backup devices are “not permanently connected to your network”, precisely because attackers target connected backups. A backup that lives in the tenant it protects is answering the deletion question, not the tenant-compromise question.
That distinction decides your architecture. If your threat model stops at a ransomware payload on an endpoint, native retention plus Microsoft 365 Backup is a coherent answer. If it includes an attacker holding Global Administrator, you need a copy somewhere that administrator cannot reach, and no amount of in-tenant retention substitutes for it.
The UK picture, and a figure worth reading carefully
It is worth grounding this in government statistics rather than vendor anxiety, and the numbers are more interesting than the usual framing suggests.
The Cyber Security Breaches Survey 2025/2026, with fieldwork from August to December 2025, found that 43 per cent of UK businesses identified a cyber security breach or attack in the preceding 12 months. Ransomware specifically was reported by 1 per cent of businesses, “down from 3% in both 2024/2025 and 2023/2024”.
One per cent is a smaller number than the industry usually implies, and we are not going to inflate it. Two caveats matter, though. The same survey separately records “an increase in ransomware cyber crimes (from less than 0.5% in 2024/2025 to 1% this year)”, which is a different measure moving in the opposite direction, so the headline decline should be read with care rather than as settled good news. And preparedness has gone backwards: formal incident response plans sit at 25 per cent of businesses and 21 per cent of micro businesses, while business continuity plans covering cyber security fell to 44 per cent from 53 per cent the previous year, even though 74 per cent of businesses back up to a cloud service.
That is the real finding. Three-quarters have a backup, under half have a continuity plan and a quarter have an incident response plan. The probability of an attack may be falling, but the probability of handling one badly is not, and that is a process gap rather than a product gap. It is also exactly what turns an incident into days of downtime.
What a real incident looked like
Genuine published incident reports are rare, because most organisations never write one. The British Library is the exception, and its own review is worth more than any vendor case study.
The attack began on Saturday 28 October 2023 and was attributed to the Rhysida group. The Library’s review records that the likely entry point was a Terminal Services server installed in February 2020 to give trusted external partners and IT administrators efficient access, and that the server was not protected by multi-factor authentication. Forensic analysis indicated the attackers had access at least three days before the incident became apparent. Around 600GB of files were exfiltrated, including personal data of users and staff. The Library “has not made any payment to the criminal actors responsible for the attack, nor engaged with them in any way”, and the stolen data was subsequently auctioned and dumped.
Recovery took far longer than the attack. Research services were severely restricted for the first two months, a searchable catalogue returned on 15 January 2024, and infrastructure rebuilding continued into the following spring. Among the lessons the Library set out for itself were to “Manage systems lifecycles to eliminate legacy technology”, to implement network segmentation, to hold “immutable and air-gapped copies, offsite copies” with multiple restoration points, and, pointedly, to “Prioritise recovery alongside security”.
Two things from that are directly transferable. A single remote access server without multi-factor authentication was enough, and the recovery took months rather than days because recovery had not been designed with the same care as prevention.
Where Cyber Essentials stops
Organisations frequently tell us they are covered because they hold Cyber Essentials. It is a worthwhile certification and it addresses several of the conditions that let ransomware in, but it is explicit about its own boundary.
The five technical control themes are firewalls, secure configuration, security update management, user access control and malware protection. Backup is not among them. The current Requirements for IT Infrastructure, version 3.3 of April 2026, states plainly that “Backing up your data is not a technical requirement of Cyber Essentials. However, we highly recommend implementing an appropriate backup solution.”
So certification tells a customer or an insurer that your preventive hygiene has been assessed. It says nothing verified about whether you can restore. Those are separate questions, and only one of them has been audited. Our Cyber Essentials page covers what the assessment does and does not test.
Common mistakes and pro tips
The failures cluster predictably, and almost all of them are decisions made under pressure rather than technical shortcomings.
- Mistake: restoring before containment. Microsoft’s playbook puts verification of removal and of closed unauthorised access ahead of restore for a reason. Restoring into a live compromise re-encrypts the clean copy.
- Mistake: shutting machines down. Isolate from the network instead. Powering off destroys memory-resident evidence that determines how the attacker got in.
- Mistake: leaving OneDrive sync running. Encrypted local files continue replicating while you investigate, consuming versions and widening the blast radius.
- Mistake: assuming the recycle bin holds the answer. Encryption modifies rather than deletes, so the bin is frequently empty after an attack and version history is the route.
- Mistake: treating Cyber Essentials as recovery assurance. It does not assess backup at all.
- Pro tip: check your version limits now, not during an incident. Automatic limits change what you can roll back to, and the degradation after 30 days is significant.
- Pro tip: rehearse a Files Restore on a test library. The 30-day window is generous and the tool is genuinely good, but nobody should be reading the documentation for the first time on the day.
- Pro tip: write the regulatory step into the runbook. The 72-hour ICO clock starts on awareness, not on resolution, and it runs while the technical work is going on.
- Pro tip: decide in advance who can authorise taking systems offline. In our experience the delay between detection and containment is more often a decision-making delay than a technical one, because nobody wants to be the person who took the business offline.
Get those nine right and the technology you already own will carry most of the load. Get the order wrong and no product on the market rescues it.
If ransomware hit your tenant on Monday, who would know what to do first?
Our free Microsoft 365 Risk and Cost Health Check reviews your recovery windows, your version history settings and your containment readiness, then tells you plainly where the gaps are. You get a written summary you can act on, whether you work with us or not.
The bottom line on ransomware recovery in Microsoft 365
The data is usually still there. Microsoft 365 versions files, holds deletions for 93 days, keeps a recoverable items folder and offers a 30-day library-wide undo. Organisations that lose data to ransomware generally lose it to the clock or to the sequence, not to the encryption.
The sequence is the part to fix first, because it is free. Containment before recovery. Isolate without powering off. Stop sync. Confirm the attacker is out. Then choose the recovery route that matches the damage, rather than the one you happen to know.
Then fix the architecture question honestly. In-tenant retention, including Microsoft’s own backup service, protects you from deletion and from encryption reaching the cloud. It does not protect you from somebody with administrative control of the tenant, and no documentation claims it does. If that is in your threat model, you need a copy beyond its reach.
If nobody in your organisation can currently say what your version limits are set to or who authorises taking systems offline, those are the two cheapest improvements available, and both are answerable this week. Our Microsoft 365 support team works through this with clients regularly, and the honest finding is usually that the tooling was adequate and the runbook was missing.
STRAIGHT ANSWERS
Frequently asked questions
Can Microsoft 365 recover files encrypted by ransomware?
Usually, yes, within limits. Because encryption modifies files rather than deleting them, the clean copies normally survive as prior versions. OneDrive Files Restore can roll an entire OneDrive or document library back to a point within the last 30 days, and version history can restore individual files beyond that, subject to your library's version limits.
How long does ransomware recovery take in Microsoft 365?
The restore itself can be quick, but the restore is not the long part. Microsoft requires the payload to be removed and unauthorised access verified closed first, and that investigation sets the timeline. The British Library's own review records severely restricted services for two months and infrastructure rebuilding continuing for several more. We will not quote an average, because recovery time depends almost entirely on how quickly the compromise was contained.
Does the recycle bin help after a ransomware attack?
Often not. The recycle bin covers deletion, and ransomware that encrypts in place does not delete anything. Where files have been deleted, SharePoint and OneDrive hold them for 93 days in total across both recycle bin stages, with a further 14 days in which Microsoft can recover content, giving 107 days from deletion.
Should we pay the ransom?
Both the NCSC and the ICO advise against it. The NCSC states that "Law enforcement do not encourage, endorse, nor condone the payment of ransom demands" and that there is no guarantee of regaining access. The ICO goes further for data protection purposes, stating it "does not consider the payment of a ransom as an 'appropriate measure' to restore personal data". This is not legal advice and a decision of this kind should be taken with your own legal and insurance advisers.
Do we have to report a ransomware attack to the ICO?
If personal data is involved, very likely. The ICO's position is that "Where personal data is encrypted as the result of a ransomware attack, that constitutes a personal data breach because you have lost timely access to the data", and notifiable breaches must be reported without undue delay and no later than 72 hours after becoming aware, unless the breach is unlikely to result in a risk to individuals' rights and freedoms. That is a risk assessment to document, not a judgement to make casually.
Does Cyber Essentials protect us against ransomware?
It addresses several of the ways ransomware gets in, through its five technical controls, but it does not assess your ability to recover. The current Requirements for IT Infrastructure states that backing up your data is not a technical requirement of the scheme, while recommending it. Certification and recoverability are separate assurances.
Is Microsoft 365 Backup enough on its own?
It depends what you are protecting against. For accidental deletion and for encryption arriving via a sync client, it extends the native windows considerably and restores in bulk. Because the backup data stays inside the Microsoft 365 trust boundary and restores only within the same tenant, it does not give you the separated copy the NCSC describes for scenarios involving a compromised tenant.
What is the first thing to do if we suspect ransomware right now?
Isolate the affected devices from the network without powering them off, suspend the accounts you believe are compromised, stop OneDrive sync and disconnect any online backup from the network. Then establish scope before restoring anything. If you are mid-incident, call for help before you restore, because the restore is the step that is hardest to undo.
