TeslaCrypt is a Windows ransomware family first detected in February 2015. It encrypts valuable user data and demands cryptocurrency payment for decryption. Its targets include documents, photographs, videos, and game-related data such as saved games, profiles, and Steam activation keys. Versions can encrypt files on local and removable drives and accessible network shares, including shares without assigned drive letters.
TeslaCrypt has been distributed through malicious email attachments and compromised websites leading to exploit kits, including Angler, Sweet Orange, and Nuclear. Email campaigns have used fake invoices with archived JavaScript attachments that execute the Nemucod downloader to retrieve TeslaCrypt. An analyzed Angler infection chain exploited Adobe Flash vulnerability CVE-2015-0311. TeslaCrypt also used Avalanche criminal hosting and fast-flux communication infrastructure.
Its encryption and key-protection designs changed substantially across versions. Early samples used AES-256-CBC despite ransom messages claiming RSA-2048. Later versions introduced elliptic-curve Diffie–Hellman over secp256k1 to protect encryption keys; version 3.0.1 used AES-128-CBC and could encrypt files without contacting command-and-control infrastructure. Depending on the version, the malware stores recovery information locally, embeds encryption metadata in affected files, and transmits key material or encrypted status information to attacker-controlled servers, including through Tor gateways. Some versions erase locally stored master-key material after encryption.
TeslaCrypt inhibits recovery by deleting Windows Volume Shadow Copies and terminates administrative and analysis tools. Observed variants use COM-object-based sandbox checks, executable-image replacement, encrypted strings, and hashed dynamic API resolution to complicate analysis. Later versions establish persistence through Windows logon autorun entries. Early implementation weaknesses enabled recovery tools for some infections, while subsequent revisions invalidated earlier key-recovery methods. The operators ultimately shut down the operation and released decryption keys.
1 CVE Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
35 distinct techniques documented for this family, organized by ATT&CK tactic.
Active since 2009, the Avalanche botnet has been used for money muling schemes, distributing a wide variety of malware, and as a fast-flux communication infrastructure for other botnets.
This ransomware is usually distributed as an email attachment or through websites that redirect the victim to the Angler Exploit Kit.
This ransomware is usually distributed as an email attachment or through websites that redirect the victim to the Angler Exploit Kit.
Posing as a fake invoice, they try to convince the users into opening an attached ZIP file.
Delete all system Volume Shadow Copies by executing “vssadmin.exe delete shadows /all /quiet” command
In our analysis, the exploit kit delivered a malicious Flash object containing an exploit against CVE-2015-0311. The payload for this exploit was a TeslaCrypt sample.
TeslaCrypt 2.0.0 does not use key.dat or storage.bin to store data. Instead, it uses the system registry: an install_id value is stored in HKCU\Software\msys\ID, and the following structure is added to HKCU\Software\ <install_id> \data
The final unpacked executable locates specific Windows directories such as the Application Data directory, and builds support files like the “key.dat” file, and files to store decryption instructions.
The ransomware tries to stay persistent on the infected system by adding the following entry to the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
If the check passes, the real dropper is extracted and executed using a well-known method that makes use of the ZwMap(Unmap)ViewOfSection API functions to unmap the original PE memory image and re-map another image file.
The final unpacked executable locates specific Windows directories such as the Application Data directory, and builds support files like the “key.dat” file, and files to store decryption instructions.
The ransomware tries to stay persistent on the infected system by adding the following entry to the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
The executable also adjusts its own privileges (adds “SeDebugPrivilege”) and copies itself using a random file name to the user’s Application Data directory.
Before TeslaCrypt version 0.4.1, server requests were sent in plaintext; in subsequent versions they were encrypted using the AES-256-CBC algorithm, with a SHA256 hash of a static string from the malicious program’s body used as a key.
the author has also implemented dynamic library and function loading.
Otherwise, it copies the image file to one of the directories, depending on the user account rights. The name of the file is generated randomly and contains 0x0C lower ASCII symbols.
If the check passes, the real dropper is extracted and executed using a well-known method that makes use of the ZwMap(Unmap)ViewOfSection API functions to unmap the original PE memory image and re-map another image file.
Versions 0.2.5 – 0.3.x saved the decryption key... in key.dat. The area containing the key was zeroed out in the file only after completing encryption... In version 0.4.0 ... On completing encryption, the key was overwritten with random bytes rather than zeros
It then executes the newly copied file and removes the original file with this command: {WINDOWS_DIRECTORY}\system32\cmd.exe /c DEL ${PATH_TO_EXE}
Execute the ShellExecuteEx function with one the following commands: wmic.exe shadowcopy delete /noninteractive
the ransomware uses the ShellExecuteEx function with a runas action for this command: {WINDOWS_DIRECTORY}\system32\cmd.exe /c "" ${PATH_TO_EXE}
Most TeslaCrypt samples use COM+ sandbox evasion techniques. For example, the dropper we analysed uses simple detection code that verifies if the “URLReader2” COM interface has been correctly installed in the DirectShow filter graph list.
First of all, the malware checks the SECURITY_MANDATORY level by calling the GetSidSubAuthority function
TeslaCrypt 2.0.0 does not use key.dat or storage.bin to store data. Instead, it uses the system registry: an install_id value is stored in HKCU\Software\msys\ID, and the following structure is added to HKCU\Software\ <install_id> \data
if a process with a filename that contains any of the words below is found, that process is terminated using the TerminateProcess Windows API function taskmgr procexp regedit msconfig cmd.exe
the ransomware checks if its path to the execution file contains the windir environment variable or CSIDL_MYDOCUMENTS (which depends on the user belonging to the Administrator group).
This thread is responsible for enumerating currently running processes in the operating system by using function EnumProcesses.
starts to enumerate all files of the victim workstation (filtering by extension type, Tesla Crypt supports over 170 different file extensions)
At the same time, all network resources are enumerated recursively using the WNet family functions. The ransomware looks for resources with the type RESOURCETYPE_DISK.
Most TeslaCrypt samples use COM+ sandbox evasion techniques. For example, the dropper we analysed uses simple detection code that verifies if the “URLReader2” COM interface has been correctly installed in the DirectShow filter graph list.
First of all, the malware checks the SECURITY_MANDATORY level by calling the GetSidSubAuthority function
The ransomware encrypts and encodes the data when it communicates with the C&C. It calculates the SHA256 checksum of the decrypted hardcoded string 0324532423723948572379453249857. The received hashsum is used as a key for the AES-CBC-128 encryption algorithm.
Send the new master encryption key to the C&C server through POST request
The ransomware sends packets to the C&C server using HTTP POST requests on the default TCP/80 port
C&C servers are located on the Tor network; the malware communicates with the C&Cs via public tor2web services.
the unpacked file's detection names reveal its actual behavior -- downloading other malware.
Avalanche used fast-flux DNS, a technique to hide the criminal servers, behind a constantly changing network of compromised systems acting as proxies.
the ability to encrypt files while offline – i.e., C&C communication is not mandatory to initiate the encryption process.
The ransomware communicates with the C&C server to send information about the encryption keys, infected machine and the malware itself.
The ransomware performs disk encryption operations using an AES-CBC-128 algorithm with the previously generated random keys. | The file header that stores encryption-related information and encrypted data are stored in the original file.
This thread is responsible for removing shadow copies on the affected system to avoid restoring encrypted files from backup.
47 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
35 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.