No description
  • Rust 99%
  • Assembly 1%
Find a file
Image Whitecat18 28e7fac1d3 Upload
Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
2026-06-06 14:53:10 +05:30
AMSI BYPASS Upload 2026-06-06 14:53:10 +05:30
analysis Upload 2026-06-06 14:53:10 +05:30
AntiDebugging Upload 2026-06-06 14:53:10 +05:30
Api_Hooking Upload 2026-06-06 14:53:10 +05:30
base_addr_locator Upload 2026-06-06 14:53:10 +05:30
Basics Upload 2026-06-06 14:53:10 +05:30
BlockHandle Upload 2026-06-06 14:53:10 +05:30
Browser Creds Dumper Upload 2026-06-06 14:53:10 +05:30
BSOD Upload 2026-06-06 14:53:10 +05:30
Custom_Shellcode Upload 2026-06-06 14:53:10 +05:30
Debug Upload 2026-06-06 14:53:10 +05:30
Dirty_Vanity Upload 2026-06-06 14:53:10 +05:30
dll_injection Upload 2026-06-06 14:53:10 +05:30
DLL_Injector Upload 2026-06-06 14:53:10 +05:30
drivers Upload 2026-06-06 14:53:10 +05:30
Dynamic_Resolver Upload 2026-06-06 14:53:10 +05:30
Early Cascade Injection Upload 2026-06-06 14:53:10 +05:30
EDRChecker Upload 2026-06-06 14:53:10 +05:30
Encryption Methods Upload 2026-06-06 14:53:10 +05:30
Enumeration Upload 2026-06-06 14:53:10 +05:30
Etw Upload 2026-06-06 14:53:10 +05:30
Evasion Upload 2026-06-06 14:53:10 +05:30
Exec_Extern Upload 2026-06-06 14:53:10 +05:30
Extract_Shellcode Upload 2026-06-06 14:53:10 +05:30
GhostingProcess Upload 2026-06-06 14:53:10 +05:30
images Upload 2026-06-06 14:53:10 +05:30
keylog_dropper Upload 2026-06-06 14:53:10 +05:30
Keyloggers Upload 2026-06-06 14:53:10 +05:30
KiUserExceptionDispatcherStepOver Upload 2026-06-06 14:53:10 +05:30
link_obfuscator Upload 2026-06-06 14:53:10 +05:30
lsass_dump Upload 2026-06-06 14:53:10 +05:30
Malware-Samples Upload 2026-06-06 14:53:10 +05:30
Malware_Tips Upload 2026-06-06 14:53:10 +05:30
ManualRsrcDataFetching Upload 2026-06-06 14:53:10 +05:30
MessageBoxes Upload 2026-06-06 14:53:10 +05:30
Named_Pipe Upload 2026-06-06 14:53:10 +05:30
NtApi Upload 2026-06-06 14:53:10 +05:30
NtCreateUserProcess Upload 2026-06-06 14:53:10 +05:30
NtSockets Upload 2026-06-06 14:53:10 +05:30
PEB_Offset_finder Upload 2026-06-06 14:53:10 +05:30
Persistence Upload 2026-06-06 14:53:10 +05:30
poc Upload 2026-06-06 14:53:10 +05:30
position independent Upload 2026-06-06 14:53:10 +05:30
Process Upload 2026-06-06 14:53:10 +05:30
Process-Injection Upload 2026-06-06 14:53:10 +05:30
process_hollowing Upload 2026-06-06 14:53:10 +05:30
Proxy-DLL-Loads Upload 2026-06-06 14:53:10 +05:30
Reverse Shell Upload 2026-06-06 14:53:10 +05:30
Self-Deletion-Techniques Upload 2026-06-06 14:53:10 +05:30
shellcode_exec Upload 2026-06-06 14:53:10 +05:30
Sleep_Obfuscations Upload 2026-06-06 14:53:10 +05:30
stealer Upload 2026-06-06 14:53:10 +05:30
Structs Upload 2026-06-06 14:53:10 +05:30
syscalls Upload 2026-06-06 14:53:10 +05:30
Test_phase Upload 2026-06-06 14:53:10 +05:30
Threads Upload 2026-06-06 14:53:10 +05:30
timer Upload 2026-06-06 14:53:10 +05:30
uac-bypass-cmstp Upload 2026-06-06 14:53:10 +05:30
UUID_Shellcode_Execution Upload 2026-06-06 14:53:10 +05:30
VectoredOverloading Upload 2026-06-06 14:53:10 +05:30
WaitingThreadHijacking Upload 2026-06-06 14:53:10 +05:30
Windows_Threads Upload 2026-06-06 14:53:10 +05:30
WinHTTP Upload 2026-06-06 14:53:10 +05:30
.gitmodules Upload 2026-06-06 14:53:10 +05:30
api_hooking.rs Upload 2026-06-06 14:53:10 +05:30
CLEAN.md Upload 2026-06-06 14:53:10 +05:30
CNAME Upload 2026-06-06 14:53:10 +05:30
DEPENPENCIES.md Upload 2026-06-06 14:53:10 +05:30
deps.md Upload 2026-06-06 14:53:10 +05:30
docker.md Upload 2026-06-06 14:53:10 +05:30
Dockerfile Upload 2026-06-06 14:53:10 +05:30
evade_vm.rs Upload 2026-06-06 14:53:10 +05:30
LICENSE Upload 2026-06-06 14:53:10 +05:30
maldev_rust.png Upload 2026-06-06 14:53:10 +05:30
README.md Upload 2026-06-06 14:53:10 +05:30

Rust for Malware Development

Rust for Malware Development Logo

Rust for Malware Development

This repository contains source codes of various techniques used by malware authors, red teamers, threat actors, state-sponsored hacking groups etc. These techniques are well-researched and implemented in Rust.


