commodity malware means you

55
Commodity malware means YOU! And everybody in this room, let’s look at one called Dridex Michael Gough – Founder MalwareArchaeology.com MalwareArchaeology.com

Upload: michael-gough

Post on 15-Apr-2017

914 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Commodity malware means YOU

Commodity malware means YOU! And everybody in this room, let’s

look at one called Dridex

Michael Gough – Founder

MalwareArchaeology.com

MalwareArchaeology.com

Page 2: Commodity malware means YOU

Who am I• Blue Team Defender Ninja, Malware Archaeologist, Logoholic

• I love “properly” configured logs – they tell us Who, What, Where, When and hopefully How

Creator of

“Windows Logging Cheat Sheet”

“Windows PowerShell Logging Cheat Sheet”

“Windows Splunk Logging Cheat Sheet”

“Malware Management Framework”

• Co-Creator of “Log-MD” – Log Malicious Discovery Tool

– With @Boettcherpwned – Brakeing Down Security PodCast

• @HackerHurricane also my Blog

MalwareArchaeology.com

Page 3: Commodity malware means YOU

Goal

• Interaction – Don’t be a Ding Dong, ask a question… you WILL be rewarded for positive synergy!

• Learn how us Ninja’s do it so you can too

• We have a NEW Tool for YOU!!!

MalwareArchaeology.com

Page 4: Commodity malware means YOU

Total Malware

Total Malware 2015

• 470 Million

MalwareArchaeology.com

Page 5: Commodity malware means YOU

New Malware

NEW Malware 2015

• 140 million

MalwareArchaeology.com

Page 6: Commodity malware means YOU

The Panda Says

MalwareArchaeology.com

Page 7: Commodity malware means YOU

It’s only getting worse

MalwareArchaeology.com

Page 8: Commodity malware means YOU

Symantec says…

MalwareArchaeology.com

Page 9: Commodity malware means YOU

Top 8 threats

• These are what we see most

• What all of YOU see most

• The 20% of what AV focuses on

• We can learn a lot from this

MalwareArchaeology.com

Page 10: Commodity malware means YOU

Dridex movin on up

MalwareArchaeology.com

Mandiant M-Trends 2016 Report

Page 11: Commodity malware means YOU

More of the same

According to CheckPoint’s ThreatCloud in 2015…

• 3000 different malware ‘families’

• 80% have been active for years, some for 8 years

• Top 100 which accounted for 90% of all attacks in 2015, only 3 were new and were outside the Top 40

• More proof Malware Management works

MalwareArchaeology.com

Page 12: Commodity malware means YOU

SANS says…

MalwareArchaeology.com

Page 13: Commodity malware means YOU

Sophos Says…• 70% of malware is unique to 1 company (APT)

• 80% of malware is unique to 10 or less (APT)

• That means…

• 20% of malware is what the AV industry focuses on, but it is what most of you and everyone in this room sees and gets by:– Attachments in email

– URL in email

– Surfing the web• Ads

• WordPress, Drupal, Joomla…

MalwareArchaeology.com

Page 14: Commodity malware means YOU

Types of Malware

I say there are basically two types of malware:

• Commodity malware – The 20% the AV industry focuses on

• Advanced malware – The 80% that the AV industry does not focus on and “may” get around to IF you force them by being a client or if they have multiple customers that receive it in a particular industry (e.g. retail PoS)

MalwareArchaeology.com

Page 15: Commodity malware means YOU

Commodity malware

• This is the stuff you and everyone in the room gets and sees, your family, friends and clients too

• Emails, URL’s surfing

• Most is Commodity malware

• Pwned Ad networks

• Some will be NEW

• Some will be APT

MalwareArchaeology.com

Page 16: Commodity malware means YOU

VirusTotal

• Commodity malware will be detected within a few days

• APT… not so much

