Virtual Event Today: Supply Chain Security Summit - Register Now

Security Experts:

Connect with us

Hi, what are you looking for?


Malware & Threats

Cisco Cracks GozNym Trojan DGA, Sinkholes Botnet

An extensive analysis of the hybrid Trojan dubbed GozNym has allowed Cisco researchers to reverse engineer its domain generation algorithm (DGA) and start sinkholing botnets that rely on the malware.

An extensive analysis of the hybrid Trojan dubbed GozNym has allowed Cisco researchers to reverse engineer its domain generation algorithm (DGA) and start sinkholing botnets that rely on the malware.

The existence of GozNym, which is a combination between the Nymaim dropper and the Gozi ISFB banking Trojan, was brought to light in April by IBM Security researchers. The malware has been seen targeting the customers of numerous banks in North America and Europe.

Experts from Cisco’s Talos team have analyzed the malware and identified a total of four variants, each using a slightly different version of a DGA.

In the attacks observed by Cisco, cybercriminals delivered GozNym using spear phishing emails containing specially crafted Word documents designed to download and execute a malicious binary via VBA macros. Once it has been successfully deployed on a system, the Trojan hijacks the victim’s browsing session in an effort to redirect them to a phishing website.

GozNym first checks Internet connectivity through a DNS query for and records. It then queries the command and control (C&C) domains generated by its DGA either via a simple gethostbyname API call or via a complex DNS protocol implementation leveraging Google’s DNS servers.

Researchers identified several DGA variants. One of the more interesting DGAs relies on the XORShift pseudorandom number generator (PRNG) to create a list of 15 domain names with a length ranging between 5 and 12 characters and a suffix randomly selected between .net, .com, .in or .pw. The PRNG is seeded using two hardcoded DWORD values and a bit-shifted value of the current day.

Once the 15 domain names are generated, the malware queries each of them to determine if the IP responses are publicly routable. When two different IPs are resolved, they are used in the second stage of the DGA.

The second stage is similar, but it replaces the hardcoded DWORD seeds with the IP addresses obtained in the first stage. In this stage, the malware creates a list of 128 domain names.

The GozNym DGA is complex, but Cisco researchers have identified flaws that allowed them to predict domain names using brute force.

The company has started sinkholing GozNym domains and it wants to do so for every botnet it finds. Cisco’s sinkhole server was contacted more than 23,000 times within the first 24 hours, and since the Trojan is designed to only beacon a domain once, experts believe this represents the approximate number of infected devices.

The connections came from 1,854 unique IP addresses. A majority of them were traced to Germany (47%) and the United States (37%). Some infections were also spotted in Poland, Canada and the United Kingdom.

Cisco has made available several scripts that other researchers can use to analyze GozNym samples, including the DGA and C&C communications.

Written By

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.

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.

Join this webinar to learn best practices that organizations can use to improve both their resilience to new threats and their response times to incidents.


Join this live webinar as we explore the potential security threats that can arise when third parties are granted access to a sensitive data or systems.


Expert Insights

Related Content


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


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


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

Malware & Threats

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

Malware & Threats

Microsoft plans to improve the protection of Office users by blocking XLL add-ins from the internet.


More than 3,800 servers around the world have been compromised in recent ESXiArgs ransomware attacks, which also include an improved process.

Malware & Threats

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

Malware & Threats

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