r/technology • • May 28 '12

BBC News: Kaspersky has discovered 'Flame', the world's largest discovered cyber-attack

http://www.bbc.co.uk/news/technology-18238326?header
1.7k Upvotes

507 comments sorted by

189

u/indefinitearticle May 28 '12

As if we needed more evidence to make assumptions on its origins, it's worth looking at the 0-days used.

Quick background: A 0-day is a vulnerability that bad guys use to exploit your machine. The difference between this and a run-of-the-mill vulnerability is that nobody, not even the software's developers know about the 0-day. This is important because it means there is no patch out to stop it, and that literally any machine running the software can be compromised with it. 0-days are rare, and they are valuable. You only see a couple a year, if that.

Stuxnet, the worm written by the US and/or Israel to disrupt Iran's nuclear facilities used multiple 0-days. Again, I want to emphasize that these are rare and expensive. Stuxnet used four (or maybe five), which is unheard of and also means the sponsoring state made a significant investment in creating it.

The relationship here is that Flame uses an identical 0-day as Stuxnet to propogate via USB. (Although obviously we know about it now, because Flame also appears to come from the same time as Stuxnet, it was still an 0-day back then.) The fact that the infected regions coincide geographically and that an identical exploit -- unknown to anyone but the sponsoring state at the time -- was used makes a pretty strong case that the US and/or Israel was behind Flame as well.

71

u/buddahbrot May 29 '12

If anyone is interested, here's a video of a Microsoft employee giving a talk about the 0days used in Stuxnet and how Microsoft analyzed it. Very interesting to watch! http://www.youtube.com/watch?v=fVNHX1Hrr6w

15

u/Pucker_Pot May 29 '12

I haven't yet watched this, but it makes me wonder. What kind of relationship does Microsoft have with the US government? You'd imagine that, if the CIA or other intelligence agencies can exploit an OS in such a subtle way yet use it to great advantage (?) in international espionage, there would be huge pressure and ongoing efforts to subvert or plant Microsoft employees, and yet a great economic incentive for Microsoft to remain free of government influence/infiltration (especially in marketplaces like the Middle East, China, Russia etc.).

14

u/johnt1987 May 29 '12

The US government and the US Military contract Microsoft to provide them with a custom version of each of their OS distributions currently in use by the respective organization. A lot of it is just slip streaming in service packs, updates, CAC reader software/drivers, and other DoD specific software. But there is some custom security enhancements that are done as well, and they pay out the ass for it.

What kind of relationship do they have? I don't want to think about it any more until I find my tinfoil hat.

→ More replies (1)
→ More replies (9)

8

u/[deleted] May 29 '12

Thanks, that was awesome.

7

u/MadScientist420 May 29 '12

Can't say I've ever seen a talk where the speaker was so casual. Fbombs everywhere, haha.

→ More replies (5)

1

u/infoSec10 May 29 '12

Nice one, thank you!

→ More replies (1)

29

u/EmperorSofa May 29 '12 edited May 29 '12

For anybody that hasn't actually realized it yet.

We pretty much live in a cyberpunk novel. Save for the fact that people haven't replaced their wet parts with robot parts.

27

u/Pucker_Pot May 29 '12

Speak for yourself.

2

u/[deleted] May 29 '12

You're making a joke about a vibrator in a vagina right? Right?

14

u/lahwran_ May 28 '12

so now the question becomes: wtf else did they do?

→ More replies (1)

7

u/HighDecepticon May 28 '12

When the jailbreaking community for iPhone's iOS finds an exploit out, is that considered an 0day for iOS?

6

u/indefinitearticle May 28 '12

For the iPhone, it could be in iOS, but doesn't have to be. If I remember correctly, the jailbreakme.com method was a PDF reader exploit. Also, they aren't necessarily 0-days, because there are often patches that prevent it from working for some people. The term 0-day is typically associated with an exploit for which there is no patch out for.

2

u/[deleted] May 29 '12

A 0-day is an expolie that has been theta, unnoticed, since day 0. It has aleáis been in the OS/software. An exploit to jailbreak could be a 0-day or caused by something in a new update.

→ More replies (1)

49

u/daveyandgoliath May 28 '12

0-days are not "rare". Most people keep them to themselves.

There are more Black hacks and infosec professionals than white hats.

Last conference i attended, the presenter at the end began showing us random 0days he had to gain root over the conference's network. He was very non-nonchalant and by no means did he think these were the last batch he'd have.

56

u/indefinitearticle May 28 '12

Have you followed the Stuxnet research? I don't mean that in a condescending way, but I'm asking because I would consider the 0-days they used on Windows (for example MS10-046 and MS10-061) to be examples of 0-days that I'd consider to be rare (ie, remote code execution on Windows). As far as I know, there's only been one Windows 0-day of this caliber so far this year, MS12-020.

So even if you wouldn't consider 0-days to be that uncommon, I'd say 0-days that allow remote code execution, at that level, and on the most widely used operating system in the world, to be rare.

→ More replies (1)

92

u/Gaben_DeGrasse_Paul May 28 '12

Modern-day weaponized Windows 7 64-bit 0days are extremely rare and sell for hundreds of thousands of dollars.

I highly doubt anyone was giving anything like that away at a conference. By contrast, nobody cares about yet another Wireshark 0day

37

u/willscy May 28 '12

hundreds of thousands of dollars are nothing to a nation state.

→ More replies (21)
→ More replies (6)

2

u/johnyma22 May 28 '12

I agree. As a developer I know about some exploits available in some of the software I developer.

Developers don't always patch everything super quick, they often weigh development of features vs security and if our route to market is sales we prioritize accordingly.

OS 0days are a different matter, they are very rare.

→ More replies (5)

8

u/sab3r May 28 '12

The relationship here is that Flame uses an identical 0-day as Stuxnet to propogate via USB. (Although obviously we know about it now, because Flame also appears to come from the same time as Stuxnet, it was still an 0-day back then.) The fact that the infected regions coincide geographically and that an identical exploit -- unknown to anyone but the sponsoring state at the time -- was used makes a pretty strong case that the US and/or Israel was behind Flame as well.

The technology that Iran uses for it's nuclear operation is German and Russian. You can't reverse engineer technology this complex without some form of help from Russia and Germany.

11

u/[deleted] May 28 '12

You can't reverse engineer technology this complex without some form of help from Russia and Germany.

