SlideShare a Scribd company logo
Ransomware
Background
Trend Micro analysis
Trend Micro analysis
https://fatsecurity.com/article/ransomware-protection-guide
Timeline
• Reveton (2012)... Police message.
• CryptoLocker (2013). First with crypto and download of components.
• CryptoDefence (2014). Used 2048-bit RSA. Native APIs.
• SimplLocker (2014). Android locking.
• CTB-Locker (2014). C&C and deleted shadow files.
• Cryptowall (2014). Made $325 million for creator. Registry key. Put in startup files. Persistence.
• Chimera (2015). First ‘doxing’ ransomware … threated to publish info online.
• TeslaCrypt (2015). Persistence on machine.
• 7en3n (2016). 13 BC and destroy Windows system on non-payment.
• KeRanger. (2016) Mac OSX malware and uses signed certificate for Mac.
• Jigsaw (2016). Ransom note contained characters from the “Saw” movie. Delete files every 60 minutes, 1K files
on reboot.
• Random32 (2016). First JavaScript ransomware.
• Petya (2016). Overwrite MBR. Encrypt files. Double ransom if not paid in seven days.
• Locky (2016). Targeted hospitals in US. Healthcare as a ransom.
• SamSam (Samas) (2016). Target JBoss server (Red Hat Web/middleware), with ways to communicate with victim.
• PowerWare (2016). Uses native tools such as PowerShell to perform bad operations.
• ZCrypto ... new worm.
Github source for ransomware
Types
• Locker Ransomware. Locks the computer.
• Crypto Ransomware. Requires decryption
key.
• Master Boot Record Ransomware. Attack
MBR so that message appears on boot up.
• Web Server Encrypting Ransomware.
Encrypts defines files on Web sites.
• Mobile Device Ransomware.
Ransomware example
Ransomware in UK (2015-2016)
Outline
Distributor
Delivery of
ransomware through
phising or drive-by
(eg EXE, DOC, VBS,
SCR)
Unique 128-bit
AES key
created
Public key of
ransomware
provider
C&C
A range of files
encrypted (eg
DOCX, Python,
etc)
Private key of
ransomware
provider
Service
Provider
Criminal
Encrypted
key sent to
Command and
Control
Payment
provider
(Bitcoin)
Typical operation:
• Drops executable in
users %AppData% and
%LocalAppData%
folder
• Create registry keys to
maintain persistence
• Search for specific file
types
• Performs encryption
• Deletes Volume
Shadow copies
• Displays ransom note
Early Ransomware
GpCode Desktop Ransom Message
Reveton/Moneypak ransom message with
webcam enabled
Reveton ransom messages based on victim
location
CryptoLocker
Copy cats: CryptoWall; CTB Locker; TeslaCrypt; CryptoFortress
Cryptolocker
Cryptowall
Anatomy of CryptoWall 3.0 Attack
Ransomware As A Service
Tox and Random32
Ransomware as a service (Tox)
• In May 2015 Macfee found
the Tox site on the ‘dark
web’.
• Used Tor with no knowledge
of malware.
• 20% cut from any extorted
profits.
• Registration was free, and
payments to BitCoin
address to receive payment.
• Executable created for
distribution.
Random32
January 2016, Ransom32 – Uses Tor and Bitcoin payments.
Written in Javascript ... can affect Linux/Mac OSX
It uses NW.js which jumps out of the sandbox and encrypts files on the system
with an almost uncrackable 128-bit AES key.
Random32
NW.js (Node-WebKit) was
introduced to allow
development for Node.js and
Chromium, and allows
browser-based code to jump
out of the sandbox, and
directly access the system. It
was created as a new way of
writing native applications
within Web applications, and
it was thus only a matter of
time that malware writers
spotted the opportunity to
run their code in a browser,
not matter which operating
system it was running on.
Random32
Files encrypted:
*.jpg, *.jpeg, *.raw, *.tif, *.gif, *.png, *.bmp, *.c, *.cpp,
*.cs, *.h, *.php, *.asp, *.rb, *.java, *.jar, *.class, , *.txt,
*.doc, *.dot, *.docx, *.docm, *.dotx, *.dotm, *.docb, *.rtf,
*.wpd, *.wps, *.msg, *.pdf, *.xls, *.xlt, *.xlm, *.xlsx, *.xlsm,
*.xltx, *.xltm, *.xlsb, *.xla, *.xlam, *.xll, *.xlw, *.ppt, *.pot,
*.pps, *.pptx, *.pptm, *.potx
but will avoid the folders of c:windows, c:programdata,
c:temp and $recycle.bin, as these folders are likely to
cause problems in booting the computer
The maliciousness of the malware is highlighted with the
u.vbs script which deletes all the files in a given folder
(where the directory is specified when the script is called):
On Error Resume Next
Set objArgs = WScript.Arguments
directory = objArgs(0)
Set fso = CreateObject("Scripting.FileSystemObject")
Function ShowSum(value1)
Set folder = fso.GetFolder(value1)
for each f in folder.Files
On Error Resume Next
f.Delete True
Next
For Each f In folder.SubFolders
On Error Resume Next
ShowSum(f)
f.Delete True
Next
End Function
Wscript.Sleep 10000
ShowSum(directory)
fso.DeleteFolder directory, True
Random32
The encryption uses 128-bit AES with CTR [here], and this key is protected by an RSA key, which
protected by a public key provided by the C&C. Only the C&C has the private key to decrypt the
key.
Locky
Locky
• Locky ... February 2016,
infected a Hollywood
Medical Centre, infecting
systems for CT scans,
emergency rooms, lab
work and pharmacy
operations
• TOR and BitCoin payment.
• RSA-2048 and AES-128 for
file encryption on over 160
file types across virtual
disks and databases.
Locky
Cerber
Cerber
• 2016.
• Black list of countries not to
target.
• Affiliate program.
• Runs encrypted files off-line ...
no need to contract C&C.
• Wireshark shows UDP
requests to predefined IP
addresses.
• Possible to speak to infected
person through text to speech
VM macros.
• Bypass for User Account
Control (UAC).
Evidence bag here.
Cerber
• 2016.
• Black list of countries not to
target.
• Affiliate program.
• Runs encrypted files off-line ...
no need to contract C&C.
• Wireshark shows UDP
requests to predefined IP
addresses.
• Possible to speak to infected
person through text to speech
VM macros.
• Bypass for User Account
Control (UAC).
Evidence bag here.
Atom Payload Builder
Evasion Methods
Investigation
Evasion Techniques
Process level
CreateProcess
WriteProcessMemory
CreateRemoteThread
IP address
taskmgr, procexp, regedit,
msconfig, cmd.exe
Evasion Techniques
Network level
RC4
TOR
I2P
HTTPS
http://www.malware-traffic-analysis.net/2015/07/20/
Evasion Techniques
Binary level
Obfuscated
GetCurrentProcess()
IsDebuggerPresent()
OutputDebugString()
Source: http://researchcenter.paloaltonetworks.com/2015/10/latest-teslacrypt-ransomware-borrows-code-from-carberp-trojan/
Encryption Methods
• Custom algorithm
• AES + Electronic Codebook (ECB) + RSA
• AES + Cipher Block Chaining (CBC) + RSA
• AES + ECDH + RSA
User Access Control
How to avoid?
Avoiding (Trend Micro advice)
• Education. The most common attack vector for ransomware is a phishing attack where a user in a
company clicks on a file attachment which contains the malware, and which encrypts their files, and
spreads through the network. Users thus need to be educated in spotting malicious emails, as the
phisher often knows how to by-pass a filtering system (such as using an encrypted email).
• Back-ups. It is important to have backups, but to also make sure they are off-site, so that an on-site
infection does not end up encrypting or corrupting the on-site backs. Trend Micro recommend a 3-2-1
rule: at least three copies, in two different formats, with one copy off site/offline.
• Layered protection. A key part of any type of network defence is to have layers of security to defend
against attack, including both network sensors and end-point security.
• Network segmentation. As much as possible, the network should be segmented up, so that different
areas of the network are isolated from others. In this way the infection can be constrained.
• Application control. Rather than having a black list of programs which are not allowed to run on a
computer, increasingly companies operate a white-listing policy, where only applications that are
approved can run on devices. This means that malware programs will not have the rights to run or
access system files.
Ransomware

More Related Content

What's hot

What's hot (20)

Ransomware
RansomwareRansomware
Ransomware
 
Ransomware
RansomwareRansomware
Ransomware
 
Cybersecurity Attack Vectors: How to Protect Your Organization
Cybersecurity Attack Vectors: How to Protect Your OrganizationCybersecurity Attack Vectors: How to Protect Your Organization
Cybersecurity Attack Vectors: How to Protect Your Organization
 
Ransomware - Impact, Evolution, Prevention
Ransomware - Impact, Evolution, PreventionRansomware - Impact, Evolution, Prevention
Ransomware - Impact, Evolution, Prevention
 
Ransomware: History, Analysis, & Mitigation - PDF
Ransomware: History, Analysis, & Mitigation - PDFRansomware: History, Analysis, & Mitigation - PDF
Ransomware: History, Analysis, & Mitigation - PDF
 
Malware Classification and Analysis
Malware Classification and AnalysisMalware Classification and Analysis
Malware Classification and Analysis
 
Malware and security
Malware and securityMalware and security
Malware and security
 
Cybersecurity for Small Business - Incident Response.pptx
Cybersecurity for Small Business - Incident Response.pptxCybersecurity for Small Business - Incident Response.pptx
Cybersecurity for Small Business - Incident Response.pptx
 
