Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-21338-Exploit — Proof-of-concept exploit for CVE-2024-21338, a Windows AppLocker driver (appid.sys) privilege escalation vulnerability used by Lazarus group as a 0day. Achieves kernel read/write via crafted IOCTL requests and PreviousMode manipulation. | Kitploit
Tools/GitHubGitHub/mistyfir/cve-2024-21338-exploit
Privilege EscalationVulnerability AnalysisExploitationPapers & ResearchLearning & EducationBinary Exploitation
GitHubmistyfir/cve-2024-21338-exploit

CVE-2024-21338-Exploit

Proof-of-concept exploit for CVE-2024-21338, a Windows AppLocker driver (appid.sys) privilege escalation vulnerability used by Lazarus group as a 0day. Achieves kernel read/write via crafted IOCTL requests and PreviousMode manipulation.

Share
View Repository
74317 months agoNot yet reviewed

CVE-2024-21338 Exploit

Project Introduction

This is a POC for CVE-2024-21338, a privilege escalation vulnerability in the Windows AppLocker driver (appid.sys). It was exploited as a 0-day by the Lazarus group for local privilege escalation on Windows.

Vulnerability Background

CVE-2024-21338 is a privilege escalation vulnerability disclosed in the Microsoft Patch Tuesday of February 13, 2024. It was exploited by the Lazarus hacker group to gain kernel access for deploying the FudModule rootkit.

The vulnerability exists in the 0x22A018 control code of the appid.sys driver. An attacker can trigger the vulnerability by sending a specially crafted IOCTL request, enabling arbitrary callback invocations and ultimately obtaining kernel read/write permissions.

Vulnerability Principle

Vulnerability Location

alt text

The vulnerability resides in the AppHashComputeImageHashInternal function of the appid.sys driver. AipDeviceIoControlDispatch does not properly check PreviousMode when processing the 0x22A018 request, allowing user-mode processes to trigger kernel-mode callback functions.

Exploitation Process

  1. Obtain Local Service Privilege: The vulnerability requires Local Service privileges to access the \\Device\\AppID device. Therefore, the tool first finds and impersonates a Local Service process.

  2. Construct IOCTL Request: The tool crafts a specially crafted IOCTL request containing a controllable function pointer and parameters.

  3. Trigger the Vulnerability: By sending the IOCTL request, the vulnerability is triggered, invoking a kernel gadget function that modifies the PreviousMode field of the current thread, changing it from user mode to kernel mode.

  4. Gain Kernel Read/Write Permissions: After modifying PreviousMode, the user-mode process can use NtReadVirtualMemory and NtWriteVirtualMemory to read and write arbitrary kernel memory.

Project Structure

File NameDescription
main.cppMain function, responsible for the flow control of the exploit
CVE-2024-21338.hVulnerability-related structure and function declarations
CVE-2024-21338.cppImplementation functions for the prerequisites of the exploit
export_func.hDeclaration of exported functions
gadget_search.cppImplementation of kernel gadget search
Native.hDefinition of native Native API
PE.hUtility functions for processing PE files

Usage

Compilation

Compile this project using Visual Studio 2022, requiring Windows SDK and C++ compiler support.

Running

  1. Enable the Application Identity service on an unpatched Windows system (e.g., Windows 10 1709).

  2. Run the compiled executable with administrator privileges.

  3. The tool will automatically find a Local Service process and impersonate it.

  4. The tool loads the appid.sys driver and constructs an IOCTL request to trigger the vulnerability.

  5. After successful exploitation, the tool prompts for the kernel address and value to modify, enabling kernel memory modification.

Disclaimer

This project is intended for educational and research purposes only. It must not be used for illegal activities.

References

  1. Windows AppLocker Driver Elevation of Privilege (CVE-2024-21338)

  2. Lazarus and the FudModule Rootkit: Beyond BYOVD with an Admin-to-Kernel Zero-Day

  3. Microsoft Security Advisory CVE-2024-21338

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    640
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    479
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    391
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    335
  • 5

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    258
  • 6

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    249

Explore all tools

Browse our collection of tools

View all tools →