There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet laptop malware memory modem monitor motherboard netgear network printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless xbox
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Mystery infestation strikes Linux/Apache Web sites

Reply  
Thread Tools
AdvancedSetup's Avatar
Junior Member with 7 posts.
 
Join Date: Dec 2007
Experience: Advanced
26-Jan-2008, 04:07 AM #1
Mystery infestation strikes Linux/Apache Web sites
Mystery infestation strikes Linux/Apache Web sites

Quote:
Mystery infestation strikes Linux/Apache Web sites
By Joe Barr on January 24, 2008 (7:18:05 PM)


According to a press release issued earlier this month by Finjan, a security research firm, compromised Web servers are infecting thousands of visitors daily with malware that turns their Windows machines into unwitting bots to do the bidding of an as yet unidentified criminal organization. Security firms ScanSafe and SecureWorks have since added their own takes on the situation, though with varying estimates on the number of sites affected. All reports thus far say the compromised servers are running Linux and Apache.

According to an article on ServerTune.com, the exploit involves a rootkit installed on the compromised server that replaces several system binaries with infected versions. When the system is booted, the infected binaries are executed, and as a result, dynamically created JavaScript payloads are randomly and intermittently served to site visitors. The malware JavaScript attempts to exploit vulnerabilites in Windows, QuickTime, and Yahoo! Messenger on the visitor's machine in order to infect them.

We asked the Apache Software Foundation if it had any advice on how to detect the rootkit or cleanse a server when it's found. According to Mark Cox of the Apache security team, "Whilst details are thin as to how the attackers gained root access to the compromised servers, we currently have no evidence that this is due to an unfixed vulnerability in the Apache HTTP Server."

We sent a similar query to Red Hat, the largest vendor of Linux, but all its security team could tell us was that "At this point in time we have not had access to any affected machines and therefore cannot give guidance on which tools would reliably detect the rootkit."

cPanel, a popular administration tool used by hosting companies that allows clients to manage their hosted sites, has posted a security note describing what the rootkit does after it's installed, and suggests two ways to check a server for the rootkit.

According to cPanel, if you are unable to create a directory name beginning with a numeral -- as in mkdir 1 -- you're infected. Another test is to monitor the packets from the server with the following tcpdump command:

tcpdump -nAs 2048 src port 80 | grep "[a-zA-Z]\{5\}\.js'"

One great unknown thus far is how the servers come to be infected. Absent any forensic evidence of break-ins, the current thinking is that the malware authors gained access to the servers using stolen root passwords. The earliest known victims, according to quotes by researchers in this ComputerWorld story, were sites run by large hosting companies, which could give attackers root access to hundreds or even thousands of Web sites when compromised.

Other than using and safeguarding secure root passwords, not much can be done at this time to be proactive in preventing servers from being compromised, so searching techniques similar to the tcpdump command above, which check to see if a server has already been compromised, is probably the best course of action available to administrators. We haven't found a good answer yet for disinfecting compromised servers, but a complete reinstall of Linux, Apache, and a new root password would certainly do the trick.
bearqst's Avatar
Member with 162 posts.
 
Join Date: May 2004
Location: Interior Alaska
Experience: Advanced
27-Jan-2008, 12:40 PM #2
Why even allow remote root access would be my first question.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
27-Jan-2008, 02:11 PM #3
Quote:
Originally Posted by bearqst View Post
Why even allow remote root access would be my first question.
Hi bearqst,

The very definition of a web server is to allow remote access, but not remote root access, so, you question would be moot. The issue is not that remote root access was allowed - it wasn't, but it was gained by nefarious method.

The malware penetrated the systems by attacking and specifically targeting Linux/Apache web servers with as yet an undetectable method, unless the root passwords were stolen as the article seems to infer from large hosting companies.

When root kits hide their presence, it is then very difficult to detect them.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
bearqst's Avatar
Member with 162 posts.
 
Join Date: May 2004
Location: Interior Alaska
Experience: Advanced
27-Jan-2008, 03:05 PM #4
Agreed, it was the comment

Quote:
"Whilst details are thin as to how the attackers gained root access to the compromised servers,
that made me ask.
RobLinux's Avatar
Computer Specs
Member with 417 posts.
 
Join Date: Nov 2007
Location: UK
Experience: UNIX/Linux Pro, M$ 'doze Sufferer
03-Feb-2008, 02:05 PM #5
Quote:
Originally Posted by lotuseclat79 View Post
The very definition of a web server is to allow remote access, but not remote root access, so, you question would be moot. The issue is not that remote root access was allowed - it wasn't, but it was gained by nefarious method.
No, the definition of a web server, is that the host servers http requests. "root" access is a policy issue.
Quote:
The malware penetrated the systems by attacking and specifically targeting Linux/Apache web servers with as yet an undetectable method, unless the root passwords were stolen as the article seems to infer from large hosting companies.

In past CGI scripts were often to blame and exploitable, once you're running a shell program on a machine a knowledgeable attacker can probably find an exploit to root access.

When root kits hide their presence, it is then very difficult to detect them.
The suggesion was that stolen root passwords were used to log in. Holes in ftp servers may also be responsible, hosted sites giving access to 1000's of sites tend to have many features any of which could be exploitable.

Configuring, an Intrusion Detection System (I used tripwire long time ago) would actually detect most root kits, though to be 100% you'ld need to boot off read-only media, with a trusted kernel & C library, rather than rely on the "possibly" comprimised machine.

Probably these hosts are run fairly laxly, there's a lot of web servers and it would be suprising if none of them, have been configured imperfactly, or been neglected and allowing a root exploit.
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
03-Feb-2008, 02:23 PM #6
Hi Rob,

Duh! The httpd server services "both remote and local web requests" implied to be protocols covered under the http protocol suite (i.e. not just http, but https, ftp, etc.) - which is normally not via root access, but as you say, root access is a policy issue.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:35 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.