Malware analysis
Malware analysisMalware analysis
Malware analysis
 
WannaCry ransomware attack
WannaCry ransomware attackWannaCry ransomware attack
WannaCry ransomware attack
 
Wannacry
WannacryWannacry
Wannacry
 
Cyber security series advanced persistent threats
Cyber security series   advanced persistent threats Cyber security series   advanced persistent threats
Cyber security series advanced persistent threats
 
Ransomware
RansomwareRansomware
Ransomware
 
CyberSecurity
CyberSecurityCyberSecurity
CyberSecurity
 
Cybersecurity
CybersecurityCybersecurity
Cybersecurity
 
Cyber security ppt
Cyber security pptCyber security ppt
Cyber security ppt
 
WannaCry Ransomware
 WannaCry Ransomware WannaCry Ransomware
WannaCry Ransomware
 
Malware & Anti-Malware
Malware & Anti-MalwareMalware & Anti-Malware
Malware & Anti-Malware
 
Ransomware
RansomwareRansomware
Ransomware
 
Cyber+incident+response+ +generic+ransomware+playbook+v2.3
Cyber+incident+response+ +generic+ransomware+playbook+v2.3Cyber+incident+response+ +generic+ransomware+playbook+v2.3
Cyber+incident+response+ +generic+ransomware+playbook+v2.3
 

Similar to Analysing Ransomware

xu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdfxu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdf
NguyncAnh55
 
xu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdfxu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdf
NguyncAnh55
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
Google
 
Op Sy 03 Ch 61
Op Sy 03 Ch 61Op Sy 03 Ch 61
Op Sy 03 Ch 61
Google
 

Similar to Analysing Ransomware (20)

xu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdfxu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdf
 
xu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdfxu the ma doc tấn công các trang web và thương mại .pdf
xu the ma doc tấn công các trang web và thương mại .pdf
 
