SkillAgentSearch skills...

Winkafl

Static binary instrumentation for windows kernel drivers, to use with winafl

Install / Use

/learn @Y3A/Winkafl
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

winkafl

  • Based on the original pe-afl by wmliang and peafl64 by SentinelOne
  • Supports fuzzing 64-bit drivers on Windows 11
  • Blogpost at https://y3a.github.io/2023/12/22/fuzzing6/

Usage

  1. Use ida_dumper.py in IDA to generate basic block information
  2. Use instrument.py to statically instrument target driver
  3. Replace target driver in fuzzing VM with instrumented version
  4. Compile helper driver and load in fuzzing VM
  5. Attach WinDbg to fuzzing VM
  6. Fuzz and wait for crash
  7. Use post_crash/dump_sample.py to extract crashing sample

FAQ

Q: Why does my winafl return [-] PROGRAM ABORT : No instrumentation detected?

A: This is likely due to the offsets changing across Windows versions. Modify the pid filtering shellcode in asm_stubs.py to match the implementation of PsGetCurrentProcessId() on your machine. The current offset is for Windows 11 23H2.

Related Skills

View on GitHub
GitHub Stars81
CategoryDevelopment
Updated1mo ago
Forks12

Languages

Python

Security Score

95/100

Audited on Jan 31, 2026

No findings