Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Malware Development for Ethical Hackers

You're reading from   Malware Development for Ethical Hackers Learn how to develop various types of malware to strengthen cybersecurity

Arrow left icon
Product type Paperback
Published in Jun 2024
Publisher Packt
ISBN-13 9781801810173
Length 390 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Mr. Zhassulan Zhussupov Mr. Zhassulan Zhussupov
Author Profile Icon Mr. Zhassulan Zhussupov
Mr. Zhassulan Zhussupov
Arrow right icon
View More author details
Toc

Table of Contents (23) Chapters Close

Preface 1. Part 1: Malware Behavior: Injection, Persistence, and Privilege Escalation Techniques FREE CHAPTER
2. Chapter 1: A Quick Introduction to Malware Development 3. Chapter 2: Exploring Various Malware Injection Attacks 4. Chapter 3: Mastering Malware Persistence Mechanisms 5. Chapter 4: Mastering Privilege Escalation on Compromised Systems 6. Part 2: Evasion Techniques
7. Chapter 5: Anti-Debugging Tricks 8. Chapter 6: Navigating Anti-Virtual Machine Strategies 9. Chapter 7: Strategies for Anti-Disassembly 10. Chapter 8: Navigating the Antivirus Labyrinth – a Game of Cat and Mouse 11. Part 3: Math and Cryptography in Malware
12. Chapter 9: Exploring Hash Algorithms 13. Chapter 10: Simple Ciphers 14. Chapter 11: Unveiling Common Cryptography in Malware 15. Chapter 12: Advanced Math Algorithms and Custom Encoding 16. Part 4: Real-World Malware Examples
17. Chapter 13: Classic Malware Examples 18. Chapter 14: APT and Cybercrime 19. Chapter 15: Malware Source Code Leaks 20. Chapter 16: Ransomware and Modern Threats 21. Index 22. Other Books You May Enjoy

Spotting breakpoints

The procedure of examining memory page permissions can aid in identifying program breakpoints set by a debugger. Initially, it is necessary to ascertain the total count of pages within the process working set and allocate a sufficiently large buffer to store all relevant information. Subsequently, the task involves iterating through memory pages and inspecting the permissions associated with each, with a specific focus on executable pages. We analyze each executable page to determine whether its IF statement is utilized by processes other than the current one. By default, memory pages are shared among all concurrently running programs. However, when a write operation occurs (e.g., inserting an INT 3 instruction into the code), a copy of the page is mapped to the process’s virtual memory. This copy-on-write mechanism results in the page no longer being shared after a write operation.

Practical example

The following is a simple PoC code in C that demonstrates...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime