Java Based Cross Platform Malware Trojan (Mac/Linux/Windows)

The New Acunetix V12 Engine


It’s pretty rare to read about malware on the Linux or Mac OSX platforms and even more rare to read about cross-platform malware which targets both AND Windows by using Java.

A neat piece of coding indeed, it targets vulnerabilities in all 3 operating systems – the sad thing? The malware itself is vulnerable to a basic directory traversal exploit, which means rival gangs can actually commandeer the infected targets.

They went to lengths to keep it secure and unseen (encrypted communications etc) – but didn’t program the malware itself securely…

From the department of cosmic justice comes this gem, spotted by researchers from Symantec: a trojan that targets Windows, Mac, and Linux computers contains gaping security vulnerabilities that allow rival criminal gangs to commandeer the infected machines.

Known as Trojan.Jnanabot, or alternately as OSX/Koobface.A or trojan.osx.boonana.a, the bot made waves in October when researchers discovered its Java-based makeup allowed it to attack Mac and Linux machines, not just Windows PCs as is the case with most malware. Once installed, the trojan components are stored in an invisible folder and use strong encryption to keep communications private.

The bot can force its host to take instructions through internet relay chat, perform DDoS attacks, and post fraudulent messages to the victim’s Facebook account, among other things.

Now, Symantec researchers have uncovered weaknesses in the bot’s peer-to-peer functionality that allow rival criminals to remotely steal or plant files on the victim’s hard drive. That means the unknown gang that took the trouble to spread the infection in the first place risks having their botnet stolen from under their noses.

“Even though it’s encrypted and even though it was written in Java to make it cross-platform, it was still vulnerable to basically a directory transversal exploit,” Dean Turner, director of Symantec’s Global Intelligence Network, told The Reg. “From a technical perspective, it goes to show that even if you have all those things where you’re building in a secure platform, if you’re not building application security into your malware, other bad guys will probably take advantage of it.”

It’s somewhat of an odd decision though, in terms of numbers obviously Windows machines far outnumber Linux and OSX desktop installations. On the web-server front perhaps Linux is a valuable target – but on consumer desktops? Is it really worth the effort for malware creators to make cross-platform trojans? Personally I don’t think it is, maybe it was just an experiment.

The number of Apple machines is certainly growing, the next big market we are going to see is tablets and smartphones I believe. I’d be on the lookout for more iOS and Android worms/trojans in coming months.

A self-replicating stealthy Android trojan with a previously unpatched zero-day remote root exploit could be devastating.


Jnanabot’s P2P feature is designed to make botnets harder to take down by providing multiple channels of communication. After sending an infected machine a single GET request, a website can discover all the information needed to upload any file to any location on the host’s file system. Attackers can then install a simple backdoor on a user’s machine by, for instance, writing a malicious program to a computer’s startup directory.

Attackers can use the same vulnerability to steal files on infected machines.

Turner said the number of Jnanabot infections so far is “measured in the thousands,” rather than the hundreds of thousands for some of the better-known trojans. Still, infection statistics gathered by Symantec in December are surprising. They show that about 16 per cent of infections hit Macs. They didn’t show any infections on Linux machines. Turner said that Jnanabot attacks on the open source platform weren’t able to survive a reboot.

The bot was discovered spreading over Facebook posts that planted the following message on infected users’ Facebook pages: “As you are on my friends list I thought I would let you know I have decided to end my life.” An included link leads recipients to a cross-platform JAR, or Java Archive file that can run on Windows, Mac, or Linux. Once the recipient is infected, his Facebook page carries the same dire warning.

It seems like the trojan theoretically can attack Linux, but so far hasn’t been seen in the wild and it can’t survive a reboot. Not that it really matters as from my experience most Linux users never reboot anyway except for kernel upgrades (which isn’t that often).

Perhaps it just doesn’t work that well on Linux, or Linux users don’t believe in installing JVM – it doesn’t usually come standard with OS installs as it’s considered non-free software.

