MainBat Ransomware
MainBat is a malicious ransomware strain that encrypts victim files and demands ransom payment for decryption. First observed in the wild on November 1, 2019, this ransomware has been actively targeting systems worldwide. Security researchers also track this malware under the aliases: TestRansom.
Quick facts
How MainBat ransomware works
File encryption patterns
MainBat modifies encrypted files using specific patterns to mark them as encrypted:
Ransom note and payment demands
After encrypting files, MainBat displays ransom notes demanding payment for file recovery:
notes/message.txt
Technical indicators
Associated executable files
The following executable files are associated with MainBat ransomware:
- Test Ransom.exe
- main.bat
- crypt.bat
About this analysis
This MainBat ransomware analysis is part of Elastio's comprehensive ransomware detection database. Elastio provides advanced ransomware protection and recovery, helping organizations defend against and recover from ransomware attacks like MainBat.
Last updated: December 30, 2025
Elastio detects MainBat inside your data and backups.
The Hunt Engine uses Deep File Inspection to identify MainBat across live data, replicated data, and backups. If this family is in your environment, Elastio finds it before encryption completes. Run a scan against your recovery points to confirm.
Recent ransomware
Explore other threats in our database