Vulnerabilities / Threats

1/5/2017
08:31 PM
Connect Directly
Twitter
LinkedIn
RSS
E-Mail
50%
50%

Ghost Hosts Bypass URL Filtering

Malware authors have found a way to evade URL-blocking systems by swapping bad domain names with unknown ones.

For some time now URL filtering techniques have provided a fairly reliable way for organizations to block traffic into their network from domains that are known to be malicious. But as with almost every defense mechanism, threat actors appear to have found a way around that as well.

Security researchers from Cyren are warning about a new tactic for fooling Web security and URL--filtering systems. The technique, which Cyren has dubbed "Ghost Host," is designed to evade host and domain blacklists by swapping bad domain names and inserting random, non-malicious host names in the HTTP host field instead.

The objective is to evade host and domain blacklists by resetting the host name with a benign one, even when the actual connection is to a malicious command and control IP, according to a Cyren blog post today.

“Ghost hosts are unknown or known-benign host names used by malware for evading host and URL blacklists,” says Geffen Tzur, a security researcher at Cyren.

“The malware will use a ghost host in the HTTP header, but actually connect to a different destination, hosted on a different IP,” he says.  This way, network security systems that inspect the HTTP "host" header will not notice the underlying connection to the malicious IP, and will allow the connection, he says.

According to Tzur, Cyren stumbled upon the new detection evasion technique while analyzing the behavior of Necurs, an especially persistent botnet that is being used to distribute spam, ransomware, and other malware.

The malicious destination IP address, to which compromised machines was being directed to, was the same as the one used for establishing the connection in the first place. But by using a ghost host, the threat actors were able to hide that fact, Tzur says.

“Since the ghost hosts have no effect on the established connection, they may be used with other IP addresses,” he says. That means there’s no way to confirm if ghost hosts are paired to the underlying IPs, he says.

According to Tzur, malware authors can manipulate HTTP requests at their will to fool URL filtering systems. They can employ an HTTP client, which connects to one malicious IP and sends HTTP requests with customized headers. The unknown hosts are inserted during request creation.

“Malware authors can manipulate the HTTP request at their will. They can employ an HTTP client which connects to one malicious IP and sends HTTP requests with customized headers,” he says. “The unknown hosts are inserted during request creation and are probably hardcoded.”

Tzur says there have been no previously reported incidents he knows of where malware actors have attempted to fool detection systems by inserting benign names in the HTTP host field.

“It is as easy as using any open source HTTP client which features header manipulation,” Tzur says, and there are multiple HTTP client implementations that allow this sort of manipulation.

Botnet owners can benefit from the technique in multiple ways. The most obvious one is that URL filtering systems will not block ghost hostnames. Cyren checked to see whether popular URL filtering systems detected the ghost host names, and none of them did.

Related stories:

 

Jai Vijayan is a seasoned technology reporter with over 20 years of experience in IT trade journalism. He was most recently a Senior Editor at Computerworld, where he covered information security and data privacy issues for the publication. Over the course of his 20-year ... View Full Bio

Comment  | 
Print  | 
More Insights
Comments
Newest First  |  Oldest First  |  Threaded View
FTC Opens Probe into Equifax Data Breach
Jai Vijayan, Freelance writer,  9/14/2017
Equifax CIO, CSO Step Down
Dark Reading Staff 9/15/2017
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
Security Vulnerabilities: The Next Wave
Just when you thought it was safe, researchers have unveiled a new round of IT security flaws. Is your enterprise ready?
Flash Poll
[Strategic Security Report] How Enterprises Are Attacking the IT Security Problem
[Strategic Security Report] How Enterprises Are Attacking the IT Security Problem
Enterprises are spending more of their IT budgets on cybersecurity technology. How do your organization's security plans and strategies compare to what others are doing? Here's an in-depth look.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-0290
Published: 2017-05-09
NScript in mpengine in Microsoft Malware Protection Engine with Engine Version before 1.1.13704.0, as used in Windows Defender and other products, allows remote attackers to execute arbitrary code or cause a denial of service (type confusion and application crash) via crafted JavaScript code within ...

CVE-2016-10369
Published: 2017-05-08
unixsocket.c in lxterminal through 0.3.0 insecurely uses /tmp for a socket file, allowing a local user to cause a denial of service (preventing terminal launch), or possibly have other impact (bypassing terminal access control).

CVE-2016-8202
Published: 2017-05-08
A privilege escalation vulnerability in Brocade Fibre Channel SAN products running Brocade Fabric OS (FOS) releases earlier than v7.4.1d and v8.0.1b could allow an authenticated attacker to elevate the privileges of user accounts accessing the system via command line interface. With affected version...

CVE-2016-8209
Published: 2017-05-08
Improper checks for unusual or exceptional conditions in Brocade NetIron 05.8.00 and later releases up to and including 06.1.00, when the Management Module is continuously scanned on port 22, may allow attackers to cause a denial of service (crash and reload) of the management module.

CVE-2017-0890
Published: 2017-05-08
Nextcloud Server before 11.0.3 is vulnerable to an inadequate escaping leading to a XSS vulnerability in the search module. To be exploitable a user has to write or paste malicious content into the search dialogue.