SlideShare a Scribd company logo
Defending Against Ransomware
and what can you do about it
Michael Gough – Founder
MalwareArchaeology.com
MalwareArchaeology.com
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 File Auditing Cheat Sheet”
“Windows Registry Auditing 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
The Problem
or Challenge
We all Face
MalwareArchaeology.com
Europol experts
• "Ransomware attacks have eclipsed most
other global cybercrime threats, with the first
half of 2017 witnessing ransomware attacks
on a scale previously unseen following the
emergence of self-propagating
'ransomworms,' as observed in the WannaCry
and Petya/NotPetya cases," write Europol
experts in the agency's Internet Organized
Crime Threat Assessment (IOCTA 2017)
MalwareArchaeology.com
Costs and Growth
• The FBI believes the total cost of ransomware
broke the $1 billion mark in 2016
• Whatever the motivation, new ransomware
increased by 54% in the second quarter of this
year, according to McAfee.
• The number of total new ransomware samples
has increased by 47% in the past four
quarters.
MalwareArchaeology.com
The Numbers
• 80% of security pros view ransomware to be a
moderate or extreme threat today. This is from a
study of nearly 500 practitioners among the
Information Security Community on LinkedIn,
conducted by Cybersecurity Insiders and Crowd
Research Partners.
• That survey showed that 75% of organizations
affected by ransomware have experienced up to
5 attacks in the last year, and 25% have been hit
by 6 or more attacks.
MalwareArchaeology.com
The Numbers
• The study showed that 39% of organizations
say it takes them anywhere between several
days to a few weeks to recover from a
ransomware attack.
• This lack of resiliency and the fallout from
attacks this year highlight the lack of
accountability for instituting the basics of IT
security within organizations, says James
Carder, CISO of LogRhythm.
MalwareArchaeology.com
Email is #1
• Phishing IS our worst enemy
MalwareArchaeology.com
Ransomware
MalwareArchaeology.com
Malicious
Email
MalwareArchaeology.com
Malicious Email
• Malicious Attachments
– PDF, Word, Excel, . .js, .jse, .wsf, .wsh, .hte, .lnk, PS1, CMD, BAT,
.vbs, .vbe, etc
• URL’s in Email
– Click HERE to see more
• Then downloads the above file formats
– Or sends you to a credential stealer webpage
• Encrypted emails
– Same as above but protected with a password to bypass ALL
security controls
• All new for 2017
– Word DDE – auto downloading malware when Office opens
• Not to mention a Feature/Flaw of just receiving email
MalwareArchaeology.com
So what can we do?
MalwareArchaeology.com
Don’t Panic
MalwareArchaeology.com
Why does the criminals
approach work?
MalwareArchaeology.com
Understand WHY it works
• Email gateways do not block enough, or anything
• Exchange and Outlook controls are seldom used
• Don’t forget users check personal email (Gmail,
Yahoo, Hotmail, Office365, etc.)
• We do NOT do enough here and we should
• It’s FREE, your email gateway and Exchange
server already have the capability
• Even Outlook has rules that can be enabled
MalwareArchaeology.com
Take-Away #1
File Type Blocks
MalwareArchaeology.com
Outlook Rules
• You REALLY need to enable these
• https://support.office.com/en-us/article/Blocked-
attachments-in-Outlook-3811cddc-17c3-4279-
a30c-060ba0207372
• Block these on your
Email Gateway !!!
• Drop these PLEEEASE
MalwareArchaeology.com
What Gets By
File Type Blocks?
MalwareArchaeology.com
If we drop these, what is left?
• Encrypted messages
– These emails will get by ALL security solutions
because they can’t inspect encrypted emails (It’s
Haaarrd)
• Emails with URL’s
– URL’s are generally not malicious with new
campaigns in the first few hours
• They use Cloud Storage too
• Users download and Double-Click
MalwareArchaeology.com
What gets by file type blocks?
• Documents that have URL’s
• Encrypted Word/Office Docs that have Macros
Encrypted Word/Office Docs with OLE objects
that are scripts like the file types we dropped
• NEW for 2017 – DDE Links in Word Docs
– Auto opens a URL and downloads a malicious file
• If the a file gets in this way, then we have to
address what happens when a user clicks it
MalwareArchaeology.com
Take-Away #2
Block Macros
PLEASE !!!!
MalwareArchaeology.com
Block Macros !!!
• For corporate users – Office 2013 or 2016
required
MalwareArchaeology.com
Or tweak the registry
Office 2016
• HKCUSOFTWAREPoliciesMicrosoftoffice16.0wordsecurity
HKCUSOFTWAREPoliciesMicrosoftoffice16.0excelsecurity
HKCUSOFTWAREPoliciesMicrosoftoffice16.0powerpointsecur
ity
– In each key listed above, create this value:
DWORD: blockcontentexecutionfrominternet Value = 1
Office 2013
•
HKCUSOFTWAREPoliciesMicrosoftoffice15.0wordsecurity
HKCUSOFTWAREPoliciesMicrosoftoffice15.0excelsecurity
HKCUSOFTWAREPoliciesMicrosoftoffice15.0powerpointsecur
ity
– In each key listed above, create this value:
DWORD: blockcontentexecutionfrominternet Value = 1
MalwareArchaeology.com
#WINNING
• After adding these tweaks you will see this
when you try and enable a macro and/or
content
• You can unblock if truly needed and trusted,
create an exception group
MalwareArchaeology.com
There are More Than
Macros
MalwareArchaeology.com
More than Macros
• Macros account for a lot, but malwarians are morphing
and evolving
• We blocked more than 6000 emails between June and
Dec 2016
• They have moved to encrypted documents
• They have moved to documents with URL’s
• They have moved to OLE objects in Word Docs
• They have moved to using Cloud Storage to retrieve
documents
• NEW – They are using a DDE Feature/Flaw to auto
download URL’s that have a file and get the user to
click on the notification
MalwareArchaeology.com
Why it Works
MalwareArchaeology.com
Understand WHY it works
• Windows is Sooooooo broken
• The malwarians are taking advantage of the
default configuration of Windows
• What happens when you Double-Click is the
enemy
• Users have been trained to just click it
– Click OK, click, click, click
MalwareArchaeology.com
So how does it work?
• Clicking by users
• Yeah, Yeah, Yeah… User awareness training
– It won’t be enough
• How about this…
• Change what happens when users Double-
Click a suspect file type
• Now there’s a thought…
MalwareArchaeology.com
Take-Away #3
Deny the Double-Click
MalwareArchaeology.com
Deny the Double-Click
• Windows allows by default the execution of a
file type by double-clicking and launching the
execution program (Booooooo)
• So how about changing the dangerous file
types that launch the interpreters to launching
a simple editor?
• Yup, NOTEPAD to the rescue !!!!!
• Finally a good use for Notepad
MalwareArchaeology.com
Deny the Double-Click
• This will NOT break the way these file types
normally work.
• Cscript ‘Logon.vbs’ will work fine
• Double-Clicking ‘logon.vbs’ will just open
Notepad
• You WILL need to convince IT, they haven’t
played with this due to FUD and lack of
experience
• Prove it by showing it works !
MalwareArchaeology.com
Default Programs
MalwareArchaeology.com
File Type
MalwareArchaeology.com
Windows Based Script Host
• Get rid of it, they use it to execute malware
• Consider .vbe, .vbs, .ps1 and .ps1xml too, but
this is used in corporate environments
• This only affects double-clicking the file, not
using the file properly (cscript Good_file.vbs)
MalwareArchaeology.com
Change to Notepad
• Change ANYTHING that can execute a script to
open Notepad
MalwareArchaeology.com
So what happens?
• Users will open files that have been blocked,
but got by either via an encrypted email or a
URL in an email or attachment
• The user then downloads the malicious file
type and double-clicks it… If it is one of the
types that you have changed the File
Association for, the malware script will FAIL !!!
• #WINNING
MalwareArchaeology.com
Take-Away #4
WARNING
Windows 10 updates
MalwareArchaeology.com
Windows 10 upgrades
• Microsoft sometimes does full OS upgrades
when they patch
• This will reset your File Association changes
• So use Group Policy (GPO) to set these
• If a standalone system (Home, Pro, EDU) then
use a script I created that will set these and
more
– Create a scheduled task to run the script on logon
to set them each time you begin work
MalwareArchaeology.com
Now What Can Get By?
MalwareArchaeology.com
Take-Away #5
Word DDE
Attack
MalwareArchaeology.com
DDE Links
• Word allows auto-execution of links to
download content
• This is now being exploited HEAVILY !!!
• But easy to break!
MalwareArchaeology.com
DDE Links
• Turn this off !!!!
• No need to automatically open links
• The user can right-click and manually update if
it is an Excel Graph for example
• Disable using Group Policy
• Or the script from my website which also sets
malicious file types to use Notepad
– MalwareArchaeology.comlogging
MalwareArchaeology.com
The 5%-10% that
Can Get By
MalwareArchaeology.com
The Final Mile
• Once you have done everything in this preso
that is FREE
• Now you can buy solutions that reduce the
final 5%
• Vendors are struggling with scanning
documents that are encrypted
• DDE is new and they are scrambling
MalwareArchaeology.com
What can still get by?
• Look at these, which you may have and are
also FREE
– Application Whitelisting - Complicated
– Detect it and Respond – Logging and people
• Maybe User Awareness can help as you can
now focus the training since all the other ways
they get in have been dealt with
MalwareArchaeology.com
What can still get by?
• Lots of email is known bad
• Once a campaign is out for 4 hours or more, vendors
start to add signatures to their advanced email filtering
products to block known malicious emails
• Add these solutions to your email gateway AFTER you
have implemented what is already recommended
– FireEye
– LastLine
– Cisco AMP
– Etc…
• EDR solutions might help AFTER you do everything in
this preso since you will have reduced a ton of garbage
MalwareArchaeology.com
Take-Away #6
New File Protection in
Windows 10 - 1709
MalwareArchaeology.com
New Feature in Windows 10
• Microsoft has now introduced ”Controlled Folder
Access” feature in its Windows Defender Security
Center that is
• Available for Windows 10 Fall Creators Update
(v1709)
• Basically folders that are protected with this wil
be denied access to non-approved applications
• Probably will NOT work with another AV solution
MalwareArchaeology.com
New Feature in Windows 10
MalwareArchaeology.com
User Awareness
MalwareArchaeology.com
User Awareness
Teach users two things, and only 2 things
1. Don’t open emails that have encrypted
attachments AND have the password in the
body AND contain a few words and not
descriptive
2. Don’t launch ANY .EXE files that you
download from sources via email and links in
emails or documents – EVER!
MalwareArchaeology.com
What do we do with the
attachments we receive?
MalwareArchaeology.com
Evaluate them
• Detonate them in a malware lab
• Obtain the artifacts to see who else might
have open the ones that got through
• Analyze what the attachment does so you can
better understand how to reduce them getting
into your environment
• 90% is FREE and you already have it
• Just add some labor
MalwareArchaeology.com
What do we use to
quickly evaluate the
malware?
MalwareArchaeology.com
• The Log and Malicious Discovery tool
• Audits your system and produces a report
• Also shows failed items on the console
• Helps you configure proper audit logging
• ALL VERSIONS OF WINDOWS (Win 7 & up)
• Helps you enable what is valuable
• Compares to many industry standards
• CIS, USGCB and AU standards and “Windows
Logging Cheat Sheet”
MalwareArchaeology.com
• Collect 1-7 days of logs
• 20+ reports
• Full filesystem Hash Baseline
• Full filesystem compare to Hash Baseline
• Full system Registry Baseline
• Full system compare to Registry Baseline
• Large Registry Key discovery
MalwareArchaeology.com
• More reports
• Interesting Artifacts report
• WhoIS resolution of IPs
• SRUM (netflow from/to a binary)
• AutoRuns report with whitelist and Master Digest
exclusions
• List of Locked files
• More Whitelisting
• Master-Digest to exclude hashes and files
MalwareArchaeology.com
Resources
• Websites
– MalwareArchaeology.com
– Log-MD.com The tool
• The “Windows Logging Cheat Sheet”
– MalwareArchaeology.com
• Script to set File Association, Break DDE and more
– www.MalwareArchaeology.comlogging
MalwareArchaeology.com
Questions?
• You can find us at:
• @HackerHurricane
• @Boettcherpwned
• Log-MD.com
• MalwareArchaeology.com
• HackerHurricane.com (blog)
MalwareArchaeology.com