Language: Rust OS: Windows Maintained: Yes zread

Table of Contents

Malware Techniques

Technique Description
Process Injection Process injection techniques
Process Injection 2 Additional process injection snippets.
Process Ghosting Process ghosting technique
Process Hypnosis Process hypnosis techniques
Process Herpaderping Process herpaderping
Parent Process Spoofing create a process that appeas as it was spawn a parent process
Waiting Thread Hijacking injection by overwriting the return address of a waiting thread
NtCreateUserProcess Launch processes using NtCreateUserProcess API.
Dirty Vanity Bypass EDR's by executing Shellcode by forking the process
Custom Shellcode Custom Shellcode for Testing.
Tartarus Gate Bypass EDRs by unhooking functions
Recycle Gate Combination of Hells, Halos, Tartarus Gate
Named Pipes Interprocess communication using named pipes on Windows.
Api Hooking API Hooking Using Trampoline.
PE Analyzer Extract PE information via CLI.
PEB Offset Finder Find PEB Offsets for sstealth operations
BlockHandle Block handles using SDDL PoC.
Dynamic Export Table PEB Call Windows functions by searching memory.
Dynamic Resolver Dynamically resolves and invokes WinAPI functions
API Hammering API hammering techniques.
Early Cascade Injection Early-cascade injection PoC in Rust.
Encryption Methods Methods to encrypt and execute payloads.
Enumeration Enumeration modules for efficiency.
Malware Samples Malware based on real-world activities.
Metadata Modification Extract and embed custom metadata in binaries.
Keyloggers Custom keylogger implementations in Rust.
DLL Injection DLL injection in Rust.
DLL Injector Versatile DLL injector in Rust.
Code Snippets Snippets for malware operations.
NTAPI Implementation NTAPI usage snippets.
Early Expcetion Handler Custom Expcetion Handler to bypass EDRs
Extract WiFi Passwords Extract stored WiFi passwords on Windows.
Reverse Shell Client-server reverse shell in Rust.
Thread Hijacking Thread hijacking snippets.
Self Deletion Techniques for self-deleting binaries.
Position Independent Series Position-independent code in Rust.
Shellcode Execution Shellcode execution using WinAPIs.
Sleep Obfuscation Sleep obfuscation implementation.
Direct Syscalls Direct syscall implementation using STUB methods.
Indirect Syscalls Indirect syscall implementation using STUB methods.
Parallel Syscalls Parallel Syscall implementation.
BSOD Triggers a Blue Screen of Death.
Persistence Persistence techniques.
UAC Bypass CMSTP UAC bypass by elevating CMSTP.exe.
Malware DSA Malware using data structures and algorithms.
Shellcode Obfuscation Obfuscate shellcode using IPv4, IPv6, MAC, UUID formats.
EDR Checker Detect EDR tools, AV software, and security applications.
Timer Time-based execution control mechanism.
Keylogger Dropper Downloads and executes keylogger in the background.
Rand_Fill Deletes files and fills disk with random bytes.
Encryfer-X Ransomware combining multiple PoC techniques.
GitHub Stealers Steal credentials using GitHub API.
Telegram Operator Telegram Operator to Run EXEs and executes Commands
AMSI Byapss Techniques AMSI Bypass Techniques.
ManulaRsrcDataFetching function to replace FindResource & LoadResource & LockResource & SizeofResource windows apis.
Anti-VM CPU Fan Detection Find if the system has CPU FAN. Works only on PC.
Proxy DLL Load PoC of Proxying DLL Loads To Hide From ETWTI Stack Tracing
Anti Debugging Anti-Debugging Methods
ETW Etw Methods
Debug Library Simple Debug code to print statements during debug builds only

Encryption Techniques

Technique Description
AES Encryption Encrypt/decrypt shellcodes using AES.
RC4 Encryption Encrypt/decrypt shellcodes using RC4.
XOR Encryption Encrypt/decrypt shellcodes using XOR.
Khufu Encryption Encrypt/decrypt using Khufu algorithm.
ECC Encryption Encrypt/decrypt shellcodes using ECC.
Camellia Cipher Encryption using Camellia cipher.
NullxFigure Parse null bytes into shellcode.
A5/1 Cipher Encrypt shellcode using modified A5/1 cipher.
Madryga Algorithm Encrypt/decrypt shellcodes using Madryga Algorithm.
Lucifer Algorithm Encrypt/decrypt shellcodes using Lucifer algorithm.
DFC Algorithm Encrypt/execute payloads using DFC algorithm.
Payload Shuffling Payload shuffling techniques.
SystemFunction032/033 Encrypt/decrypt shellcode using undocumented WinAPI.

Custom Crates

Name Description
Static Encrypt Encrypt String literals at compile time using Different Algorithms
Dynamic API Parsing Parses PEB to locate ntdll.dll exports at runtime and resolves API using hashes.
LazyDLLSideload Generate DLL proxy/sideload projects.
Dyncvoke dynamic Windows API invocation.

Walkthrough

Download as .Zip File

Download the repository: Link

Contributing to Rust for Malware Development

We welcome contributions to the Rust for Malware Development repository. To contribute, please follow these steps:

  1. Fork the repository.
  2. Create a new branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'.
  4. Push your changes to your branch: git push origin <branch_name>.
  5. Submit a pull request.

If you have any questions about contributing, refer to the GitHub documentation.

Credits / References

I would like to express my sincere gratitude to the creators of remarkable projects and fascinating techniques, who provided me with the tools and inspiration needed to create this extraordinary repository.

Each PoC includes a Credits/Resource section to acknowledge and respect the original creators and their contributions to the community.

Other Essential Resources:

License

This project is licensed under the MIT License