Understanding Deceptive and Self-Defending Threats
Kyle Cucci
Malware#
Threats#
Defending#
Self-Defending#
CPU#
LOLBins#
Hardware#
Operating_System#
Get up to speed on state-of-the-art malware with this first-ever guide to analyzing malicious Windows software designed to actively avoid detection and forensic tools.
We’re all aware of Stuxnet, ShadowHammer, Sunburst, and similar attacks that use evasion to remain hidden while defending themselves from detection and analysis. Because advanced threats like these can adapt and, in some cases, self-destruct to evade detection, even the most seasoned investigators can use a little help with analysis now and then. Evasive Malware will introduce you to the evasion techniques used by today’s malicious software and show you how to defeat them.
Following a crash course on using static and dynamic code analysis to uncover malware’s true intentions, you’ll learn how malware weaponizes context awareness to detect and skirt virtual machines and sandboxes, plus the various tricks it uses to thwart analysis tools. You’ll explore the world of anti-reversing, from anti-disassembly methods and debugging interference to covert code execution and misdirection tactics. You’ll also delve into defense evasion, from process injection and rootkits to fileless malware. Finally, you’ll dissect encoding, encryption, and the complexities of malware obfuscators and packers to uncover the evil within.
You’ll learn how malware:
You’ll also find tips for building a malware analysis lab and tuning it to better counter anti-analysis techniques in malware. Whether you’re a frontline defender, a forensic analyst, a detection engineer, or a researcher, Evasive Malware will arm you with the knowledge and skills you need to outmaneuver the stealthiest of today’s cyber adversaries.
Table of Contents
Part I: The Fundamentals
1. Windows Foundational Concepts
2. Malware Triage and Behavioral Analysis
3. Static and Dynamic Code Analysis
Part II: Context Awareness and Sandbox Evasion
4. Enumerating Operating System Artifacts
5. User Environment and Interaction Detection
6. Enumerating Hardware and Network Configurations
7. Runtime Environment and Virtual Processor Anomalies
8. Evading Sandboxes and Disrupting Analysis
Part III: Anti-Reversing
9. Anti-Disassembly
10. Anti-Debugging
11. Covert Code Execution and Misdirection
Part IV: Defense Evasion
12. Process Injection, Manipulation, and Hooking
13. Evading Endpoint and Network Defenses
14. Introduction to Rootkits
15. Fileless, Living Off the Land, and Anti-Forensics Techniques
16. Encoding and Encryption
17. Packers and Unpacking Malware
A. Building an Anti-Evasion Analysis Lab
B. Windows Functions Used for Evasion
C. Further Reading and Resources
"A complete compendium of countermeasures used by malware to avoid detection, useful to anyone implementing defensive technologies."
—Ivan Kwiatkowski, Lead Threat Researcher at Harfang Lab
“Evasive Malware delivers an in-depth exploration of malware evasion tactics. Beyond catering to seasoned analysts, the author extends a helping hand to beginners, briefly covering fundamental skills to ensure the material is accessible and relevant to all. With included file hashes for hands-on learning, it's a must-have for anyone who needs to identify, investigate, and analyze modern malware.”
—Anuj Soni, Malware Reverse Engineer; SANS Certified Instructor, author of SANS FOR710
"A friendly and up-to-date compendium of common techniques that malware can use to evade detection and make the analysis harder. Reading this book can help everyone who starts their adventure with malware analysis avoid a lot of confusion, and quickly recognize the common evasion patterns they are dealing with."
—Aleksandra “Hasherezade” Doniec, malware analyst and open source developer; author of PE-sieve memory scanner
“Malware analysts looking to expand their reverse engineering skills will learn many practical techniques from this book, [along with] insightful explanations of common ways in which malware evades detection and confuses analysts. . . If you're looking to continue your journey through the world of malware analysis, you'll find many learning opportunities in this delightful and technical read!”
—Lenny Zeltser, Faculty Fellow, SANS Institute
Kyle Cucci has over 17 years in cybersecurity and IT, including roles as a malware analyst and detection engineer with Proofpoint’s Threat Research team and leader of the forensic investigations and malware research teams at Deutsche Bank. Cucci regularly speaks at security conferences and has led international trainings and workshops on topics such as malware analysis and security engineering. In his free time, Cucci enjoys contributing to the community via open source tooling, research, and blogging.