Slashdot Mirror


Microsoft Certificate Was Used To Sign Flame Malware

wiredmikey writes "Microsoft disclosed that 'unauthorized digital certificates derived from a Microsoft Certificate Authority' were used to sign components of the recently discovered Flame malware. 'We have discovered through our analysis that some components of the malware have been signed by certificates that allow software to appear as if it was produced by Microsoft,' Microsoft Security Response Center's Jonathan Ness wrote in a blog post. Microsoft is also warning that the same techniques could be leveraged by less sophisticated attackers to conduct more widespread attacks. In response to the discovery, Microsoft released a security advisory detailing steps that organizations should take in order block software signed by the unauthorized certificates, and also released an update to automatically protect customers. Also as part of its response effort, Microsoft said its Terminal Server Licensing Service no longer issues certificates that allow code to be signed."

31 of 194 comments (clear)

  1. Surprised this isn't regulated more closely by danbuter · · Score: 5, Interesting

    I kind of thought Microsoft would make damn sure someone else couldn't duplicate their signatures (barring an employee or a government doing it).

    1. Re:Surprised this isn't regulated more closely by Dogtanian · · Score: 4, Interesting

      I kind of thought Microsoft would make damn sure someone else couldn't duplicate their signatures (barring an employee or a government doing it).

      Given the blurb for this story that also appeared today...

      All three were most likely developed by a Western intelligence agency as part of covert operations [..] consumer-grade antivirus products can't protect against targeted malware created by well-resourced nation-states with bulging budgets

      I think that *this* part of your comment:-

      (barring an employee or a government doing it)

      may answer your own question. Aside from the fact that governments would have had massive resources to start off with, it's also probable that MS were (at least) forced to allow those governments access or involvement at some level to otherwise secure or confidential aspects of their software.

      If this is the case, then at the very least, they could have used such knowledge to give themselves an advantage. Going one step further, it's possible that they used or exploited this to help steal or get access to those keys.

      But given that it's widely claimed that the US government was involved in the creation of Stuxnet, it's equally plausible that MS willingly gave- or were pressurised into giving- them those certificates knowingly, even if they might not have known exactly what they were for.

      This is just speculation- I don't know any of this for sure, or have any special knowledge of the situation. But it does add up to being at least plausible.

      --
      "Slashdot - News and Chat Sites Deviant". (Click "homepage" link above for details).
    2. Re:Surprised this isn't regulated more closely by fuzzyfuzzyfungus · · Score: 5, Informative

      The Feds may also be leaning on MS/Verisign/whoever; but this instance appears to be one of rather serious fuck-uppery. From MS's blog entry:

      "What we found is that certificates issued by our Terminal Services licensing certification authority, which are intended to only be used for license server verification, could also be used to sign code as Microsoft. Specifically, when an enterprise customer requests a Terminal Services activation license, the certificate issued by Microsoft in response to the request allows code signing without accessing Microsoft’s internal PKI infrastructure."

      So, guys, turns out that we accidentally built our phone-home DRM such that the cryptographic "OK, your CALS are worthy unto Redmond and thou mayst remote desktop" message is also a valid signing key with a chain of trust going right back up to a default-trusted Microsoft cert... Oops.

      Now, given that (so far as we know, clearly team AV isn't in any position to tell us) this little mistake was not widely known or exploited, clearly the Flame guys were on the ball(and far more interested in spying on Iran or whoever than in improving the security of domestic computers... thanks a whole fucking lot on that one, feds).

    3. Re:Surprised this isn't regulated more closely by mcgrew · · Score: 5, Insightful

      So much for "SafeBoot". maybe we shoulc now start calling it "unsafe boot"?

    4. Re:Surprised this isn't regulated more closely by Spyder · · Score: 4, Insightful

      Stuxnet was signed by stolen certificates: http://www.securelist.com/en/analysis/204792208/Stuxnet_Duqu_The_Evolution_of_Drivers?print_mode=1 . it's possible that Flamer was signed by compromised certificates, but if we believe that Stuxnet and Duqu were the products of a nation state level actor then we could conclude that Flamer is in the same category.

      --
      Spyder
    5. Re:Surprised this isn't regulated more closely by Spiked_Three · · Score: 4, Insightful

      "This is just speculation- I don't know any of this for sure, or have any special knowledge of the situation. But it does add up to being at least plausible."

      I have a little knowledge, not a lot, and yes this is exactly the kind of thing that can happen. it is quite impressive what happens when as a company you tell NSA no. In my limited experience, it changes to yes less than a month later.

      Simple reality, microsoft probably let a bug/flaw slip through a while back, if that was not the case then they were told to. laugh all you want, but if any other operating system had been the target, do you think the outcome would have been any different? oh, and here is another amazing fact; it will happen again if desired.

      --
      slashdot troll = you make a compelling argument I do not like the implications of.
    6. Re:Surprised this isn't regulated more closely by Anonymous Coward · · Score: 5, Funny

      Sorry, but when you run Windows, MS does the thrusting.

    7. Re:Surprised this isn't regulated more closely by Alarash · · Score: 3, Interesting

      I attended a Check Point keynote last near in Barcelona, where the speaker described how Stuxnet came to existence. Stuxnet also used digitally signed certificates used to authenticate a program's developer (usually a company). One came from Realtek, I forgot the other one.

      The presenter said that these certificates had been signed by the CA that Microsoft delegated to these companies. Normally these CA servers stand in highly secured room, with no network connection whatsoever. The certificates still got leaked. Something similar must have happened here. These are highly sophisticated pieces of malware, with virtually no expense spared to build them (for the Stuxnet example, you had to have your own Siemens PLC, something huge and expensive and hard to come by). So it's not really surprising they could just pay a disgruntled employee, or hack into the building, or doing some James Bond stuff, or god knows what, to get their hands on these certificates.

  2. Yay for security! by Anonymous Coward · · Score: 5, Funny

    Proving once and for all that Microsoft's control of the bootloader key that is used everywhere will make all future computers more secure!

    1. Re:Yay for security! by the_B0fh · · Score: 3, Informative

      No, *MOTHERBOARD* manufacturers can add other keys. If you can't even boot to an alternative OS, there's no way in hell you could _CHANGE_ the damned keys, unless there was a vulnerability.

      So please stop your FUD.

    2. Re:Yay for security! by peppepz · · Score: 5, Interesting

      GP is perfectly right, if anything. Microsoft will control by default all bootloaders, and this event shows that Microsoft are unable to maintain their chain of trust. The fact that there can be (or not - cf. ARM) an undocumented, user-unfriendly, unspecified procedure to add other people's keys doesn't change a bit of that.

    3. Re:Yay for security! by peppepz · · Score: 5, Insightful

      First they came for ARM on the desktop, and I didn't speak because I didn't care...

    4. Re:Yay for security! by tepples · · Score: 3, Interesting

      For x86 systems, there is absolutely a means to change or add keys.

      So how will publishers of alternative operating systems be able to train home users in adding the key needed to install another operating system?

    5. Re:Yay for security! by betterunixthanunix · · Score: 4, Insightful

      That is not true for ARM "Windows 8 Ready" platforms, but seriously who cares about ARM on the desktop?

      Maybe you are not creative enough to think of a reason to use ARM on a desktop? I can think of some:

      1. Low power situations -- I have a little ARM desktop that uses only 4W of power; this would be great if I were in a situation where I had to generate my own power, e.g. in a boat, in an RV, in a shack somewhere, etc.
      2. Low cost computers e.g. Raspberry Pi.

      There you go, some situations where an ARM desktop might make sense. Really though, this misses the more important point: why should a computer user ever be barred from installing the software they want to install? Allowing people to install new signing keys for their computer is not at all unreasonable; it could be as simple as pressing a button and inserting a thumb drive (enough effort to make social engineering harder, but not so much effort that an untrained person would not be able to handle it).

      --
      Palm trees and 8
    6. Re:Yay for security! by recoiledsnake · · Score: 4, Insightful

      No, first they came for phones and tablets, and they can barely keep them in stock with people falling over themselves and risking stampedes to buy them.

      http://www.macobserver.com/tmo/article/gartner_apple_turns_its_complete_inventory_every_5_days/

      But somehow it's fashionable only to slag Microsoft on here and ignore the elephant in the room with the lion's share of devices and profits.

      --
      This space for rent.
    7. Re:Yay for security! by 0123456 · · Score: 5, Insightful

      The same way they train home users to install another OS?

      Boot from CD and hit 'Install'?

      Nope. Not going to work in the Glorious People's Secure Boot Dictatorship.

      In fact, I presume you won't even be able to boot from CD without disabling 'Secure Boot' in the BIOS.

  3. Remember the Kernel Backdoor by Anonymous Coward · · Score: 4, Interesting

    I think it was an SHS exploit or something in the Windows Kernel. Steve Gibson stepped through the Kernel and concluded that this vulnerability was an intentionally placed backdoor, perhaps by a Microsoft employee. It's in one of his earlier podcasts. Lots of people thought maybe he was crazy at the time, but in retrospect ... maybe not so much.

    1. Re:Remember the Kernel Backdoor by ChumpusRex2003 · · Score: 3, Interesting

      I don't think Gibson found a kernel backdoor.

      He did should very loudly about an intentional backdoor in the windows metafile image handler, which would start executing native code when a callback command was included in the script. He made a large number of spurious arguments as to why this was clearly intentional, as the vuln could only be triggered in very exceptional circumstances.

      He was completely wrong about almost everything he said. The vuln was trivial to trigger, except when it was the last instruction in the script (which was the only way Gibson was testing). From the fact that he had great difficulty triggering it, requiring multiple parameters to be set to nonsense values, he concluded that this was clearly a deliberate backdoor.

      It later came out from a number of MS insiders (incl. Mark Russinovich) that metafiles were a feature of Win 3, and were intended to be fully-trusted OS components (for rapid image drawing, and therefore had privileged access to a variety of internal system calls - notably the ability to set callbacks). The functionality was greatly increased in Win95 and later, with the original x86 hand-written assembly being ported directly, rather than rewritten. In the mists of time, the assumption of full-trust got lost.

    2. Re:Remember the Kernel Backdoor by trifish · · Score: 3, Interesting

      Since when is sheer unsourced FUD posted by Anonymous Coward starting with "I think that" moderated +5?

  4. Re:Nice Headline by K.+S.+Kyosuke · · Score: 4, Insightful

    What exactly do you mean by "counterfeit"? If the signing key was signed by the genuine Microsoft key, how does that objectively differ from all the other signing keys?

    --
    Ezekiel 23:20
  5. Re:Nice Headline by joeflies · · Score: 5, Informative

    It was not a counterfeit microsoft certificate. It was a legitimate microsoft certificate from Terminal Server Licnensing Service, but used for purposes other than it was intended.

  6. UEFI by Anonymous Coward · · Score: 5, Insightful

    And this is how they plan to monopolize Secure Boot (UEFI) and get rid of Linux? why should I trust that ONE KEY that microsoft plans to install on all motherboards?

    JP

    1. Re:UEFI by betterunixthanunix · · Score: 5, Informative

      First of all the Secure Boot in UEFI wasn't mandated by Microsoft

      Except when it comes to Windows 8 on ARM systems. Then Microsoft does mandate secure boot.

      A feature any OS is free to implement, including linux.

      1. Linux is not an operating system, it is a kernel.
      2. What difference does it make if other OSes support secure boot, if you cannot install those OSes as a result of secure boot being used?

      Secondly, motherboard manufacturers are able to add (or pre-add) any key (or none at all) if they choose.

      This is a cop out; unless there is a simple way for users to install their own keys, this is something that will further restrict how people can use their computers. You can jailbreak your iPad if you want, but the majority of people have trouble doing so.

      Thirdly, there is nothing keeping users from being able to install their own key (or additional keys) through the UEFI boot process, assuming the UEFI manufacturer provides one.

      ...which is something Microsoft pressures them not to do on ARM devices:

      https://www.softwarefreedom.org/blog/2012/jan/12/microsoft-confirms-UEFI-fears-locks-down-ARM/

      Really, stop spreading your FUD.

      What FUD? We said years ago that iPad style lock-down is coming to desktops and laptops; now we have moved a step closer. There is a lot of money to be made from attacking computer users' freedom, and now that Apple has pulled in billions of dollars doing so, everyone else wants to join the party.

      --
      Palm trees and 8
    2. Re:UEFI by MickyTheIdiot · · Score: 3, Interesting

      But is Linux only able to join the party is it plays in the game Microsoft created? Do you have to be a multi-million dollar company to play? Can I write my own OS if I wanted to and have it boot "securely" on hardware that I own.

      None of this seems answered right now. I know that the idiots in Washington DC think you have to be a company to make software, but when you implement that into the hardware it's total bullshit.

    3. Re:UEFI by a90Tj2P7 · · Score: 3, Informative

      This is a cop out; unless there is a simple way for users to install their own keys, this is something that will further restrict how people can use their computers.

      There is. UEFI isn't new, nor is secure boot. The only thing new is MS wanting to make it . There's a process for adding keys. Or the vendor can just pay $99 to Verisign like Fedora's doing. Even if you think that isn't "simple" enough, the feature can just be disabled on x86 machines.

    4. Re:UEFI by Culture20 · · Score: 3, Interesting

      the Windows 8 Ready program requires manufacturers to make adding additional secure boot keys available to the end user. Secure Boot isn't some conspiracy to get rid of Linux, it's an attempt to try to get rid of physical access == owned.

      Except it does nothing about that. Physical access still == owned unless you lock the bios/uefi and physically lock the machine. Otherwise the attacker can either take out the HDD or boot up a Linux live CD or other HDD by adding a new key. That's no different from the current state of affairs where we change the boot order, lock down the bios and lock the machine. That means the purpose for Secure Boot has to be something else... and easy money is on market dominance (even just joe-user home market dominance).

    5. Re:UEFI by betterunixthanunix · · Score: 5, Insightful

      the vendor can just pay $99

      The fact that this is phrased in terms of "vendors" should indicate that this is an attack on user freedom. A fee to install your signing key creates obstacles for anyone who wants to fork a GNU/Linux distribution (happens all the time), anyone who wants to create their own distribution, and anyone who wants to try "Linux from Scratch" (and I know of a few people who have done so). It also creates an obstacle for anyone who wants to write their own kernel or OS; if Linus Torvalds had to pay $99, the Linux kernel itself may never have been created.

      Even if you think that isn't "simple" enough

      The fact that money is involved makes it a major barrier, and counts very strongly against the process being "simple" (it requires a payment to be processed, a third party to the new key, etc. -- you cannot even test a system without the fee; compare with TLS, where you can generate a usable test certificate without paying anyone).

      the feature can just be disabled on x86 machines.

      Only if the motherboard manufacturer allows it, and this is not allowed on ARM machines that will run Windows 8. Considering the inroads ARM has made into personal computing, I do not think it is unfair to say that the decisions made today about ARM computers will shape the reality of personal computing over the next decade. We are already seeing this happening; app stores are the norm, people are talking about trendy apps, etc.

      --
      Palm trees and 8
  7. Re:Nice Headline by Psykechan · · Score: 5, Informative

    The certs issues from the Terminal Server Licensing Service were intended to be used only for connections and not code signing. This is Microsoft's blunder. They weren't actually licensing malicious certificates but they were giving people tools to issue what appeared to be valid certs coming from MS.

    The fixes are going to be changing TSLS so that its certs can no longer be used to sign code and revoking the intermediate CA certs that are affected.

    http://blogs.technet.com/b/msrc/archive/2012/06/03/microsoft-releases-security-advisory-2718704.aspx

  8. fake certificates, or sold certificates? by Edzilla2000 · · Score: 3, Interesting

    Considering that microsoft sold the possibility to sign ssl certificates for any domain to the late Tunisian government, why wouldn't they sell the same thing to the makers of that virus, if it really comes from a government?

    source: http://arabcrunch.com/2011/09/wikileaks-microsoft-accused-in-helping-bin-ali-monitor-tunisians-corruption-stifling-open-source.html

  9. Really? by Corson · · Score: 5, Interesting

    Flamer is out in the wild since cca. 2007, with a MS signed certificate, and the only IT security organization that decides to bring it to public attention is a Russian company, and the first removal tool is from a Romanian company. Isn't this a bit strange? Isn't it more likely that this NA-designed spyware targetting the Middle East was released with the tacit agreement of Western security companies and it only became known because the Russians, for some reason, decided they would not play the game? Microsoft being unaware for thw last few years that hundreds of computers are infected with a 20 MB spyware pack bearing a security certifice of their own? Come on...

  10. Today's Lesson by Adrian+Lopez · · Score: 4, Insightful

    So... what did we learn today?

    1. Signed code is not safe code.
    2. An insecure operating system that only runs signed code is still an insecure operating system.

    --
    "In prison you just have to shut your eyes and take it. Here you have to shut your eyes and give it."