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
Election Websites, Back-End Systems Most at Risk of Cyberattack in Midterms
Kelly Jackson Higgins, Executive Editor at Dark Reading,  8/14/2018
Register for Dark Reading Newsletters
White Papers
Video
Cartoon Contest
Current Issue
Flash Poll
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2017-13106
PUBLISHED: 2018-08-15
Cheetahmobile CM Launcher 3D - Theme, wallpaper, Secure, Efficient, 5.0.3, 2017-09-19, Android application uses a hard-coded key for encryption. Data stored using this key can be decrypted by anyone able to access this key.
CVE-2017-13107
PUBLISHED: 2018-08-15
Live.me - live stream video chat, 3.7.20, 2017-11-06, Android application uses a hard-coded key for encryption. Data stored using this key can be decrypted by anyone able to access this key.
CVE-2017-13108
PUBLISHED: 2018-08-15
DFNDR Security Antivirus, Anti-hacking & Cleaner, 5.0.9, 2017-11-01, Android application uses a hard-coded key for encryption. Data stored using this key can be decrypted by anyone able to access this key.
CVE-2017-13100
PUBLISHED: 2018-08-15
DistinctDev, Inc., The Moron Test, 6.3.1, 2017-05-04, iOS application uses a hard-coded key for encryption. Data stored using this key can be decrypted by anyone able to access this key.
CVE-2017-13101
PUBLISHED: 2018-08-15
Musical.ly Inc., musical.ly - your video social network, 6.1.6, 2017-10-03, iOS application uses a hard-coded key for encryption. Data stored using this key can be decrypted by anyone able to access this key.