Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

Thanks ever so much Java, for that biz-wide rootkit infection
The Register ^ | 3rd September 2012 11:00 GMT | Trevor Pott

Posted on 09/03/2012 10:05:45 AM PDT by Ernest_at_the_Beach

Cup of coffee actually a carboy of toxic Kool-Aid

Sysadmin blog Right on cue, Java has responded to my hatred in kind. Shortly after I awoke to discover my previous article denouncing the language had been published, a client called to inform me his computer had contracted some malware. Java has, if you'll forgive the anthropomorphization of a bytecode virtualization engine, decided to exact its revenge.

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.

Cleaning up this one Trojan-horse town

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:


  1. Disconnect every Windows system from the network; if one is infected, they are all infected. (I have absolutely no idea what they used to get through the firewalls on client PCs, but it was effective.) You need to clean all systems one at a time on a quarantine basis. If you have a way to automate the rest of this list for enterprise deployment, please let me know.

  2. Create a new local user with admin privileges, reboot and log on as that user. (You need as clean a profile as possible.)

  3. Download and run Symantec's Zeroaccess removal tool. It will ask you to reboot; do so. A widget will pop up when you next log in that says the rootkit was not found. This is a lie. The removal tool got rid of it, and you have already been reinfected. Fortunately, it can't do anything until the next reboot.

  4. Run Trend Micro's Housecall; kill all the things. Do not reboot.


  5. Repair the background intelligent transfer service (BITS).


  6. Repair the Windows automatic updates service. (If you get the popup for the "Microsoft Fixit" tool, use it. It will fix your broken Windows update service.)

  7. Install Windows updates. Do not reboot.


  8. Run Microsoft Security Essentials; kill all the things. Do not reboot. At this point, you should have killed all of Zeroaccess's little friends.


  9. Re-run the Symantec Zeroaccess removal tool. It should kill the newly reinfected (but still dormant) variant of Zeroaccess.

  10. Reboot. When the system comes back up, make sure you log in as the "new" local administrative account you created.


  11. Run Combofix. If it doesn't lock up your system, you're good!

  12. Reboot back into your regular account, and delete the local account you created for this process. You win.

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. ®


TOPICS: Computers/Internet
KEYWORDS: java; javaexploits; javascript; linuxlivecd; malware; sirefef; teamviewer; whackamalware; zeroaccess; zeroaccessbotnet; zeroacess
Navigation: use the links below to view more comments.
first previous 1-2021-4041-53 last
To: Ernest_at_the_Beach

Well, I disabled Java just in case.


41 posted on 09/03/2012 12:45:53 PM PDT by bcsco (Bourbon gets better with age...I age better with Bourbon.)
[ Post Reply | Private Reply | To 32 | View Replies]

To: Ernest_at_the_Beach

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...


42 posted on 09/03/2012 1:18:39 PM PDT by Alas Babylon!
[ Post Reply | Private Reply | To 36 | View Replies]

To: bcsco
The "Vector" in the story seemed to be somehow involved with exercising a javascript in the browser....

Javascript is very popular....

i don't think turning off Java on your computer stops this particular nasty stuff working....if I read it correctly.

43 posted on 09/03/2012 1:47:15 PM PDT by Ernest_at_the_Beach ((The Global Warming Hoax was a Criminal Act....where is Al Gore?))
[ Post Reply | Private Reply | To 41 | View Replies]

To: Ernest_at_the_Beach

BFL


44 posted on 09/03/2012 1:48:03 PM PDT by editor-surveyor (Freepers: Not as smart as I'd hoped they'd be)
[ Post Reply | Private Reply | To 1 | View Replies]

To: All
So what in the H**l is a RootKIT....

To the Wikipedia:

>Rootkit

*********************************EXCERPT************************************

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.[1] 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.[1]

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.

Contents

[hide]

[edit] History

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.[1] 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.[1]

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.[2] 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.[3][4] Lane Davis and Steven Dake wrote the earliest known rootkit in 1990 for Sun Microsystems' SunOS UNIX operating system.[5] 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.[6] 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.[7] It was followed by HackerDefender in 2003.[1] The first rootkit targeting Mac OS X appeared in 2009,[8] while the Stuxnet worm was the first to target programmable logic controllers (PLC).[9]

[edit] Sony BMG copy protection rootkit scandal


45 posted on 09/03/2012 1:58:06 PM PDT by Ernest_at_the_Beach ((The Global Warming Hoax was a Criminal Act....where is Al Gore?))
[ Post Reply | Private Reply | To 1 | View Replies]

To: Ernest_at_the_Beach

That SpyHunter link in post #40 doesn’t work.