Meeting02_RoT.pptx
Meeting02_RoT.pptxMeeting02_RoT.pptx
Meeting02_RoT.pptx
 
Talk of the hour, the wanna crypt ransomware
Talk of the hour, the wanna crypt ransomwareTalk of the hour, the wanna crypt ransomware
Talk of the hour, the wanna crypt ransomware
 
Wannacry | Technical Insight and Lessons Learned
Wannacry | Technical Insight and Lessons LearnedWannacry | Technical Insight and Lessons Learned
Wannacry | Technical Insight and Lessons Learned
 
rensomware final ppt
rensomware final pptrensomware final ppt
rensomware final ppt
 
Ransomware- What you need to know to Safeguard your Data
Ransomware- What you need to know to Safeguard your DataRansomware- What you need to know to Safeguard your Data
Ransomware- What you need to know to Safeguard your Data
 
Why are you still getting CryptoLocker?
Why are you still getting CryptoLocker?Why are you still getting CryptoLocker?
Why are you still getting CryptoLocker?
 
Order vs. Mad Science: Analyzing Black Hat Swarm Intelligence
Order vs. Mad Science: Analyzing Black Hat Swarm IntelligenceOrder vs. Mad Science: Analyzing Black Hat Swarm Intelligence
Order vs. Mad Science: Analyzing Black Hat Swarm Intelligence
 
Linux IoT Botnet Wars and the lack of basic security hardening
Linux IoT Botnet Wars and the lack of basic security hardeningLinux IoT Botnet Wars and the lack of basic security hardening
Linux IoT Botnet Wars and the lack of basic security hardening
 
The EternalBlue Exploit: how it works and affects systems
The EternalBlue Exploit: how it works and affects systemsThe EternalBlue Exploit: how it works and affects systems
The EternalBlue Exploit: how it works and affects systems
 
WannaCry (WannaCrypt) Ransomware - Advisory from CERT-IN
WannaCry (WannaCrypt) Ransomware - Advisory from CERT-INWannaCry (WannaCrypt) Ransomware - Advisory from CERT-IN
WannaCry (WannaCrypt) Ransomware - Advisory from CERT-IN
 
How to stay protected against ransomware
How to stay protected against ransomwareHow to stay protected against ransomware
How to stay protected against ransomware
 
CSF18 - The Digital Threat of the Decade (Century) - Sasha Kranjac
CSF18 - The Digital Threat of the Decade (Century) - Sasha KranjacCSF18 - The Digital Threat of the Decade (Century) - Sasha Kranjac
CSF18 - The Digital Threat of the Decade (Century) - Sasha Kranjac
 
Chapter 09
Chapter 09Chapter 09
Chapter 09
 
Op Sy 03 Ch 61
Op Sy 03 Ch 61Op Sy 03 Ch 61
Op Sy 03 Ch 61
 
Hacking 1224807880385377-9
Hacking 1224807880385377-9Hacking 1224807880385377-9
Hacking 1224807880385377-9
 
Securing your Cloud Environment v2
Securing your Cloud Environment v2Securing your Cloud Environment v2
Securing your Cloud Environment v2
 
603535ransomware
603535ransomware603535ransomware
603535ransomware
 
Ransomware History and Monitoring Tips
Ransomware History and Monitoring TipsRansomware History and Monitoring Tips
Ransomware History and Monitoring Tips
 

More from Napier University

More from Napier University (20)

Intrusion Detection Systems
Intrusion Detection SystemsIntrusion Detection Systems
Intrusion Detection Systems
 
Networks
NetworksNetworks
Networks
 
Memory, Big Data and SIEM
Memory, Big Data and SIEMMemory, Big Data and SIEM
Memory, Big Data and SIEM
 
What is Cyber Data?
What is Cyber Data?What is Cyber Data?
What is Cyber Data?
 
Open Source Intelligence
Open Source IntelligenceOpen Source Intelligence
Open Source Intelligence
 
