0xbekoo
  • Documentation
  • Blogs
  • Projects

UEFI Keylogger

> C

Proof-of-concept UEFI application that hooks keyboard input at firmware level, capturing keystrokes before any OS driver loads.

  • Overview
  • Mechanism
  • Research Value

Overview

A proof-of-concept demonstrating keyboard capture at UEFI firmware level. By hooking EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL, the application intercepts all keystrokes before the OS or any hypervisor initializes its input stack.

Mechanism

  • Locates EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL via LocateHandleBuffer
  • Wraps the ReadKeyStrokeEx function pointer with a custom handler
  • Stores captured keystrokes in a pre-allocated runtime buffer
  • Buffer survives into the OS via UEFI runtime memory services

Research Value

Demonstrates that pre-OS input capture is feasible without any kernel-mode component, bypassing all OS-level security monitoring.

< Back to Projects

Contents
  • Overview
  • Mechanism
  • Research Value
> GITHUB

© 0xbekoo 2026 | 0xbekoo.github.io

Twitter GitHub