Attacks/Breaches

12/13/2017
08:20 PM
Connect Directly
Google+
Twitter
RSS
E-Mail
50%
50%

Malware Decompiler Tool Goes Open Source

Avast's RetDec machine-code decompiler now available for free on Github.

Anti-malware vendor Avast has donated its homegrown malware decompiler tool to the open-source community.

Avast's RetDec basically converts a piece of malware into a higher-level programming language and helps malware analysts unmask the inner workings and functions of its code. "It turns it into something that looks like the original source code," says Jakub Kroustek, threat lab team lead at Avast. "It's much easier" and more efficient to sleuth just what the malware can do when it's decompiled, he notes.

"We're facing millions of new samples of malware each day. We're not deeply analyzing all of them, but by using decompilation we can handle some" more closely and quickly, says Kroustek, founder of the tool.

Researchers at Avast used the tool to decompile ransomware strains including Apocalypse, BadBlock, Bart, CrySIS, and TeslaCrypt, and then offer free decryption tools for the ransomware.

Decompiler tools provide static analysis of code, where researchers don't actually run the code but instead study it, up close. Dynamic analysis is another method, where a researcher executes malicious code in the safety of a sandbox environment to study how it runs in action. "Sometimes it's right to use a sandbox, and other times it's beneficial to use a decompiler," he says. "In my case, I usually use both. When you're fighting bad guys, you trying using every leverage" you can, he says.

RetDec was first created in 2011 by researchers at the Czech Republic's Brno University of Technology and AVG Technologies, and the tool became Avast's last year after it acquired AVG. Kroustek says Avast hopes to get other security experts to help further its development as an open source tool, which is aimed at researchers and reverse-engineers.  

Decompilation tools are nothing new. There are commercial products, which can be pricey and limited in customization, Kroustek says, while there are other open-source decompiler tools such as DCC, Boomerang, and Snowman, for example.

"While good decompilation tools are available that deliver good results, many are paid products, however, these cannot be easily extended with custom features," he says. "On the other hand, users can utilize existing, free, open-source decompilers, but these do not always achieve proper stability, code readability and quality."

John Bambanek, threat systems manager with Fidelis Cybersecurity, who also teaches at the University of Illinois at Urbana-Champaign, says an open-source decompiler such as Avast's can be especially helpful for academia. "I have limited funds and buying a bunch of IDA [Hex-Rays decompiler product] seats isn't going to happen. With something open-source, assuming it can get the job done, [the tool can] "provide a great resource for me to produce more reverse engineers," he says.

Avast says the now open-source tool works on multiple architectures, file formats, and operating systems, and can be used for more than decompilation, too. It uses C and Python-type language for output, and runs on Linux and Windows platforms. RetDec source code and related tools are available now on GitHub, under an MIT license.

"If someone isn't focused on decompilers, he or she can just use the libraries for detection of particular patterns" in the malware, for example, Kroustek says.

Related Content:

Kelly Jackson Higgins is Executive Editor at DarkReading.com. She is an award-winning veteran technology and business journalist with more than two decades of experience in reporting and editing for various publications, including Network Computing, Secure Enterprise ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
REISEN1955
50%
50%
REISEN1955,
User Rank: Ninja
12/15/2017 | 8:29:48 AM
Shareware
Had to laugh at this --- when malware scripting tools show up as shareware (anybody here remember a wonderful catalog PUBLIC BRAND SOFTWARE ) then we are ALL in trouble. 
12 Free, Ready-to-Use Security Tools
Steve Zurier, Freelance Writer,  10/12/2018
Most IT Security Pros Want to Change Jobs
Dark Reading Staff 10/12/2018
Most Malware Arrives Via Email
Dark Reading Staff 10/11/2018
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Write a Caption, Win a Starbucks Card! Click Here
Latest Comment: This comment is waiting for review by our moderators.
Current Issue
Flash Poll
The Risk Management Struggle
The Risk Management Struggle
The majority of organizations are struggling to implement a risk-based approach to security even though risk reduction has become the primary metric for measuring the effectiveness of enterprise security strategies. Read the report and get more details today!
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2018-17534
PUBLISHED: 2018-10-15
Teltonika RUT9XX routers with firmware before 00.04.233 provide a root terminal on a serial interface without proper access control. This allows attackers with physical access to execute arbitrary commands with root privileges.
CVE-2018-17980
PUBLISHED: 2018-10-15
NoMachine before 5.3.27 and 6.x before 6.3.6 allows attackers to gain privileges via a Trojan horse wintab32.dll file located in the same directory as a .nxs file, as demonstrated by a scenario where the .nxs file and the DLL are in the current working directory, and the Trojan horse code is execute...
CVE-2018-18259
PUBLISHED: 2018-10-15
Stored XSS has been discovered in version 1.0.12 of the LUYA CMS software via /admin/api-cms-nav/create-page.
CVE-2018-18260
PUBLISHED: 2018-10-15
In the 2.4 version of Camaleon CMS, Stored XSS has been discovered. The profile image in the User settings section can be run in the update / upload area via /admin/media/upload?actions=false.
CVE-2018-17532
PUBLISHED: 2018-10-15
Teltonika RUT9XX routers with firmware before 00.04.233 are prone to multiple unauthenticated OS command injection vulnerabilities in autologin.cgi and hotspotlogin.cgi due to insufficient user input sanitization. This allows remote attackers to execute arbitrary commands with root privileges.