10. Data to Information: NumPy and Pandas
10. Data to Information: NumPy and Pandas10. Data to Information: NumPy and Pandas
10. Data to Information: NumPy and Pandas
 
2. Defence Systems
2. Defence Systems2. Defence Systems
2. Defence Systems
 
1. Cyber and Intelligence
1. Cyber and Intelligence1. Cyber and Intelligence
1. Cyber and Intelligence
 
The Road Ahead for Ripple, Marjan Delatinne
The Road Ahead for Ripple, Marjan DelatinneThe Road Ahead for Ripple, Marjan Delatinne
The Road Ahead for Ripple, Marjan Delatinne
 
Delivering The Tel Aviv Stock Exchange Securities, Duncan Johnston-Watt
 Delivering The Tel Aviv Stock Exchange Securities, Duncan Johnston-Watt Delivering The Tel Aviv Stock Exchange Securities, Duncan Johnston-Watt
Delivering The Tel Aviv Stock Exchange Securities, Duncan Johnston-Watt
 
ARTiFACTS, Emma Boswood
ARTiFACTS, Emma BoswoodARTiFACTS, Emma Boswood
ARTiFACTS, Emma Boswood
 
RMIT Blockchain Innovation Hub, Chris Berg
RMIT Blockchain Innovation Hub, Chris BergRMIT Blockchain Innovation Hub, Chris Berg
RMIT Blockchain Innovation Hub, Chris Berg
 
Keynote, Naseem Naqvi
Keynote, Naseem Naqvi Keynote, Naseem Naqvi
Keynote, Naseem Naqvi
 
Browser-based Crypto M, C. F Mondschein
Browser-based Crypto M, C. F MondscheinBrowser-based Crypto M, C. F Mondschein
Browser-based Crypto M, C. F Mondschein
 
Should we transform or adapt to blockchain - a public sector perspective?, Al...
Should we transform or adapt to blockchain - a public sector perspective?, Al...Should we transform or adapt to blockchain - a public sector perspective?, Al...
Should we transform or adapt to blockchain - a public sector perspective?, Al...
 
IoT device attestation system using blockchain, Alistair Duke
IoT device attestation system using blockchain, Alistair DukeIoT device attestation system using blockchain, Alistair Duke
IoT device attestation system using blockchain, Alistair Duke
 
Robust Programming of Smart Contracts in Solidity+, RK Shyamasundar
Robust Programming of Smart Contracts in Solidity+, RK ShyamasundarRobust Programming of Smart Contracts in Solidity+, RK Shyamasundar
Robust Programming of Smart Contracts in Solidity+, RK Shyamasundar
 
Using Blockchain for Evidence Purpose, Rafael Prabucki
Using Blockchain for Evidence Purpose, Rafael PrabuckiUsing Blockchain for Evidence Purpose, Rafael Prabucki
Using Blockchain for Evidence Purpose, Rafael Prabucki
 
Cryptocurrencies and cyberlaundering- the need for regulation, Gian Marco Bov...
Cryptocurrencies and cyberlaundering- the need for regulation, Gian Marco Bov...Cryptocurrencies and cyberlaundering- the need for regulation, Gian Marco Bov...
Cryptocurrencies and cyberlaundering- the need for regulation, Gian Marco Bov...
 
Emerging Regulatory Approaches to Blockchain-based Token Economy, Agata Fereirra
Emerging Regulatory Approaches to Blockchain-based Token Economy, Agata FereirraEmerging Regulatory Approaches to Blockchain-based Token Economy, Agata Fereirra
Emerging Regulatory Approaches to Blockchain-based Token Economy, Agata Fereirra
 

Recently uploaded

Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 

Recently uploaded (20)

Fish and Chips - have they had their chips
Fish and Chips - have they had their chipsFish and Chips - have they had their chips
Fish and Chips - have they had their chips
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
Benefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational ResourcesBenefits and Challenges of Using Open Educational Resources
Benefits and Challenges of Using Open Educational Resources
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Advances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdfAdvances in production technology of Grapes.pdf
Advances in production technology of Grapes.pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 