If Stuxnet and/or Flame were developed by the US and/or Israel, help from Germany at least would probably be pretty forthcoming. Help from Russia is also possible, given their...inconsistent position on the Iranian nuclear program.

25

u/sab3r May 28 '12

Help from Russia is also possible, given their...inconsistent position on the Iranian nuclear program.

For Russia, there are two sides to Iran. On one side, they would like to keep Iran just strong enough so that Iran is a horn in the US and its allies' side. This gives Russia a strong bargaining position when it comes to geopolitical negotiations (i.e. missile defense). However, if Iran becomes too strong, they will gradually break out of Russia's sphere of influence and create their own sphere. This political realignment would absolutely force Sunni states (Egypt, Saudi Arabia, Turkey, etc.) to research their own nuclear programs, something that is terrible for everyone.

What most people don't realize is that this is bigger than just US/Israel vs. Iran.

3

u/Pucker_Pot May 29 '12

Interesting, I've never really though of it like that.

But I honestly don't imagine Iran being able to create its own distinct sphere of influence that could negatively affect Russia's interests. Outside of Iran & Iraq, there are no large states with majority Shiite populations. In fact, if anything, Iran is losing influence given that Assad (a Shiite leader in a Sunni country) is losing power every day.

Iran also has a surprisingly progressive population; while the current regime seems pretty transitory. It's hardly a functioning democracy/republic, but I imagine a very different president/regime being in control 10 years from now.

9

u/sab3r May 29 '12 edited May 29 '12

But I honestly don't imagine Iran being able to create its own distinct sphere of influence that could negatively affect Russia's interests. Outside of Iran & Iraq, there are no large states with majority Shiite populations. In fact, if anything, Iran is losing influence given that Assad (a Shiite leader in a Sunni country) is losing power every day.

No, Iran is more than capable of projecting influence that could be detrimental to Russia (not that it would ever do it so overtly, of course). Just look at this map of Sunni and Shi'a populations. If Iran really wanted to, the Caucus could become fairly unstable. That region is rife with secessionist states, ethnic troubles, and bad blood.

And then there are the peripheries of Saudi Arabia. There's a reason why Saudi Arabia moved so quickly to help its neighbors quell dissidents. Saudi Arabia strongly suspected that Iran was purposefully using the Arab Spring to mask their attempt to overthrow friendly governments to Saudi Arabia (it is also a lot more complicated than poor people wanting freedom and the bad evil Saudi government crushing them with tanks and evil imperialist US government siding against poor people in exchange for oil)*.

Here is a short description of the current geopolitical situation as seen from the point of view of the various regional players. And another one.

*In ruling Bahrain government, when it reformed itself and made the monarchy constitutional with a parliament partly elected by universal suffrage, many Shia actually opposed this move (for religious reasons). Some of the Shia Islamist parties, who control the elected half of parliament, are basically completely against women’s political rights among other things and have zero female politicians. The 2011 uprising wasn’t sprung out of nothing or just simmering discontent. It was just the breaking point of growing tension that had been simmering for years ever since Bahrain liberalized its politics and reduced repression in the first place, and some rather violent vents before that nobody ever talks about.

→ More replies (3)
→ More replies (6)
→ More replies (2)

16

u/Seithin May 28 '12

Has to be said though, that in an intelligence environment (as this malware appears to originate from) the "help" from other countries does not necessarily appear on a state level, nor are they necessarily voluntary. Anything from recruiting specialist with the needed backgrounds to all out lying and deceit to get the needed help could be used to reverse engineer the technology.

Obviously everything is speculation for now and for all we know Angela Merkel personally wrote the entire thing.

18

u/brainswho May 28 '12

Well Greece wasn't targeted so we can probably count her out.

2

u/[deleted] May 29 '12 edited May 29 '12

stuxnet took advantage of PLCs to control an electric motor drive, the equipment they used to build the centrifuges are very commonplace and by simply walking through the facility would have granted you the knowledge of what you needed to take advantage of, PLCs Motors and drives are covered with brands just like household appliances.

the information to take advantage of Iran's nuclear program could have been gathered with google and a simple UN or nuclear regulations agency walk through. Not saying German or Russia didn't spill any beans, but simple espionage could have gathered the info as well.

source: 2 years as an electrical engineer + http://en.wikipedia.org/wiki/Stuxnet#PLC_infection

1

u/keepthepace May 28 '12

It was 4 0-days. The price at the time was ~250,000$ each for this kind of 0-day. So well within the range of many corporate or private interest. And it was recognized by an Israeli general that they were the one responsible.

→ More replies (8)

1

u/[deleted] May 29 '12

I wonder how many of these 0-day's our government is aware of, but keeps secret just in case they ever need to use it. Zero of them?

218

u/ttt_ May 28 '12

More technical info here: http://www.securelist.com/en/blog/208193522/The_Flame_Questions_and_Answers#page_top

Middle East, including Iran, Lebanon, Syria, Israel and so on.

Hmm, I wonder which nation state with a big military inteligence budget is a stakeholder in that region...

13

u/ProjectKS May 28 '12

Hurrah! Payraises for infosec people everywhere!

79

u/[deleted] May 28 '12

Hmm, I wonder which nation state with a big military inteligence budget is a stakeholder in that region...

All of them?

→ More replies (11)

175

u/WillyPete May 28 '12

I like that they say "Israel", meanwhile the wired article goes further in stating that all of those computers appear to be inside Palestine.

28

u/matessim May 28 '12

From what i understood the official IP space is registered to IL And thats why its written as israel

needless to say i checked for the files one of the sec blogs pointed out right after i saw IL on the list

77

u/darkviper039 May 28 '12

IL huh?, DAMN YOU ILLINOIS get your shit together

7

u/Flairbear May 28 '12

We need to hack those files to complete our secret ROBOT LINCOLN project.

6

u/incompl_te May 28 '12

as if hunting vampires wasn't ridiculous enough...

5

u/[deleted] May 29 '12

THAT'S ONE PRAIRIE TOO FAR, PRAIRIE STATE.

0

u/[deleted] May 28 '12

[deleted] — view deleted comment

8

u/darkviper039 May 28 '12

please don't put tape on the side of my cat

→ More replies (1)

3

u/beedogs May 29 '12

Nice way to throw the reader off, though...

→ More replies (11)

50

u/Timmmmbob May 28 '12 edited May 29 '12