46 posted on 09/03/2012 2:17:30 PM PDT by bcsco (Bourbon gets better with age...I age better with Bourbon.)
[ Post Reply | Private Reply | To 40 | View Replies]

To: bcsco
OK...lets try this:

http://www.spywareremove.com/download-spyhunter-scanner/

Left it bare so it could be seen where it goes.

47 posted on 09/03/2012 3:11:14 PM PDT by Ernest_at_the_Beach ((The Global Warming Hoax was a Criminal Act....where is Al Gore?))
[ Post Reply | Private Reply | To 46 | View Replies]

To: Ernest_at_the_Beach

Bflr


48 posted on 09/03/2012 4:25:51 PM PDT by colinhester
[ Post Reply | Private Reply | To 47 | View Replies]

To: Ernest_at_the_Beach
Everyone should realize... Javascript and Java are two very different things. About the only thing they have in common are the letters J-A-V-A in their names.

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).

It is not being caused by having Javascript enabled in the browser.

Javascript != Java!

49 posted on 09/03/2012 4:36:01 PM PDT by Mannaggia l'America
[ Post Reply | Private Reply | To 1 | View Replies]

To: Mannaggia l'America
So ....guess I wrongly interpreted the statement:

The chief financial officer of the company relies on cloudy applications that require Java-in-the-web-browser.

50 posted on 09/03/2012 4:52:39 PM PDT by Ernest_at_the_Beach ((The Global Warming Hoax was a Criminal Act....where is Al Gore?))
[ Post Reply | Private Reply | To 49 | View Replies]

To: Ernest_at_the_Beach
So ....guess I wrongly interpreted the statement:

The chief financial officer of the company relies on cloudy applications that require Java-in-the-web-browser.

Not necessarily.

Java applets can be launched from the browser, and appear within the browser window. But the Java runtime environment (JRE) is executing complied Java bytecode downloaded from a server.

These days, "cloudy" applications are more likely to be using Javascript in the browser (which is a different language, downloaded by the browser and interpreted by the Javascript engine within the browser) and Java on the servers, using Java 2 Enterprise Edition (J2EE).

You can uninstall the Java runtime environment (JRE) and Javascript will still execute within the browser, assuming Javascript is enabled.

Likewise, you can disable Javascript in the browser, and Java applets and applications will still execute, assuming you have the JRE installed.

Java applets running in the browser never really took off. Most applications, such as a financial application that a "CFO" would use, would use Java on the *servers*, but that doesn't require Java in the browser.

For example, my company uses Oracle ERP (accounting) software. It uses Java on the application servers, but there is no requirement for Java on the users' PC's. But it does require Javascript to be enabled in the browser.

Javascript is now technically known as "ECMAScript", and that is a better name for it, to show how utterly different it is from "Java".

Java is to Javascript as Car is to Carpet... The only thing in common is the first few letters of the name.

Here is another explanation.

51 posted on 09/03/2012 5:10:29 PM PDT by Mannaggia l'America
[ Post Reply | Private Reply | To 50 | View Replies]

To: Mannaggia l'America; All
Google search again:

How to disable Java in your web browser

**************************************EXCERPT*****************************************

By now you have probably heard about a new Java vulnerability that is been actively exploited on the Internet. I do not want to rehash all that has been said, and would like to suggest articles on ZDnet and Securelist for that which should provide you with an overview of the threat. Only that much: only Java 7.x is affected by the vulnerability.

****************************************************

However according to the article this thread started with,,,,,more than just java version 7 is suspect....

I have tried to clean up the links...i think I got them working.

52 posted on 09/03/2012 5:12:19 PM PDT by Ernest_at_the_Beach ((The Global Warming Hoax was a Criminal Act....where is Al Gore?))
[ Post Reply | Private Reply | To 49 | View Replies]

To: Ernest_at_the_Beach
However according to the article this thread started with,,,,,more than just java version 7 is suspect....

My rule of thumb - if you don't need Java, uninstall it.

Most people do not need it. The only thing I have ever seen it used for by casual users (and I am in the software development field and I don't even have it installed) is little online mortgage calculators, some online games like Minecraft, or cable modem speed tests.

And if you are not sure if it you need it, uninstall it anyway. You can always download an re-install it. It will be obvious when you need it.

There has been discussion that it is not so easy to disable in IE 8 or IE 9. These instructions supposedly work.

53 posted on 09/03/2012 7:01:43 PM PDT by Mannaggia l'America
[ Post Reply | Private Reply | To 52 | View Replies]


Navigation: use the links below to view more comments.
first previous 1-2021-4041-53 last

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.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson