Rust-for-Malware-Development is an collection of proof of concepts with techniques and advanced evasion methods
AMSI Bypass
Welcome to the AMSI BYPASS directory of Rust-for-Malware-Development.
This folder collects different ways to silence the Windows Antimalware Scan Interface (AMSI) so that scripts and payloads slip past AmsiScanBuffer without being flagged.
Sections & Links
-
Amsi_HBP: Hardware-breakpoint bypass. Uses the CPU debug registers to intercept
AmsiScanBufferand force it to return a "clean" result without modifyingamsi.dllon disk. -
Amsi_Page_Guard_Exceptions: Patchless bypass. Turns the AMSI code page into a guarded trap so every call raises an exception, then a vectored handler rewrites the result to
AMSI_RESULT_CLEANand fakes a return. -
Amsi_simple_patch: Classic in-memory patch. Overwrites the first few bytes of
AmsiScanBufferwithmov eax, 0; retso the scanner always reports success.
How to Use
Clone the repository and step into the folder:
git clone https://github.com/Whitecat18/Rust-for-Malware-Development.git
cd Rust-for-Malware-Development/AMSI\ BYPASS
Each sub-folder is its own Cargo project. Open the one you want and build with cargo build --release.