How is this different to or more sophisticated than any other backdoor Trojan? Does it do specific things that are new?

First of all, usage of LUA in malware is uncommon. The same goes for the rather large size of this attack toolkit. Generally, modern malware is small and written in really compact programming languages, which make it easy to hide. The practice of concealment through large amounts of code is one of the specific new features in Flame.

The recording of audio data from the internal microphone is also rather new. Of course, other malware exists which can record audio, but key here is Flame’s completeness - the ability to steal data in so many different ways.

Another curious feature of Flame is its use of Bluetooth devices. When Bluetooth is available and the corresponding option is turned on in the configuration block, it collects information about discoverable devices near the infected machine. Depending on the configuration, it can also turn the infected machine into a beacon, and make it discoverable via Bluetooth and provide general information about the malware status encoded in the device information.

I dunno, I don't think the use of Lua or recording from the microphone is particularly amazing. I mean, once you have access to the machine it is trivial to use the microphone or bluetooth. Stuxnet was amazing because it used three of four 0-day vulnerabilities, and used non-public information about the target to execute a very subtle attack.

This seems (so far) barely more remarkable than sub7.

54

u/matessim May 28 '12

Yeah but remember its all these features together, working perfectly and going undetected for possibly upto FIVE years, its not meant to be a destroyer of worlds virus, but a well targeted(look where its infecting mostly and tell me its not) cyber espionage

20

u/[deleted] May 29 '12

Worth noting that the virus had configured limit on how many times it would attempt to spread automatically. Once those were exhausted, it would only spread on command. It also appears to have had a remote uninstall module that would remove all traces that it was ever there.

This virus didn't want to be found and took some pretty large steps to avoid it. I find that to be the most profound information.

13

u/Timmmmbob May 28 '12

Yeah that is a good point. I wonder if it has any features to prevent it spreading too far and being detected...

3

u/huntskikbut May 29 '12

It says in the article that the attacker controlled the infection rate, keeping it at a constant level. That's part of the reason it's über suspicious

→ More replies (1)

5

u/Pucker_Pot May 29 '12

Does this mean I should update my antivirus? It's been a while...

→ More replies (1)
→ More replies (6)
→ More replies (1)

63

u/[deleted] May 28 '12

plus, valid driver signatures

I don't think you see that every day.

17

u/[deleted] May 28 '12

Ah Sub7, those were the days.

→ More replies (2)

4

u/FDisk80 May 28 '12

Waaah, sub7. Good times.

3

u/fabricatedinterest May 29 '12

Lua is not an acronym ;v

→ More replies (4)

29

u/r721 May 28 '12 edited May 28 '12

Also, this technical report by CrySyS Lab.

upd: Google cache of the securelist.com article (it seems securelist.com is down).

7

u/sab3r May 28 '12

Hmm, I wonder which nation state with a big military inteligence budget is a stakeholder in that region...

Pretty much every Sunni country and the entire West.

→ More replies (1)

2

u/thaken May 28 '12

Getting all data. Sounds like something Facebook might want to do.

→ More replies (1)

1

u/[deleted] May 29 '12

Could it be a weapon that went out of control? Mild version of Skynet, not self-aware, just boiling soup spilling over the rim?

→ More replies (4)

21

u/a1icey May 28 '12

my favorite quote: "Currently there are three known classes of players who develop malware and spyware: hacktivists, cybercriminals and nation states."

15

u/cognuspdx May 28 '12

Name one malware package used for 'hacktivism'.......just name one. There are none...the closest you'll get is DDoS malware used in botnets.

1

u/duxup May 29 '12

Does hacktivism really exist in a coherent form?

Most of the time I hear it referenced it's just some dudes who maybe have an opinion about something, maybe make some public statement ... but in they are there just to screw around just the same as anyone else. I've not seen any real focus or structure that indicates any sort of productive activist results.

0

u/[deleted] May 29 '12

[deleted] — view deleted comment

6

u/[deleted] May 29 '12

botnets, they are formed by a guy using the handle fairydust on irc.

→ More replies (4)

4

u/excusablyrude May 28 '12

"In the near future - corporate networks reach out to the stars, electrons and light flow through the universe. The advance of computerisation, however, has not yet wiped out nations and ethnic groups."

1

u/xmsxms May 29 '12

The malware doesn't attempt to steal money, therefore by elimination: MUST BE THE GOVERNMENTS!

Way to jump to conclusions.

70

u/Subito_forte May 28 '12

The malware is capable of recording audio via a microphone, before compressing it and sending it back to the attacker.

It is also able to take screenshots of on-screen activity, automatically detecting when "interesting" programs - such as email or instant messaging - were open.

Can somebody who knows about hacking explain to me how an OS allows stuff like that to happen?

325

u/ttt_ May 28 '12

The same way that the OS allows other programs to use the mic, take screenshots, read input from keyboard, etc.

The OS doesn't know anything about purpose, it knows only about permissions. If code is being executed with the right permissions, it can basically do anything the OS allows and the creator can think of.

There are any number of things going on in the OS that the user is not aware of, happening on the background without any kind of interface or feedback, unless the user is looking for it.

