Partner Perspectives  Connecting marketers to our tech communities.
4/6/2015
10:00 AM
John Bambenek
John Bambenek
Partner Perspectives
Connect Directly
Twitter
RSS
50%
50%

Principles of Malware Sinkholing

The process of sinkholing is an important tool to have in your arsenal when dealing with emerging threats.

With malware dependency on domain name systems (DNS) and the use of domain generation algorithms (DGAs) on the rise, we’ve also seen an increase in the use of sinkholing as a defense and intelligence-gathering technique.

Sinkholing is a tactic used to redirect traffic from infected machines to a system under the control of a defender or researcher. Generally, sinkholing takes two forms: internal (where you only manipulate victim machines within your own organization) and external (where you manipulate victim machines on the Internet).

Internal sinkholing is valuable to identify infected machines on the network and to sever the adversarial control of them. Organizations generally have complete control over their networks, so they can redirect traffic bound for an external malicious IP to an internal sinkhole, as well as use malicious-domain lists and their internal DNS resolver to redirect traffic. It can be valuable for many reasons, from defense to intelligence.

For instance, seeing traffic redirected from an internal victim would provide the ability to see attributes of the traffic such as user-agent or path that could be fed into Web proxies to find other victims or to block the traffic outright.

The more controversial option is external sinkholing, which usually involves registering known malicious domains. This can be accomplished by picking up malicious domains as they expire or by registering domains in a DGA, as adversaries generally do not register all that’s available.

While sinkholing may seem complicated, generally most malware uses HTTP/HTTPS to communicate with its controller. This means running a sinkhole can be as simple as running Apache or nginx on the appropriate ports and monitoring the access logs.

Simple Execution, Complex Risks

Although sinkholing is simple to execute, complex risks can be involved. First, some obvious legal issues may crop up with external sinkholing; for example, victim machines are now contacting a server you control. If, for instance, you use external sinkholing to control victim machines that do not belong to your organization -- even if it’s for benefit -- it’s a criminal act in most jurisdictions. This holds true even if there is a “self-destruct” feature in the malware that will uninstall itself when given the command to do so.

In addition, a “legitimate” sinkhole can be indistinguishable from a malicious controller. To counter this, many sinkholes will self-identify as such, usually from reverse DNS or by using name-servers that make it clear they are not malicious systems.

Another issue is victim notification. A sinkhole operator has visibility into which organizations and networks have infected machines, and many of those networks are likely unaware they have an infection. To address this, most defenders and researchers find a mechanism to report to victims that they have a problem. For example, they run victim IP addresses through an IP to ASN (access service network) service and report the information to the appropriate contacts. Shadowserver, which operates its own sinkholes, even offers a service that allows network owners to receive reports on their networks.

Finally, there’s the issue of basic operational security. By registering a domain in a DGA, the adversary is able to determine that their DGA has been reversed and people are monitoring them. While not common, some adversaries do frequently change their DGAs when they feel their infrastructure is getting too much attention. For example, during the CryptoLocker investigation, the ratio of domains registered to sinkholes to domains that were actually malicious was approximately 125:1.

It should also be pointed out that some global top-level domains (TLDs) do not offer WHOIS privacy protection, which means the domain either has to be registered under a fake identity or the identity of a real person.

Reward: Valuable Threat Intelligence

Despite the inherent risks, valuable intelligence can be gained from running an external sinkhole. Just victim counts and geographic distribution alone can be enough to get law enforcement engaged on a particular threat. The ability to see how traffic communicates to a potential controller is also useful for crafting defenses.

Additionally, this information can be important to the security community at large. Organizations generally all face the same threats, and by sharing information gleaned from sinkholing, a certain economy of scale can be realized without the need for all organizations to undertake the same research. Instead, they are able to rely on privately shared information to deal with common threats.

Ultimately, sinkholing is an important tool to have in your arsenal when dealing with emerging threats.

John Bambenek is a Senior Threat Researcher at Fidelis Cybersecurity. His areas of specialty include digital forensics, global cybercrime investigation, and threat intelligence. He has developed open source feeds of threat intelligence data and works with law enforcement ... View Full Bio
Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
Register for Dark Reading Newsletters
Partner Perspectives
What's This?
Fidelis Cybersecurity provides organizations with a robust, comprehensive portfolio of products, services, and expertise to combat today's sophisticated advanced threats and prevent data breaches. Our commercial enterprise and government customers around the globe can face advanced threats with confidence through use of our Network Defense and Forensics Services – delivered by an elite team of security professionals with decades of hands-on experience – and our award-winning Fidelis XPS™ Advanced Threat Defense Products, which provide visibility and control over the entire threat life cycle.
Featured Writers
White Papers
Video
Cartoon
Current Issue
5 Security Technologies to Watch in 2017
Emerging tools and services promise to make a difference this year. Are they on your company's list?
Flash Poll
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2013-7445
Published: 2015-10-15
The Direct Rendering Manager (DRM) subsystem in the Linux kernel through 4.x mishandles requests for Graphics Execution Manager (GEM) objects, which allows context-dependent attackers to cause a denial of service (memory consumption) via an application that processes graphics data, as demonstrated b...

CVE-2015-4948
Published: 2015-10-15
netstat in IBM AIX 5.3, 6.1, and 7.1 and VIOS 2.2.x, when a fibre channel adapter is used, allows local users to gain privileges via unspecified vectors.

CVE-2015-5660
Published: 2015-10-15
Cross-site request forgery (CSRF) vulnerability in eXtplorer before 2.1.8 allows remote attackers to hijack the authentication of arbitrary users for requests that execute PHP code.

CVE-2015-6003
Published: 2015-10-15
Directory traversal vulnerability in QNAP QTS before 4.1.4 build 0910 and 4.2.x before 4.2.0 RC2 build 0910, when AFP is enabled, allows remote attackers to read or write to arbitrary files by leveraging access to an OS X (1) user or (2) guest account.

CVE-2015-6333
Published: 2015-10-15
Cisco Application Policy Infrastructure Controller (APIC) 1.1j allows local users to gain privileges via vectors involving addition of an SSH key, aka Bug ID CSCuw46076.

Dark Reading Radio
Archived Dark Reading Radio
In past years, security researchers have discovered ways to hack cars, medical devices, automated teller machines, and many other targets. Dark Reading Executive Editor Kelly Jackson Higgins hosts researcher Samy Kamkar and Levi Gundert, vice president of threat intelligence at Recorded Future, to discuss some of 2016's most unusual and creative hacks by white hats, and what these new vulnerabilities might mean for the coming year.