Connect with us

Hi, what are you looking for?


Malware & Threats

Researchers Build Configuration Extractor for Locky Ransomware

Researchers from Cisco Talos have created a new tool that allows users to extract the configuration of the Locky ransomware.

Researchers from Cisco Talos have created a new tool that allows users to extract the configuration of the Locky ransomware.

Dubbed LockyDump, the open source utility comes with support for all known Locky variants (those using the .locky, .zepto and .odin extensions). With the help of the tool, researchers can run Locky samples in virtualized environments and dump the configuration parameters for it, including the AffilID associated with the sample.

First seen in February this year, Locky has become one of the most active ransomware families out there, thanks mainly to frequent switching between different types of malicious attachments in spam emails. Cybercriminals have used Office documents with malicious macros, JavaScript attachments, Windows Script Files (WSF), and even DLLs to avoid detection.

According to the security researchers, the data that can be extracted with this tool includes the Affiliate ID in the Locky binary; the seed value that relies on a Domain Generation Algorithm (DGA) for command and control (C&C) communication; and the flags used to save on the infected machine, achieve persistence, or terminate the process on systems using the Russian language pack.

Moreover, LockyDump can be used to extract the URI path used to send requests to the C&C server; the hardcoded IPs of C&C used to retrieve DGA information; the RSA key used for encryption, along with its size and prime number; the ransom note displayed after encryption; and the ransom payment gateway address (which are located on the Tor network).

“Obtaining the affiliate information for individual samples allows the historical tracking of Locky affiliates to identify trends and other characteristics on an individual affiliate basis such as their primary distribution method of choice e.g. through the use of Exploit Kits (EKs) or spam/phishing email,” Talos security researchers explain.

Because Locky has been distributed as both Win32 executables and DLLs, LockyDump has been designed to use two separate analysis methods. Built as a PE32 Windows binary application that requires the execution of the malware for a successful extraction process, the tool is limited to Windows systems and only to those that can be compromised by Locky, Talos explains.

Advertisement. Scroll to continue reading.

The tool can be set to extract the Verbose Output and Locky Unpacking from the Locky sample, and these options can be configured using Windows environment variables prior to the execution of LockyDump. The first option will print the ransom note image and ransom note HTML to stdout, while the second saves the unpacked Locky file as DUMPED_IMAGE.DLL in the current working directory.

Cisco Talos researchers highly recommend the use of a virtualized environment when running both Locky and LockyDump for the extraction of the configuration information from memory. The extractor, which is available via GitHub, is executed via command line, and the optional features can be set using command line as well.

“The release of this tool coincides with a large downturn in spam-based Locky distribution that we have observed over the last week. With this in mind be aware that the ever evolving Locky could come back sooner or later with a different method of configuration inclusion which would potentially prevent this tool from working. In that instance we will aim to release an updated version that can continue to operate correctly and as intended,” Talos concludes.

Related: Locky Ransomware Switches to DLLs for Distribution

Related: Locky Ransomware Drops Offline Mode

Written By

Ionut Arghire is an international correspondent for SecurityWeek.

Click to comment

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.

SecurityWeek’s Threat Detection and Incident Response Summit brings together security practitioners from around the world to share war stories on breaches, APT attacks and threat intelligence.


Securityweek’s CISO Forum will address issues and challenges that are top of mind for today’s security leaders and what the future looks like as chief defenders of the enterprise.


Expert Insights

Related Content


The changing nature of what we still generally call ransomware will continue through 2023, driven by three primary conditions.


A recently disclosed vBulletin vulnerability, which had a zero-day status for roughly two days last week, was exploited in a hacker attack targeting the...


No one combatting cybercrime knows everything, but everyone in the battle has some intelligence to contribute to the larger knowledge base.

Malware & Threats

Threat actors are increasingly abusing Microsoft OneNote documents to deliver malware in both targeted and spray-and-pray campaigns.

Malware & Threats

Unpatched and unprotected VMware ESXi servers worldwide have been targeted in a ransomware attack exploiting a vulnerability patched in 2021.

Malware & Threats

A vulnerability affecting IBM’s Aspera Faspex file transfer solution, tracked as CVE-2022-47986, has been exploited in attacks.


The recent ransomware attack targeting Rackspace was conducted by a cybercrime group named Play using a new exploitation method, the cloud company revealed this...

Application Security

Virtualization technology giant VMware on Tuesday shipped urgent updates to fix a trio of security problems in multiple software products, including a virtual machine...