The chosen vector for replication seems to be Facebook and a rather dramatic faux-suicide note – which sadly I think will be very effective.

Source: The Register

Posted in: Apple, Linux Hacking, Malware, Windows Hacking

, , ,


Latest Posts:


Acunetix Vulnerability Scanner For Linux Now Available Acunetix Vulnerability Scanner For Linux Now Available
Acunetix Vulnerability Scanner For Linux is now available, now you get all of the functionality of Acunetix, with all of the dependability of Linux.
Gerix WiFi Cracker - Wireless 802.11 Hacking Tool With GUI Gerix WiFi Cracker – Wireless 802.11 Hacking Tool With GUI
Gerix WiFi cracker is an easy to use Wireless 802.11 Hacking Tool with a GUI, it was originally made to run on BackTrack and this version has been updated for Kali (2018.1).
Malcom - Malware Communication Analyzer Malcom – Malware Communication Analyzer
Malcom is a Malware Communication Analyzer designed to analyze a system's network communication using graphical representations of network traffic.
WepAttack - WLAN 802.11 WEP Key Hacking Tool WepAttack – WLAN 802.11 WEP Key Hacking Tool
WepAttack is a WLAN open source Linux WEP key hacking tool for breaking 802.11 WEP keys using a wordlist based dictionary attack.
Eraser - Windows Secure Erase Hard Drive Wiper Eraser – Windows Secure Erase Hard Drive Wiper
Eraser is a hard drive wiper for Windows which allows you to run a secure erase and completely remove sensitive data from your hard drive by overwriting it several times with carefully selected patterns.
Insecure software versions are a problem Web Security Stats Show XSS & Outdated Software Are Major Problems
Netsparker just published some anonymized Web Security Stats about the security vulnerabilities their online solution identified on their users’ web applications and web services during the last 3 years.


4 Responses to Java Based Cross Platform Malware Trojan (Mac/Linux/Windows)

  1. Bredsaal January 21, 2011 at 3:17 am #

    Heh, pretty funny actually. But why can’t the trojan survive a reboot of a Linux system? It’s a matter of adding an entry to a configuration file.

    Bad programming or maybe just because Linux isn’t that common yet?

    /bredsaal

  2. kjleo January 21, 2011 at 11:14 am #

    Now this is getting scary again, Running windows 7, android 2.2 Galaxy s etc. Makes me wonder, is there a clever guy or girl, who could put some code up which would recognise the fact that a file has been created behind the administrators permission in any occasion! :~ Surely an automatic file generation without permission could be looked into. Saying this I am a bit new to this kind of thought provoking post, as my knowledge and ability increases I will give this and other problems some thought, te he facebook I wonder whats next for them eh ?. Well if someone has a comment id be happy to talk about my idea. Ta !

  3. pwnsauce January 25, 2011 at 10:27 am #

    I reckon these Java based trojans will become all the rage in future. Anyone got source for this or for Stuxnet? I am still dissecting ZeuS variants but I am interested in dissecting as much recent ‘groundbreaking’ (to me) malware as I can…

  4. Matt Kukowski February 20, 2011 at 1:31 am #

    Ha! Well of course it doesn’t survive on Linux. Linux actually has security built into the file system. It has security also in layers like App Armor which is standard for all Ubuntu servers. And Linux admins tend to be a little more security minded and literal (like myself) to know to keep software updated, reduce the attack surface (class all unneeded ports) and try to hack your own system with nmap and other scanning tools.

    Windows is so insecure it is no even funny. In fact, the ONLY reason a company like Symantec can exist ( along with the thousands of other anti malware companies ) is because Microsoft Windows needs a reprogram, which they do not intend to do.

    Apple on the other hand has re purposed their OS with OS X (Yes, stealing or borrowing from the open source world an OS called BSD )

    At least Apple has SOME security which is fixable when discovered.

    But, I am sorry to say that Microsoft Windows can not be ‘patched’ with anymore bullshit layers like pop up confirmations and other tricks that do not work like DEP.

    SO! There ya have it… do not run Windows if you can get away with it!!!