Slashdot Mirror


Researchers Seek Help In Solving DuQu Mystery Language

An anonymous reader writes "DuQu, the malicious code that followed in the wake of the infamous Stuxnet code, has been analyzed nearly as much as its predecessor. But one part of the code remains a mystery, and researchers are asking programmers for help in solving it. The mystery concerns an essential component of the malware that communicates with command-and-control servers and has the ability to download additional payload modules and execute them on infected machines."

33 of 131 comments (clear)

  1. It says... by Anonymous Coward · · Score: 5, Funny

    NSA Property, Keep Out.

    1. Re:It says... by Beardo+the+Bearded · · Score: 5, Interesting

      It looks to me to be the output from the PLC compiler. Clear, count, and compare are basic ladder logic commands.

      If you figure out which PLCs the Iranians are using that'll give you the compiler; each brand has its own and you're really unlikely to see it if you haven't used it. How many people here have used DirectSoft? Have you seen Schneider's programming interface?

      That would explain why the researchers haven't seen it. You rarely use PLCs outside of industry.

      --

      ---
      ECHELON is a government program to find words like bomb, jihad, plutonium, assassinate, and anarchy.
    2. Re:It says... by chinton · · Score: 2

      No, it says "Seatec Astronomy".

  2. Mystery Code by Oswald+McWeany · · Score: 4, Funny

    The mystery code isn't really much of a mystery- it's just how Duqu communicates with the sith lord.

    --
    "That's the way to do it" - Punch
    1. Re:Mystery Code by ericloewe · · Score: 2

      You must be quoting that mythical Star Wars prequel trilogy that somehow spread around like wildfire. Good thing it's just a myth.

    2. Re:Mystery Code by dougisfunny · · Score: 2

      Anakin actually killed both DuQu and Obi Wan.

      --
      This is not the funny you're looking for.
  3. Re:Looks like assembly to me by PPH · · Score: 3, Insightful

    I kid, I kid...

    Why? Its entirely possible that this snippet of code is a piece of in-line assembly. It may have started out coming from some higher level language, but been tweaked or completely rewritten in assembly and its origin is no longer recognizable.

    --
    Have gnu, will travel.
  4. Re:Looks like assembly to me by forkfail · · Score: 3, Insightful

    Or even self modifying assembly....

    That would be a real pisser to figure out.

    --
    Check your premises.
  5. Re:Assembly? by Qzukk · · Score: 2

    Who would be insane enough to write OO code in assembly?

    --
    If I have been able to see further than others, it is because I bought a pair of binoculars.
  6. Re:Uhh what? by Zocalo · · Score: 3, Interesting

    Of course it has, but that's not the point. There's potentially something unusual here, so if you can work out what language/compiler/linker was used there might be a clue to the identity of the code's author(s). It wouldn't be the first time that a piece of malware has been written in an experimental language developed for educational purposes and seldom, if ever, seen outside that educational establishment. It would only be circumstatial evidence of course, but it's still better than nothing and might help narrow the field enough to get a lead on the authors.

    --
    UNIX? They're not even circumcised! Savages!
  7. it was written in assembly language by circletimessquare · · Score: 3, Funny

    that's just a guess

    but the level these guys are working at here, something well above script kiddie and slightly below elder neckbeard, it seems entirely plausible to me

    --
    intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
    1. Re:it was written in assembly language by spads · · Score: 2

      I think it could be even well above the advanced neck beard. These guys wanted to do all the damage possible, without giving them any technology they could figure out and use.

      --
      Bukowski said it. I believe it. That settles it.
    2. Re:it was written in assembly language by VortexCortex · · Score: 4, Interesting

      Well, if it's above the advanced level of Neck-beard the Gray then it's even more advanced than something like a tiny VM that interprets encrypted bytecode and has re-allocatable variable width opcodes such that the second time you encounter an instruction it may not do the same thing. Eg: my opcodes are Arithmetic encoded and encrypted with an evolving 12bit block cipher; Additionally, each execution swaps a few "function pointers" that the op-codes invoke. The compiler for my VM makes several passes to discover the optimal compression, encryption, and initial opcode-to-action table to use. To reverse engineer such a beast requires manually stepping through machine code from the very first instruction -- That is, given a partial sample of code: no amount of visual analysis will reveal what it does. The language used to write programs for it? ASM, or a subset of C; Though it could be Java, Python or any other high level language -- That's the beauty of compilers.

      Not saying this is what's been done, just that I've done and seen some VERY wicked code. I once cracked DRM that was implemented in enciphered MIPS and used such an embedded VM. It looked like the input language for the generated opcode was C.

      The government employees paid to come up with such a thing would be at most on-par with the masses of crypto nerds that joygasm over such things -- Who do you think they would hire? There's not some magical government-only breed of human with super hacker powers... Ergo, they must hire from the available pool of people, and since they don't hire us all, or even necessarily the absolute brightest, the highest level of hackerdom they could employ would be on-par with "the advanced neck beard" at most.

    3. Re:it was written in assembly language by circletimessquare · · Score: 5, Funny

      fine, you've made your point

      but the official coder manual officially classifies neckbeards as

      young neckbeard, adult neckbeard, elder neckbeard, and ancient neckbeard

      with Hit Points 100, 300, 700, and 1500, respectively

      the ancient variety is allowed to cast Befuddlement at will with a savings throw adjustment of -6 on your character's intelligence rating. i see you tried to cast that spell in your past post

      but i have no idea what this "advanced" neckbeard is you refer too. i don't think such a neckbeard classification exists... oh shoot, did you just Befuddle me?

      fine, i'll wait out the next 3 turns

      *sigh*

      --
      intellectual property law is philosophically incoherent. it is your moral duty to ignore it or sabotage it
  8. Re:Assembly? by Surt · · Score: 2

    My dad did. Maybe he's behind this. But he was a first generation programmer. Trying to get him to move on from assembly was a pointless endeavor.

    --
    "Who is the Journal of Quantum Physics going to believe?" --Stephen Hawking
  9. It's either: by blueforce · · Score: 4, Funny

    Objective-Brainfuck or Brainfuck with Classes

    --
    If you do what you always did, you get what you always got.
  10. Any sucker by AliasMarlowe · · Score: 4, Funny

    Any sucker can tell it was written in Linda.

    --
    Those who can make you believe absurdities can make you commit atrocities. - Voltaire
  11. Re:NSA by TaoPhoenix · · Score: 5, Insightful

    Actually, I'll reverse the joke and gun for +1 Insightful.

    Ready?

    Literally why does this story even exist? This code takes out nuclear reactors and "researchers ask programmers for help"? Really?! (Does "Ask" imply they want the answer FREE?!)

    So the Dept of Homeland Security is busy helping yank down file share sites and they have no time for this?

    Ladies and Gentlemen and AI's, this is your answer to why we're spiralling into a mess.

    --
    My first Journal Entry ever, in 8 years! http://slashdot.org/journal/365947/aphelion-scifi-fantasy-horror-poetry-webzine
  12. Re:NSA by Anonymous Coward · · Score: 2, Informative

    DHS, conspiracy theories aside, is likely conducting their own investigation into DuQu, the details of which are unlikely to be shared with the general public. TFA is about Kaspersky Labs, an independently owned security firm, asking for help from the general public.

  13. Re:Uhh what? by 19thNervousBreakdown · · Score: 3, Insightful

    A compiler takes your high-level language instructions, and generates the many, many low-level instructions it might take to express a given high-level instruction. The thing is, much like there's many ways to write a cover letter for a resume, there's a lot of different ways to do that high->low expression, but a compiler writer is unlikely to bother with more than one way, or maybe a couple others if there's some benefit to doing so.

    A person on the other hand, will have all sorts of random variations in what they write. Oh, they'll come up with certain ruts, and have a certain style, but the won't be exactly the same every single time.

    Compilers also do useless stuff. For a car analogy, it's kind of like the tow hooks under your bumper--most of the time they aren't used. A person isn't going to bother to put them there if they're not currently needed or they can envision a need for them--a compiler never forgets to put those hooks there, and sometimes puts them there even when it's redundant. Optimization gets rid of that kind of thing, but no compiler is perfect, and they're often conservative.

    --
    <xml><I><am><so><damn>Web 2.0</damn></so></am></I></xml>
  14. erlang by slew · · Score: 5, Insightful

    My guess is that it's probably erlang. It fits all the descriptions of how erlang works. Erlang is used in all sorts of realtime systems, it wouldn't be a stretch to see that it was used in a virus library. Someone that is in the Telecom or Network infrastructure industry might be familiar with Erlang and that type of person might also be the same type of person that knows enough about networks and network vunerabilities to architect a framework for virus distribution.

  15. Re:NSA by Baloroth · · Score: 5, Insightful

    Literally why does this story even exist? This code takes out nuclear reactors and "researchers ask programmers for help"? Really?! (Does "Ask" imply they want the answer FREE?!) So the Dept of Homeland Security is busy helping yank down file share sites and they have no time for this?

    Why would DHS have anything to do with this? DuQu so far hasn't done anything to American interests (in fact, so far as I can tell, it has helped them). The people in TFA looking at the code are Kaspersky: a Russian anti-virus company. They don't even recognize the language the code is written in, much less how it works, and they are wondering if anyone of the billions of people on the Internet knows (specifically, if it is a a specialized language used in some niche industry or something). If no one does, they can be pretty sure it was a custom created language, and proceed accordingly. They aren't asking for someone to do their work for them: they are saying "hey, this look like anything anyone knows?" DHS might be looking at it too, if they didn't create it: but the story has absolutely nothing whatsoever to do with them, in any way. Not even the same continent.

    Also, I don't know where you got "takes out nuclear reactors." Stuxnet did damage to nuclear centrifuges. AFAICT all DuQu seems to be doing is stealing data (private keys, actually). Bad for people who get infected, yes. Not like it is causing nuclear meltdowns or something.

    --
    "None can love freedom heartily, but good men; the rest love not freedom, but license." --John Milton
  16. Perl by 0100010001010011 · · Score: 2

    That clearly looks like perl to me.

    1. Re:Perl by larien · · Score: 5, Funny

      Can't be perl. It's far too readable, for a start.

  17. the decoded message is by Eponymous+Coward · · Score: 2, Funny

    "Be sure to drink your Ovaltine."

  18. Looks like the SCADA variant by Taco+Cowboy · · Score: 2

    I only took a glance so don't blame me if I am wrong, but it looks like the SCADA variant

    More info available at http://en.wikipedia.org/wiki/SCADA

    --
    Muchas Gracias, Señor Edward Snowden !
  19. Re:Looks like assembly to me by v1 · · Score: 2

    I don't understand why they are avoiding this option like the plague. C'mon... practically every compiler compiles its language into assembly and runs that through an assembler for final object code creation. (tho some will then run THAT through an optimizer etc) There's absolutely no reason for them to insist it can't be written in native assembler. I wrote many things for the 6502 that way - if you want it fast and small, that's the way to go.

    And sorry, if they have to reverse it back into C++ or some other higher level language to figure out what it does, they're idiots, no better than script kiddies. I don't care of they have ten CS masters degrees. Assembly just takes a little more time to work out, it's not like it's encrypted and they don't have the key.

    None of this should come as a surprise to anyone. The authors are black-hats. They make their living on buffer overflows and bug exploitation, they damn well know how to code in assembly, and specifically how to tear it apart and analyze it in fine detail. Why can't these "experts" do that?

    --
    I work for the Department of Redundancy Department.
  20. Re:NSA by lennier · · Score: 4, Funny

    DHS, conspiracy theories aside, is likely conducting their own investigation into DuQu

    No need for that unless they snuffed the original developer before securing the relevant docs.~

    Hey, everyone makes mistakes. That drone was supposed to have been loaded with tranquilizer darts, not Hellfires. Boy, there were some red faces in the office when we found out what happened.

    --
    You are not a brain: http://books.google.com/books?id=2oV61CeDx-YC
  21. Seriously! by HiggsBison · · Score: 5, Insightful

    I'm sure he did write assembly. But Object Oriented assembly?

    I'm incredulous that you are incredulous. I thought I saw a book about that somewhere. So I walked over to my tall stack of random language books and there it is:
    Object-Oriented Assembly Language, Len Dorfman, McGraw-Hill, 1990

    I hereby thwack you upside the head.

    --
    My other car is a 1984 Nark Avenger.
  22. Re:Looks like assembly to me by Brett+Buck · · Score: 2

    I think most are missing the point. They probably already know what it does (if they don't, given the effort they have expended, then they are boobs). What they want to do is find what the language was *in order to track down the authors* on the premise that it was some strange language only used in a few places and if they find it, they can narrow the range of likely candidates .

  23. Re:iron python by Mr+Z · · Score: 2

    Ok, you and someone on the article both said the same thing, with absolutely nothing to back it up. Care to elaborate? I'm particularly curious how a .NET bytecode executable ends up as baroque machine code as opposed to CLI bytecode like most .NET languages.

  24. Output from a IEC 61131-3 dev kit by uberskullz · · Score: 2

    Yeah it looks like the output from a PLC development kit, the original code might be written in STL http://en.wikipedia.org/wiki/Structured_text.

  25. Re:Looks like assembly to me by Whiteox · · Score: 2

    Actually looks like the result of a macro assembler module. The MOV functions gives it away. The only reason for doing that is to make it faster or to reduce the code size, not necessarily to obfuscate. The programmer is old school.

    --
    Don't be apathetic. Procrastinate!