mirror of
https://codeberg.org/smukx/Rust-for-Malware-Development
synced 2026-06-06 20:22:59 +00:00
28e7fac1d3
Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
Self-Deletion Techniques
Welcome to the Self-Deletion-Techniques directory of Rust-for-Malware-Development.
Tricks that let a running executable wipe itself off disk while it is still executing — no second process, no batch file, no admin rights.
Sections & Links
-
Alternate_Data_Stream: Renames the binary into an NTFS alternate data stream that does not show up in normal directory listings, then marks the file for delete-on-close. Windows finishes the deletion the moment the last handle drops.
-
normal_techniques: Straightforward self-delete patterns — batch-handoff,
MoveFileExwithDELETE_ON_REBOOT, and similar. Some only fire under specific conditions, so pick the variant that matches your host.
How to Use
git clone https://github.com/Whitecat18/Rust-for-Malware-Development.git
cd Rust-for-Malware-Development/Self-Deletion-Techniques
Each sub-folder is its own Cargo project. Build with cargo build --release.