Ambidextrous Linux/Windows Virus
Lam1969 writes "Kaspersky Labs has reported a new proof-of-concept virus that can infect both Windows and Linux systems. It's called Virus.Linux.Bi.a/Virus.Win32.Bi.a and affects ELF binaries and .exe's from windows. SANS has a brief item on the cross-platform virus as well, but no information about a patch or signature yet."
I am curious about how this is a proof of concept virus if it has been done before surely the concept has already been proven?
GeekServ Unix Consulting Services (http://www.geekserv.com)
Windows users are prepared for viruses and the reason Linux users do not sweat them much is not because linux viruses do not exist; it is because system design makes their impact minimal.
The article says the worm was written in assembly and I assume it means x86 assembly. Can the worm infect non-x86 Linux hosts?
X(7): A program for managing terminal windows. See also screen(1).
I'm kind of curious how it works. You can't just take, say, C++ and simply write the exact same code and it will work in both Windows and Linux. Some of the basics like cout do, but, once you start getting a little more complicated and try to modify files, then it gets tricky. I'm guessing we aren't talking about a Java type thing (supposedly Java has securities in place, though I've never directly tested them -- I do know that it can delete or modify a file though.) They mentioned ELF and Win32 executable binaries, so if it's Java, then that's just a frontend obviously. They wouldn't call it an ambidexterious virus if specific code were written for each OS though, right? The only single thing I can think of is maybe make a system call and run "del so-and-so" which in linux's case would rely on an alias being in place to actually run rm.
.hack. In it, one amazingly powerful virus was able to wipe out almost all major operating systems with the exception of the single one, and that one was neither windows nor linux. Ok, it's just a story, but, do you suppose some nut wants to see if they can make this come true in their own way?
Could anyone who knows more programming than I do (which, btw, isn't so hard so feel free to hop in here) give me just an idea of how this is even possible?
You know, suddenly I'm reminded of
I find it interesting that this 'virus' appears shortly after Symantec reportedly gets cushy with the Linux press
The real difference, for now at least, is that most Windows users run applications and more importantly web browsers with administrative privilages.
Most Linux/*nix users do not.
By this time next year, when Vista's default web browser runs in a more-locked-down environment, MS-Windows users will be less vulnerable.
Blame the OS vendors and their OEMs - most people just take the defaults and run.
Knowledge is how to play a game, intelligence is how to win, wisdom is knowing what game to play.
"How do you get this "virus"? You have to run infected code, right?"
One word.... Wine.
I run windows binaries in Wine all the time.
If the virus could detect it was running in Wine on a Linux box, then it could infect the machine.
BTW, Have you heard of Plash or Systrace?
Unfortunately I don't think that many Linux systems are set up the way you describe, though I intend to make it my personal quest to make sure they are.
Also, have you come across a way of stopping GUI applications taking over other GUI application via the X protocol?
I know that it is possible to run X applications in untrusted mode, but I understand that is still possible for untrusted applications to snoop on other untrusted applications via X, so we cannot simply run all applications in untrusted mode.