November 30th, 2026
0 reactions

New ransomware recovery guidance for Azure Cosmos DB

Product Manager

Practical guidance for preparing for a cyberattack and recovering a trusted environment.

New ransomware recovery guidance for Azure Cosmos DB is now available on Microsoft Learn. It walks through preparing your accounts, responding to unauthorized access, selecting a clean recovery point, and restoring data. It also covers the checks needed before applications reconnect and the changes to make after recovery.

Recovery involves more than restoring data

An attacker might overwrite items with encrypted content, delete databases or containers, remove an account, or steal data without changing it. The procedures are useful even when there’s no ransom demand. They address compromise through identities, account keys, networks, applications, and configurations you control, not compromise of the Azure platform itself.

For Cosmos DB teams, the guide highlights these recovery decisions:

  • Block the compromised access path. Close the compromised identity, key, application, or network path so the same access can’t be used against the recovered environment.
  • Establish a clean recovery cutoff. The first visible deletion or overwrite might come after the initial compromise. Build a timeline and validate candidate recovery points rather than choosing a timestamp alone.
  • Preserve backups and investigation evidence. Backup windows move while you investigate. The guide explains how to preserve available recovery points and evidence without treating deletion of the compromised account as cleanup.
  • Reapply trusted access controls. A point-in-time restore to a new account doesn’t restore firewall rules, private endpoints, or data-plane role assignments. Those controls need to be reapplied from a trusted baseline.
  • Treat failover and data recovery separately. Multi-region replication also carries writes and deletes. Failing over to another region doesn’t undo an attacker’s changes.

A framework for response and recovery

The recovery lifecycle is organized into seven steps: Protect, Detect, Contain, Assess, Restore, Validate, and Harden.

Step What it helps you do
Protect Prepare access controls, monitoring, backups, and recovery procedures before an attack.
Detect Recognize signs of suspicious access, data changes, or weakened protection.
Contain Stop attacker access and limit further damage while preserving evidence.
Assess Establish the scope, compromise timeline, damage, and recovery cutoff.
Restore Select an available recovery path and recover affected data or access.
Validate Check data, permissions, credentials, monitoring, and application behavior before production returns.
Harden Close the gaps the incident exposed and strengthen future recovery readiness.

Supporting procedures cover:

  • A protection checklist organized around preventing attacks, revealing suspicious activity, and preserving a recoverable copy.
  • Guidance on correlating Azure Activity Log, Microsoft Entra logs, and Azure Cosmos DB resource logs. Account configuration changes and operations on your data require different evidence sources.
  • Recovery paths based on each account’s actual backup configuration, including point-in-time restore, recovery of deleted resources, and support-assisted periodic restore.
  • Validation checks for item expiration settings, change feed consumers, and downstream systems, not just document counts.

Prepare and test before an incident

Check your backup coverage and evidence sources while you still have time to address gaps. A backup policy alone doesn’t establish that a usable clean recovery point exists. Diagnostic logging needs to be configured to capture the events you later investigate; enabling it after a compromise doesn’t reconstruct earlier activity.

A recovery drill should test the path back to a working application, not just the restore command:

  • Rank accounts, databases, and containers by business importance.
  • Agree on who authorizes recovery and production cutover, and how to engage Azure Support.
  • Test restores in an isolated environment, then verify access controls, application behavior, and downstream data.
  • Measure the complete recovery time, including validation and reconciliation, not only the account restore.

Next steps

Start with the protection checklist and identify gaps in your current setup. Confirm each account’s backup mode and available recovery window, then use the guide to plan a recovery exercise with your database, application, and incident-response teams.

Overview: Recover Azure Cosmos DB from a ransomware attack

Author

Sudhanshu Khera
Product Manager

Sudhanshu is a seasoned product manager focusing on security in Azure Cosmos DB.

0 comments