Join our Newsletter — 33% off our NHI Course
Home› Guides› BitLocker Abuse Ransomware Playbook: Detecting, Containing and Recovering…
Guide Incident Response & Forensics

BitLocker Abuse Ransomware Playbook: Detecting, Containing and Recovering from ShrinkLocker-Style Attacks

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 20 November 2026 12 min read
On this page

BitLocker abuse ransomware turns Windows' own drive encryption against the organisation, so the response turns on three questions: whether the attacker replaced your key protectors, whether your escrowed recovery keys still match, and whether clean backups exist. This playbook covers detection, containment, eradication and recovery for attacks in the style of ShrinkLocker. It contains no attack steps.

Most ransomware brings its own encryption code, which endpoint tools can learn to spot. BitLocker abuse is different: the encryption engine is a trusted operating system component, so the malicious part is a short script and a set of configuration changes. That changes the decision points for the incident team. Where a generic ransomware response starts with "which strain is this", a BitLocker abuse response starts with "which protectors are on each volume, and who put them there". For the general ransomware process, use the Ransomware Playbook Template; for BitLocker administration and hardening in normal operations, see the BitLocker guide. This page covers only what is specific to the BitLocker abuse scenario.

Key takeaways

  • Kaspersky's research team published ShrinkLocker on 23 May 2024 after an incident response engagement, describing a VBScript that used BitLocker to lock victims out of their drives, with variants seen in Mexico, Indonesia and Jordan.
  • The script removed existing BitLocker key protectors, enabled BitLocker with a password it generated and sent that password to an attacker-controlled endpoint. Victims then saw the BitLocker recovery screen with no usable recovery options.
  • Because existing protectors were removed, escrowed recovery keys may not unlock affected volumes. Confirm this per device before relying on them.
  • The attacker already had full control of the target before the script ran. Treat every case as a domain or tenant compromise until proven otherwise.
  • Strong detection signals exist: changes to BitLocker policy registry values, protector changes, partition and boot file changes, cleared PowerShell logs, and outbound posts carrying host details.
  • Recovery from offline, tested backups is the primary path. Decryption without the attacker's password should not be planned for.
  • Recovery keys are high-value secrets. Their storage in Microsoft Entra ID or Active Directory, and who can read them, belongs in your privileged access model.

Scenario and how it differs from other ransomware

Kaspersky's Securelist article, "ShrinkLocker: Turning BitLocker into ransomware", describes the case. At a defensive level, the script checked the operating system version and domain, changed local drive layouts and created new boot-related partitions, modified BitLocker policy registry values to permit weaker configurations, removed existing key protectors, enabled BitLocker with a generated password, sent the machine name, operating system version, affected drives and the password to an attacker web endpoint, relabelled drives with a contact address, cleared PowerShell event logs, changed firewall state and rules, deleted its scheduled tasks and forced a shutdown. Kaspersky reports that the script had already run with full control of the target.

Three things set this scenario apart for responders:

  • No custom encryptor. There may be no ransomware binary to analyse. The evidence is a script, policy changes and BitLocker's own state.
  • Key protectors are the battleground. The question is not how the data was encrypted, but which protectors exist on each volume now and whether any of yours survived.
  • Devices power off. The forced shutdown leaves endpoints at the recovery screen, so live response on affected machines is often not possible. Evidence comes from central logs, unaffected hosts and the identity plane.

MITRE tracks the malware as ShrinkLocker (S1178). The most relevant ATT&CK techniques for defenders are Data Encrypted for Impact and Inhibit System Recovery.

Detection signals

All artefact names below come from the Kaspersky article and Microsoft's BitLocker troubleshooting documentation. They are signals to monitor, not a complete indicator set. Kaspersky advises favouring behavioural detection over static strings, since strings are easy to modify.

Policy and configuration

  • Changes to BitLocker policy values under HKLM\SOFTWARE\Policies\Microsoft\FVE and its WOW6432Node equivalent, especially unusual values for TPM, PIN, startup key and non-TPM encryption settings. Microsoft describes the FVE key as the main BitLocker policy key, duplicating settings delivered by MDM.
  • Any change to that key that does not come from your Group Policy or MDM channel should page the on-call analyst.

