Re:Flame: Massive cyber-attack discovered, researchers say
by gaius on Monday May 28, 2012 @12:00PM
(#4033892)
Aren't these the guys who wigged out because they thought Duqu was written in an entirely new custom virus language? And it was actually Visual C++? The second most common compiler on the planet? (after GCC) I would take their analysis with a big pinch of salt.
Re:Flame: Massive cyber-attack discovered, researchers say
by gaius on Monday May 28, 2012 @03:15PM
(#4034593)
Not really; they just did OO with C structs and function pointers, this is actually how it used to be done in high- performance code like computer graphics before C++ got fast enough. And the " obfuscation" was passing the -O flag to the compiler...
Re:Flame: Massive cyber-attack discovered, researchers say
by forgotusername on Monday May 28, 2012 @03:37PM
(#4034662)
Any group of reverse engineers who notice C calling conventions and conclude the function parameters are so uniform that it must absolutely be a deadly new HACKER LANGUAGE need to be taken out back and shot, but I doubt any actual engineers were responsible for that announcement.
Re:Flame: Massive cyber-attack discovered, researchers say
by dbh937 on Monday May 28, 2012 @09:49PM
(#4035596)
From the official blog post:
>There are however some links which could indicate that the creators of Flame had access to technology used in the Stuxnet project - such as use of the “autorun.inf” infection method
If I'm not mistaken, you can find youtube videos on how to exploit autorun.inf to make a prank virus. I'm with you on these guys missing easy stuff.
Re:Flame: Massive cyber-attack discovered, researchers say
by klt0825 on Monday May 28, 2012 @06:42PM
(#4035230)
That was actually my first thought as well. To be fair, it was C with Simple Object Orientation so not quite as terrible as misidentifying C++ straight up though it was still a bit of a fiasco.
From their perspective, I'm sure (over)hyping everything new they analyze as the next 'big deal' helps business even if they are wrong about the details on occasion.
Re:Flame: Massive cyber-attack discovered, researchers say
by LiquidSummer on Monday May 28, 2012 @11:26AM
(#4033748)
>At the moment, we haven’t seen use of any 0-days; however, the worm is known to have infected fully-patched Windows 7 systems through the network, which might indicate the presence of a high risk 0-day.
I really want to know what that 0day is, I can't comprehend how hard it would be to find a 0day remote execution on a Windows system
Re:Flame: Massive cyber-attack discovered, researchers say
by btipling on Monday May 28, 2012 @11:44AM
(#4033829)
The exploit might not be part of the package. It could be that the exploit installs flame and then uninstalls or removes traces of itself. 0days are very valuable, it makes sense to remove it if it has served its purpose.
Some exploits like those delivered via browsers attempt to execute code in privileged contexts without any file i/o. There might never have been anything to remove.
Re:Flame: Massive cyber-attack discovered, researchers say
by pjin on Monday May 28, 2012 @11:52AM
(#4033862)
From the Kaspersky article, Flame ships with a Lua VM, sqlite3, zlib, libbz2, and an SSL library (probably OpenSSL?), and these and more apparently result in its unusually large size (almost 20 MB).
Sounds almost like "lean malware" written by a relatively small team using easily available tools and libraries.
Re:Flame: Massive cyber-attack discovered, researchers say
by spritrig on Monday May 28, 2012 @10:13PM
(#4035637)
FLAME isn't a virus, it is software from Brazil, just like LUA is from Brazil.
"Tool prototyping in the FLAME platform is based on the Lua scripting language. Lua is adopted in FLAME as an extension language: its interpreter is embedded as a library into the measurement agents. On the one hand, the Lua interpreter gives to the scripts running in the agents access to active measurement primitives through a high-level, minimalist API. On the other hand, the measurement agents and the measurement API are implemented in C, preventing significant overheads in the measurement results due to the execution of Lua scripts."
http://martin.lncc.br/main-software-flame
Re:Flame: Massive cyber-attack discovered, researchers say
by makomk on Tuesday May 29, 2012 @03:55PM
(#4039412)
Looks like that link's since been updated to make it clear that this is a completely unrelated piece of software called Flame that just happened to use LUA too, with it being very unlikely that any code could be shared between the two. Basically, the name's just a coincidence.
Re:Flame: Massive cyber-attack discovered, researchers say
by fidotron on Monday May 28, 2012 @12:23PM
(#4033986)
Yes, this almost looks like they've created a sort of malware toolkit which has all the hard parts and exploits in C, but can be scripted quickly for purpose.
Even better if the scripts can then be updated remotely as well.
All things considered, this is the kind of thing you'd do if you were going to do this long term.
Re:Flame: Massive cyber-attack discovered, researchers say
by duaneb on Tuesday May 29, 2012 @01:01AM
(#4036045)
The original virus may have only been a few hundred KB, which then bootstrapped the rest of the program. Just because you're writing malware doesn't mean you have to sacrifice good tools.
Re:Flame: Massive cyber-attack discovered, researchers say
by gregholmberg on Monday May 28, 2012 @04:21PM
(#4034797)
The Lua [0] functions are an interesting read.
CamelCase is mingled with upper and lower case VERBOSE_DEFINITIONS separated_by_underscores. This lack of a clear coding style may be visually annoying, but can be added during a final obfuscation step. The unstyled code may not be present in the unobfuscated repo, and does not necessarily indicate the presence of conflicting coding styles on the malware team.
The properties table called flame_props is created and populated inside of a deeply nested if-statement. Are all other branches of this function forced to operate without a valid properties table? This is not an obvious design choice for any programmer who values harmony in a team working on a shared codebase. Perhaps the Lua coder worked alone. Also, this kind of wtf_logic is difficult to insert later as obfuscation.
On lines 2 and 4 of the example, the Flame Lua supervisor appears to be loading text from an external source and eval'ing it as code. Lua distributions have long offered an entire API for managing and loading modules. Breaking a large project into modules is a standard practice. Reinventing a module loading tool, then, is probably not a path to reliability. The module loading code in Lua is a time-tested grab bag of platform-specific heuristics and yet is still a frequent topic of discussion on the mailing list. Given the multi-platform operating requirements of the program, reinventing it doesn't seem like the most robust design decision.
Similarly, the flame_props table is initialized with strings that looks like the names of entries in property tables of other modules. Why is there not a central way to create and populate these tables? Requiring conversion of "string dot string" into a clean table reference before use seems to unnecessarily add danger to the setup code.
Although I keep referring to a possible obfuscation step, I don't see strong evidence for one. The code uses variable names like SUCCESSFUL_INTERNET_TIMES_CONFIG next to l_1_0 and l_1_1. The short names are quite likely to cause new bugs due to typos, yet the long is very descriptive, almost self-documenting. I have seen code like this before -- it came from neglect bordering on malice, not from deliberate obfuscation.
Re:Flame: Massive cyber-attack discovered, researchers say
by haberman on Monday May 28, 2012 @03:38PM
(#4034663)
The reason why Flame is [20MB] is because it includes many different libraries, such as for compression (zlib, libbz2, ppmd) and database manipulation (sqlite3), together with a LUA virtual machine.
SQLite is 500kB, Lua is 150kb, zlib is 80kB, libbz2 is 60kB. Together this comes to less than 1MB, not 20MB. You would need an awful lot of libraries like this to get anywhere close to 20MB.
Re:Flame: Massive cyber-attack discovered, researchers say
by timdorr on Monday May 28, 2012 @04:31PM
(#4034831)
They're likely skipping over a ton of libraries for brevity's sake. It captures data from audio, video, bluetooth, and other sources. A full BT stack is going to be pretty sizable. If there's any compression being done on that audio or video, that could also add to the bulk.
Re:Flame: Massive cyber-attack discovered, researchers say
by haberman on Tuesday May 29, 2012 @01:56AM
(#4036141)
Exactly. I particularly wanted to mention that it's entirely possible to ship software that uses libraries like this but isn't 20MB large. But maybe there are a lot more libraries included than are mentioned here (as another poster suggested).
Re:Flame: Massive cyber-attack discovered, researchers say
by FreakLegion on Monday May 28, 2012 @04:39PM
(#4034855)
Note that while the exploit is in the PDF, the vulnerability is in the PDF reader. In practice, Adobe's software is the only attack surface anyone ever exploits, so you can read exploit-laden PDFs worry-free by using a less popular alternative. The same is true with Word/Excel files, etc.
You should still have some kind of comprehensive security solution in place, particularly for a business environment, but use of non-standard software is an effective fail-safe for when your "real" security craps out on you (as it inevitably will).
Re:Flame: Massive cyber-attack discovered, researchers say
by makomk on Tuesday May 29, 2012 @03:58PM
(#4039433)
I've no idea why everyone only exploits Adobe's software though. For instance, pretty much all the open source PDF readers are based on a single PDF library called Poppler with a history of security vulnerabilities - exploit that and you should be able exploit all of them in one fell swoop.
Re:Flame: Massive cyber-attack discovered, researchers say
by missing_cipher on Monday May 28, 2012 @12:05PM
(#4033909)
Would opening a pdf via Chrome for example provide any extra protection? From what I understand most of the exploits are because of embedded media, no?
Re:Flame: Massive cyber-attack discovered, researchers say
by LiquidSummer on Monday May 28, 2012 @12:20PM
(#4033973)
Extra protection as opposed to opening it in adobe reader, yes, much likely. Chrome has a sandbox for pdfs as far as I'm aware, they also provide a lot of big bug bounties to people who find any remote execution bugs in Chrome. So, in conclusion, yes, chrome provides relatively more security than other software when opening PDFs.
Re:Flame: Massive cyber-attack discovered, researchers say
by swatkat on Monday May 28, 2012 @02:32PM
(#4034454)
IIRC, both Adobe Reader "Protected Mode"[1] and Chromium "sandbox"[2] are built on Windows user-mode sandbox framework[3]. Basically, things like principle of least privilege and disable writes etc.
Re:Flame: Massive cyber-attack discovered, researchers say
by acdha on Monday May 28, 2012 @10:16PM
(#4035648)
Security is all about execution: Chrome has an enviable track record; Adobe has an embarrassing one. They could change that but it's unclear that they're motivated to build up serious security competency (if they were, the manager in charge of their update process would be fired for cause)
Re:Flame: Massive cyber-attack discovered, researchers say
by radagaisus on Monday May 28, 2012 @12:16PM
(#4033955)
>> Our estimation of development ‘cost’ in LUA is over 3000 lines of code, which for an average developer should take about a month to create and debug.
They should do project estimation instead of Security Analysis.
Re:Flame: Massive cyber-attack discovered, researchers say
by gue5t on Monday May 28, 2012 @03:25PM
(#4034622)
Assuming fairly dense formats (no .wavs or .bmp images), large files necessarily mean more than small files, so they draw more attention to themselves. "Why is /foo/bar using 300MB of disk?" is a much more likely avenue of inquiry than "Why is /foo/bar using 50KB of disk?".
Re:Flame: Massive cyber-attack discovered, researchers say
by moe on Monday May 28, 2012 @05:00PM
(#4034905)
Except the last time when 20MB was "large" was in the early 1990s. Today, even if someone goes to clean out their harddrive, a 20MB file is unlikely to even appear on the radar.
Re:Flame: Massive cyber-attack discovered, researchers say
by duaneb on Tuesday May 29, 2012 @01:11AM
(#4036054)
I don't quite understand what you mean - the 20MB file would stand out on a mail server? I find that unlikely, unless they're running OpenBSD. Is the 20MB file attached to mail messages? That also seems unlikely, if only because that's a really stupid way to design a virus.
Re:Flame: Massive cyber-attack discovered, researchers say
by Travis on Tuesday May 29, 2012 @02:03PM
(#4038816)
The reason it's a stupid way to design a virus currently is because that was one of the primary attack vectors in the past. Yes, most decent mail systems will protect against this. But some might not -- might as well use what's worked in the past as well as other options.
Also, what if the mail component were used to hide/archive the virus? Hide a virus attachment from someone to themself, then have some bootstrap code (Outlook/email client exploit, perhaps) that loads the email archived virus back onto the comp.
Re:Flame: Massive cyber-attack discovered, researchers say
by TheCapn on Monday May 28, 2012 @11:05AM
(#4033658)
BBC won't provide the technical details that we hackers would require to differentiate the two. If it shares the likes of Stuxnet then it would have some pretty clever 0-days inside to help with infection and spreading.
Re:Flame: Massive cyber-attack discovered, researchers say
by makomk on Tuesday May 29, 2012 @04:02PM
(#4039466)
I think hobbyist development of exploits of the kind that lead to Sub7 has mostly fallen out of fashion, to be honest. Most of the stuff out there these days seems to be commercially-driven scamware and phishing and its developers don't have the same incentive to make their code as 1337 as possible. So 90s-style exploit kits and RATs are quite unusual in 2012.
Re:Flame: Massive cyber-attack discovered, researchers say
by vecinu on Monday May 28, 2012 @11:06AM
(#4033665)
I assume we are going to see a complicated and interesting dissection a la Stuxnet? The Stuxnet TED talk [0] was really interesting, I ended up giving a talk to my department at work afterwards.
Re:Flame: Massive cyber-attack discovered, researchers say
by dfc on Monday May 28, 2012 @04:04PM
(#4034739)
How could it not be? That is a very broad group. Who else has the motivation to develop and maintain large scale malware/spyware? If you want to be pedantic about it cybercriminal is probably broad enough to be all inclusive.
I guess you could include companies like Sony but they were probably excluded for not having the same malicious intent.
Re:Flame: Massive cyber-attack discovered, researchers say
by LiquidSummer on Monday May 28, 2012 @11:21AM
(#4033732)
Highly unlikely that that will happen, simply because even the smaller virus writers take precaution when buying servers, they usually do it using stolen credit cards that are not hard to acquire. In addition, the it also depends whether the hosting companies are willing to assist people with the investigation.
Re:Flame: Massive cyber-attack discovered, researchers say
by LiquidSummer on Monday May 28, 2012 @11:10AM
(#4033679)
I'm fed up by these technically lacking stories that don't give you the details but tell you that its "complex". While I realise that the BBC website is aimed towards the general public I think that it would be beneficial to include at least some technical details.
Re:Flame: Massive cyber-attack discovered, researchers say
by LiquidSummer on Monday May 28, 2012 @11:23AM
(#4033737)
Haha! yeah I just finished reading the kinda-more-informative analysis (http://www.securelist.com/en/blog/208193522/The_Flame_Questi...). Seems very interesting. I wish that they would share the samples so other hobbyists could also see what it is like
Re:Flame: Massive cyber-attack discovered, researchers say
by gcb on Monday May 28, 2012 @01:45PM
(#4034291)
Their conclusion that because it doesn't steal money it can't belong to cybercriminals is bogus and show how little they understand of the industry.
I've heard of researchers from one company dumpster diving the competition. A worm (as amateur as a 20mb one ) could easily be the work of those kind. But i think it gets less press than "evil country" "omg world cyber war" ...not that it may not be happening anyway.
Also, the Linux kernel, and any other half decent large C program.
Can't tell if you are trolling or ...
From their perspective, I'm sure (over)hyping everything new they analyze as the next 'big deal' helps business even if they are wrong about the details on occasion.
I really want to know what that 0day is, I can't comprehend how hard it would be to find a 0day remote execution on a Windows system
Some exploits like those delivered via browsers attempt to execute code in privileged contexts without any file i/o. There might never have been anything to remove.
Sounds almost like "lean malware" written by a relatively small team using easily available tools and libraries.
"Tool prototyping in the FLAME platform is based on the Lua scripting language. Lua is adopted in FLAME as an extension language: its interpreter is embedded as a library into the measurement agents. On the one hand, the Lua interpreter gives to the scripts running in the agents access to active measurement primitives through a high-level, minimalist API. On the other hand, the measurement agents and the measurement API are implemented in C, preventing significant overheads in the measurement results due to the execution of Lua scripts." http://martin.lncc.br/main-software-flame
Even better if the scripts can then be updated remotely as well.
All things considered, this is the kind of thing you'd do if you were going to do this long term.
What's next? Shipping the JVM and MariaDB
CamelCase is mingled with upper and lower case VERBOSE_DEFINITIONS separated_by_underscores. This lack of a clear coding style may be visually annoying, but can be added during a final obfuscation step. The unstyled code may not be present in the unobfuscated repo, and does not necessarily indicate the presence of conflicting coding styles on the malware team.
The properties table called flame_props is created and populated inside of a deeply nested if-statement. Are all other branches of this function forced to operate without a valid properties table? This is not an obvious design choice for any programmer who values harmony in a team working on a shared codebase. Perhaps the Lua coder worked alone. Also, this kind of wtf_logic is difficult to insert later as obfuscation.
On lines 2 and 4 of the example, the Flame Lua supervisor appears to be loading text from an external source and eval'ing it as code. Lua distributions have long offered an entire API for managing and loading modules. Breaking a large project into modules is a standard practice. Reinventing a module loading tool, then, is probably not a path to reliability. The module loading code in Lua is a time-tested grab bag of platform-specific heuristics and yet is still a frequent topic of discussion on the mailing list. Given the multi-platform operating requirements of the program, reinventing it doesn't seem like the most robust design decision.
Similarly, the flame_props table is initialized with strings that looks like the names of entries in property tables of other modules. Why is there not a central way to create and populate these tables? Requiring conversion of "string dot string" into a clean table reference before use seems to unnecessarily add danger to the setup code.
Although I keep referring to a possible obfuscation step, I don't see strong evidence for one. The code uses variable names like SUCCESSFUL_INTERNET_TIMES_CONFIG next to l_1_0 and l_1_1. The short names are quite likely to cause new bugs due to typos, yet the long is very descriptive, almost self-documenting. I have seen code like this before -- it came from neglect bordering on malice, not from deliberate obfuscation.
There is plenty more in there.
[0] "What's in a name?" http://www.lua.org/about.html#name
SQLite is 500kB, Lua is 150kb, zlib is 80kB, libbz2 is 60kB. Together this comes to less than 1MB, not 20MB. You would need an awful lot of libraries like this to get anywhere close to 20MB.
What point are you trying to make exactly?
Although the naming differs it has been noted on several blogs that it is the same malware.
You should still have some kind of comprehensive security solution in place, particularly for a business environment, but use of non-standard software is an effective fail-safe for when your "real" security craps out on you (as it inevitably will).
[1]http://blogs.adobe.com/asset/2010/10/inside-adobe-reader-pro...
[2]http://dev.chromium.org/developers/design-documents/sandbox
[3]http://blogs.msdn.com/b/david_leblanc/archive/2007/07/27/pra...
spooky.
They should do project estimation instead of Security Analysis.
Also, what if the mail component were used to hide/archive the virus? Hide a virus attachment from someone to themself, then have some bootstrap code (Outlook/email client exploit, perhaps) that loads the email archived virus back onto the comp.
[0] - http://www.youtube.com/watch?v=CS01Hmjv1pQ
http://vimeopro.com/s42012/s4-2012/video/35806770
Surely that can't be all-inclusive… is it?
I guess you could include companies like Sony but they were probably excluded for not having the same malicious intent.
I've heard of researchers from one company dumpster diving the competition. A worm (as amateur as a 20mb one ) could easily be the work of those kind. But i think it gets less press than "evil country" "omg world cyber war" ...not that it may not be happening anyway.
(this is besides the point if it is a good or bad idea. In any case, it is certainly seems novel to me)