Skip to content

Latest commit

 

History

History

malware-dev

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

README.md

Malware development

Understanding how malware is built makes you much better at taking it apart. This section is for that: the techniques, the Windows internals they lean on, and real source to read. Study and lab use - the point is analysis, not deploying anything against anyone.

‹ index

Learning

Tutorial series (free)

  • cocomelonc - a long, numbered malware-development series that builds each technique from one runnable example. One of the best free walkthroughs going. tutorial intro
  • 0xpat - a clear multi-part series on evasion, injection, and persistence, written to be followed in order. tutorial working

References

  • ired.team - Mantvydas Baranauskas' offensive-technique notes: injection, evasion, persistence, each with code. The one people keep open in a tab. reference
  • MalAPI.io - Windows API functions grouped by malicious use (injection, evasion, spying); fast lookup when you hit an unfamiliar call in a sample. reference
  • Windows API Function Cheatsheets - Win32 calls grouped by job (files, processes, memory, threads, DLLs, sockets, registry) with the structs that go with them and the usual injection patterns. reference
  • awesome-malware-development - a companion list focused purely on the offensive side. reference
  • Pure-Malware-Development - a collection of from-scratch malware-development resources and examples. reference
  • The design and implementation of ul_exec - the grugq's userland-exec paper: running an ELF entirely from memory with nothing written to disk. paper deep
  • Unix Viruses - Silvio Cesare's 1998 manual on ELF infection, still the foundation everything later cites. paper deep

Read real source

  • MalwareSourceCode - vx-underground's archive of leaked and published malware source across families and eras. Reading real code beats reading about it. reference
  • libpeconv - hasherezade's library for loading, dumping, and manipulating PEs in memory; the building block behind a lot of injection and unpacking tooling. tool

Techniques (PoCs)

Reference implementations of common offensive techniques - read them to recognise the pattern when it turns up in a real sample.

  • ProcessInjectionTechniques - one directory per injection technique with working code, from plain CreateRemoteThread through APC queueing, section mapping, and callback abuse. Read it before the individual PoCs below. tool
  • ThreadlessInject - process injection via remote function hooking, without spawning a thread. tool
  • ShellcodeFluctuation - flips shellcode memory between RW and RX and encrypts it at rest to dodge memory scanners. tool
  • CallStackSpoofer - spoofs the call stack during syscalls to defeat stack-based detection. tool
  • EDRSilencer - uses the Windows Filtering Platform to stop EDR agents from reporting home. tool
  • EDRception - abuses exception handlers to bypass user-mode EDR hooks. tool
  • Chrome App-Bound Encryption Decryption - extracts cookies and passwords past Chromium's App-Bound Encryption; the technique modern stealers use. tool
  • transacted_hollowing - hasherezade's hybrid of process hollowing and process doppelgänging using NTFS transactions. tool
  • AMSI_VEH - PowerShell AMSI bypass routed through vectored exception handling, without patching AMSI bytes directly. tool
  • com-process-inject - COM IRundown::DoCallback process-injection PoC with the call path laid out in code. tool
  • LsassHijackingViaReg - Maldev Academy PoC for boot-time LSASS DLL injection through registry hijacking. tool
  • DumpBrowserSecrets - browser secret dumper for Chromium and Gecko stores; useful for recognizing stealer collection logic. tool
  • EvilLsassTwin - Nim LSASS clone-and-dump project using NtCreateProcessEx, custom minidumps, and optional process ghosting. tool

Writeups

Blogs

  • 0xBoku - offensive development and AV evasion, heavy on hands-on shellcode work. blog
  • Will Summerhill - red teaming and malware development. blog
  • D3Ext - offensive tooling and malware development. blog
  • 4p0cryph0n - malware development and evasion techniques. blog
  • 0xflux - Rust malware development and red teaming. blog
  • klezVirus - offensive Windows tradecraft and EDR evasion. blog
  • ghostbyt3 - malware development and offensive tooling. blog
  • TheWover - .NET offensive tooling and shellcode, from the author of Donut. blog deep
  • trickster0 - malware development and EDR evasion. blog
  • Print3M's Hub - malware development and low-level Windows security. blog
  • passthehashbrowns - malware development and EDR-evasion research. blog
  • ry0dan - a hands-on malware-development series. blog
  • modexp - odzhan's long-running series on shellcode, code injection, and Windows malware-development technique across architectures. blog deep
  • bitlackeys - Ryan O'Neill (ElfMaster), author of libelfmaster and Learning Linux Binary Analysis; ELF infection, SCOP binaries, and parasite techniques going back to 2007. blog deep
  • n0.lol - netspooky on ELF and PE mangling, polyglots, and the binary-golf research behind tmp.0ut. blog deep
  • hckng - a small collective self-publishing low-level Perl work, including ELF64 virus writing. blog deep

Links verified 2026-07-06. Found rot? Open an issue or PR.