More Related Content

PDF
MW_Arch Fastest_way_to_hunt_on_Windows_v1.01
Michael Gough
 
PDF
DIR ISF - Email keeps getting us pwned v1.1
Michael Gough
 
PDF
Logging for Hackers v1.0
Michael Gough
 
PDF
Windows Incident Response is hard, but doesn't have to be
Michael Gough
 
PDF
Sandbox vs manual analysis v2.1
Michael Gough
 
PDF
Logging for hackers SAINTCON
Michael Gough
 
PDF
Deeplook into apt and how to detect and defend v1.0
Michael Gough
 
PDF
Sandbox vs manual malware analysis v1.1
Michael Gough
 
MW_Arch Fastest_way_to_hunt_on_Windows_v1.01
Michael Gough
 
DIR ISF - Email keeps getting us pwned v1.1
Michael Gough
 
Logging for Hackers v1.0
Michael Gough
 
Windows Incident Response is hard, but doesn't have to be
Michael Gough
 
Sandbox vs manual analysis v2.1
Michael Gough
 
Logging for hackers SAINTCON
Michael Gough
 
Deeplook into apt and how to detect and defend v1.0
Michael Gough
 
Sandbox vs manual malware analysis v1.1
Michael Gough
 

What's hot (20)

PDF
Email keeps getting us pwned - Avoiding Ransomware and malware
Michael Gough
 
