‘Ghost Hosts’ Bypass URL Filtering

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

3 Min Read
Dark Reading logo in a gray background | Dark Reading

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:

 

About the Author

Jai Vijayan, Contributing Writer

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 career at Computerworld, Jai also covered a variety of other technology topics, including big data, Hadoop, Internet of Things, e-voting, and data analytics. Prior to Computerworld, Jai covered technology issues for The Economic Times in Bangalore, India. Jai has a Master's degree in Statistics and lives in Naperville, Ill.

Keep up with the latest cybersecurity threats, newly discovered vulnerabilities, data breach information, and emerging trends. Delivered daily or weekly right to your email inbox.

You May Also Like


More Insights