百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
K

KDemu

> 编程语言
开源

基于 Unicorn、内核内存转储和部分原生环境的 Windows 内核驱动仿真器

185 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

基于 Unicorn、内核内存转储和部分原生环境的 Windows 内核驱动仿真器

KDemu

A hybrid semi-emulated, semi-native Windows kernel driver emulator designed for advanced rootkit and anti-cheat analysis, addressing the limitations of existing emulation solutions.

Conference

This project have been accept by CODEBLUE 2025

Bypassing Anti-Debugging: A Hybrid Real-Simulated Approach to Rootkit Analysis

Architecture

KDemu's hybrid architecture consists of:

  • Emulation Engine (Emulate.cpp/hpp): kernel API implementations with intelligent hook management
  • PE Loader (LoadPE.cpp/hpp): Advanced PE parsing with kernel dump integration and driver overwriting
  • Kernel Dump Manager: Real-time kernel memory dump analysis and parameter extraction
  • SEH Handler: Native Windows exception handling using InvertedFunctionTableList
  • Multithreading Engine: Parallel execution with memory locking and context management
  • Anti-Detection Layer: MSR handling, hypervisor evasion, and detection countermeasures
  • Monitoring System: Object access tracking and register operation logging

Installation

  1. Clone the repository:

    bash
    git clone 
    cd KDemu
  2. Install dependencies via vcpkg:

    bash
    vcpkg install unicorn capstone
  3. Build the project:

    • Open KDemu.sln in Visual Studio
    • Select Release configuration (x64)
    • Build the solution
  4. Download Memory Dump: https://drive.google.com/file/d/1MDZ2s7RLGvypC0FDS6MOYgMglTyU6O9n/view?usp=sharing

    Put it into the KDemu folder

Usage

Prerequisites Setup

  1. Kernel Memory Dump: Obtain a Windows kernel memory dump (mem.dmp) captured at a driver entry breakpoint

if you use another kernel dump, you have to change some of the parmenter like some of base addr..register..etc

  1. Target Driver: Place the driver you want to analyze in the project directory

Debugging

Enable GDB server support by uncommenting the gdbServer() call in mainThread().

Project Structure

KDemu/
├── KDemu/
│   ├── KDemu.cpp           # Main entry point
│   ├── Emulate.cpp/hpp     # API emulation engine
│   ├── LoadPE.cpp/hpp      # PE loader and memory management
│   ├── UnicornEmu.hpp      # Unicorn engine wrapper
│   ├── Global.h            # Common definitions
│   ├── NtType.hpp          # Windows type definitions
│   ├── include/            # Third-party headers
│   └── lib/                # Static libraries
├── vcpkg.json              # Package dependencies
└── KDemu.sln              # Visual Studio solution

Note

For someone who want to analyze EAC, it will exit by triple fault because of unicorn can't handle divide-by-zero exception https://github.com/unicorn-engine/unicorn/issues/1883

So when cause error you should clone the unicorn object and restart to reset the fault value.

For Nexon Driver it will scan bootloader but our dump lack of bootloader's memory :(

Author

ShallowFeather & HeroBurger

Acknowledgments

Core Technologies

  • Unicorn Engine - CPU emulation framework
  • Capstone - Disassembly engine
  • LIEF - Binary analysis library (contributed bug fix)
  • kdmp-parser - Kernel dump parsing

Research References

  • KACE (Kernel AntiCheat Emulator) - Inspiration for user-mode to kernel-mode mapping
  • What The Fuzz - Kernel dump utilization concepts
  • Speakeasy & Qiling - Object monitoring and API emulation approaches

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C++

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言