PDF
RMISC logging for hackers
Michael Gough
 
PDF
Commodity malware means YOU
Michael Gough
 
PDF
Cred stealing emails bsides austin_2018 v1.0
Michael Gough
 
PDF
Detecting WMI Exploitation v1.1
Michael Gough
 
PDF
Email keeps getting us pwned v1.1
Michael Gough
 
PDF
What can you do about ransomware
Michael Gough
 
PDF
Info sec is not daunting v1.0
Michael Gough
 
PDF
BSidesOK_You_CAN_detect_PowerShell_attacks_v1.1
Michael Gough
 
PDF
Windows IR made easier and faster v1.0
Michael Gough
 
PDF
Finding attacks with these 6 events
Michael Gough
 
PDF
The top 10 windows logs event id's used v1.0
Michael Gough
 
PDF
EDR, ETDR, Next Gen AV is all the rage, so why am I ENRAGED?
Michael Gough
 
PDF
Mw arch mac_tips and tricks v1.0
Michael Gough
 
PDF
You need a PROcess to catch running processes and their modules_v2.0
Michael Gough
 
PDF
Secure Yourself, Practice what we preach - BSides Austin 2015
Michael Gough
 
PDF
Malware Management - HouSecCon 2014
Michael Gough
 
PDF
Logging for Hackers - What you need to know to catch them
Michael Gough
 