• I still have samples from 2012 that have ZERO detection ;-(

• And I gave 12 AV companies a copy of it

• Shows how much they care about APT

MalwareArchaeology.com

Page 17: Commodity malware means YOU

Malware evolves

• So must we

• Darwin says so

• Evolve or die

• Well… Evolve or get breached anyways

• Which means an RGE !!!– Resume Generating Event

MalwareArchaeology.com

Page 18: Commodity malware means YOU

Before Dridex

• Zeus – 2007– SpyEye evolved from Zeus

– Bugat/Cridex evolved from Zeus

– Gameover Zeus taken down 2014

• Bugat & Cridex - 2012

• Dridex – Late 2014– Generated 15,000 emails daily

• C2 Servers taken down Dec 2015

• Now we have Locky

MalwareArchaeology.com

Page 19: Commodity malware means YOU

Locky, the next BIG thing

MalwareArchaeology.com

Page 20: Commodity malware means YOU

Locky.. Today and tomorrow

MalwareArchaeology.com

Page 21: Commodity malware means YOU

Locky

MalwareArchaeology.com

Page 22: Commodity malware means YOU

BlackEnergy

• More Malware Management proof

MalwareArchaeology.com

Page 23: Commodity malware means YOU

Ha Ha Ha Hollywoood

• Darwin said… Pay up or DIE !!!

• Ottawa Hospital also hit

MalwareArchaeology.com

Page 24: Commodity malware means YOU

DRIDEX

MalwareArchaeology.com

Page 25: Commodity malware means YOU

Dridex

• We have probably all seen one of these

• Did I say Commodity Malware?

• Uses Word documents that are hard for email gateways to detect

• Yes, users have to “Enable Macroses” but they would NEVER do that…

MalwareArchaeology.com

Page 26: Commodity malware means YOU

Commodity Malware Smarter than ever

• In 2015 I have witnessed things with commodity malware usually reserved for APT

– Because they are evolving from APT

• More use of scripts to avoid AV detection

• More use of PowerShell backdoors!

• More stealthy persistence

MalwareArchaeology.com

Page 27: Commodity malware means YOU

Dridex Artifacts

MalwareArchaeology.com

Page 28: Commodity malware means YOU

Dridex Artifacts .BAT

• Do I have a network connection

• What language am I

• Set variables for the name of the .VBS script

MalwareArchaeology.com

Page 29: Commodity malware means YOU

Dridex Artifacts .VBS

• Notice the path %temp%

• Ah Hell…

• Build the PowerShell script execution

MalwareArchaeology.com

Page 30: Commodity malware means YOU

Dridex Artifacts - .VBS #2

MalwareArchaeology.com

Page 31: Commodity malware means YOU

Dridex Artifacts #3

• Script

• Using math

• Easy variants

MalwareArchaeology.com

Page 32: Commodity malware means YOU

Dridex Artifacts - .PS1

• Domains to phone home to

• Path - %temp%

MalwareArchaeology.com

Page 33: Commodity malware means YOU

Dridex Artifacts - .PS1

• 8 + .exe – Payload name

• 444.jpg – Stats file looks like >>>>

• User Agent to emulate a browser

• Download the files

• Assemble the names .vbs, .jpg, .bat, .PS1

• Sleep 15

• Execute the payload - cmd.exe %file%

• Remove the files

MalwareArchaeology.com

Page 34: Commodity malware means YOU

VM Aware… What do I say?

• Use Bare Bones to do analysis

MalwareArchaeology.com

Page 35: Commodity malware means YOU

Persistence• New method towards the end of 2015

• Nothing in the Registry showing persistence while system was running

• In memory only until system shutdown

• Then we caught the bugger, with good auditing of course and

MalwareArchaeology.com

Page 36: Commodity malware means YOU

Malware Management

• Proof it works

• If you look at Zeus, Cridex and Dridex, you are better prepared for Locky

• Learn from History

• Your defenses and detection MUST evolve too

• Read the malware analysis and breach reports

• Tweak your tools

• Focus on new kewl hooks and artifacts

MalwareArchaeology.com

Page 37: Commodity malware means YOU

How we harvested malware

• Yay Email!!!

• Since the primary delivery was Phishing, we were able to grab copies of the Word documents

• Executed in the Lab

• Grabbed the artifacts

• Updated our Detection

• We knew if anyone fell for it and opened them

• We knew what to cleanup

MalwareArchaeology.com

Page 38: Commodity malware means YOU

How we harvested malware

• File Copy loop in Directories discovered– @echo off

– cls

– md captured

– :Redo

– robocopy . Captured /E /B /r:0 /w:1 /np /xo /xd Captured

– Goto Redo

– :End

• Ninja Tip:– Great to do in Labs for User space \AppData

MalwareArchaeology.com

Page 39: Commodity malware means YOU

INTERMISSION

MalwareArchaeology.com

Page 40: Commodity malware means YOU

Announcing the release of…

MalwareArchaeology.com

FREE!

$299

AND

Version 1.0

Page 41: Commodity malware means YOU

MalwareArchaeology.com

• Log and Malicious Discovery tool

• When you run the tool, it tells you what auditing and settings to configure that it requires. LOG-MD won’t harvest anything until you configure the system!

• Once the system and/or GPO is configured1. Clear the logs

2. Infect the system

3. Run Log-MD

4. Review “Report.csv” in Excel

Page 42: Commodity malware means YOU

Functions

MalwareArchaeology.com

• Audit Report of log settings compared to:– The “Windows Logging Cheat Sheet”

– Center for Internet Security (CIS) Benchmarks

– Also USGCB and AU ACSC

• White lists to filter out the known good– By IP Address

– By Process Command Line and/or Process Name

– By File and Registry locations (requires File and Registry auditing to be set)

• Report.csv - data from logs specific to security

Page 43: Commodity malware means YOU

Purpose

MalwareArchaeology.com

• Malware Analysis Lab• Investigate a suspect system• Audit Advanced Audit Policy settings• Help MOVE or PUSH security forward• Give the IR folks what they need and the Feds too• Take a full system (File and Reg) snapshot to compare to another

system and report the differences• Discover tricky malware artifacts• SPEED !• Deploy with anything you want, SCCM, LanDesk, PSExec, PS, etc…• Replace several tools we use today with one easy to use utility that

does much more

• To answer the question: Is this system infected or clean?• And do it quickly !

Page 44: Commodity malware means YOU

Free Edition

MalwareArchaeology.com

• Harvest security relevant log data

• Whitelist log events by IP, Cmd Line, Process and File / Registry audit locations

• Perform a full File Baseline of a system

• Compare a suspect system to a Baseline or Dir

• Perform a full Registry snapshot of a system

• Compare a suspect system to a Reg Baseline

• Look for Large Registry Keys for hidden payloads

Page 45: Commodity malware means YOU

MalwareArchaeology.com

• Everything the Free Edition does and…• More reports, breakdown of things to look for• Specify the Output directory• Harvest Sysmon logs• Harvest WLS Logs• Whitelist Hash compare results• Whitelist Registry compare results• Create a Master-Digest to exclude unique files• Free updates for 1 year, expect a new release

every quarter• Manual – How to use LOG-MD Professional

Page 46: Commodity malware means YOU

MalwareArchaeology.com

Future Versions – In the works!

• WhoIs lookups of IP Addresses called

• VirusTotal lookups of discovered files

• Find parent-less processes

• Assess all processes and create a Whitelist

• Assess all services and create a Whitelist

• VirusTotal lookups of unknown or new processes and services

• PowerShell details

• Other API calls to security vendors

Page 47: Commodity malware means YOU

MalwareArchaeology.com

Let’s look

at some

LOG-MD

RESULTS

Page 48: Commodity malware means YOU

Crypto Event

MalwareArchaeology.com

• C:\Users\Bob\AppData\Roaming\vcwixk.exe

• C:\Users\Bob\AppData\Roaming\vcwpir.exe

• C:\WINDOWS\system32\cmd.exe /c del C:\Users\Bob\AppData\Roaming\vcwixk.exe >> NUL

• C:\Windows\System32\vssadmin.exe delete shadows /all /Quiet

Page 49: Commodity malware means YOU

Malicious Word Doc

MalwareArchaeology.com

DRIDEX

Page 50: Commodity malware means YOU

Malicious Word Doc con’t

MalwareArchaeology.com

More DRIDEX

Page 51: Commodity malware means YOU

Use the power of Excel

MalwareArchaeology.com

• The reports are in .CSV format

• Excel has sorting and Filters

• Filters are AWESOME to thin out your results

• You might take filtered results and add them to your whitelist once vetted

• Save to .XLS and format, color code and produce your report

• For .TXT files use NotePad++

Page 52: Commodity malware means YOU

So what do we get?

MalwareArchaeology.com

• WHAT Processes executed

• WHERE it executed from

• IP’s to enter into Log Management to see WHO else opened the malware

• Details needed to remediate infection

• Details to improve your Active Defense!

• I did this in…

15 Minutes!

Page 53: Commodity malware means YOU

Resources

MalwareArchaeology.com

• Websites– Log-MD.com The tool

• The “Windows Logging Cheat Sheet”– MalwareArchaeology.com

• Malware Analysis Report links too– To start your Malware Management program

• This presentation is on SlideShare– Search for MalwareArchaeology or LOG-MD

Page 54: Commodity malware means YOU

Testers for RC-1

MalwareArchaeology.com

• May 1st 2016 - launch date

• Looking for a few good testers…

– of LOG-MD Professional

• Test the manual and tool and provide feedback

• You WILL be rewarded for the effort ;-)

• You heard it here first !

• A gift from your local Austin Security Professionals

Page 55: Commodity malware means YOU

Questions?

MalwareArchaeology.com

You can find us at:

• Log-MD.com

• @HackerHurricane• @Boettcherpwned

• MalwareArchaeology.com• HackerHurricane.com (blog)

• http://www.slideshare.net – LinkedIn now