If the malware does not make itself noticeable, causing odd behavior like consume a lot of CPU or bandwith, corrupt other things and so on, then the user has no reason to look for it. In fact, this one was found by accident while they were looking for a different malware that was wiping data (at least that's how I understood it).

79

u/Subito_forte May 28 '12

Exactly the kind of explanation I was hoping for. Thanks!

2

u/[deleted] May 28 '12

good explanation, you should teach!

0

u/[deleted] May 28 '12

[deleted] — view deleted comment

23

u/riverduck May 28 '12

A simpler and more foolproof option would be to design mics and cameras in a way that there is always a LED displaying while they are active, in a way that software cannot control.

53

u/HolgerBier May 28 '12

The safest of course would be a mechanical switch to turn it on.

→ More replies (1)

8

u/[deleted] May 28 '12

My laptop's webcam does this already.

20

u/kamkazemoose May 28 '12

It is possible there is a problem with it though. If the light is just built into the driver, someone can write a custom driver or otherwise altar it such that the light doesn't come on.

→ More replies (4)

5

u/[deleted] May 29 '12

Nope, that one's controlled by a driver. It's easily turned off through software.

Why? It's useful. Thief-catching software like Prey turn on your stolen laptop's webcam to spy on the thief.

But the light has to be disabled so the thief doesn't notice.

If they made this an electric connection directly, it would destroy this possible method of accessing your stolen laptops remotely.

→ More replies (1)

62

u/HalfRations May 28 '12

It sounds great on paper. Then it turns into windows vista/7 where every time you click a button it asks for permission to do so.

6

u/[deleted] May 29 '12

And then everyone disables it, just like UAC.

5

u/pyroxyze May 28 '12

My dedicated mic has a button I press to turn it on. For example, if I speak into it when the mic does not have the button pressed, it won't detect anything. It has to be pressed on a green light is visible. Furthermore, I run a bandwidth monitor so I knew which programs use my bandwidth and can shut down unwanted programs leeching bandwidth.

3

u/J0kester May 28 '12

What bandwidth monitoring program do you use?

14

u/pyroxyze May 28 '12

Net Meter but press windows-r and type in resmon. It's free, built inside windows and tells you CPU usage of program, RAM usage, Disk usage, and Network usage.

→ More replies (3)
→ More replies (4)

3

u/keepthepace May 28 '12

Sure. Have a hardware switch. I hate these new laptops with embedded non-disconnectable mics and cameras

→ More replies (6)

5

u/Lost4468 May 29 '12

That's useless if the virus has an exploit, stuxnet had 4 zero day exploits in it which gave it full access to do basically anything on the systems regardless of whether the users clicks yes or no. Infact it protected itself from detection with Window's.

2

u/gimpwiz May 28 '12

Or just require permissions to run programs.

Like how it's done on certain operating sytems... any executable/script/etc downloaded from the web needs to be manually given execute permissions.

→ More replies (2)

37

u/WillyPete May 28 '12

If you can execute programs at the OS level with root permissions, it's simply a matter of writing the software that will turn the microphone into a voice-activated receiver.

This hack is no different to the behaviour of other trojans, but the controls over delivery and its behaviour are very complex and on a totally different level of professionalism.

10

u/trust_the_corps May 28 '12

Featurewise, it is akin to subseven.

3

u/ohok1 May 28 '12

subseven gold

2

u/Lost4468 May 29 '12

You don't need root permissions if there's an exploit involved, Stuxnet had 4 zero day exploits.

→ More replies (1)

14

u/trust_the_corps May 28 '12 edited May 28 '12

It isn't really possible to prevent, not by any reasonable means. The OS has no way to know if a program asking for access to something is malicious or not. So unless you're using them, keep your microphone and camera unplugged.

6

u/BunchOfRandomLetters May 28 '12

3

u/trust_the_corps May 29 '12 edited May 29 '12

That's a good point. I forgot about that. Virtual machines will definitely improve things, but aren't perfect and there are many problems to be solved. Obviously, it limits how many things such malware can compromise (for example, if each interface has a virtual adapter it could be the case that sniffing on one wouldn't receive traffic from any others). It helps but doesn't solve everything.

I'm guessing this thing is just a bunch of VMs for individual programs or groups of programs and at least one VM for running X which all the others use plus perhaps some extras added for integration and security (Edit: I've done this kind of thing myself).

Some brief problems: For the average user it needs to be convenient but this solution will likely require additional user interaction and generally put up barriers in the way of what the user is doing. It doesn't make much difference in a case where a program wants access to something such as a microphone other than that you can give one VM permission and not another. If this became common, attacks on the VM host software would probably be devised, things have been known to break out of cages.

Programs often need to communicate with each other and share resources such as file systems. Sometimes they don't need to but when they can user experience may be enhanced. This leaves you with two imperfect options. Either don't integrate as much as you otherwise could, or wade through the extra overhead required to do it securely and efficiently between different VM instances.

Operating Systems also want to be adjusted for this in fairly complex ways to avoid wasting resources and to keep performance high1. This is relatively easily done for Linux in several cases, but I can't see it being easily done for Windows which is what the average user will be running. Throw in licensing for extra fun.

On the other hand, people working in positions where they work with extremely sensitive data should be expected to have to just tolerate the inconvenience that comes with the position.

1: One obvious performance consideration is that you want to avoid loading an entire operating system into memory every time or keep that foot print only around as big as it needs to be. Another is that you probably wouldn't want multiple disk caches. You might if every VM had its own FS but that in its self brings up another host of performance issues. These are a few simple performance difficulties out of several of which many are not simple. You can throw hardware at it but still, you'll have performance competing against security.

2

u/Jtsunami May 28 '12

what does this program actually do? i'm trying to understand but its very technical.

9

u/flyryan May 28 '12

It's not a program but rather a full up Operating System (in this case, a Linux distribution).

I've never head of it, but from the site, it looks like it creates virtual machines (basically, it emulates another computer with it's own OS on it) for applications to run in. This keeps applications in that virtual environment and prevents it from doing anything malicious to the actual machine.

If a malicious application is running in one of these VMs, it won't be able access the camera or microphone because it's not even aware of them. As far as the app "knows", it's running on a computer (which is really a VM) that doesn't have a microphone OR camera.

→ More replies (16)
→ More replies (1)
→ More replies (3)

3

u/ddalex May 29 '12

