Record · 2012

Flame and the MD5 collision against Microsoft Terminal Server Licensing

Flame, espionage malware revealed in May 2012, spread by posing as Windows Update with a forged Microsoft signatureSecurelist (archived) 2012ASIACRYPT 2015, LNCS 9453 2015. Its certificate came from an MD5 collision against Microsoft's Terminal Server Licensing Service, using a previously unknown variant of the chosen-prefix attackMicrosoft SRD blog (arch… 2012IACR ePrint 2013/358 (CR… 2013.

  1. IntroducedMD5 is introduced. ASIACRYPT 2015, LNCS 9453 2015
  2. ExploitedDisputed earliest trace: a Flame component filename is first seen by the Webroot community in Europe (CrySyS). CrySyS Lab 2012 Disputed or alleged.
  3. EventRogue CA certificate via MD5 collision demonstrated publicly; Microsoft updates its Root CA Program to disallow MD5. ASIACRYPT 2015, LNCS 9453 2015
  4. ExploitedKaspersky is certain Flame was in the wild by February to March 2010. Securelist (archived) 2012
  5. DiscoveredFlame is publicly revealed by Kaspersky (searching at the ITU's request), with CrySyS Lab and Iran's MAHER CERT reporting the same malware independently. Securelist (archived) 2012CrySyS Lab 2012
  6. DisclosedCrySyS publishes v1.05 of its sKyWIper technical report. CrySyS Lab 2012
  7. MitigatedMicrosoft issues out-of-band Security Advisory 2718704 on a Sunday night, moving the Terminal Server Licensing intermediate CAs to the Untrusted store and stopping code-signing certificates from that service. Microsoft 2012Microsoft Security Respo… 2012Microsoft SRD blog (arch… 2012
  8. AcknowledgedMicrosoft confirms a collision attack was needed to forge a certificate valid on Windows Vista and later. Microsoft SRD blog (arch… 2012
  9. DisclosedStevens' counter-cryptanalysis paper documents that Flame used a previously unknown variant of the chosen-prefix MD5 attack. IACR ePrint 2013/358 (CR… 2013
  10. EventFillinger and Stevens publish a reverse-engineering of Flame's collision attack at ASIACRYPT 2015. ASIACRYPT 2015, LNCS 9453 2015

What it did

Flame was in the wild by early 2010, about 847 days (2.3 years) before public discovery, and Kaspersky estimated probably thousands of victims worldwideSecurelist (archived) 2012. Microsoft confirmed two unauthorized Microsoft-issued certificates in active attacks and moved the affected intermediate CAs to its Untrusted store 6 days after Flame became publicMicrosoft 2012Microsoft Security Respo… 2012.

What it teaches

MD5 collisions had been public since 2004 and a rogue CA certificate built with them was shown in 2009, yet one Microsoft service still used MD5 to issue certificates able to sign codeIACR Cryptology ePrint A… 2004ASIACRYPT 2015, LNCS 9453 2015Microsoft Security Respo… 2012. The attacker held cryptanalysis the open literature did not have, and it surfaced only through malware analysisIACR ePrint 2013/358 (CR… 2013. Attribution to a joint US and Israeli effort rests on unnamed officialsASIACRYPT 2015, LNCS 9453 2015.