The recently uncovered file-encrypting ransomware Linux.Encoder1 is plagued by a flaw that can be used to recover the files held for ransom by the threat.
Russian antivirus company Doctor Web reported last week that the Linux ransomware appears to be mainly targeted at website administrators whose computers store web server software. The threat encrypts files found in the root and home folders, and files in directories used to store web servers, websites, backups, and source code.
The malware, reportedly distributed via a vulnerability in eBay’s Magento ecommerce platform, demands the payment of one Bitcoin ($380) in exchange for the key needed to recover the files.
Linux.Encoder1 encrypts documents, applications, source code and media files using the AES-128 encryption algorithm with a key that is generated locally on the victim’s device. The AES key is then encrypted with an RSA key to ensure that the files cannot be recovered without paying the ransom.
Cracking RSA and AES encryption is nearly impossible and the RSA private key needed to decrypt the AES key is only stored on the attacker’s machine. However, researchers at Bitdefender discovered a flaw in the way the AES key is generated.
“We realized that, rather than generating secure random keys and [initialization vectors], the sample would derive these two pieces of information from the libc rand() function seeded with the current system timestamp at the moment of encryption. This information can be easily retrieved by looking at the file’s timestamp,” Bitdefender said. “This is a huge design flaw that allows retrieval of the AES key without having to decrypt it with the RSA public key sold by the Trojan’s operator(s).”
The security firm has released a decryption tool that automatically restores files encrypted by Linux.Encoder1. A script and usage instructions are available on Bitdefender’s website.
Researchers have pointed out that cybercriminals usually pay great attention to how keys are generated. That is why Linux users are advised never to execute untrusted applications with root privileges, and perform regular backups that will allow them to recover their files in case they fall victim to ransomware.
Bitdefender also released on Monday a piece of software designed to prevent the recently launched CryptoWall 4.0 from encrypting files. Currently, there is no way of recovering Cryptowall-encrypted files without paying the ransom, which is why users are advised to add an extra layer of protection designed to block file encryption attempts.

Eduard Kovacs (@EduardKovacs) is a contributing editor at SecurityWeek. He worked as a high school IT teacher for two years before starting a career in journalism as Softpedia’s security news reporter. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.
More from Eduard Kovacs
- Unpatched Security Flaws Expose Water Pump Controllers to Remote Hacker Attacks
- 3CX Confirms Supply Chain Attack as Researchers Uncover Mac Component
- OpenSSL 1.1.1 Nears End of Life: Security Updates Only Until September 2023
- Google Links More iOS, Android Zero-Day Exploits to Spyware Vendors
- ChatGPT Data Breach Confirmed as Security Firm Warns of Vulnerable Component Exploitation
- Thousands Access Fake DDoS-for-Hire Websites Set Up by UK Police
- Intel Boasts Attack Surface Reduction With New 13th Gen Core vPro Platform
- Dole Says Employee Information Compromised in Ransomware Attack
Latest News
- Unpatched Security Flaws Expose Water Pump Controllers to Remote Hacker Attacks
- 500k Impacted by Data Breach at Debt Buyer NCB
- Chinese Cyberspies Use ‘Melofee’ Linux Malware for Stealthy Attacks
- Why Endpoint Resilience Matters
- Microsoft Cloud Vulnerability Led to Bing Search Hijacking, Exposure of Office 365 Data
- 3CX Confirms Supply Chain Attack as Researchers Uncover Mac Component
- UK Introduces Mass Surveillance With Online Safety Bill
- Musk, Scientists Call for Halt to AI Race Sparked by ChatGPT