PDF
Ask a Malware Archaeologist
Michael Gough
 
PDF
You can detect PowerShell attacks
Michael Gough
 
Email keeps getting us pwned - Avoiding Ransomware and malware
Michael Gough
 
RMISC logging for hackers
Michael Gough
 
Commodity malware means YOU
Michael Gough
 
Cred stealing emails bsides austin_2018 v1.0
Michael Gough
 
Detecting WMI Exploitation v1.1
Michael Gough
 
Email keeps getting us pwned v1.1
Michael Gough
 
What can you do about ransomware
Michael Gough
 
Info sec is not daunting v1.0
Michael Gough
 
BSidesOK_You_CAN_detect_PowerShell_attacks_v1.1
Michael Gough
 
Windows IR made easier and faster v1.0
Michael Gough
 
Finding attacks with these 6 events
Michael Gough
 
The top 10 windows logs event id's used v1.0
Michael Gough
 
EDR, ETDR, Next Gen AV is all the rage, so why am I ENRAGED?
Michael Gough
 
Mw arch mac_tips and tricks v1.0
Michael Gough
 
You need a PROcess to catch running processes and their modules_v2.0
Michael Gough
 
Secure Yourself, Practice what we preach - BSides Austin 2015
Michael Gough
 
Malware Management - HouSecCon 2014
Michael Gough
 
Logging for Hackers - What you need to know to catch them
Michael Gough
 
Ask a Malware Archaeologist
Michael Gough
 
You can detect PowerShell attacks
Michael Gough
 