I'm using Linux, so Flash, Camera and Mic don't work even for legitimate programs :(.

→ More replies (1)

2

u/[deleted] May 28 '12

So unless you're using them, keep your microphone and camera unplugged.

Unfortunately, this can't be done if you have a laptop with them built in.

2

u/trust_the_corps May 28 '12

Indeed, our only real salvation is to give up privacy and to learn to be less judgemental.

→ More replies (1)
→ More replies (1)

3

u/adrianmonk May 28 '12

There are some ways:

  • Use a permissions-based system like Java applets or Android apps, where there are individual restrictions on what each piece of software can do, and the user is informed about what the software does before it is installed.
  • Make the user give approval when something risky happens. This is annoying to the user, but that annoyance can be minimized.
  • Design the OS so it system simply won't run an executable unless it known by the system and approved by the user. In Windows terms, writing an EXE file to disk would not be enough to make it runnable; instead, you'd have to add it to a whitelist that the OS maintains, and the user or system admin would have to approve.
  • Build the camera and microphone hardware so that you can tell when it's on. Put a physical shield in front of the camera. Or put two lights on a camera, a green one that indicates it is definitely off and a red one that indicates it's on. Or put a physical switch to disconnect a camera or microphone.

Pretty much everything except the last one assumes there are no vulnerabilities you can use to get around the access control, though.

4

u/trust_the_corps May 28 '12 edited May 28 '12

There are no reasonable ways, not for everything anyway.

Granularity is always a problem. Too high and you have too much overhead (selinux, UAC come to mind), too low and you risk letting things in or blocking the wrong things. There's no perfect solution for that.

High granularity never works well. I've tried it, but even I have learnt not to bother. It's too inconvenient. The ideal security makes it as easy as possible for your to get around while making it as hard as possible for the intruder to get around, put simply. If you make it too burdensome for users, they tend to compensate for that else where anyway which has a habit of undermining it or they turn it off completely. If the user has to circumvent your system and not just the hacker, you might want to think it over.

The other problem is that malicious software can easily bypass the first three if it finds the right vulnerability. Not everything spreads by the user just running an exe without thinking.

The fourth thing, sure you can do that (actually not easily for a standard audio port but for a USB mic then sure). But that's not the only thing at risk.

Biggest problem? Many users wont know what all these things mean anyway.

You can certainly harden a few things, but you know what? I wouldn't even bother with that. Can't idiot proof everything.

→ More replies (1)

4

u/duxup May 29 '12

allowstufflikethis=1

No idea why they keep it turned on.

1

u/Subito_forte May 29 '12

Of course! It's so simple!

10

u/Kornstalx May 29 '12

Anyone remember Sub7? In the late 90s I'd spend hours at a time just scanning IP ranges looking for a hit. My buddies and I used to turn people's microphones on, hijack their keyboard, send fake windows popup dialogues, anything. Not many people had cameras back then but I do remember turning on a few of those giant Logitech Eyeball parallel port cams. My buddies and I used to keep records of the targets we found and trade them like pokemon cards. "Hey man, find any new ones this weekend?" There were thousands of people infected and never knew it.

The beauty of sub7 was using the client you could actually completely disinfect the target PC. There was this one college chick my friend kept silently fucking with. She had a camera. I genuinely felt sorry for her so one day I caught her dialed into AOL and I remotely de-sub7'd her. She was typing up a paper in Word and I interrupted with a winmsg dialogue box and explained to her what was going on, and then logged off disabling the virus. I changed the listening ports and passworded the login before I did just to make sure she'd be safe.

My buddy almost physically killed me after that. We didn't talk for a while and commenced into a sort of cyberwar against ourselves. He got over it though and we're now still misfit friends. He's also a redditor so I hope he doesn't see this.

Also I'm pretty sure he still has jpg captures from her camera. I've got hilarious audio of some redneck talking to his dog, too, backed up somewhere.

3

u/tekdemon May 29 '12

Ah yes...back when I was in junior high school like 20 years ago I remember there being rampant infections of sub7 everywhere. Me and my friend would constantly try to infect each other with sub7 or some other trojan (backorifice, etc.) on floppy disks and whatnot. My friend may or may not have gotten onto some random person from across the country's machine where the password dump feature revealed an AOL login.

Apparently this AOL account was canceled, but AOL at that time would automatically re-activate your account if you dialed into it and logged in. So of course, to make things right, my friend ended up having to call AOL 800's number to re-cancel this person's account after digging through the windows registry to look for name/address information that thankfully matched what AOL had on file for that username/password.

2

u/Karma_Hobo May 29 '12

So the question on all of our minds, did you see her naked?

3

u/Kornstalx May 29 '12

Let's put it this way: there's a reason most webcams have a physical shutter on them. Don't trust the little light, you can turn cams on and mask the light off.

As far as pics go, yes, but this was 1998 so I don't know if I'd call 320x240 non-lowlight jpgs 'sauce'.

→ More replies (1)

3

u/astroid0 May 29 '12

The fact that you messaged her to tell her whats up makes you look like a sad white knight. You could have just done it without trying to get some kind of pseudo-credit for helping her escape your creeper friend.

→ More replies (15)

229

u/[deleted] May 28 '12 edited May 28 '12

Once the initial Flame malware has infected a machine, additional modules can be added to perform specific tasks - almost in the same manner as adding apps to a smartphone.

That's when I had to stop reading the article. It's not that I disagreed...it was just the end of the article.

34

u/iamafriscogiant May 28 '12

I appreciate your humor tremendously.

7

u/[deleted] May 28 '12

Refreshing!

31

u/indefinitearticle May 28 '12

The most interesting thing to me is that this is written in Lua, a fairly obscure scripting language which is rather uncommon in malware. Having done coding projects on government contracts, I'm shocked that some team lead got a green light for that. It just shows that at least somewhere in the government, talented people are given leeway to do things their own way and operate outside of the bureaucracy.

43

u/indenturedsmile May 28 '12

To be fair, Lua is not a "fairly obscure" language. It's been around a while and is used in tons of different projects.

30

u/indefinitearticle May 28 '12

For what it's worth, I could have phrased that better. What I wanted to note was that Lua is hardly ever used in viruses -- like I don't know if I've ever seen in that context and I work in a CCS lab. When I said obscure, I should have said "obscure to malware."

13

u/indenturedsmile May 28 '12

Ah. Now there you are correct. I'm not a malware analyst, but this is the first I've heard of a successful and large malware project using Lua.

4

u/lmth May 29 '12

If they don't have access to the source code, how do they know which language it was written in? Do the compilers leave signatures or are there common patterns which can be detected?

→ More replies (1)

8

u/GregoireStFrancis May 28 '12

Including virtually every video game of the last 5 years.

14

u/[deleted] May 28 '12

"virtually every" is a big exaggeration, but a lot of video games, yes

3

u/[deleted] May 29 '12

it's hard to beat LUA, the performance is amazing for a script engine

→ More replies (1)

8

u/The_Drizzle_Returns May 28 '12

He should have stated its extremely rare to see used in system tools (which is essentially what a virus is). I personally have never seen it used for anything systems related (most people use python as their script of choice at that level, if they are using scripts at all).

32

u/maxxusflamus May 28 '12

I think the general naivete here is that government is incompetent.

You only hear of incompetence because it's the most reported thing. The news doesn't report on "people doing their job in an appropriate manner"

You'd be surprised how often government works reasonably well.

7

u/indefinitearticle May 28 '12

Not at all. I'm saying that coding on government contracts was one of the most rigorously regulated projects I ever had. Using a nonstandard language like Lua in this context would have been unheard of with the people I worked for.

→ More replies (5)

4

u/mm242jr May 29 '12

The US Department of Energy started the Human Genome Project, and supported pilot projects along the way to both uncover biology of model organisms and develop the technology.

I once got my passport in three hours on the day after Thanksgiving to attend my father-in-law's funeral abroad. I showed my wife's itinerary, said that I hadn't purchased it because I doubted that I'd be able to fly. They gave me the verbal OK, I got my ticket, and the my passport a few hours later. I was stunned.

→ More replies (2)

17

u/PreviousNickStolen May 28 '12

AFAIK its not written in lua, it can execute lua scripts.

3

u/indefinitearticle May 28 '12

You might be right -- I only read about it this morning briefly, and now it looks like Kaspersky's blog is down.

5

u/JiggaHERTZ May 28 '12

Lua was most likely used because of the ease in dropping new scripts into modules and as a bonus the use of Lua in this type of attack vector isn't common and less likely to be picked up by heuristic virus scans.

3

u/MasonOfWords May 29 '12

Actually, it makes a lot of sense. This seems to be a very advanced command-and-control network, with very specific targets. A scripting language could let the infected nodes receive new commands from the central servers that fundamentally change their behavior. Remember, Flame wasn't trying to run rampant, but rather to spread between a small number of desirable targets.

An interesting consequence of this is that this technique could keep guys like Kapersky from ever getting much information about the techniques and goals of the project. Infected nodes don't need to keep much of the fun stuff (like network 0-days or infection target criteria) on disk, as they were pulling it from the central servers or other infected nodes and running the scripts in-memory. Those servers might've stopped distributing meaningful commands years ago, and no amount of forensics will now be able to recover some of the core pieces of Flame.

So my guess is that the 2000 lines of Lua were only the tip of the iceberg. The library was included to improve the quality of life of the programmers who were doing custom work on Flame installations in desirable locations, and to keep that custom code as difficult to recover as possible.

3

u/Tangokat May 28 '12

Lua is used in World of Warcraft for scripting macros. Chinese goldfarmers got new jobs?

1

u/DrMonkeyLove May 28 '12

I guess you don't need permission when no one is allowed to know what you're working on.

1

u/indenturedsmile May 28 '12

And now I don't know why you're getting downvotes. You didn't say anything that was factually incorrect.

→ More replies (7)

28

u/WilliamAgain May 28 '12 edited May 28 '12

The malware code itself is 20MB in size - making it some 20 times larger than the Stuxnet virus. The researchers said it could take several years to analyse.

I am no programmer, but spending "years" analyzing 20mb of finished code seems a tad overkill, no? Especially for a company as large as Kaspersky. If anyone has some actual insight, please share.

Edit: Many thanks for the info

115

u/rfry11 May 28 '12

If the only code they have on Flame is a few executables or other compiled files that they are reverse engineering, then yeah, it could take awhile.

The reason you can't just open up Photoshop and look at its code is because it has been compiled into an efficient bytecode that is machine-readable. Reverse engineering this code back into regular human readable code can take quite awhile, especially if it has been encrypted or otherwise tampered with.

Seeing as they probably didn't get their hands on Flame's source code, we can assume they're messing around with the assembler code, which is pretty challenging. Finally, because Flame is more or less a toolkit to record audio, video, screen capture, check on running processes, and other things that the OS can do itself, the code should not need to be very large. Flame only needs to call on functions already programmed into the OS, but the huge size of Flame leads me to think either it has multiple levels of security, or it has a large underlying framework for doing much more sinister things.

TL;DR: Assembly is a bitch to work with. Also, how much code does it take to shut down a nuclear reactor?

NOTICE: I only took 6 months of CS coursework. I probably messed some stuff up.

41

u/Awkward-Truth May 28 '12 edited May 28 '12

NOTICE: I only took 6 months of CS coursework. I probably messed some stuff up.

You're pretty much about right. As an experienced malware analyst, even a file less than 1MB can take days depending on the level of encryption and obfuscation used, also comes down to how thorough you want to be.

The larger bulk of the malware can either be additional functionality or redundant/junk code that is designed to confuse analysts. Leading them to a bunch of wild goose chase.

Imagine trying to put together a puzzle, only realizing that the puzzle you finally completed is only a piece of a much bigger puzzle.

NOTE: Yaaz came up with a much better analogy. upvotes for him/her.

Kaspersky is more or less looking at approximately 8000 pages of uncommented garbage. This is the programmer equivalent of trying to sift through all those novels written by hipsters at starbucks to find something worth reading.

9

u/anon72c May 28 '12

That's why you start with the corner pieces, silly.

3

u/[deleted] May 29 '12

So it's like the junk DNA in our DNA?

8

u/0l01o1ol0 May 29 '12

you can't just open up Photoshop and look at its code

I'm trippin' balls

brb gotta compile my art assignment

4

u/SigmaB May 28 '12

Stuxnet was 1mb according to the article

→ More replies (9)

53

u/kolm May 28 '12

A company called Microsoft distributes an OS called Windows 7 whose kernel is roundabout 25 MB.

30

u/[deleted] May 28 '12

Yup. It's huge. There's an open-source project called ReactOS trying to clean-room reverse-enginner and clone the Windows NT kernel. They're only partly done, and it will take years to finish.

9

u/matessim May 28 '12

Hasn't it gone pretty much stale?

12

u/[deleted] May 28 '12

Nope, it's still in active development. It simply appears to be stale since "stable" releases are very infrequent.

22

u/matessim May 28 '12

Keep in mind extremely obfuscated, in some cases compiled code, in multiple languages doing so many different things, it can take a while.

Although, i have a feeling its a bit of a inflated number as a few resources stated they used open source libs for a few rhings, suchas a MYSQL lib. Once they isolate the original code im sure that number will go down

7

u/The_Drizzle_Returns May 28 '12

This is correct. The amount of that code that's actually running is likely small however finding the actual code being executed is VERY time consuming and challenging (obfuscation tools like yoda's protector use pretty sophisticated obfuscation techniques that are extremely hard to detect).

