keepcalculator

06 Numbers and Powers

Remove Bad Rabbit Ransomware: Full Guide

Card No. 06·78655 · Updated · Standard formula, shown below

Yes, you can remove Bad Rabbit ransomware from an infected Windows PC, but the priority is recovering your files and preventing reinfection. This guide explains what Bad Rabbit does, how to remove it safely, and how to restore your data.

What Is Bad Rabbit Ransomware?

Bad Rabbit is a ransomware strain first seen in October 2017, targeting Windows systems primarily in Russia and Eastern Europe. It spreads through fake Adobe Flash Player installers on compromised websites, then moves laterally across networks using stolen credentials. Once inside, it encrypts files with a custom encryption scheme and drops a ransom note demanding payment in Bitcoin. Unlike some ransomware, Bad Rabbit does not use a command-and-control server for encryption keys—it generates them locally, which later allowed security researchers to build a free decryptor for most victims.

How Bad Rabbit Infects a Computer

The initial infection vector is a malicious download page that prompts users to install a fake Flash Player update. The dropper, disguised as install_flash_player.exe, is often hosted on legitimate-looking news or media sites that have been compromised. After execution, it drops two files: a legitimate Windows utility (infpub.dat) and a malicious DLL (dispci.exe). The DLL is sideloaded to run the ransomware payload. From there, it uses the Windows Management Instrumentation (WMI) and the EternalBlue exploit (MS17-010) to spread to other machines on the same network, especially if SMBv1 is enabled and patches are missing.

Immediate Steps After Infection

If you see the ransom note or notice files renamed with the .encrypted extension, act quickly:

  • Disconnect the machine from the network (unplug Ethernet or turn off Wi-Fi) to stop lateral movement.
  • Do not reboot unless necessary—some variants load a driver that survives reboots, and rebooting may trigger additional encryption.
  • Take a photo of the ransom note and note the Bitcoin wallet address, but do not pay.
  • Check if your files are affected by opening a few common documents—if they open, the encryption may not have completed.
  • Run a full antivirus scan from a trusted live USB environment to identify and quarantine the malware.

Paying the ransom is not recommended. There is no guarantee the attackers will provide a working decryption key, and it funds further criminal activity. In the case of Bad Rabbit, a free decryptor exists (see below), so payment is especially pointless.

Using the Free Bad Rabbit Decryptor

Shortly after the outbreak, security firm Kaspersky released a free decryption tool for Bad Rabbit. It exploits a flaw in the ransomware’s encryption: the key is derived from a local system parameter (the machine’s volume ID) and is not sent to the attackers. The tool scans for encrypted files and attempts to recover them using a known plaintext attack on the encryption header. To use it:

  1. Download the decryptor from a trusted source (e.g., Kaspersky’s official site or No More Ransom project).
  2. Run it as administrator on the infected machine (after removing the malware).
  3. Select the drive or folder to scan; the tool will look for files with the .encrypted extension.
  4. Follow the prompts—it may ask for a sample file (a small encrypted file) to speed up key recovery.
  5. Wait for the decryption process to complete; this can take hours depending on the number of files.

This decryptor works for most victims, but not all. If your system was patched after infection or the encryption was interrupted, recovery may be incomplete. Always back up decrypted files before further cleanup.

Manual Removal of Bad Rabbit

If you prefer manual removal or the decryptor fails, you can remove the malware components. Boot into Safe Mode with Networking (press F8 or Shift+Restart during boot) and follow these steps:

  • Open Task Manager (Ctrl+Shift+Esc) and end processes named dispci.exe or any suspicious processes with random names.
  • Delete the malicious files: typically C:\Windows\dispci.exe, C:\Windows\infpub.dat, and any files in %TEMP% with random names.
  • Open Registry Editor (regedit) and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options—delete any subkeys that reference dispci.exe.
  • Check scheduled tasks (taskschd.msc) for entries like “rha” or “dwm” that run the malware.
  • Restart normally and run a full antivirus scan to ensure no remnants remain.

Manual removal is risky—missing a component can lead to reinfection or failed decryption. Unless you are experienced, rely on reputable antivirus tools that specifically detect Bad Rabbit (e.g., Trojan.Ransom.BadRabbit).

How to Recover Encrypted Files Without a Decryptor

If the decryptor does not work, your options depend on your backup strategy:

  • Shadow copies: Bad Rabbit deletes Volume Shadow Copies (vssadmin delete shadows), but if disabled or failed, you might recover via previous versions (right-click file → Properties → Previous Versions).
  • File recovery tools: Deleted originals may still exist on disk; tools like Recuva or PhotoRec can attempt recovery, but success is low after encryption.
  • Backups: The only reliable method. If you have cloud or external backups, restore from them after cleaning the system.
  • Professional data recovery: In rare cases, forensic experts can recover fragments, but costs are high and success is not guaranteed.

Do not reinstall Windows before attempting recovery—formatting the drive destroys any chance of file recovery.

Preventing Future Ransomware Infections

Bad Rabbit exploits common weaknesses. Protect yourself with these measures:

  • Keep Windows updated—the MS17-010 patch (from March 2017) blocks the EternalBlue exploit.
  • Disable SMBv1 if not needed (Control Panel → Programs → Turn Windows features on/off).
  • Use a reputable antivirus with real-time protection and enable ransomware-specific shields.
  • Never install software from pop-ups or fake update prompts; always download from official sources.
  • Use a standard (non-admin) user account for daily tasks—Bad Rabbit requires admin rights to encrypt.
  • Maintain the 3-2-1 backup rule: 3 copies, 2 different media, 1 offsite.
  • Enable controlled folder access in Windows Defender (under Ransomware protection) to block unauthorized file modifications.

Frequently Asked Questions

Can Bad Rabbit be removed without paying?

Yes, the malware itself can be removed with antivirus tools or manual steps. File decryption is possible for many victims using the free Kaspersky decryptor, which works because the encryption key is stored locally. If that fails, restoring from backups is the only free option.

Does the Bad Rabbit decryptor work for all versions?

No. The decryptor works for the original strain that used a predictable key derivation. If the attackers updated the code or the system was modified, it may fail. Test it on a few files first; if it works, run it fully.

How did Bad Rabbit spread so fast?

It used the EternalBlue exploit (MS17-010) to move laterally within networks, similar to WannaCry. This exploit targets unpatched Windows SMBv1 services. Organizations with outdated systems were most vulnerable.

Is paying the ransom safe?

No. Paying does not guarantee decryption—attackers may take the money and disappear. In Bad Rabbit’s case, the free decryptor makes payment unnecessary. Additionally, paying funds criminal operations and may mark you as a target for future attacks.

Can I prevent Bad Rabbit with a firewall?

A firewall helps block lateral movement, but the initial infection comes from a user downloading a fake Flash update. Firewalls alone won’t stop that. Combine a firewall with email/web filtering, patching, and user education.

What if my files are still encrypted after the decryptor fails?

Without a backup, recovery is unlikely. You can try file recovery tools for deleted originals, but encryption overwrites data. The best course is to clean the system and restore from backups. If you have no backup, consider professional data recovery, but manage expectations.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →