10:22 AM

Darkleech Attacks Hit 20,000 Websites

Malicious Apache modules, installed after root-level server compromises, are serving hard-to-detect real-time malware attacks against Windows users.

An estimated 20,000 legitimate websites that use Apache HTTP server software have been compromised in an attack campaign known as "Darkleech," which uses the sites to launch drive-by malware attacks against visitors.

"Thousands of Web servers across the globe running Apache 2.2.2 and above are infected with an SSHD backdoor that allows remote attackers to upload and configure malicious Apache modules," said Mary Landesman, a senior security researcher with the TRAC team at Cisco, in a blog post. "These modules are then used to turn hosted sites into attack sites, dynamically injecting iFrames in real-time, only at the moment of visit."

The Darkleech campaign is widespread and has infected sites around the world -- from Cyprus and Denmark to Italy and Thailand. That said, according to Cisco, from February 1, 2013, to March 15, 2013, 58% of the servers being used to launch the module injection attacks were based in the United States, followed by the United Kingdom (10%), Germany (9%) and Canada (3%).

[ Muslim hacktivists continue takedowns. Read Bank DDos Attacks Resume: Wells Fargo Confirms Disruptions. ]

Fraser Howard, a principal virus researcher at security firm Sophos, in early March 2013 reported that various attack modules -- later identified as being part of the Darkleech campaign -- were using JavaScript to inject malicious iFrames and redirect visitors to the Blackhole crimeware kit. Malicious iFrame attacks, which a website visitor wouldn't be able to see, use a malicious script embedded in a Web page to connect with a feeder site and download further malicious code.

At the time, Fraser said that the related iFrame attacks were "the most prevalent Web threat detected on customer endpoints and Web appliances for the past few weeks, accounting for almost 30% of all detected Web threats." At least in part, that prevalence can be traced to the popularity of the Apache server software itself, which as of April 2013 -- according to Internet research firm Netcraft -- was used by about 50% of all websites in the world.

This is far from the first iFrame exploit campaign that's been discovered targeting Apache servers. But the Darkleech campaign's real-time attack techniques, coupled with attackers' root-level access to compromised Apache servers, could make eradicating the campaign quite difficult. "Because the iFrames are dynamically injected only when the pages are accessed, this makes discovery and remediation particularly difficult," said Cisco's Landesman.

"Given that these are dynamically generated, there would be no viable means to do a search to ferret them out on Google, etc.," she told Ars Technica, which first pieced together the extent of the Darkleech campaign.

In addition, "the attackers employ a sophisticated array of conditional criteria to avoid detection," said Landesman in her blog post. Those techniques include blacklisting IP addresses that belong to security researchers, owners of the data centers on which compromised domains are hosted, and search engine spiders. Attackers are also restricting the attacks to target only Windows systems as well as website visitors who appear to have arrived at a site via a search engine. Finally, the attack reviews a user's cookies to see if they're a longtime visitor to the site. If not, the target gets added to a "wait list" for later attack.

But the attacks do have a recognizable signature, and Landesman has developed a search string that can be used to identify some of them. "When the iFrame is injected on the page, the convention used for the reference link in the injected iFrame is IP/hex/q.php," she said, offering the following URL -- which is currently serving the attack -- as an example: ""

That site -- along with multiple other sites that have been compromised by Darkleech attackers -- is hosted by Albuquerque, N.M.-based Oso Grande Technologies. An email sent to the company's network operations center (out of business hours), asking if the company was aware that its servers were being used to host multiple Darkleech attacks and if it was remediating the attacks wasn't immediately returned.

Administrators of any site that's serving Darkleech infections will need to coordinate with their hosting provider to deal with the compromise, which actually affects the hosting company's system. Remediating the attacks will also require root-level access to servers, which a hosting client typically won't enjoy.

As that suggests, coordinating related cleanup efforts could prove difficult. "Even if website owners/operators suspect the host server may be the source, they would still need to convince the hosting provider, who may discount their report," said Landesman. "Even if the hosting provider is responsive, the malicious Apache modules and associated SSHD backdoor may be difficult to ferret out, and the exact method will vary depending on server configuration."

Landesman is referring to attackers' use of a secure shell daemon (SSHD), which is a network protocol for encrypting traffic between a Web server and a client, to provide them with access to compromised sites. "Since SSHD is compromised, remediation of the attack and preventing further occurrences may require considerable procedural changes that, if not carried out properly, could cause a privilege lockout for valid administrators or be ineffective and lead to continued compromise," she said.

Furthermore, according to a January blog post from Daniel Cid, CTO at security firm Securi, attackers appear to have installed their own SSHD software on compromised machines. "We have noticed that they are modifying all SSH binaries and inserting a version that gives them full access back to the server," he said. "The modifications not only allow them to remote into the server bypassing existing authentication controls, but also allow them to steal all SSH authentications and push it to their remote servers." As a result, attackers have likely also been able to compromise all administrator credentials -- including hosting customers' usernames and passwords -- on affected systems.

Attend Interop Las Vegas May 6-10 and learn the emerging trends in information risk management and security. Use Priority Code MPIWK by March 22 to save an additional $200 off the early bird discount on All Access and Conference Passes. Join us in Las Vegas for access to 125+ workshops and conference classes, 300+ exhibiting companies, and the latest technology. Register today!

Comment  | 
Print  | 
More Insights
Newest First  |  Oldest First  |  Threaded View
Register for Dark Reading Newsletters
White Papers
Current Issue
Security Operations and IT Operations: Finding the Path to Collaboration
A wide gulf has emerged between SOC and NOC teams that's keeping both of them from assuring the confidentiality, integrity, and availability of IT systems. Here's how experts think it should be bridged.
Flash Poll
New Best Practices for Secure App Development
New Best Practices for Secure App Development
The transition from DevOps to SecDevOps is combining with the move toward cloud computing to create new challenges - and new opportunities - for the information security team. Download this report, to learn about the new best practices for secure application development.
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
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...

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.

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.

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.

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.