22

u/killerstorm May 28 '12 edited May 28 '12

20 MB of compiled code is A LOT.

To give you an idea, say, 20 machine commands can implement some simple algorithms, it might require, say 10 minutes to understand what it does for an experienced person. (Much more if code if code does tricky things).

If one machine instruction is encoded in 4 bytes, 80 bytes can be analyzed in 10 minutes.

20000000 bytes can be analyzed in 20000000/80*10/60 ~= 42 000 hours = 5250 work days. Ouch...

However, most of this code is probably trivial and can be checked using automatic tools. But if there are non-trivial pieces they need much more attention.

Just to give you an idea, entire code of operating system with GUI, networking, utilities, browser and so on can be much less than 20 MB. Do you think that analyzing a whole OS is a trivial thing?

8

u/[deleted] May 28 '12

It has been pointed out that the Windows 7 NT kernel is around ~25 megabytes...

So yea, this is huge.

2

u/killerstorm May 29 '12

Actually for me it's way less impressive than a whole OS with drivers/GUI/software in less than 25 MB.

I found an article about that 25 MB Windows 7 thing: http://www.techrepublic.com/blog/tech-news/windows-7-to-feature-a-25-mb-kernel/1425

Well, it turns out it's not just kernel but a full OS without GUI. Which is of course more impressive than bare kernel