BitLocker and disk activity

  • Entries in the Microsoft-Windows-BitLocker/BitLocker Management log, which Microsoft calls the main event log for BitLocker, showing protector or encryption changes outside a planned change.
  • Use of disk partitioning and boot configuration tools on endpoints that do not normally run them. Kaspersky lists diskpart and bcdboot among the tools seen.
  • Volume labels changed to contain an email address.

Script, task and log activity

  • Script hosts running VBS files from ProgramData template locations. Kaspersky names Disk.vbs and Login.vbs.
  • Creation and deletion of scheduled tasks named VolumeInit or VolumeCheck, or a Group Policy scheduled tasks file appearing unexpectedly. Microsoft notes the Task Scheduler Operational log must be enabled manually before it records data.
  • Clearing of the Windows PowerShell and Microsoft-Windows-PowerShell/Operational logs, and use of wevtutil, netsh and schtasks in a short sequence on one host.

Network

  • Outbound HTTPS POST requests from endpoints to random trycloudflare.com subdomains. Kaspersky notes that POST traffic is often not logged, so check whether your proxy records it.

An illustrative correlation rule, for adaptation to your own tooling: alert when a single host shows a change under the FVE policy key, a BitLocker protector change and a PowerShell log clear within one hour, and the change did not come from a known management channel.

Decision point 1: confirm scope and stop the spread

The first hour decides how many devices you lose.

  1. Declare the incident as soon as more than one device shows the recovery screen with an unfamiliar message or drive label, or the correlation rule fires.
  2. Find the distribution channel. A script that runs across many hosts at once usually arrives through a management path. Check Group Policy objects, scheduled task definitions, software deployment tools and remote management tools for recent changes. The Group Policy Security Guide covers what to inspect.
  3. Cut the channel, not just the hosts. Disable the offending policy or deployment, and block the attacker endpoint domains at the proxy and firewall.
  4. Isolate hosts that are still running through your endpoint tool, keeping them powered on if they are not yet affected so that memory and logs are preserved.
  5. Do not reboot healthy hosts to "check" them until the distribution channel is closed.

Decision point 2: identity compromise and recovery key exposure

Kaspersky reports that the script had full control of its targets before it ran. That means the attacker held privileged credentials. Handle the identity plane in parallel with the endpoints.

  • Identify the account or service identity used to deploy the script, and every account that changed policy or management configuration in the window.
  • Reset and re-secure privileged accounts in a controlled order, and revoke sessions and tokens for them. Follow the Active Directory Domain Compromise Response Playbook where domain admin access is suspected.
  • Review who read recovery keys. Microsoft documents that in Entra ID the keys are held as the bitlockerRecoveryKey resource and can be retrieved from the Entra and Intune admin centres, PowerShell or Microsoft Graph, and that in Active Directory they are stored on the ms-FVE-RecoveryPassword attribute of recovery objects under the computer object. Check audit logs for bulk or unusual reads of either.
  • Treat service principals and automation accounts with key read rights as in scope. They are non-human identities with access to a secret that can unlock every device.

Decision point 3: can the volumes be unlocked?

For each affected device, establish which situation applies before choosing a recovery path.

SituationWhat it suggestsPath
Recovery screen shows a key ID that matches a key you hold in Entra ID or ADYour protector may still be on the volumeAttempt unlock with the escrowed key under evidence handling; image first if possible
Key ID does not match any escrowed keyYour protectors were removed and replacedDo not plan on decryption; move to rebuild and restore
Volume not yet encrypted or encryption interruptedPartial impactImage, then assess data with forensic support before any change
Device unaffected but script presentCaught in timeIsolate, collect evidence, remove script and tasks, verify protectors

Microsoft explains that the recovery screen displays a GUID so that the correct recovery password can be located, and that this is stored as ms-FVE-RecoveryGuid in Active Directory. Use it to check matches rather than trying keys blindly. Microsoft also notes that, in Active Directory, old keys persist until the computer object is deleted, so an older key may match a volume that was never re-keyed; do not delete computer objects for affected devices during the incident.

Paying for the attacker's password is a business and legal decision that sits outside this playbook. Engage legal counsel and follow your organisation's policy and any applicable sanctions rules.

