Slashdot Mirror


Analysis of Linux Backdoor Used In Freenode Hack

An anonymous reader writes "A detailed analysis has been done of the Linux backdoor used in the freenode hack. It employed port knocking and encryption to provide security against others using it. This seems a little more sophisticated than your average black-hat hacker.

37 comments

  1. security methods can be used by both sides by Anonymous Coward · · Score: 5, Interesting

    So a common method of securing parts of systems (port knocking) was used by nefarious software to protect itself.

    "This seems a little more sophisticated than your average black-hat hacker."

    From the article...
    "Whilst the handshake and data security mechanisms are arguably well designed the persistence mechanism isn’t in any sense stealthy. This particular rootkit would be easily detectible using tools as Tripwire and Rootkit Hunter. ...
    While the techniques used are well engineered they are certainly not unique. For example netfilter hooks were discussed in the context of rootkits back in a 2003 Phrack article titled ‘Kernel Rootkit Experiences‘. Similarly port knocking and RC4 encryption for concealment and transport security are not highly sophisticated yet are sound approaches if developing a rootkit."

    Doesn't seem so special after all.

    1. Re:security methods can be used by both sides by grcumb · · Score: 5, Interesting

      Doesn't seem so special after all.

      Well, full marks for that clever little bit of sleight of hand that allowed them to set up persistent connectivity without hard-coding addresses. I like the way they use the combination of port and sequence number to determine the remote address, and packet window size to set the remote port. It was also pretty interesting that the software could take its sweet time between 'magic' packets, allowing it to obscure itself in incoming traffic.

      But yeah, it's a clever riff on well-known rootkit tools. And it's nothing that shouldn't have been discovered in a moderately well-run security environment. I mean, we are talking about an altered boot script, new rules running in iptables, and additional new binaries on the system. You would expect that sort of thing to be found before too long.

      But one thing I would very much like to know is how this rootkit got installed in the first place. There's nothing about that in TFA.

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    2. Re:security methods can be used by both sides by rtb61 · · Score: 3, Interesting

      They only thing special about this rootkit is that is clearly designed to be installed by an insider. The sort of thing that NSA financially or via extortion corrupted network security types, would install. I'll bet that many foreign countries will not be accepting their version of H1B when they come from the US, in network security jobs.

      --
      Chaos - everything, everywhere, everywhen
    3. Re:security methods can be used by both sides by CaptnZilog · · Score: 2

      But one thing I would very much like to know is how this rootkit got installed in the first place. There's nothing about that in TFA.

      That was my question too... how did it get there? I mean, kernel modules don't just magically appear and install themselves... :-P

    4. Re:security methods can be used by both sides by Anonymous Coward · · Score: 0

      > Doesn't seem so special after all.

      Except for the part where the firewall drops the packet, but it still operated. That's the "well designed" part deserving of "special".

    5. Re:security methods can be used by both sides by fnj · · Score: 1, Troll

      That was my question too... how did it get there? I mean, kernel modules don't just magically appear and install themselves... :-P

      Using any of the endless parade of exploits that constantly emerge for linux, I would imagine. Why does it matter?
      1) You get root just one time
      2) Then you can install any kind of root kit or do any other kind of goddam random or fiendishly convoluted havoc you can think of

      You know the kind of shabby security joke that Windows turned into? The same thing has happened to linux and BSD - and I say that as a HUGE booster of open source. It's been building relentlessly, but it became official this year with HeartBleed, ShellShock, and now this. And note that this latest is fundamentally different from any of the usual exploits. This one is NOT a bug in any IMPLEMENTATION of the protocol SSL 3.0. It is the discovery that the DESIGN of the protocol has been broken all along. You can't "fix" it by finding some coding boo-boo. It is vulnerable when working AS DESIGNED. If you update the protocol, then it's not SSL 3.0 any more and all kinds of people get cut off from secure access to various servers until everybody is moved over to TLS.

      You have two choices:
      1) Remove SSL 3.0 protocol capability from ALL clients everywhere, or all servers everywhere, or go after both of them tearing it out. This will break the internet until all servers and clients support AND USE TLS.
      2) Live with passwords and other secure data getting pwned right and left.

      If you think I've misinterpreted the problem, please tell me exactly where.

    6. Re:security methods can be used by both sides by cavreader · · Score: 3

      China, Russia, N. Korea, France, England, Germany, Israel, Japan, Brazil, and basically every other country on the planet with indoor plumbing and broadband internet service all contain governmental security services with ability to create an exploit such as this. And that group is probably dwarfed by the criminal enterprises around the world making money hand over fist by creating, selling, and using sophisticated exploits. So that being said where will you find people to fill your network security jobs after ruling out anyone associated with the US?

    7. Re:security methods can be used by both sides by fnj · · Score: 2

      P.S. - for anyone who is bewildered, when I said "now this" I was referring to the SSL 3.0 exploit. The story is close to this one and I was reading both of them. But it all comes together into a giant shitstorm, and it is past the point of criticality.

      Either we are going to abandon the whole internet/OS infrastructure hodgepodge that has proved to be unprotectable and replace it with something that is secure by design, or we are going to have to live with everybody getting constantly pwned. I doubt I will live long enough to see the former, even if it is attempted.

    8. Re:security methods can be used by both sides by epyT-R · · Score: 1

      SSL is not linux or bsd specific.

    9. Re:security methods can be used by both sides by Anonymous Coward · · Score: 0

      SSL is not linux or bsd specific.

      Exactly the GP's point.

    10. Re:security methods can be used by both sides by grcumb · · Score: 5, Informative

      If you think I've misinterpreted the problem, please tell me exactly where.

      Right here:

      You know the kind of shabby security joke that Windows turned into? The same thing has happened to linux and BSD

      The security problems that afflict Linux, Mac OS X and, to a much lesser extent, *BSD are fundamentally different in the way they manifest.

      We have yet to see the systemic infestation that characterised Windows in the late '90s and early '00s. There was a time mid-decade when the time it took to for an unattended, freshly installed Windows box to get pwned was estimated to be 20 minutes.

      Heartbleed, Shellshock, the Debian SSH debacle (can't forget that one) and numerous other problems are symptomatic of weaknesses in aspects of the FOSS environment that people used to think (unrealistically) were invulnerable. Instead, what we've discovered is that they're quite susceptible to targeted attack. This difference should not be understated. Windows is an infected system - basically, you can't run it without antivirus. Linux, Mac OS X and numerous other OSes are easily attacked individually, but there are not as yet any exploits that subvert the entire ecosystem.

      None of this is to dismiss how serious the potential threat is. I just want to make it clear that, so far, the danger that we see is different from what we are living with in the Windows world. It's different in quantity and quality.

      --
      Crumb's Corollary: Never bring a knife to a bun fight.
    11. Re:security methods can be used by both sides by Anonymous Coward · · Score: 0

      Bingo. I've been saying this for years. What we've built as the central backbone of our entire digital world is completely broken. And I'm not just talking about TCP/IP, I'm talking about all our OSes and software too, but TCP/IP is the largest enabling factor. It worked fine as a research project at DARPA, but when it went global we never took the time to redesign any of it for security with the forethought that someday everything in the world would be connected with it. The idea that you can send a packet of data from any computer to any other computer in the world (yeah don't get nitpicky about that, you know what I mean), causing code execution in the NIC firmware, networking stack, etc... is insane. Yes, we try to put firewalls and such in front of everything, but those are really just band-aids for the symptom, they do not address the fundamental disease, and those band-aids can only do so much mitigation. And all it takes is one unpatched system or broken firewall, and the infection is in. We simply cannot maintain the security of every node in the network in this way, which is why we need to fix the underlying problems, so that we don't NEED to have band-aids and patches everywhere. It's clear to me that we are heading toward a massive global digital meltdown.

    12. Re:security methods can be used by both sides by organgtool · · Score: 2

      I mean, kernel modules don't just magically appear and install themselves

      At least not until the next version of systemd is released.

  2. Hmmmm by Anonymous Coward · · Score: 0

    So, it has come to this...

  3. Re:Fuck freenode. by ThatsMyNick · · Score: 2

    Which channels? There are channels in which what your describe is accurate (duh, it is irc), but the vast majority in freenode is quite normal. Dont fuck freenode, fuck specific channels.

  4. Re:Fuck freenode. by Anonymous Coward · · Score: 0, Redundant

    All moderated channels. There used to be a channel that aksis owned, several years ago, that had a policy of no kicks/bans. It was a great libertarian experiment in absolute freedom of speech. It was the best channel ever. We fought our battles on a level playing field, with our words (or our bots!).

    There was another channel, ##politics, which was moderated like all the other channels on !freenode. You had a choice: you could go to #politics for absolute freedom of speech, or ##politics for same old same old. #politics was by far the more popular, because it was fun. Freedom is a heady feeling.

    But freenode got scared of the fun we were having in that channel. The little old ladies that run freenode shut it down, made it like all the other channels. Now there are ops who ban on whether they like your nick or not, or if it's Tuesday, or if some (virtual) female asked them to (or maybe promised to sleep with them).

    Fuck freenode. The excuses they made when they shut down #politics were ridiculous, disingenuous, outright lies. The real reason is they were jealous that so much attention was being spent away from their little fiefdoms.

    I punched one #physics op's buttons so hard, he still bans me on sight in #physics. Even though I trolled him in #philosophy, a channel in which he didn't have ops. This is the calibre of the discourse on freenode's #physics and other channels with academic disciplines for their titles: ops ban based on whims. It's stupid and it reduces the knowledge content of the chat.

  5. Better than most by Kludge · · Score: 1

    The most common black-hat software is pretty dumb, e.g. brute force ssh attack, install custom ssh client, attack other machines' ssh with brute force. By comparison this is pretty savy. It sounds like someone was targeting freenode specifically.

  6. Re:Fuck freenode. by ThatsMyNick · · Score: 2, Insightful

    I punched one #physics op's buttons so hard, he still bans me on sight in #physics. Even though I trolled him in #philosophy, a channel in which he didn't have ops. This is the calibre of the discourse on freenode's #physics and other channels with academic disciplines for their titles: ops ban based on whims. It's stupid and it reduces the knowledge content of the chat.

    If you troll #philosophy, why would you be expected to behave any better in #physics? You are the same person in both channels. I dont see the problem here, really.

    All moderated channels. There used to be a channel that aksis owned, several years ago, that had a policy of no kicks/bans. It was a great libertarian experiment in absolute freedom of speech. It was the best channel ever. We fought our battles on a level playing field, with our words (or our bots!).

    There was another channel, ##politics, which was moderated like all the other channels on !freenode. You had a choice: you could go to #politics for absolute freedom of speech, or ##politics for same old same old. #politics was by far the more popular, because it was fun. Freedom is a heady feeling.

    But freenode got scared of the fun we were having in that channel. The little old ladies that run freenode shut it down, made it like all the other channels.

    Freenode is not 4chan. Expecting freenode to be like 4chan is a foolish. If you are in a channel in freenode, you must comply with both channel rules and network rules. Freenode will not hesitate to enforce their network rules in channels if the channel ops are not enforcing them.

  7. Re:I KNEW Linux was gay by Anonymous Coward · · Score: 0

    Even if the quality assurance is lacking for professional use, it still makes a damn nice hobbyist OS.

  8. I smell a skid by Anonymous Coward · · Score: 1

    All the features listed can be found part of the open source rootkit named jynx 2.0 programmed in C which has been around for years. It employs socket hijacking for a backdoor access on any outbound service, SSL encryption for communications, root shell access, file and socket hiding from root users, as well as loading into every running application via LD_preload. The only detection is looking at which libraries are attached to your processes in which a live CD needs to be used to remove the files.

  9. Re:Fuck freenode. by Anonymous Coward · · Score: 1

    You are arguing with a narcissist. Good luck with that!

  10. Sheldon did it! by TheDarkener · · Score: 1
    --
    It is pitch black. You are likely to be eaten by a grue.
  11. Re:Fuck freenode. by Anonymous Coward · · Score: 0

    IRC is not a democracy. If you don't like it, get your own channel, with hookers and blackjack.

  12. Re:I KNEW Linux was gay by epyT-R · · Score: 1

    Yeah because proprietary operating systems and software aren't also riddled with holes.

  13. kernel.org by Anonymous Coward · · Score: 0

    Any news on kernel.org yet? If there was an analysis I missed it.

  14. Sensationalistic title and wording used in OA by LazLong · · Score: 5, Informative

    The OA uses the term "Linux backdoor," but then goes on to describe it as a add-in kernel module. It's not a backdoor, but rather a rogue kernel module someone has written. The module in question, ipt_ip_udp, isn't part of the Linux kernel. It's merely a module some black hat wrote to provide remote access to an already compromised system. This is just FUD and self-promotion by NCC Group to make what they found sound much more important than it really was, no doubt to increase their client base. What crap.

    To sum up, it isn't a Linux back door and it isn't a vulnerability in the Linux kernel source code. It's merely a rootkit.

    1. Re:Sensationalistic title and wording used in OA by lippydude · · Score: 1

      @LazLong: "To sum up, it isn't a Linux back door and it isn't a vulnerability in the Linux kernel source code. It's merely a rootkit."

      Thank you, a bit more accurate and informative than the main article ..

  15. Sensationalistic title and wording used in OA by Anonymous Coward · · Score: 0

    That's exactly what the NSA wants you to think.

  16. Re:Fuck freenode. by Anonymous Coward · · Score: 0

    It sounds like it would be a little sad, text-mode blackjack with bots and bitcoins for cybersex. Las Vegas for introverted geeks?

  17. Detailed analysis of Linux backdoor .. by lippydude · · Score: 2

    How does this 'Linux backdoor' get onto the system in the first place?

  18. Freenode's staff incompetence - again! by Anonymous Coward · · Score: 0

    It just proves once again that freenode staff is incompetent. end of story.

    just stop using that network of self proclaimed open source community irc space (that hates tor)