New Linux Rootkit Emerges
Trailrunner7 writes "A new Linux rootkit has emerged and researchers who have analyzed its code and operation say that the malware appears to be a custom-written tool designed to inject iframes into Web sites and drive traffic to malicious sites for drive-by download attacks. The rootkit is designed specifically for 64-bit Linux systems, and while it has some interesting features, it does not appear to be the work of a high-level programmer or be meant for use in targeted attacks. The Linux rootkit does not appear to be a modified version of any known piece of malware and it first came to light last week when someone posted a quick description and analysis of it on the Full Disclosure mailing list. That poster said his site had been targeted by the malware and some of his customers had been redirected to malicious sites."
it does not appear to be the work of high-level programmer or be meant for use in targeted attacks
So basically it's installed by some jerkoff contractor with root access, and it's not something involving a hole in the server security?
How come neither of the links actually describe how this malware infects the machine in the first place? I'd say that's quite an important piece of information completely missing.
Just curious why the root kit is only targeting 64-bit. Is it specifically targeting the intel 64bit spec that allows for privileged escalation, or something like that? Reading the article makes it sound like it's an exploit of the AMD little endian pointers which, since I don't know hardware on that level, I don't know if that means it's actually a CPU exploit or an OS exploit. And if it's a CPU exploit I don't know if it's all AMD64 based including or excluding Intel.
Yada-yada-blabber-blabber.
nobody really uses this OS except hobbyists and niche markets
Yeah, what with Microsoft, Amazon, Google, Valve and so on. Oh, pssh, they're irrelevant; they count as nobodies, right?
There's a new secure OS called Rootkit Server 12 - maybe it's time you nerds started upgrading to it!
This is the year of the Linux rootkit.
Since you're so knowledgeable, maybe you could explain to us which 'weakness' this rootkit is exploiting to get itself installed?
Dunno about AC, but first glance seems to be that it exploits shitty PHP code in order to get itself hosted onto the websites.
According to TFA, it appears to target one specific kernel (Debian-based), and tries to do some hokey-pokey with RAM to get itself executed. If you want a better description go to the original report
TFA gives some details, however:
The kernel module in question has been compiled for a kernel with the version string 2.6.32-5. The -5 suffix is indicative of a distribution-specific kernel release. Indeed, a quick Google search reveals that the latest Debian squeeze kernel has the version number 2.6.32-5.
The module furthermore exports symbol names for all functions and global variables found in the module, apparently not declaring any private symbol as static in the sources. In consequence, some dead code is left within the module: the linker can't determine whether any other kernel module might want to access any of those dead-but-public functions, and subsequently it can't remove them.
...doesn't say exactly how, but there is one thing that is entirely left out of the equation... if it's a drive-by download, does it definitely require user involvement, or not? According to the original report, the complaints were that they customers were being redirected to a malicious site, but nothing about a trojan being involved.
Quo usque tandem abutere, Nimbus, patientia nostra?
He may be a bastard, but he makes the trains run on time.
...try and submit some shit code onto Linus' lap for kernel inclusion... I dare you. ;)
Quo usque tandem abutere, Nimbus, patientia nostra?
> This is the year of the Linux rootkit.
. . . on the desktop?
Or on hundreds of millions of Android phones. Or supercomputers. Or TiVos or other DVRs. Or routers, printers, and countless other devices. OMG the world is going to end in 2012!!!
Better to switch to a safe proprietary OS that has never had a security problem.
I'll see your senator, and I'll raise you two judges.
Must be specifically targeted at Gentoo then.
If you dig into the articles to some of the raw analysis you'll discover two things.
1) "It remains an open question regarding how the attackers have gained the root privileges to install the rootkit. However, considering the code quality, a custom privilege escalation exploit seems very unlikely." So it unlikely that they gained root with something new, but it was a web site that was hacked, so the likely vector is something related to what the site it was running. PHP, WordPress, DB Injection, and Apache exploits.
2) "Based on the Tools, Techniques, and Procedures employed and some background information we cannot publicly disclose, a Russia-based attacker is likely."
There's a new secure OS called Rootkit Server 12 - maybe it's time you nerds started upgrading to it!
This is the year of the Linux rootkit.
Why? Linux has been around 85% of all web servers in the world for a loooooong time. You don't target the 15% windows servers to get stuff done.
The rootkit is half the battle as TFA says... what gets me really wondering is the exploit they used to get unfettered root access, especially if SELinux is enabled and enforcing.
The best short term defense against this? A monolithic kernel that has all modules compiled in, and has module loading disabled. Of course, this loses a lot of functionality.
Long term, maybe the best defense would be to take the TE (trustchk) system from AIX (which can be configured to not run any binaries that are not in a signed database), have signed kernel modules, and use a TPM + LUKS to ensure that if there is tampering, the boot process stops because there is no key to mount the root filesystem. Yes, TPM is a double-edged sword, but it does do well in guarding against these types of attacks.
Better to switch to a safe proprietary OS that has never had a security problem.
Menuet64?
To be fair to Linux, glibc is not in the Linux kernel. That's why it's important to say GNU/Linux: because Drepper deserves the blame at least as much as Linus. Android, for example, is Linux and uses a FreeBSD libc derivative instead of glibc.
I am TheRaven on Soylent News
Ok, why this story is tagged with conditionbrownpants? Anybody cares to explain?
(and no, it's not because of my post, because I'm asking after this tag appeared)
#
#\ @ ? Colonize Mars
#
Dunno about AC, but first glance seems to be that it exploits shitty PHP code in order to get itself hosted onto the websites.
How does "first glance" tell you that? And are you talking about code written in the PHP language or about the PHP implementation? And even if you break into a PHP implementation remotely, how do you make the kernel load the module, assuming the administrator isn't an outright idiot and the PHP process isn't running as root?
Ezekiel 23:20
1.) Pseudonymous source "stacktrace"
2.) Noone explains which weakness is being "exploited"
I call bullshit on this until they show the code which actually own the Linux kernel. If you could trace this whole thing, I am quite positive it leads to the checkbook of a Mr Ballmer, resident of Redmon, WA, USA.
Wrong. A rootkit is code which maliciously takes over certain functionality at root level. How it got installed doesn't matter for its classification as rootkit. Of course most rootkits get installed by some virus, worm or trojan, but a rootkit which some cracker installed by hand is still a rootkit.
The Tao of math: The numbers you can count are not the real numbers.
The best short term defense against this?
Just put /etc/rc.local and the rootkit becomes unloadable. Just like in Debian Squeeze.
exit 0
at the end of your
Those who can make you believe absurdities can make you commit atrocities. - Voltaire
there is nothing to patch, idiot
A more apt joke would be about Windows Server 2008 or 2012.
An even more apt joke would be something like:
# apt-get install windows-server-2008
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package windows-server-2008
But that doesn't seem to work.
Debian does not have SELinux enabled by default. So that is one barrier that frequently they won't have to cross in getting root access.
Debian might also have been targeted for its large market share and not having security extension installed by default. Considering the wide range of uses that Debian is put to it seems like maybe they should create a "public server" install profile that includes things like SELinux enabled and checkrootkit and other routine auditing tools installed.
Work bio at MMWD
IMHO, this is one thing they really need to look into fixing to keep up with what threats are out there.
It doesn't matter if they use SELinux or AppArmor. Just use something to limit the context things run in so even if something like Apache gets compromised, even with a way to UID 0, the mischief they can do is limited, be it to a directory or filesystem, or to only a segment of process space.
One thing I like is how sandboxie works on Windows -- a sandboxed program would have a list of executables (either explicitly specified, or via directory wildcards) that it can run, and this would include what context the process would run under (be it SUID root, user, or another user). Attempts to run anything else under a different context would be blocked. That way, if the apache binary tried to run the /bin/passwd command, it would be blocked.
How about MAC (Mandatory Acces Control)?
Hello SELinux... (Fedora)
Here be signatures
...while it's nice that Linux has gained a reputation as a secure alternative to Windows, the fact of the matter is that no one has really given a shit until now enough to really poke a hole in it.
Frothing at the mouth, Mr. Ballmer? Linux isn't a "a secure alternative to Windows for most folks using it, it runs on everything from wristwatches to the most powerful supercomputers in the world. Most web servers are running Linux. If Linux were easy to exploit, you'd have heard of a LOT of exploits.
Free Martian Whores!
I would think that TVs would be the ideal target. Sure, the processing power is low, but nobody even considers watching for malware on TVs. I wouldn't be surprised to find out that the computer running Linux inside my TV never turns off. Of that is the case, a malware writer the targeted TVs would have 100k - millions of low power but always on and never protected computers to run there malware on.
Of course that would only be if Linux were easy to exploit.
"The rootkit is designed specifically for 64-bit Linux systems .. The new Linux rootkit is loaded into memory and once there"
How does this 'rootkit' get executed on the target machine, does it require prior root access in order to sucessfully execute?
AccountKiller
There aren't any known, widespread Linux-based viruses or malware, and the few ones that do exist target server software, Java and/or Flash. And even if you found malware that still made its way in your computer via e.g. a vulnerability in the browser's Javascript - implementation that malware would still have to get root privileges in order to properly hide its existence -- there aren't any known, widespread security holes either in the Linux-kernel or the GNU userland, so if you keep your system up-to-date the chances are very, very slim the code would be able to get root privileges.
That is to say that if you e.g. used Firefox without Java and with the Flashblock add-on there'd be more-or-less no chances of you getting anything. Don't get scared by articles like this one because, well, this one doesn't spread via the web browser in the first place -- it was likely installed on the system by hand by someone who got access to it because of poor website implementation.
no no, read the summary. these boxes were using red hat - "A new Linux rootkit has emerged"
An iframe injection that redirects you to a malicious website where you have to download something and run it as root to get infected sounds almost nothing like something that runs as a normal user and exploits local weaknesses to gain privileged access surreptitiously.
these boxes were using red hat - "A new Linux rootkit has emerged"
That would be Gentoo, where we even have to compile our viruses from source (but then the virus is super-optimized).
It sounds like just plain old malware - maybe it does have a rootkit as part of the package - but still.. iFrame injection and a slew of other functional abilities are not in the domain of a 'rootkit'. The definition of a worm is a malicious program that replicates itself.
So since the "root kit" involves some other vector letting the intruder append something to rc.local (or somehow pivot on whether rc.local ends with an "exit 0") the root kit ins't a root kit but a post-root-promotion exploit.
Innocent people shouldn't be forced to pay for inferior software development.
--"Code Complete" Microsoft Press
ah, whoops. s/red hat/gentoo/
Then why are you asking?
Did you get new information about some novel and previously unknown exploit for Linux desktop installs?
Nothing is infallible but the historic record has persistently shown the *nix development system delivers a rather robust OS.
So yes stay vigilant on any system that's exposed to the web or (USB) media but also do enjoy some peace from knowing you are running a from a security standpoint better designed OS than the de-facto industry standard for desktops.
"The likes of Facebook and WhatsApp are free to those whose privacy is of zero value."
That's why I'll never buy a Sony product. I would expect a Sony TV to be pre-rooted.
Free Martian Whores!
In fairness, both of those flaws could be easily worked around. The worrying implication is that the developer didn't know what he was doing.
Having said that, you need to already have root access to install this, so it's really not a big deal.
At this stage, it looks like someone with root-level access installs it.
2011. Top Pharmacy List! Best Prices Online!
Linux gets used by the majority since they're smallfry and cash strapped since Linux = free
i get microsoft also missed the memo cos even they have linux on azure
Nix Nuke Week in progress (lmao)
from TFA in linked comment regarding hacked freebsd servers; "hackers were able to gain access to the servers using legitimate SSH keys and not by exploiting any operating system vulnerabilities"...
try again shill
this one sounds like APK that we all know and loathe :)
...overly concerned about mod points, trolls, and posting as AC himself
so how's that bug in your pointless and overly bloated and mindlessly exception handled Python function coming along then?
APK makes no sense anyway... even though he posts as AC, he still rants about mod points.... go figure
omg ok you've convinced me with your infinite bullsh.... i mean wisdom :)
we don't want "your kind" on the #1 most used OS platform there is on PC desktops and servers combined
your kind stinks and is full of whingeing morons who don't even realise how much they rely on the "2nd rate least used OS platform"
...used google lately?
...read it and weep moron
http://en.wikipedia.org/wiki/Google_platform#Software
go back to trying to figure out where the bug is in your Python code, idiot
meanwhile, linux will continue to dominate the world hahahahah!!!!
the servers were most likely administered by wintards with no concept of security... social engineering at its best
try looking at the code in your posts
keep posting your buggy code then... it makes you look bad, not me
i'm just another bored fool trying in vain to highlight a bug in it
ignore that advice all you want, but anyone who understands Python will read it and think "hahahaha there's an indentation bug on the 5th line... what a dumbass!!!!"
particularly because of the arrogant and rediculous context that you repeatedly post it
maybe different code ran (maybe you just typed the "output" manually), but the code that you post won't run with the indentation bug on the 5th line
hence my original post here http://slashdot.org/comments.pl?sid=3258205&cid=42016107
and your classic repsponse here: http://slashdot.org/comments.pl?sid=3258205&cid=42018527
quote: "(No bugs 5x above, & 100's of times before it the past year or so here)"
i guess its also slashdot's fault that you're a douchebag?
slashdot didn't forget to put that missing indent in... slashdot doesn't automagically indent code for you
:)
the error was your own... you forgot to include the required indent for bug-free posted python code
the fact that it has taken you so long to actually look at your code and realize (even after numerous attempts to point it out to you) confirms how much of an arrogant noob you are
just don't expect me to debug all your code or i'll have to start charging by the hour
slashdot doesn't "mess up code pastes" you fucking toolbag.
it doesn't put indents in. you have to do that yourself, and you fucked up by missing one... and then bragged about how your code was "bug free" hahahahaha what a douche
"his".... right whatever APK