Apache binaries replaced by stealth malcious ones

Posted by   Virus Bulletin on   Apr 30, 2013

Malicious servers opening backdoors, performing redirects.

Researchers at ESET and Sucuri have discovered a modified Apache binary that is used on hundreds of web servers to perform malicious redirects and open a backdoor to the server, while going to great lengths to hide its activity.

Recently, thousands of websites - most prominently that of the LA Times - have been compromised and malicious Apache modules installed to serve malware to visitors of the sites.

But this new attack goes a step further: rather than adding modules, it replaces the Apache binary itself. Through a special HTTP GET request, the attacker can open a backdoor and thus control the behaviour of the server. As this request doesn't appear in the HTTP logs and the configuration is only stored in shared memory, barely any trace of the command and control communication is left on the server.

The compromised servers are then used to redirect users to both spam sites and the 'Blackhole' exploit kit. Again, the malware authors have gone to a lot of effort to prevent their activity from being detected: redirects are only performed once for each IP address, whereas no redirects are performed on pages typically visited by the site's administrator, thus making it less likely for them to discover that something is amiss.

For now, the question of how the machines are compromised in the first place remains unanswered. Malware and keyloggers stealing FTP and login credentials are a known problem, but these usually wouldn't provide the attackers with the root access needed to replace the Apache binary. It could of course be that these sites use the same password for root, or have passwordless sudo set up, but it may also be the case that another vulnerability is being used to escalate the attacker's privileges.

While one may start to wonder whether it is time to run security software on web servers, administrators of servers running Apache are urged to check if their server is infected; ESET has provided a simple Python script for this purpose.

More at ESET's We Live Security blog here and at Sucuri's blog here.

Posted on 30 April 2013 by Martijn Grooten

twitter.png
fb.png
linkedin.png
hackernews.png
reddit.png

 

Latest posts:

VB2018 paper: Lazarus Group: a mahjong game played with different sets of tiles

The Lazarus Group, generally linked to the North Korean government, is one of the most notorious threat groups seen in recent years. At VB2018 ESET researchers Peter Kálnai and Michal Poslušný presented a paper looking at the group's various…

Book your VB2019 ticket now for a chance to win a ticket for BSides London

Virus Bulletin is proud to sponsor this year's BSides London conference, which will take place next week, and we have a number of tickets to give away.

First 11 partners of VB2019 announced

We are excited to announce the first 11 companies to partner with VB2019, whose support will help ensure a great event.

VB2018 paper: Fake News, Inc.

A former reporter by profession, Andrew Brandt's curiosity was piqued when he came across what appeared at first glance to be the website of a small-town newspaper based in Illinois, but under scrutiny, things didn’t add up. At VB2018 he presented a…

Paper: Alternative communication channel over NTP

In a new paper published today, independent researcher Nikolaos Tsapakis writes about the possibilities of malware using NTP as a covert communication channel and how to stop this.

We have placed cookies on your device in order to improve the functionality of this site, as outlined in our cookies policy. However, you may delete and block all cookies from this site and your use of the site will be unaffected. By continuing to browse this site, you are agreeing to Virus Bulletin's use of data as outlined in our privacy policy.