Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
AMSI-ETW-Patch — Patch AMSI and ETW | Kitploit
Tools/GitHubGitHub/mr-un1k0d3r/amsi-etw-patch
IDS/IPS EvasionPost-ExploitationRed TeamingAdversarial Attack
GitHubmr-un1k0d3r/amsi-etw-patch

AMSI-ETW-Patch

Patch AMSI and ETW

View Repository
2513232 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

AMSI-ETW-Patch

this repo contains information to patch AMSI and ETW using a single byte patch for both.

The idea was to limit detection of the patch itself since it's a single byte.

AMSI (patch-amsi-x64.c)

The idea is that AMSI perform a lot of validation check before hitting the critical AMSI "check" code. You can simply toggle one of the jz for a jnz and vice versa.

amsi1

The red arrow in tthe figure above is showing where the critical code is located.

amsi2

Example of checks that can be toggled to avoid calling the critical code.

In this case we patch the jnz after the cmp dword ptr [rbx], 49534d41h.

the patch is simply Address of AmsiScanBuffer + 0x83 = 0x74 (x64)

ETW (patch-etw-x64.c)

Instead of patching EtwEventWrite simply patch the syscall which is called by a lot of functions.

Download Tool
NtTraceEvent

etw1

As shown in the figure below NtTraceEvent is used by a lot of functions within ntdll.dll

etw1

The patch is simply force a return when the NtTraceEvent function is called NtTraceEvent = 0xc3 (x64)