Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | Government grade malware in the wild

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > Security & Virus Discussion
Register FAQ Community Calendar

Government grade malware in the wild
Reply
 
Thread Tools
Old 22-07-2014, 21:45   #1
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Government grade malware in the wild

For the geeks, this beast's protection code is now out in the wild and being seen in commercial malware.

It ignores instrumentation attempts by AV and has the usual obfuscation along with lots of unusual obfuscation so extremely difficult to catch.

Unplug your network connection now!
Ignitionnet is offline   Reply With Quote
Advertisement
Old 22-07-2014, 21:52   #2
tizmeinnit
Guest
 
Posts: n/a
Re: Government grade malware in the wild

doesn't the fact it creates a reg entry give it away if you do not have skype? ( limited understanding of this subject)
  Reply With Quote
Old 22-07-2014, 22:17   #3
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

TBH I've found lots of malware used by elite criminal groups to be above the junk some people consider "government grade" for years already, what exactly is "government grade" malware anyway? After all we've known some governments to use pretty crappy and amateurish attacks on occasion.

Interestingly the researchers say repeatedly it's designed for x86 and x64, yet in their analysis say the payload is pure 64-bit and uses native 64-bit system APIs. Which wouldn't run on a x86-32 install. Then they later say the main payload executes inside a 32-bit process. So what exactly is going on?
qasdfdsaq is offline   Reply With Quote
Old 23-07-2014, 00:45   #4
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Re: Government grade malware in the wild

Quote:
Originally Posted by qasdfdsaq View Post
TBH I've found lots of malware used by elite criminal groups to be above the junk some people consider "government grade" for years already, what exactly is "government grade" malware anyway? After all we've known some governments to use pretty crappy and amateurish attacks on occasion.

Interestingly the researchers say repeatedly it's designed for x86 and x64, yet in their analysis say the payload is pure 64-bit and uses native 64-bit system APIs. Which wouldn't run on a x86-32 install. Then they later say the main payload executes inside a 32-bit process. So what exactly is going on?
The references to Windows on Windows are a hint.

http://en.wikipedia.org/wiki/WoW64

Have a look at the references to the obfuscation techniques it uses. Part of the games it plays involve screwing with WoW.

Along with that it has a 32 bit wrapper and execution paths for both 32 and 64 bit.

The protection features are exceptionally sophisticated and were seen first in a malware traced back to the Russian government. That code is instruction for instruction in commercial gack. Seems government grade to me.

Happy to reverse engineer it if you can send me a copy. Will just take a while.
Ignitionnet is offline   Reply With Quote
Old 23-07-2014, 01:10   #5
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

Windows on Windows is irrelevant though. WoW64 does not exist on 32-bit Windows. A native 32-bit binary can run on 64-bit using WoW64, a native 64-bit binary cannot run on 32-bit Windows. It can try screw with WoW as much as it likes, but when WoW doesn't exist on the target machine it's not going to get anywhere... The references all describe how it'd run on a x64 Windows install, but not an x86 (although a partial example of the some disassembly of the latter is shown, no description of how they came to it is shared)
qasdfdsaq is offline   Reply With Quote
Old 23-07-2014, 10:18   #6
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Re: Government grade malware in the wild

Mmm this was meant to be a fairly light-hearted post hence the comment at the end.

This is actually more of a PR piece than a serious technical article. The malware itself is similar to Urausy.C/D with some modifications (modified Yoda wrapper) and bits of espionage payload attached.
Ignitionnet is offline   Reply With Quote
Old 23-07-2014, 14:05   #7
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

Yes, I know, though the Sentinel labs article tries to go into some depth of technical analysis either I'm reading it wrong or it's self-contradictory and they've left out some important bits (like, where do I get a copy?)
qasdfdsaq is offline   Reply With Quote
Old 23-07-2014, 17:29   #8
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Re: Government grade malware in the wild

It's not very technical at all.

http://blog.avast.com/2013/07/24/ura...nd-20-minutes/

Is something like technical.

If you want a copy go to one of the usual places where these things live. Analyses don't tend to provide links, though it should at very least have the MD5 of the thing.
Ignitionnet is offline   Reply With Quote
Old 23-07-2014, 18:11   #9
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

I don't see the difference in technicality really, the first has
Quote:
Anti-debugging uses the NtQueryInformationProcess
Native API with DebugPort parameter.

Anti-debugging, using the NtSetInformationThread with
ThreadInformationClass to 0x11 (ThreadHideFromDebug
ger), the thread will be detached from the debugger.
The second says
Quote:
The first stage begins with a check for presence of a debugger (NtQuerryInformationProcess with ProcessInformationClass = 7 = ProcessDebugPort). If a debugger is detected, the malware ends. The presence of NtSetInformationThread with ThreadInformationClass = 0×11 = ThreadHideFromDebugger means “the debugger will stop receiving debug information or exceptions from this thread.”
Pretty much the exact same information in different words... The second is just a lot more verbose rather than trying to be a summary. A lot more technical? Not to me...
qasdfdsaq is offline   Reply With Quote
Old 24-07-2014, 11:49   #10
Ignitionnet
Inactive
 
Join Date: Jun 2008
Location: Leeds, West Yorkshire
Age: 45
Posts: 13,996
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Ignitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny starsIgnitionnet has a pair of shiny stars
Re: Government grade malware in the wild

Feel free to obtain the older malware, reverse it yourself, and show them how it should be done as far as a technical reporting and analysis goes.
Ignitionnet is offline   Reply With Quote
Old 25-07-2014, 01:57   #11
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