Analysing Ransomware

  • 2.
  • 7. Timeline • Reveton (2012)... Police message. • CryptoLocker (2013). First with crypto and download of components. • CryptoDefence (2014). Used 2048-bit RSA. Native APIs. • SimplLocker (2014). Android locking. • CTB-Locker (2014). C&C and deleted shadow files. • Cryptowall (2014). Made $325 million for creator. Registry key. Put in startup files. Persistence. • Chimera (2015). First ‘doxing’ ransomware … threated to publish info online. • TeslaCrypt (2015). Persistence on machine. • 7en3n (2016). 13 BC and destroy Windows system on non-payment. • KeRanger. (2016) Mac OSX malware and uses signed certificate for Mac. • Jigsaw (2016). Ransom note contained characters from the “Saw” movie. Delete files every 60 minutes, 1K files on reboot. • Random32 (2016). First JavaScript ransomware. • Petya (2016). Overwrite MBR. Encrypt files. Double ransom if not paid in seven days. • Locky (2016). Targeted hospitals in US. Healthcare as a ransom. • SamSam (Samas) (2016). Target JBoss server (Red Hat Web/middleware), with ways to communicate with victim. • PowerWare (2016). Uses native tools such as PowerShell to perform bad operations. • ZCrypto ... new worm.
  • 8. Github source for ransomware
  • 9. Types • Locker Ransomware. Locks the computer. • Crypto Ransomware. Requires decryption key. • Master Boot Record Ransomware. Attack MBR so that message appears on boot up. • Web Server Encrypting Ransomware. Encrypts defines files on Web sites. • Mobile Device Ransomware.
  • 11. Ransomware in UK (2015-2016)
  • 12. Outline Distributor Delivery of ransomware through phising or drive-by (eg EXE, DOC, VBS, SCR) Unique 128-bit AES key created Public key of ransomware provider C&C A range of files encrypted (eg DOCX, Python, etc) Private key of ransomware provider Service Provider Criminal Encrypted key sent to Command and Control Payment provider (Bitcoin) Typical operation: • Drops executable in users %AppData% and %LocalAppData% folder • Create registry keys to maintain persistence • Search for specific file types • Performs encryption • Deletes Volume Shadow copies • Displays ransom note
  • 15. Reveton/Moneypak ransom message with webcam enabled
  • 16. Reveton ransom messages based on victim location
  • 17. CryptoLocker Copy cats: CryptoWall; CTB Locker; TeslaCrypt; CryptoFortress
  • 20. Anatomy of CryptoWall 3.0 Attack
  • 21. Ransomware As A Service Tox and Random32
  • 22. Ransomware as a service (Tox) • In May 2015 Macfee found the Tox site on the ‘dark web’. • Used Tor with no knowledge of malware. • 20% cut from any extorted profits. • Registration was free, and payments to BitCoin address to receive payment. • Executable created for distribution.
  • 23. Random32 January 2016, Ransom32 – Uses Tor and Bitcoin payments. Written in Javascript ... can affect Linux/Mac OSX It uses NW.js which jumps out of the sandbox and encrypts files on the system with an almost uncrackable 128-bit AES key.
  • 24. Random32 NW.js (Node-WebKit) was introduced to allow development for Node.js and Chromium, and allows browser-based code to jump out of the sandbox, and directly access the system. It was created as a new way of writing native applications within Web applications, and it was thus only a matter of time that malware writers spotted the opportunity to run their code in a browser, not matter which operating system it was running on.
  • 25.
  • 26.
  • 27. Random32 Files encrypted: *.jpg, *.jpeg, *.raw, *.tif, *.gif, *.png, *.bmp, *.c, *.cpp, *.cs, *.h, *.php, *.asp, *.rb, *.java, *.jar, *.class, , *.txt, *.doc, *.dot, *.docx, *.docm, *.dotx, *.dotm, *.docb, *.rtf, *.wpd, *.wps, *.msg, *.pdf, *.xls, *.xlt, *.xlm, *.xlsx, *.xlsm, *.xltx, *.xltm, *.xlsb, *.xla, *.xlam, *.xll, *.xlw, *.ppt, *.pot, *.pps, *.pptx, *.pptm, *.potx but will avoid the folders of c:windows, c:programdata, c:temp and $recycle.bin, as these folders are likely to cause problems in booting the computer The maliciousness of the malware is highlighted with the u.vbs script which deletes all the files in a given folder (where the directory is specified when the script is called): On Error Resume Next Set objArgs = WScript.Arguments directory = objArgs(0) Set fso = CreateObject("Scripting.FileSystemObject") Function ShowSum(value1) Set folder = fso.GetFolder(value1) for each f in folder.Files On Error Resume Next f.Delete True Next For Each f In folder.SubFolders On Error Resume Next ShowSum(f) f.Delete True Next End Function Wscript.Sleep 10000 ShowSum(directory) fso.DeleteFolder directory, True
  • 28. Random32 The encryption uses 128-bit AES with CTR [here], and this key is protected by an RSA key, which protected by a public key provided by the C&C. Only the C&C has the private key to decrypt the key.
  • 29. Locky
  • 30. Locky • Locky ... February 2016, infected a Hollywood Medical Centre, infecting systems for CT scans, emergency rooms, lab work and pharmacy operations • TOR and BitCoin payment. • RSA-2048 and AES-128 for file encryption on over 160 file types across virtual disks and databases.
  • 31. Locky
  • 33. Cerber • 2016. • Black list of countries not to target. • Affiliate program. • Runs encrypted files off-line ... no need to contract C&C. • Wireshark shows UDP requests to predefined IP addresses. • Possible to speak to infected person through text to speech VM macros. • Bypass for User Account Control (UAC). Evidence bag here.
  • 34. Cerber • 2016. • Black list of countries not to target. • Affiliate program. • Runs encrypted files off-line ... no need to contract C&C. • Wireshark shows UDP requests to predefined IP addresses. • Possible to speak to infected person through text to speech VM macros. • Bypass for User Account Control (UAC). Evidence bag here.
  • 40. Evasion Techniques Binary level Obfuscated GetCurrentProcess() IsDebuggerPresent() OutputDebugString() Source: http://researchcenter.paloaltonetworks.com/2015/10/latest-teslacrypt-ransomware-borrows-code-from-carberp-trojan/
  • 41. Encryption Methods • Custom algorithm • AES + Electronic Codebook (ECB) + RSA • AES + Cipher Block Chaining (CBC) + RSA • AES + ECDH + RSA
  • 44. Avoiding (Trend Micro advice) • Education. The most common attack vector for ransomware is a phishing attack where a user in a company clicks on a file attachment which contains the malware, and which encrypts their files, and spreads through the network. Users thus need to be educated in spotting malicious emails, as the phisher often knows how to by-pass a filtering system (such as using an encrypted email). • Back-ups. It is important to have backups, but to also make sure they are off-site, so that an on-site infection does not end up encrypting or corrupting the on-site backs. Trend Micro recommend a 3-2-1 rule: at least three copies, in two different formats, with one copy off site/offline. • Layered protection. A key part of any type of network defence is to have layers of security to defend against attack, including both network sensors and end-point security. • Network segmentation. As much as possible, the network should be segmented up, so that different areas of the network are isolated from others. In this way the infection can be constrained. • Application control. Rather than having a black list of programs which are not allowed to run on a computer, increasingly companies operate a white-listing policy, where only applications that are approved can run on devices. This means that malware programs will not have the rights to run or access system files.