Ad

Similar to InnoTech 2017_Defend_Against_Ransomware 3.0 (19)

PDF
Email keeps getting us pwned v1.0
Michael Gough
 
PDF
Can_We_Really_Detect_These_So_Called_Sophisticated_Attacks?
Michael Gough
 
PDF
Sophisticated Attacks - Can We Really Detect Them _v1.2.pdf
Michael Gough
 
PDF
When Security Tools Fail You
Michael Gough
 
PPT
12990739.ppt
MuhammadShahidulIsla8
 
PPTX
Phish training final
Jen Ruhman
 
PDF
I Have My WordPress Site Now What?
Michele Butcher-Jones
 
PDF
Secrets of Google VRP by: Krzysztof Kotowicz, Google Security Team
OWASP Delhi
 
PDF
2010-03 Yesterday's Trusted Web Sites are Today's Malicious Servers
Raleigh ISSA
 
PPTX
CMS Joomla
The eCore Group
 
PPTX
Application Whitelisting - Complementing Threat centric with Trust centric se...
Osama Salah
 
PDF
From velvet to silk there is still a lot of sweat
Stefano Maccaglia
 
PDF
0-Day Up Your Sleeve - Attacking macOS Environments
SecuRing
 
PDF
Owasp tds
snyff
 
PPTX
Continuous security testing - sharing responsibility
VodqaBLR
 
PPTX
Intro to INFOSEC
Sean Whalen
 
PPTX
Ransomware: WanaCry, WanCrypt
Yash Diwakar
 
PPTX
Internet security
rfukunaga
 
Email keeps getting us pwned v1.0
Michael Gough
 
Can_We_Really_Detect_These_So_Called_Sophisticated_Attacks?
Michael Gough
 
Sophisticated Attacks - Can We Really Detect Them _v1.2.pdf
Michael Gough
 
When Security Tools Fail You
Michael Gough
 
12990739.ppt
MuhammadShahidulIsla8
 
Phish training final
Jen Ruhman
 
I Have My WordPress Site Now What?
Michele Butcher-Jones
 
Secrets of Google VRP by: Krzysztof Kotowicz, Google Security Team
OWASP Delhi
 
2010-03 Yesterday's Trusted Web Sites are Today's Malicious Servers
Raleigh ISSA
 
CMS Joomla
The eCore Group
 
Application Whitelisting - Complementing Threat centric with Trust centric se...
Osama Salah
 
From velvet to silk there is still a lot of sweat
Stefano Maccaglia
 
0-Day Up Your Sleeve - Attacking macOS Environments
SecuRing
 
Owasp tds
snyff
 
Continuous security testing - sharing responsibility
VodqaBLR
 
Intro to INFOSEC
Sean Whalen
 
Ransomware: WanaCry, WanCrypt
Yash Diwakar
 
Internet security
rfukunaga
 
Ad

More from Michael Gough (7)

PDF
Hacking a backup power solution(s) for your home, Tornado tested!
Michael Gough
 
PDF
My InfoSec journey led me to create my own IR tools, how, and why you should too
Michael Gough
 
PPTX
Incident Response Fails
Michael Gough
 
PDF
Introducing ArTHIR - ATT&CK Remote Threat Hunting Incident Response Windows tool
Michael Gough
 
PDF
MITRE AttACK framework it is time you took notice_v1.0
Michael Gough
 
PDF
Proper logging can catch breaches like retail PoS
Michael Gough
 
PDF
Proper logging can catch breaches like retail PoS
Michael Gough
 
Hacking a backup power solution(s) for your home, Tornado tested!
Michael Gough
 
My InfoSec journey led me to create my own IR tools, how, and why you should too
Michael Gough
 
Incident Response Fails
Michael Gough
 
Introducing ArTHIR - ATT&CK Remote Threat Hunting Incident Response Windows tool
Michael Gough
 
MITRE AttACK framework it is time you took notice_v1.0
Michael Gough
 
Proper logging can catch breaches like retail PoS
Michael Gough
 
Proper logging can catch breaches like retail PoS
Michael Gough
 

Recently uploaded (20)

PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
PPTX
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
PDF
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PDF
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
Trying to figure out MCP by actually building an app from scratch with open s...
Julien SIMON
 