I still don't understand what you see to be the difference, given as quoted above, it's the same information on the same subject in both paragraphs.

I'm not sure what 'showing them' has to do with the difference you are trying to describe?
qasdfdsaq is offline   Reply With Quote
Old 25-07-2014, 17:08   #12
Qtx
CF's Worst Nightmare
 
Join Date: May 2012
Location: Probably outside the M25
Services: Sky Fibre Unlimited 40/10
Posts: 3,473
Qtx has a bronzed appealQtx has a bronzed appeal
Qtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appeal
Re: Government grade malware in the wild

Quote:
Originally Posted by qasdfdsaq View Post
Windows on Windows is irrelevant though. WoW64 does not exist on 32-bit Windows. A native 32-bit binary can run on 64-bit using WoW64, a native 64-bit binary cannot run on 32-bit Windows. It can try screw with WoW as much as it likes, but when WoW doesn't exist on the target machine it's not going to get anywhere... The references all describe how it'd run on a x64 Windows install, but not an x86 (although a partial example of the some disassembly of the latter is shown, no description of how they came to it is shared)
The malware is compiled as 32-bit and is always spread as 32-bit. There isn't a 64-bit version as it is more beneficial to run 32-bit malware on 64-bit version of windows as the 32-bit version will utilise WoW, which gives them extra capabilities than running 64-bit code directly. The WoW factor could give documented/undocumented features as well as another chink in the chain for vulnerabilities.

Often the malware writer on the internet will have techniques and use use 0-day vulnerabilities that governments/security services are not aware of (although the window of exclusivity is limited) so it goes without saying it works both ways and the agencies have techniques no one else knows about.

At least the AV companies can try and work this in to their programs now, if they can.....maybe that is why Symntec recently gave up and said AV is no longer viable for keeping infections away. Could make your computer extremely slow to check everything and even then it will have problems detecting infections in firmware of your hardware and bios for example. At least Dragor (BadBios fame) know's he isn't mad now since the Snowden leaks, after seeing software update and infections come back on an air-gapped computer
Qtx is offline   Reply With Quote
Old 26-07-2014, 03:14   #13
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

Quote:
Originally Posted by Qtx View Post
The malware is compiled as 32-bit and is always spread as 32-bit. There isn't a 64-bit version as it is more beneficial to run 32-bit malware on 64-bit version of windows as the 32-bit version will utilise WoW, which gives them extra capabilities than running 64-bit code directly. The WoW factor could give documented/undocumented features as well as another chink in the chain for vulnerabilities.
See, that makes sense and I'd expect it to be done like that, however the article in the OP states:
Quote:
The malware creates a separate 32-bit process and
decrypts itself. Then it switches to the 64-bit segment, ex
-
ecuting its payload using the FAR CALL instruction (The
file stage, stage1_upk.i64, function InjectHookAndShell).
The payload is pure 64-bit calling only Native System
APIs
So what exactly are they getting at?


Quote:
At least the AV companies can try and work this in to their programs now, if they can.....maybe that is why Symntec recently gave up and said AV is no longer viable for keeping infections away.
I guess that's why McAfee came up with Deep Defender:
http://www.mcafee.com/uk/products/deep-defender.aspx
Though given virtual machine hypervisors have their own vulnerabilities as it is, I wonder how long it'll be before someone develops an exploit to rootkit the Deep Defender host as well...
qasdfdsaq is offline   Reply With Quote
Old 26-07-2014, 20:36   #14
Qtx
CF's Worst Nightmare
 
Join Date: May 2012
Location: Probably outside the M25
Services: Sky Fibre Unlimited 40/10
Posts: 3,473
Qtx has a bronzed appealQtx has a bronzed appeal
Qtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appealQtx has a bronzed appeal
Re: Government grade malware in the wild

Quote:
Originally Posted by qasdfdsaq View Post
So what exactly are they getting at?
I think what they are saying, and im not 100, is that the initial 32 bit first stage that goes through WoW64 then manages to execute 64 bit code that it calls from outside of the memory allocated to the 32 bit code and WoW64. That is after it re-assembles that second 64 bit code that it had planted in different sections of memory. So WoW64 bit code calling second separate native 64 bit code.

They still don't exactly say why doing this stops AV's from seeing the hooks or API calls. Could be how it is injected in to the memory space of another process or a bug in how windows handles something. Could be that the AV doesnt see beyond the WoW64 part running for some reason. Really dunno

It really wouldn't surprise me if it uses a backdoor put in by microsoft. People have got to stop thinking of backdoors as they used to be, these days they are made by intentionally coding bugs so there is the deniability factor. No code showing magic packets/port knocking or passwords that can be found by reverse engineering software/firmware like we saw a while back with some routers. Instead a bug is put in that is extremely difficult to find or exploit unless you created in the first place.

Re Deep defender; a step in the right direction. Protection really needs to start at the hardware level. Just hope they do it right rather than just introduce another thing that can be exploited like you say.
Qtx is offline   Reply With Quote
Old 27-07-2014, 05:38   #15
qasdfdsaq
cf.mega poster
 
Join Date: Aug 2004
Posts: 11,207
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
qasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronzeqasdfdsaq is cast in bronze
Re: Government grade malware in the wild

Thanks for the explanation

As for hardware protection - haven't we had TPM and Trusted Execution for a while now?
qasdfdsaq is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:13.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.