Author Topic: Paper about "Equasion" group of malware written by Kaspersky.  (Read 1280 times)

0 Members and 1 Guest are viewing this topic.

Offline Polyphony

  • VIP
  • Knight
  • *
  • Posts: 178
  • Cookies: 23
    • View Profile
Paper about "Equasion" group of malware written by Kaspersky.
« on: February 18, 2015, 10:23:53 pm »
I don't think I could add much to the pdf so I'll just post the link here.

I'd love to write software that deals with persistence, but reading the methods that some of the modules use to remain persistant is insane. 
Code: [Select]
<Spacecow_> for that matter I have trouble believing bitches are made out of ribs
<Gundilido> we are the revolutionary vanguard fighting for the peoples right to display sombrero dawning poultry
<Spacecow> did they see your doodle?
<~phage> Maybe
<+Unresolved> its just not creative enough for me
<+Unresolved> my imagination is to big to something so simple

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #1 on: February 18, 2015, 11:00:55 pm »
Damn. This is indeed very interesting to read - it's insane they are operating for so long without getting caught!
This reminds me of Uplink and gives me the chills lol.
« Last Edit: February 18, 2015, 11:01:15 pm by Kulverstukas »

Offline hppd

  • Knight
  • **
  • Posts: 163
  • Cookies: 7
    • View Profile
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #2 on: February 19, 2015, 02:34:26 am »
Holy shit, thx for the share.. I was tired but now I'm back awake :P. Whoever this is they fucking on the place.

I love how some of their malware can survive even a hdd format, while everybody always told me that was impossible.

Offline d4rkcat

  • Knight
  • **
  • Posts: 287
  • Cookies: 115
  • He who controls the past controls the future. He who controls the present controls the past.
    • View Profile
    • Scripts
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #3 on: February 19, 2015, 03:55:48 am »
It's just some group in the NSA isn't it?
That's what I heard anyway.
Interesting that they are getting exposed.
Jabber (OTR required): thed4rkcat@einfachjabber.de    Email (PGP required): thed4rkcat@yandex.com    PGP Key: here and here     Blog

<sofldan> not asking for anyone to hold my hand uber space shuttle door gunner guy.


Offline Axon

  • VIP
  • King
  • *
  • Posts: 2047
  • Cookies: 319
    • View Profile
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #4 on: February 19, 2015, 03:59:17 am »
Quoting page 16&17.
There is one aspect of the EQUATION group’s attack technologies that exceeds anything we have ever seen before. This is the ability to infect the hard drive firmware. This achieves several important things:

• Extreme persistence that survives disk formatting and OS reinstall.
• An invisible, persistent storage hidden inside the hard drive.
Unquote.

This is scary and highly sophisticated.

Offline Polyphony

  • VIP
  • Knight
  • *
  • Posts: 178
  • Cookies: 23
    • View Profile
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #5 on: February 19, 2015, 02:55:43 pm »
I was particularly interested in the insane methods of persistence described in chapter 17 (page 31).  In that paper they describe how the malware creates a virtual file system in the windows registry in which it stores all of its encrypted data/modules.  This makes it very difficult to detect (especially for antivirus).

I'll be the first to tell you, I don't know anything about the windows registry, so somebody with more knowledge about that could probably comment on what kind of effort it would take if only to get a basic implimentation up and running haha. 

As for the HDD firmware hacks, I remember reading a long time ago about this exact situation (hacking hdd firmware in order to compromise the security of the drive).  I'll see if I can find a post I made about it, but I can't remember if I made one or not.  Here is a whitepaper on HDD implants and how they can interact without OS intervention, courtesy of /u/ranok.  That paper is a pretty dense read. 
 
Code: [Select]
<Spacecow_> for that matter I have trouble believing bitches are made out of ribs
<Gundilido> we are the revolutionary vanguard fighting for the peoples right to display sombrero dawning poultry
<Spacecow> did they see your doodle?
<~phage> Maybe
<+Unresolved> its just not creative enough for me
<+Unresolved> my imagination is to big to something so simple

Offline Kulverstukas

  • Administrator
  • Zeus
  • *
  • Posts: 6627
  • Cookies: 542
  • Fascist dictator
    • View Profile
    • My blog
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #6 on: February 19, 2015, 08:44:00 pm »
derpa merp 
Is this it? http://spritesmods.com/?art=hddhack I've read this some time ago, really cool hacks.

Offline Polyphony

  • VIP
  • Knight
  • *
  • Posts: 178
  • Cookies: 23
    • View Profile
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #7 on: February 21, 2015, 06:34:10 am »
I think that's the one Kulver!  Good find lol.

In that article, the author provides a link to a pdf which then provides PoC code for hiding data in the "service" segments of the HDD.  I've added the source file (around 1200 lines) as an attachment to the bottom of this post.  The code is a pretty down and dirty implimentation for Western-Digital 250GB Hawk hard drives only (as I said above, vendor specific commands being issued here). 
« Last Edit: February 21, 2015, 06:49:54 am by Polyphony »
Code: [Select]
<Spacecow_> for that matter I have trouble believing bitches are made out of ribs
<Gundilido> we are the revolutionary vanguard fighting for the peoples right to display sombrero dawning poultry
<Spacecow> did they see your doodle?
<~phage> Maybe
<+Unresolved> its just not creative enough for me
<+Unresolved> my imagination is to big to something so simple

Offline Resistor

  • Peasant
  • *
  • Posts: 65
  • Cookies: -10
    • View Profile
Re: Paper about "Equasion" group of malware written by Kaspersky.
« Reply #8 on: February 25, 2015, 11:09:34 am »
Thanks for the link to that report, Polyphony. I had glanced over the news about this earlier in the week but haven't had time to read up on it much, and I just read the report.

Pretty fucking insane. With the technological links to stuxnet, and this appearing to be the precursor to stuxnet, as well as the GROK keylogger as mentioned here,
http://www.itnews.com.au/News/374987,nsa-spreads-malware-on-an-industrial-scale.aspx

It's obviously the NSA. Perhaps also in partnership with the GCHQ.

What's interesting is on page 25 of the report in discussing the PHP vbulletin exploit, it states that visitors from Jordan, Turkey, and Egypt were not infected. However, if you look at page 20 of the report, the United States is listed as being a country where victims were exploited. How nice of the NSA to extend a courtesy to people within the borders of Jordan, Turkey, and Egypt that they didn't extend to people within the United States.

This is yet another example of how truly pervasive the exploitation and surveillance is that the NSA and its nation state partners is doing. They need to be severely defunded, but that will never happen.

I wonder what sorts of data would signal an infectee as interesting?

Finally, what a great job by Kaspersky, not only in uncovering this, but actually heuristically blocking a nation state infection. I think I'm going to give them some money right now and buy their product.