AI in Daily Life: How Artificial Intelligence Helps Us Every Day
vanshrpatil7
 
Responsible AI and AI Ethics - By Sylvester Ebhonu
Sylvester Ebhonu
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
The Future of Mobile Is Context-Aware—Are You Ready?
iProgrammer Solutions Private Limited
 
Doc9.....................................
SofiaCollazos
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
BLW VOCATIONAL TRAINING SUMMER INTERNSHIP REPORT
codernjn73
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 

InnoTech 2017_Defend_Against_Ransomware 3.0

  • 1. Defending Against Ransomware and what can you do about it Michael Gough – Founder MalwareArchaeology.com MalwareArchaeology.com
  • 2. 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 File Auditing Cheat Sheet” “Windows Registry Auditing 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
  • 3. The Problem or Challenge We all Face MalwareArchaeology.com
  • 4. Europol experts • "Ransomware attacks have eclipsed most other global cybercrime threats, with the first half of 2017 witnessing ransomware attacks on a scale previously unseen following the emergence of self-propagating 'ransomworms,' as observed in the WannaCry and Petya/NotPetya cases," write Europol experts in the agency's Internet Organized Crime Threat Assessment (IOCTA 2017) MalwareArchaeology.com
  • 5. Costs and Growth • The FBI believes the total cost of ransomware broke the $1 billion mark in 2016 • Whatever the motivation, new ransomware increased by 54% in the second quarter of this year, according to McAfee. • The number of total new ransomware samples has increased by 47% in the past four quarters. MalwareArchaeology.com
  • 6. The Numbers • 80% of security pros view ransomware to be a moderate or extreme threat today. This is from a study of nearly 500 practitioners among the Information Security Community on LinkedIn, conducted by Cybersecurity Insiders and Crowd Research Partners. • That survey showed that 75% of organizations affected by ransomware have experienced up to 5 attacks in the last year, and 25% have been hit by 6 or more attacks. MalwareArchaeology.com
  • 7. The Numbers • The study showed that 39% of organizations say it takes them anywhere between several days to a few weeks to recover from a ransomware attack. • This lack of resiliency and the fallout from attacks this year highlight the lack of accountability for instituting the basics of IT security within organizations, says James Carder, CISO of LogRhythm. MalwareArchaeology.com
  • 8. Email is #1 • Phishing IS our worst enemy MalwareArchaeology.com
  • 11. Malicious Email • Malicious Attachments – PDF, Word, Excel, . .js, .jse, .wsf, .wsh, .hte, .lnk, PS1, CMD, BAT, .vbs, .vbe, etc • URL’s in Email – Click HERE to see more • Then downloads the above file formats – Or sends you to a credential stealer webpage • Encrypted emails – Same as above but protected with a password to bypass ALL security controls • All new for 2017 – Word DDE – auto downloading malware when Office opens • Not to mention a Feature/Flaw of just receiving email MalwareArchaeology.com
  • 12. So what can we do? MalwareArchaeology.com
  • 14. Why does the criminals approach work? MalwareArchaeology.com
  • 15. Understand WHY it works • Email gateways do not block enough, or anything • Exchange and Outlook controls are seldom used • Don’t forget users check personal email (Gmail, Yahoo, Hotmail, Office365, etc.) • We do NOT do enough here and we should • It’s FREE, your email gateway and Exchange server already have the capability • Even Outlook has rules that can be enabled MalwareArchaeology.com
  • 16. Take-Away #1 File Type Blocks MalwareArchaeology.com
  • 17. Outlook Rules • You REALLY need to enable these • https://support.office.com/en-us/article/Blocked- attachments-in-Outlook-3811cddc-17c3-4279- a30c-060ba0207372 • Block these on your Email Gateway !!! • Drop these PLEEEASE MalwareArchaeology.com
  • 18. What Gets By File Type Blocks? MalwareArchaeology.com
  • 19. If we drop these, what is left? • Encrypted messages – These emails will get by ALL security solutions because they can’t inspect encrypted emails (It’s Haaarrd) • Emails with URL’s – URL’s are generally not malicious with new campaigns in the first few hours • They use Cloud Storage too • Users download and Double-Click MalwareArchaeology.com
  • 20. What gets by file type blocks? • Documents that have URL’s • Encrypted Word/Office Docs that have Macros Encrypted Word/Office Docs with OLE objects that are scripts like the file types we dropped • NEW for 2017 – DDE Links in Word Docs – Auto opens a URL and downloads a malicious file • If the a file gets in this way, then we have to address what happens when a user clicks it MalwareArchaeology.com
  • 21. Take-Away #2 Block Macros PLEASE !!!! MalwareArchaeology.com
  • 22. Block Macros !!! • For corporate users – Office 2013 or 2016 required MalwareArchaeology.com
  • 23. Or tweak the registry Office 2016 • HKCUSOFTWAREPoliciesMicrosoftoffice16.0wordsecurity HKCUSOFTWAREPoliciesMicrosoftoffice16.0excelsecurity HKCUSOFTWAREPoliciesMicrosoftoffice16.0powerpointsecur ity – In each key listed above, create this value: DWORD: blockcontentexecutionfrominternet Value = 1 Office 2013 • HKCUSOFTWAREPoliciesMicrosoftoffice15.0wordsecurity HKCUSOFTWAREPoliciesMicrosoftoffice15.0excelsecurity HKCUSOFTWAREPoliciesMicrosoftoffice15.0powerpointsecur ity – In each key listed above, create this value: DWORD: blockcontentexecutionfrominternet Value = 1 MalwareArchaeology.com
  • 24. #WINNING • After adding these tweaks you will see this when you try and enable a macro and/or content • You can unblock if truly needed and trusted, create an exception group MalwareArchaeology.com
  • 25. There are More Than Macros MalwareArchaeology.com
  • 26. More than Macros • Macros account for a lot, but malwarians are morphing and evolving • We blocked more than 6000 emails between June and Dec 2016 • They have moved to encrypted documents • They have moved to documents with URL’s • They have moved to OLE objects in Word Docs • They have moved to using Cloud Storage to retrieve documents • NEW – They are using a DDE Feature/Flaw to auto download URL’s that have a file and get the user to click on the notification MalwareArchaeology.com
  • 28. Understand WHY it works • Windows is Sooooooo broken • The malwarians are taking advantage of the default configuration of Windows • What happens when you Double-Click is the enemy • Users have been trained to just click it – Click OK, click, click, click MalwareArchaeology.com
  • 29. So how does it work? • Clicking by users • Yeah, Yeah, Yeah… User awareness training – It won’t be enough • How about this… • Change what happens when users Double- Click a suspect file type • Now there’s a thought… MalwareArchaeology.com
  • 30. Take-Away #3 Deny the Double-Click MalwareArchaeology.com
  • 31. Deny the Double-Click • Windows allows by default the execution of a file type by double-clicking and launching the execution program (Booooooo) • So how about changing the dangerous file types that launch the interpreters to launching a simple editor? • Yup, NOTEPAD to the rescue !!!!! • Finally a good use for Notepad MalwareArchaeology.com
  • 32. Deny the Double-Click • This will NOT break the way these file types normally work. • Cscript ‘Logon.vbs’ will work fine • Double-Clicking ‘logon.vbs’ will just open Notepad • You WILL need to convince IT, they haven’t played with this due to FUD and lack of experience • Prove it by showing it works ! MalwareArchaeology.com
  • 35. Windows Based Script Host • Get rid of it, they use it to execute malware • Consider .vbe, .vbs, .ps1 and .ps1xml too, but this is used in corporate environments • This only affects double-clicking the file, not using the file properly (cscript Good_file.vbs) MalwareArchaeology.com
  • 36. Change to Notepad • Change ANYTHING that can execute a script to open Notepad MalwareArchaeology.com
  • 37. So what happens? • Users will open files that have been blocked, but got by either via an encrypted email or a URL in an email or attachment • The user then downloads the malicious file type and double-clicks it… If it is one of the types that you have changed the File Association for, the malware script will FAIL !!! • #WINNING MalwareArchaeology.com
  • 38. Take-Away #4 WARNING Windows 10 updates MalwareArchaeology.com
  • 39. Windows 10 upgrades • Microsoft sometimes does full OS upgrades when they patch • This will reset your File Association changes • So use Group Policy (GPO) to set these • If a standalone system (Home, Pro, EDU) then use a script I created that will set these and more – Create a scheduled task to run the script on logon to set them each time you begin work MalwareArchaeology.com
  • 40. Now What Can Get By? MalwareArchaeology.com
  • 42. DDE Links • Word allows auto-execution of links to download content • This is now being exploited HEAVILY !!! • But easy to break! MalwareArchaeology.com
  • 43. DDE Links • Turn this off !!!! • No need to automatically open links • The user can right-click and manually update if it is an Excel Graph for example • Disable using Group Policy • Or the script from my website which also sets malicious file types to use Notepad – MalwareArchaeology.comlogging MalwareArchaeology.com
  • 44. The 5%-10% that Can Get By MalwareArchaeology.com
  • 45. The Final Mile • Once you have done everything in this preso that is FREE • Now you can buy solutions that reduce the final 5% • Vendors are struggling with scanning documents that are encrypted • DDE is new and they are scrambling MalwareArchaeology.com
  • 46. What can still get by? • Look at these, which you may have and are also FREE – Application Whitelisting - Complicated – Detect it and Respond – Logging and people • Maybe User Awareness can help as you can now focus the training since all the other ways they get in have been dealt with MalwareArchaeology.com
  • 47. What can still get by? • Lots of email is known bad • Once a campaign is out for 4 hours or more, vendors start to add signatures to their advanced email filtering products to block known malicious emails • Add these solutions to your email gateway AFTER you have implemented what is already recommended – FireEye – LastLine – Cisco AMP – Etc… • EDR solutions might help AFTER you do everything in this preso since you will have reduced a ton of garbage MalwareArchaeology.com
  • 48. Take-Away #6 New File Protection in Windows 10 - 1709 MalwareArchaeology.com
  • 49. New Feature in Windows 10 • Microsoft has now introduced ”Controlled Folder Access” feature in its Windows Defender Security Center that is • Available for Windows 10 Fall Creators Update (v1709) • Basically folders that are protected with this wil be denied access to non-approved applications • Probably will NOT work with another AV solution MalwareArchaeology.com
  • 50. New Feature in Windows 10 MalwareArchaeology.com
  • 52. User Awareness Teach users two things, and only 2 things 1. Don’t open emails that have encrypted attachments AND have the password in the body AND contain a few words and not descriptive 2. Don’t launch ANY .EXE files that you download from sources via email and links in emails or documents – EVER! MalwareArchaeology.com
  • 53. What do we do with the attachments we receive? MalwareArchaeology.com
  • 54. Evaluate them • Detonate them in a malware lab • Obtain the artifacts to see who else might have open the ones that got through • Analyze what the attachment does so you can better understand how to reduce them getting into your environment • 90% is FREE and you already have it • Just add some labor MalwareArchaeology.com
  • 55. What do we use to quickly evaluate the malware? MalwareArchaeology.com
  • 56. • The Log and Malicious Discovery tool • Audits your system and produces a report • Also shows failed items on the console • Helps you configure proper audit logging • ALL VERSIONS OF WINDOWS (Win 7 & up) • Helps you enable what is valuable • Compares to many industry standards • CIS, USGCB and AU standards and “Windows Logging Cheat Sheet” MalwareArchaeology.com
  • 57. • Collect 1-7 days of logs • 20+ reports • Full filesystem Hash Baseline • Full filesystem compare to Hash Baseline • Full system Registry Baseline • Full system compare to Registry Baseline • Large Registry Key discovery MalwareArchaeology.com
  • 58. • More reports • Interesting Artifacts report • WhoIS resolution of IPs • SRUM (netflow from/to a binary) • AutoRuns report with whitelist and Master Digest exclusions • List of Locked files • More Whitelisting • Master-Digest to exclude hashes and files MalwareArchaeology.com
  • 59. Resources • Websites – MalwareArchaeology.com – Log-MD.com The tool • The “Windows Logging Cheat Sheet” – MalwareArchaeology.com • Script to set File Association, Break DDE and more – www.MalwareArchaeology.comlogging MalwareArchaeology.com
  • 60. Questions? • You can find us at: • @HackerHurricane • @Boettcherpwned • Log-MD.com • MalwareArchaeology.com • HackerHurricane.com (blog) MalwareArchaeology.com