If your computer has been hit by BTCWare, fear not; you now have a free and safe way to recover your data without paying the ransom.
The Bitdefender Labs team has released the BTCWare decryption tool, available either as a standalone free tool or as part of the Bitdefender Ransomware Recognition tool, which is available for download here (also for free).
If you’re sure your computer has been encrypted with the BTCWare ransomware, download this tool directly and run it on the infected computer. We always recommend you decrypt your data via the Bitdefender Ransomware Recognition tool, as it first detects the type of ransomware that infected your device, then suggests the latest version of the appropriate decryption tool.
[mks_button size=”large” title=”Download the BTCWare decryption tool” style=”squared” url=”https://labs.bitdefender.com/wp-content/uploads/downloads/btcware-decryption-tool/” target=”_self” bg_color=”#81d742″ txt_color=”#FFFFFF” icon=”” icon_type=”” nofollow=”0″]
Using the decryption tool
The decryption tool will not run if:
Some technical info about the tool
This family of ransomware was first spotted in March 2017. It encrypts user files with three different cyphers (AES192, RC4 and AES256) and all keys are encrypted into the Ransom Note in the so-called User ID file. Practically, the User ID field is the encryption key itself in Base64 format.
Examples of decrypted user-IDs from different malware versions:
As of the moment of writing this article, this malware family uses 9 different extensions grouped into the 3 encryption algorithms described above. We classify them into 4 different versions using the encryption type, as shown in the table below:
Ver | Extension used | Encryption type | Ransom-note name | Decrypted |
1 | .btcware | RC4 <1KB chunked | #_HOW_TO_FIX.inf | YES |
1 | .cryptobyte | RC4 <1KB chunked | #_HOW_TO_FIX.inf | YES |
2 | .onyon | RC4 first 10MB only | !#_DECRYPT_#!.inf | YES |
2 | .xfile | RC4 first 10MB only | !#_DECRYPT_#!.inf | YES |
3 | .cryptowin | AES192 <1KB chunked | #_HOW_TO_FIX.inf | YES |
3 | .theva | AES192 <1KB chunked | #_README_#.inf | YES |
4 | .master | AES256 first 10MB only | !#_RESTORE_FILES_#!.inf | YES |
4 | .aleta | AES256 first 10MB only | !#_READ_ME_#!.inf | NO |
4 | .blocking | AES256 first 10MB only | !#_READ_ME_#!.hta | NO |
Some ransom notes may be overlapping.
To build our tool, we used leaked private keys that can decrypt almost all versions of the malware (v1, v2 and v3 ), as well as the .master extension in version 4 of the malware. We are also working to add some optimized brute-forcing technologies to cover the instances in which the leaked keys don’t work.
The decryption tool we provide also uses additional safety mechanisms to protect against file damage. Mass decryption only starts if the tool successfully decrypts 5 random files, as well as the ransom note. These files are either selected from an indicated folder or from the entire pool of files, if no specific folder is indicated.
Please note that there is no way to decrypt your files without the ransom note, so make sure you keep a copy of it for the future.
Log generation
During decryption, a number of logs are generated and saved inside the %temp% folder. There are two types of logs, but the most relevant to the operation is the BitdefenderLog.txt file, where decryption results are stored. If you encounter any issue with the tool, please get in touch with us via the contact option in the tool and provide us with this log file:
The log file also keeps tabs of the files that could not be decrypted, so you may submit these files to analysis and help us improve the process, if possible.
The log file also keeps tabs on the files that could not be decrypted, so you may submit these files for analysis and help us improve the process, if possible.
Decryption fails in some instances
Sometimes, in circumstances beyond our control, decryption might fail. This happens in particular cases when the malware attempted to encrypt files in use by the operating system and got to creating the encrypted file, but could not delete or replace the original. Such files will be displayed in the log with additional clarification as to why the decryption process failed – the file was in a clean state and no decryption was needed. Another variation of this scenario happens when the original file is encrypted and a copy renamed with an extension that suggests it is encrypted, yet its contents are unencrypted.
The information included in this blogpost is provided courtesy of Bitdefender malware researcher Vlad Craciun.
tags
June 08, 2023
May 02, 2023
January 11, 2023
January 05, 2023