Perimeter
6/23/2012
01:23 PM
Tom Parker
Tom Parker
Commentary
Connect Directly
RSS
E-Mail
50%
50%

Flame: Reading Between The Ones And Zeros

As more information about Flame is revealed, let's consider what we might infer from Flame's composition

Earlier this month, the news wires were ablaze with news of the newly discovered Flame framework, which seemingly began infecting Iranian computer networks as early as 2008. During the past month, a number of revelations have come about, thanks to the work of the research community -- which has undertaken the laborious task of analyzing what, in terms of its size and sophistication, is probably the most complex malicious software framework that we’ve seen.

Much of the analysis provided so far has honed in on one or more of the many modules donned by Flame, which provides it with functionality to persist, propagate, and gather data from target systems. Flame is currently known to contain 20 unique modules whose purposes in life range from hijacking the Windows update process (named Gadget and Munch), to an Autorun infector, which is now known to provide a direct link to Stuxnet via resource 207 (from Stuxnet.A). It will likely take much of the rest of this year for Flame to be more exhaustively understood, but I wanted to take a moment to reflect on what we do know and what we can infer with regard to those responsible for its creation and operation.

Be prepared. Flame was prepared, unlike any malware framework that we have seen in the public domain before. While few of Flame's components were truly unique from a functionality standpoint, their integration in a single framework is pretty impressive. This clear, modular design is indicative of a mature development operation that likely assigned a number of teams to the development of each of Flame's modules. Development of code in this manner also supports a compartmentalized approach to Flame's development -- meaning that no single module developer need be necessarily familiar, or have any knowledge of other modules being developed in parallel to theirs -- or, indeed, be aware of the overall complexity and mission of Flame.

I do find it slightly curious that the authors of Flame decided to incorporate most of its features into a single assembly. When penetrating an environment, different systems are going to have differing values to you as an attacker. As such, you’re going to typically load tools onto compromised systems based on what you plan on leveraging that system for. Flame chose to load all of its modules onto infected systems ahead of time -- which has the advantage of everything being there should you need it -- but has the distinct disadvantage that should you be detected, the entire framework and any add-on modules are now in the hands of your targets. This isn’t really something that I’ve ever considered before, given that nothing we’ve seen before is this complex, but it does make me wonder whether Flame's authors intentionally made this design decision based on its original targets residing on closed networks where its operators would be unable to load and unload modules in a more on-demand manner.

While somewhat interesting, most of Flame's modules all relate to functionality that we have seen elsewhere before. These include audio recording, screen capture, Bluetooth device-snooping, and so forth. One feature sticks out above the rest: Flame leveraged malicious software, signed by a seemingly authentic Microsoft certificate, in order to subvert the Windows update process.

In order to achieve this, Flame exploited a previously unknown “chosen-prefix” collision in the MD5 hashing algorithm. Although practical collision attacks in MD5 have been demonstrated in the past, this particular method was previously unknown -- and clearly the work of crypto mathematicians, of the sorts you are most likely to find at academic institutions and, yes -- working for governments.

Marc Stevens, one of the original researchers responsible for previously documented attacks against MD5, noted on his blog:

"Using our forensic tool, we have indeed verified that a chosen-prefix collision attack against MD5 has been used for Flame. More interestingly, the results have shown that not our published chosen-prefix collision attack was used, but an entirely new and unknown variant. This has led to our conclusion that the design of Flame is partly based on world-class cryptanalysis."

In many regards, this feature alone gave Flame the potential to spread more effectively and silently than any buffer overflow, logic bug, or privilege escalation flaw could have ever provided. Research breakthroughs like this are far less common than others in the security arena, making this feature more valuable than any conventional 0day that you might stumble across in your typical crime ware.

This is not the type of offensive technology that any entity is going to let go of without good cause, and so its presence in Flame provides us some valuable insights into how critical Flame’s higher level purpose was in the eyes of its possible state sponsor. My guess would be that whoever was responsible may well see the use of cyber in this context, as one of a number of last resorts prior to an armed conflict with the target. And in that event, it could well have been part of an ongoing contingency plan preparing both the cyber and physical battlefields.

Tom Parker is the CTO of FusionX

Comment  | 
Print  | 
More Insights
Register for Dark Reading Newsletters
White Papers
Flash Poll
Current Issue
Cartoon
Video
Slideshows
Twitter Feed
Dark Reading - Bug Report
Bug Report
Enterprise Vulnerabilities
From DHS/US-CERT's National Vulnerability Database
CVE-2013-6117
Published: 2014-07-11
Dahua DVR 2.608.0000.0 and 2.608.GV00.0 allows remote attackers to bypass authentication and obtain sensitive information including user credentials, change user passwords, clear log files, and perform other actions via a request to TCP port 37777.

CVE-2014-0174
Published: 2014-07-11
Cumin (aka MRG Management Console), as used in Red Hat Enterprise MRG 2.5, does not include the HTTPOnly flag in a Set-Cookie header for the session cookie, which makes it easier for remote attackers to obtain potentially sensitive information via script access to this cookie.

CVE-2014-3485
Published: 2014-07-11
The REST API in the ovirt-engine in oVirt, as used in Red Hat Enterprise Virtualization (rhevm) 3.4, allows remote authenticated users to read arbitrary files and have other unspecified impact via unknown vectors, related to an XML External Entity (XXE) issue.

CVE-2014-3499
Published: 2014-07-11
Docker 1.0.0 uses world-readable and world-writable permissions on the management socket, which allows local users to gain privileges via unspecified vectors.

CVE-2014-3503
Published: 2014-07-11
Apache Syncope 1.1.x before 1.1.8 uses weak random values to generate passwords, which makes it easier for remote attackers to guess the password via a brute force attack.

Best of the Web
Dark Reading Radio
Archived Dark Reading Radio
Marilyn Cohodas and her guests look at the evolving nature of the relationship between CIO and CSO.