Connect with us

Hi, what are you looking for?

SecurityWeekSecurityWeek

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 google.com and microsoft.com 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.

Advertisement. Scroll to continue reading.

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

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.

Organizations are investing heavily in third-party risk management, but breaches, delays, and blind spots continue to persist. Join this live webinar as we examine the gap between how organizations think their third-party risk programs are performing and what’s actually happening in practice.

Register

Delve into big-picture strategies to reduce attack surfaces, improve patch management, conduct post-incident forensics, and tools and tricks needed in a modern organization.

Register

People on the Move

Tim Byrd has been appointed Chief Information Security Officer at First Citizens Bank.

IRONSCALES has named Steve McKenzie as Chief Operating Officer.

Silvio Pappalardo has joined AuthMind as 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.