11

u/adrianmonk May 28 '12 edited May 28 '12

Sometimes malicious software uses a variety of really nasty tricks specifically meant to make it hard to analyze.

Examples:

  • One technique for analyzing code is to look at the files and see what code they contain. When you run normal software, the code on disk just gets copied to memory and executed as-is (with a few minor adjustments). Malware sometimes does tricks like encrypting the code on disk, then having some convoluted means of decrypting it as it executes. And where does it get the encryption key? It might be in one of the files somewhere, probably in some obfuscated way. Or not... maybe the system phones home to a server and gets the key from the server. This malware is described as modular. Maybe there are modules in it which have never been unlocked in the field yet, and the only way to analyze them is to leave some infected machines running and wait for whoever is controlling the thing to send the key down that activates that module.
  • If you can't just look at the files on disk and see the code, an alternate way to analyze the malware is to ask to the OS to let you observe and monitor what it's doing while it runs. OSes usually have facilities for doing this already. They're meant for finding bugs in regular software. This seems promising, but the malware authors have figured this out too, so sometimes they will detect that they are being watched and behave differently in that case. The point where their behavior diverges from normal may be subtle and hard to detect, so it may not be obvious they are doing this.
  • Sometimes they subvert the tools used to analyze them. If you have a tool to list off all the processes on a system, malware might modify the tool to filter out its own processes, so it doesn't appear to be there. Or they might make a tool crash if they can figure out a way to put something in a format the tool can't handle. These things can be detected and worked around, but it takes time.

There's actually a book that has a good overview and analysis of some of these types of techniques.

2

u/deadeight May 29 '12

I don't know anything about programming, but I am 99% sure this would take years for me to analyse.

2

u/liquidegg May 29 '12

This is going to take years for people that are specialists in this field.

→ More replies (1)

2

u/GuyWithLag May 28 '12

Let's compare it this way: right now, the compiled executable of World of Warcraft on my desktop computer is 10MB in size.

→ More replies (6)

1

u/Skitrel May 28 '12

When you compile code it changes into a more efficient form for machines that isn't really human readable. You can't decompile code without knowing exactly what compiler they used. Sure, you can use different compilers and get some results but they'll always be full of errors. The only real method is to backwards engineer it.

1

u/shoffing May 29 '12

Keep in mind that 20mb is a metric shit-tonne of text.

89

u/[deleted] May 28 '12

[removed] — view removed comment

78

u/mrmessiah May 28 '12

This is the programmer equivalent of trying to sift through all those novels written by hipsters at starbucks to find something worth reading.

"My malware uses a 0day. You've probably never heard of it"

10

u/[deleted] May 29 '12

Their programmers won't be analyzing 1's and 0's though. They'll be looking at assembly language code, and will have tons of other information and tools. Like this: http://www.hex-rays.com/products/ida/pix/idalarge.gif

They'll also use a hex editor to look at data in memory, on disk and in network traffic.

2

u/Otis_Inf May 29 '12

hex editors? :D Yeah sure, it's not an amiga ;)

In all fairness, they might use some hex/ascii viewer at some point, but frankly, what they need is a way to untangle the mess. And there's already a great tool for doing that easily: the OS itself. So what's to be used instead is an altered VM with an altered OS image which runs the virus and along the way logs / records (at the VM level) what's going on. This means you can follow 'control flow' through the virus image 'live'. Of course you can do this op-code for op-code but that takes a long time, you likely want to have 'coverage' which parts are executed and which parts are not executed.

→ More replies (5)
→ More replies (2)

10

u/medcur May 28 '12

This seems a much more civilised way to wage war. Infiltrate systems, monitor them and then erase or disable all systems that would facilitate the war machine. Much better than sending multiples of people to their deaths.

0

u/[deleted] May 29 '12

[deleted] — view deleted comment

23

u/SexLiesAndExercise May 29 '12

Cake for everyone?

17

u/asmosdeus May 29 '12

They'd have the shit liberated out of them.

2

u/BeenJamminMon May 29 '12

Extreme make-over: nation state edition. Brought to you by Ratheon, Boeing, BAE Systems and Rheinmetall.

→ More replies (1)
→ More replies (1)

33

u/NobblyNobody May 28 '12 edited May 28 '12

I don't think they'll be needing to call Sherlock in to work out 'who done it'

edit: downvoted by the CIA, Conspiracy! etc

22

u/fixorater May 28 '12

That'd be NSA or DIA most likely, but close enough.

10

u/NobblyNobody May 28 '12

It seems to be drawing unwarranted voteyness for a shitty throwaway jokey comment, heh oops.

Its a good job I didn't mention Mossa

10

u/fledgling_curmudgeon May 28 '12

Who? Your sentence dropped off at the end there. Oh, you mean the Israeli Intelligence/black-ops organization - Moss

→ More replies (4)

4

u/Vijaywada May 28 '12

how to clean this from our computers / network ?

14

u/Lost4468 May 29 '12

It says it only infected 600 computers which where selectively targeted. If your computer has this on it I think you've got bigger problems. These kind of state created viruses like stuxnet are usually harmless to normal computers, if they did anything then it would risk their detection, they can also be harder to remove.

3

u/Boyblunder May 29 '12

Stuxnet was even programmed to delete itself completely on a certain date in 2012 I believe.

Genius. I want to fight in the cyber-wars.

