Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

Malware & Threats

Flaw in Linux Encryption Ransomware Exposes Decryption Key

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.

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).”

Advertisement. Scroll to continue reading.

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.

Written By

Eduard Kovacs (@EduardKovacs) is senior managing editor at SecurityWeek. He worked as a high school IT teacher before starting a career in journalism in 2011. Eduard holds a bachelor’s degree in industrial informatics and a master’s degree in computer techniques applied in electrical engineering.

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing for the latest cybersecurity threats, trends, and expert insights.

Click to comment

Trending

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest threats, trends, and technology, along with insightful columns from industry experts.

Join this live webinar as we explore if detection-first security operations can keep pace with AI, or if it’s time to rethink prevention as the strongest default.

Register

CodeSecCon bridges the gap between dev and security. Discover best practices for secure coding, innovative risk-reduction tools, and safe AI integration to cultivate a true DevSecOps culture. Safely secure your apps!

Register

People on the Move

Dali Rajic is joining OpenAI as Chief Revenue Officer.

Erika Dean has been appointed Chief Information Security Officer at Tricentis.

C1 has named Jeff St. Clair Chief Revenue Officer.

More People On The Move

Expert Insights

Daily Briefing Newsletter

Subscribe to the SecurityWeek Email Briefing to stay informed on the latest cybersecurity news, threats, and expert insights. Unsubscribe at any time.