Skip to comments.Thanks ever so much Java, for that biz-wide rootkit infection
Posted on 09/03/2012 10:05:45 AM PDT by Ernest_at_the_Beach
Closer inspection of the infection revealed deep network penetration that the installed antivirus applications were completely unable to cope with. The chief financial officer of the company relies on cloudy applications that require Java-in-the-web-browser. Contrary to early reports that we should only fear Java 7, this beauty crawled in through a fully up-to-date Java 6 browser plugin and installed some friends.
I have no idea what the initial vector was beyond the swift appearance and disappearance of some malicious Java archive files; the primary delivery mechanism scrubbed itself clean (along with significant chunks of the browser history) right after it downloaded its payload onto the compromised Microsoft Windows PC.
The payload: a software nastie called Sirefef. This itself is actually irrelevant; even Microsoft Security Essentials can find and kill most variants. The purpose of Sirefef is to serve as the staging component for the coup de grace: the highly sophisticated Zeroaccess rootkit (Sirefef downloaded some other friends too, but once the rootkit is dealt with, they are easily dispatched.)
Zeroaccess is a nightmare. It creates a hidden partition to run components from, deletes the BITS and Windows Update services, infects system restore and then removes the system restore interface from Windows. It locks you out of various sections of your file system it has decided to secrete backup copies of itself into. (C:\Windows\Temp, C:\Windows\System32\Config\Systemprofile and so forth.)
Zeroaccess knows all the standard tricks; it hides itself from Trend Micro's virus scanner Housecall, kills industrial-strength bleach Combofix (attempting to run this tool will freeze the system), resists cleaning by SurfRight's Hitman Pro, Symantec's resident AV and so forth. If you delete the hidden partition after booting from a Linux Live CD, chances are you didn't get every last remnant of the thing and it will be back in due time. It also prevents remote support app Teamviewer from starting properly with Windows.
If any residue of the rootkit lingers, or if Sirefef and/or its downloaded friends remain, they will all download and reinstall one another and we get to play whack-a-malware one more time. Bonus points were awarded for exploiting known Windows 7 vulnerabilities to infect every other machine on the network; that was a nice touch that really made my Friday.
So what's the solution? It turns out that some combination therapy kills the Zeroaccess variant in question. The solution I have settled upon is this:
If you are infected with Zeroaccess, exercise extreme caution. Someone is actively versioning this rootkit. I detected at least three different variants on one network alone. More to the point, the little friends that serve as satellite malware are also seeing some rapid evolution; what worked for me today may not work a week from now.
This incident should serve to underscore exactly how serious the Java exploits in question are. If you can, uninstall Java. If you must use Java, keep it as up-to-date as possible and see if you can disable or remove the plugins for your browsers. (In an attempt to help resolve the current crisis, Ninite is offering free access to the pro version for a limited time; it can really help with the updating.) If you absolutely must use Java-in-the-browser then it's time to start taking security very seriously; break out the tinfoil and start making some shiny hats.
Java-in-the-browser absolutely must be treated as "already compromised". There is no wiggle room here. Do not under any circumstances run Java in the browser on any production system or any client system in which any other application is used. Go buy another Windows licence and put Java inside a virtual machine.
Ring-fence the virtual machine by placing it on its own VLAN and subnet. Keep that virtual machine's traffic as separate from the rest of your network and system as you possibly can: Java-in-the-browser is a live grenade and you can't afford to have it go off inside your network. If you can, deploy the virtual machine from a managed template; the ability to destroy it at the end of the day and revert to a "known good" is a huge advantage when dealing with a threat of this magnitude.
Even if Oracle gets its act together and solves the immediate issues, this is only the latest in a long line. Java is simply is not developed with an adequate "security first" approach; Oracle is used to dealing with large corporations, not consumers. It doesn't have the experience to fight these kinds of rapidly escalating arms races, and it shows.
There isn't time to wait for Oracle to overcome its corporate inertia. It is time for systems administrators to act. It is our duty to depopulate Java with extreme prejudice. ®
Thanks for posting this antihelminthic procedure. Well-written too.
Bump for later.
If you have Windows 7 or God forbid Vista, doing a system restore to an earlier date also seems to work.
I’ve ran across a few of these lately. What fun!
No Idea...but doesn’t look easy.
I was wondering when someone was going to turn the spyware root-kits into a virus. One or two you can fix, 200 at a time will be a problem and if it can cross subnets, look out.
So, what’s the skinny? Should we not be running Java?
Hey, Ernest, I don’t have Sun java running on mine, but I did disable it off of my mom’s business pc, thanks so much for the heads up on this ^^
These people need to be put up against a wall and shot. And then the video put on YouTube for all the world to see.
I would disable Sun Java if you are running it. That is the program that will be exploited.
While in internet explorer, click tools, internet options, programs tab, manage add ons, look for Sun Java in the list, disable it if it is there. This is for windows 7.
Thanks. I disabled it in both IE & Firefox.
Microsoft is aware of this rootkit and has a page on it in the Malware Protection site:
Lot’s of good tips to protect your computer from it and from fixing your PC if you get it. They are not, however, recommending disabling Java. Note in the article originally posted the business executive had to have Java in the browser to track finances. This is true for a lot of people. I’m not sure that disabling Java is going to work with a lot of my users.
My only concern about the Microsoft link is the fact that it’s so old. November of 2011. So I did a search in the Malware Protection site for “Java Rootkit” and got the following, sorted by date:
Looks bad. Every day another new one.
Still, as I said, we have several major apps we support that uses Java, and getting rid of them would be a sure PITA and a possible show stopper.
As a stopgap, ALWAYS ensure you antivirus/anti-spyware software is running always, and updated everyday!!!!!
Microsoft is sue-happy. Lawyers pretty much call all the shots.
If they just recommend disabling Java, I’m pretty sure Oracle would get legal. And that costs MSFT money even if they win.
Then again, if a few major corporate players get hacked bad they’ll be talking to counsel.
So it’s generic, pappy, we-told-you-so remodies.
This is the crap I fight everyday. In the end, the corp bigwigs hold IT responsible. That crap rolls downhill to us administrators. We’re on the line in more ways than one.
Me? I pray a lot!
Java is crap.
All the things they said Java would never do, they now do with ease. Like infect you.
I have Noscript installed w/Firefox, the problem is there are tons of Java junkies out there who think it is the answer to everything, and half the websites I go to don’t work.
It was a flash in the pan and ought to be replaced by a new HTML standard.
It would help if MS would clean up there buffer problems and application security.... yeah, like that’s gonna happen!
Read the Technical paper for some real hair-raising detail.....
What a mess...
Like I said, pray! :-)
The Abstract from Distrowatch above......
Lightweight Portable Security (LPS) is a Linux-based live CD with a goal of allowing users to work on a computer without the risk of exposing their credentials and private data to malware, key loggers and other Internet-era ills. It includes a minimal set of applications and utilities, such as the Firefox web browser or an encryption wizard for encrypting and decrypting personal files. The live CD is a product produced by the United States of America's Department of Defence and is part of that organization's Software Protection Initiative.
Man oh Man....glad I retired from the Main Frame business....
Guess I have a question ...if an enterprise is running Virtual machines hosting linus apps and windows apps...does that help ...in detection?
Got that right!
I did manage to find the equivalent of a “Windows Live” CD.
You burn it and boot from CD.
Problem is, zero installed software, I can’t remember if IE is even installed, so except for tweaking registries, recovering hard drives, etc., it’s basically useless.
Can’t remember the name exactly... something like “Windows Presentation Manager” or some such crap.
Sure would be nice if MS worried as much about my rights to not have my machine infected as they do worrying about DRM for Katy Perry or WTF...
ZeroAccess is a rootkit that uses advanced techniques to conceal itself and thwart your PC security software. Afterwards, ZeroAccess may also be used to open a backdoor on your system in the fashion of a backdoor Trojan. As is true of other rootkits that SpywareRemove.com malware researchers have analyzed, ZeroAccess has negligible symptoms of its activities, although you may be able to find ZeroAccess by watching for malfunctions in your anti-malware and security programs. ZeroAccess has been updated several times throughout its life and is sufficiently advanced and potentially damaging that only specialized and up-to-date anti-malware programs should be used to delete any ZeroAccess infection on your PC. Refraining from doing so will leave your computer open to attack by criminals and other forms of harmful software, and can cause lose of private information or destruction of files on your PC.
Well, I disabled Java just in case.
Well, not really. VMs can add an extra layer of protection via their individual firewalls, anti-malware, etc, but generally if you want the apps to be accessable to the users, connect and store data on the databases, and act like a real service than the VMs are going to need network access like any other machine. And there in lies the danger.
I CAN tell you that machines without a network interface or no way to communicate with the innerwebs are much, much more secure! Of course they’re useless, too...
i don't think turning off Java on your computer stops this particular nasty stuff working....if I read it correctly.
To the Wikipedia:
A rootkit is a stealthy type of malicious software designed to hide the existence of certain processes or programs from normal methods of detection and enable continued privileged access to a computer. The term rootkit is a concatenation of "root" (the traditional name of the privileged account on Unix operating systems) and the word "kit" (which refers to the software components that implement the tool). The term "rootkit" has negative connotations through its association with malware.
Rootkit installation can be automated, or an attacker can install it once they've obtained root or Administrator access. Obtaining this access is either a result of direct attack on a system (i.e. exploiting a known vulnerability, password (either by cracking, privilege escalation, or social engineering)) or a result of... . Once installed it becomes possible to hide the intrusion as well as to maintain privileged access. Like any software they can have a good purpose or a malicious purpose. The key is the root/Administrator access. Full control over a system means that existing software can be modified, including software that might otherwise be used to detect or circumvent it.
Rootkit detection is difficult because a rootkit may be able to subvert the software that is intended to find it. Detection methods include using an alternative and trusted operating system, behavioral-based methods, signature scanning, difference scanning, and memory dump analysis. Removal can be complicated or practically impossible, especially in cases where the rootkit resides in the kernel; reinstallation of the operating system may be the only available solution to the problem. When dealing with firmware rootkits, removal may require hardware replacement, or specialised equipment.
The first documented computer virus to target the personal computer marketplace, discovered in 1986, used cloaking techniques to hide itself: the Brain virus intercepted attempts to read the boot sector, and redirected these to elsewhere on the disk, where a copy of the original boot sector was kept. Over time, DOS-virus cloaking methods became more sophisticated, with advanced techniques including the hooking of low-level disk INT 13H BIOS interrupt calls to hide unauthorized modifications to files.
The term rootkit or root kit originally referred to a maliciously modified set of administrative tools for a Unix-like operating system that granted "root" access. If an intruder could replace the standard administrative tools on a system with a rootkit, the intruder could obtain root access over the system whilst simultaneously concealing these activities from the legitimate system administrator. These first generation rootkits were trivial to detect by using tools such as Tripwire that had not been compromised to access the same information. Lane Davis and Steven Dake wrote the earliest known rootkit in 1990 for Sun Microsystems' SunOS UNIX operating system. Ken Thompson of Bell Labs, one of the creators of Unix, subverted the C compiler in a Unix distribution and discussed the exploit in the lecture he gave upon receiving the Turing award in 1983. The modified compiler would detect attempts to compile the Unix "login" command and generate altered code that would accept not only the user's correct password, but an additional password known to the attacker. Additionally, the compiler would detect attempts to compile a new version of the compiler, and would insert the same exploits into the new compiler. A review of the source code for the "login" command or the updated compiler would not reveal any malicious code. This exploit was equivalent to a rootkit.
The first malicious rootkit for the Windows NT operating system appeared in 1999: a trojan called NTRootkit created by Greg Hoglund. It was followed by HackerDefender in 2003. The first rootkit targeting Mac OS X appeared in 2009, while the Stuxnet worm was the first to target programmable logic controllers (PLC).
That SpyHunter link in post #40 doesn’t work.
Left it bare so it could be seen where it goes.
The bug that is causing this is in the Java runtime from Oracle (formerly Sun).
If you want to avoid it, you need to uninstall the Java runtime (JRE).
The chief financial officer of the company relies on cloudy applications that require Java-in-the-web-browser.
Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.