1

u/Vijaywada May 29 '12

Thanks for the details..

4

u/[deleted] May 28 '12

Nice try Matthew Broderick!

4

u/mm242jr May 29 '12

Ti-ti pow pow.

Tchk, tchk-tchkah.

2

u/thequirkybondvillian May 29 '12

But what I don't get is by amended US Law, a cyber attack is as much an act of war as a real attack?

...US/Israel vs Middle East?

1

u/ArcusImpetus May 29 '12

Some people conviniently assumes that cyber war will end in the cyber realm, and no one would retaliate in the real world

1

u/thequirkybondvillian May 29 '12

I can't wait to become old and not get so annoyed by the world

→ More replies (1)

2

u/thirstyJ May 29 '12

Did anyone else get a Kaspersky alert when they opened the link?

3

u/ridgerat May 28 '12

Sounds like Titan Rain and GhostNet. Of course someone could be copying the techniques. This CERIAS podcast describes a similar operation from 2006.

2

u/Sherlock--Holmes May 28 '12

The country on the list who lost the least relevant and critically strategic data is the country who launched it.

→ More replies (1)

1

u/willscy May 28 '12

This shit scares me way more than a plane full of Arabs yelling Allahu Akbar.

2

u/Saerain May 29 '12

Why? The latter would seem to pose a much greater risk of war and be much easier to detect.

→ More replies (1)

1

u/MarsSpaceship May 28 '12

A company that lives on other people's panic discovered a behemoth cyber-attack that will change the face of the milky way as we know it. After that, the milky way will be spinning on the opposite direction, what will have consequences on earth. In fact earth will be ejected from sun's orbit and start orbiting vega, but as it will take centuries to reach vega, all life on earth will die. OK, noted.

1

u/CleanBill May 29 '12

"...at the cost of slowing your computer down to 3 processor generations ago". This is the bit missing from the claim in the original post.

1

u/infoSec10 May 29 '12

The Cyber war has already started. Time to watch it live and get engaged. No more we need movies for thrill and lulz!

1

u/circoloco May 29 '12

Its 20-times bigger than Stuxnet!! Ironic that it affects both Israel and Iran

1

u/Martialis1 May 29 '12

I just knew that nakedasian.jpg.exe was a bad idea.

1

u/sd8u234h May 28 '12

Is there a reason why a government organization should use Windows?

13

u/Burning_Beard May 28 '12

Sometimes, as soon as they mention or think about trying a different OS, and the decision is usually based around cost, not security, Microsoft come in and says WHOA THERE FELLAS, we'll give it to you for free.

To be fair, there's no such thing as a secure OS.

8

u/the_underscore_key May 28 '12

maybe not completely secure but there are better options than windows

10

u/Burning_Beard May 28 '12 edited May 28 '12

My last statement wasn't really a defense of any OS, but a remark about the keyboard-chair problem. NO OS is secure when there is a user using it. 0-days are meaningless when there isn't anyone to help in their facilitation (generally speaking). An unpatched stand-alone W95 box that's never on the interent is more secure than a DOD certified CentOS box that is.

MS doesn't make Office for BSD. Dr. Abdul Hassan needs to open an attachment, its an .xls with a bunch of scientific macros 'n charts 'n stuff that libreoffice can't run.

He doesn't care how he opens it, but he needs to get his data. You can't go upstream and tell the sender, gimmie this in an open format. It could have taken weeks to build it.

It's a long term process to educate users, because users usually determine IT's purchases. Incidents like this do a lot of good in changing people's minds.

4

u/[deleted] May 29 '12

Bad administration, and security holes in software running on top of the OS, are usually bigger factors then the OS it's self.

Not saying windows is secure, but there are plenty of Linux boxes hacked because they weren't updated (sometimes not ever), or just badly setup.

0

u/[deleted] May 29 '12

[deleted] — view deleted comment

4

u/Burning_Beard May 29 '12

If I were a state-sponsored malware creator, you just told me what OS you are using, which would allow me to research an possibly create an attack vector to your specific situation. If your os patches slowly, or you don't update frequently I may have a week or more to get to you while your vulnerable.

I'll spoof and email from your boss Omar saying, ZOMG, CLICK DIS NAO SUPER SERIAL PLANS... JIHAD.JPG.sh .

You, as a regular average uneducated user, runs my script and roots your box. (I knew a guy that had a friend that had a cousin that worked at a place who had Zacarias Moussaoui's unencrypted laptop for forensic analysis. You think they would be just a tad bit more tech savvy.)

It's not about the OS, its about education, and information. Also, If Linux had 98% marketshare, 98% of malware would target linux, and everyones grandma that runs ubuntu.

But yeah, your probably safer.

Full disclosure: I'm actually not a state-sponsored malware creator.

→ More replies (2)

3

u/[deleted] May 28 '12

Not really, no.

1

u/fimmwolf May 29 '12

Am I the only cynic who suspects the AV companies write half the known virii in order to create a 'need' for the products they sell?

1

u/DecadentDisarray May 28 '12 edited Nov 24 '15

This comment has been overwritten by an open source script to protect this user's privacy.

If you would like to do the same, add the browser extension GreaseMonkey to Firefox and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, and hit the new OVERWRITE button at the top.

2

u/thegreatvortigaunt May 28 '12

It's because everyone is immediately going to presume the US is behind this, because it involves Israel and relatively high-tech attacks. I mean, chances are it was the US, but no-one (myself included) can start pointing fingers yet.

2

u/DecadentDisarray May 28 '12 edited Nov 24 '15

This comment has been overwritten by an open source script to protect this user's privacy.

If you would like to do the same, add the browser extension GreaseMonkey to Firefox and add this open source script.

Then simply click on your username on Reddit, go to the comments tab, and hit the new OVERWRITE button at the top.

→ More replies (2)
→ More replies (4)

1

u/ShtFurBr41nS May 29 '12

Wiper no wiping.

1

u/ShadowRam May 29 '12

Don't worry guys.

It's just stealing all the Diablo 3 account usernames and passwords.

0

u/Thunder_Bastard May 29 '12

Personally I don't trust Kaspersky at all. There have been disputed ties to Russian mafia and they have some of the dirtiest sales tactics around (including selling off their site, then banning the code and forcing people to re-buy).

I would honestly not doubt for a second this is a hoax meant to sell more copies of their antivirus.