Eradication

  • Remove the script files, scheduled tasks and any Group Policy or deployment objects used to distribute them, keeping copies as evidence.
  • Restore the FVE policy key to the values set by your management channel and confirm through MDM or Group Policy reporting that every device has returned to baseline.
  • Restore firewall policy on hosts where state or rules were changed.
  • Re-enable and protect PowerShell and Task Scheduler logging, and forward logs centrally so they cannot be wiped locally.
  • Hunt across the estate for the same artefacts on hosts that never powered off, and for any other persistence the attacker added with their privileged access.

Recovery

  1. Restore identity first. Bring directory services and privileged access back to a trusted state before restoring endpoints, using the Identity Recovery Guide.
  2. Rebuild, do not clean. For devices whose protectors were replaced, wipe and reimage from a known-good build.
  3. Restore data from offline backups that predate the intrusion, testing a sample before mass restore. Kaspersky recommends frequent, offline and tested backups; the 3-2-1-1-0 Backup Rule Explained sets out a pattern.
  4. Re-enable BitLocker with escrow enforced. Microsoft documents the policy option Do not enable BitLocker until recovery information is stored in AD DS, which prevents BitLocker from being enabled until backup to Entra ID or AD DS succeeds. Pair it with Save BitLocker recovery information to Active Directory Domain Services or the equivalent Entra ID backup.
  5. Verify every device. Microsoft documents manage-bde -status for showing whether a device is encrypted, the method in use and the protectors applied. Compare each device's protectors and key IDs with escrow records before returning it to the user.
  6. Rotate recovery passwords for devices that were not affected but whose keys may have been read during the intrusion.

Communicating with users and the service desk

Users who see a recovery screen will call the service desk, and some will try any recovery key they can find. Issue a short notice early: do not restart devices, do not try to unlock a device showing an unfamiliar message or drive label, and report the key ID shown on screen. Give the service desk a script that records the device name, the key ID and the time the screen appeared, and route matching cases to the incident team instead of releasing escrowed keys on request. Microsoft notes that users can retrieve recovery passwords for their own Entra joined devices from the web, so decide with your identity team whether self-service retrieval should stay available while scope is still unclear, and record that decision in the incident log.

Hardening after the incident

Kaspersky's recommendations, adapted for an identity-led programme:

  • Enforce least privilege so that users cannot enable encryption or change the related registry keys.
  • Store recovery keys only in managed escrow, and restrict and audit who and what can read them.
  • Monitor VBS and PowerShell execution and forward script and command logs to a central store that attackers cannot easily wipe.
  • Log and monitor both GET and POST web traffic from endpoints.
  • Use endpoint protection and managed detection that can recognise BitLocker abuse behaviourally.
  • Tighten change control on Group Policy and deployment tools, since they are the likely distribution channel.

Common failure patterns

  • Assuming escrow will save you. Teams discover only during the incident that the attacker replaced the protectors their escrowed keys belonged to.
  • Rebooting to check. Healthy hosts are restarted while the distribution channel is still live, and lock themselves.
  • Endpoint-only response. Devices are rebuilt while the privileged account that deployed the script stays active.
  • No POST logging. The proxy records only GET requests, so the outbound key transfer is invisible.
  • Local logs only. PowerShell logs cleared on the host with no central copy.
  • Deleting computer objects. Cleaning up AD during the incident removes older recovery keys that might have matched.
  • Unaudited key readers. Automation accounts with recovery key read rights are never reviewed.

Practitioner checklist

  • Alert on changes to the FVE policy key that do not come from your management channel.
  • Forward BitLocker Management, PowerShell and Task Scheduler logs centrally, with Task Scheduler Operational logging enabled.
  • Confirm the proxy logs POST requests from endpoints.
  • Enforce recovery key escrow before encryption and audit every key read in Entra ID and AD.
  • List every human and non-human identity that can read recovery keys and cut it to the minimum.
  • Keep offline, tested backups of user and server data, and rehearse a mass rebuild.
  • Pre-agree who can disable a Group Policy object or deployment during an incident.
  • Document the key ID matching step and the "do not delete computer objects" rule in the runbook.
  • Run a tabletop exercise on this scenario at least once a year.

Standards and references

Related NHI Mgmt Group resources: Ransomware Playbook Template · BitLocker · Active Directory Domain Compromise Response Playbook · Identity Recovery Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.