UEFI Resident Motion Detection
Pre-Boot Firmware Security Module — DXE Driver + SMM Handler · Patent Pending
Two firmware-resident modules execute before the OS bootloader loads. The DXE driver establishes cryptographic baselines of firmware state during the pre-boot phase. The SMM handler monitors from inside System Management Mode itself — the same privilege level as firmware implants. Motion detected at either layer is passed to the MDRwatchdog Rust agent via a UEFI runtime variable and sealed to the quantum-resistant audit chain before any response fires.
Boot lifecycle position
MdrSentinel.efi — DXE Driver
- ✓Memory CRC baseline across 12+ firmware regions
- ✓Canary pages planted to detect implant writes
- ✓RDTSC timing oracle — detects SMM execution gaps
- ✓SetVariable hook — intercepts all UEFI NVRAM writes
- ✓500ms periodic motion check timer
- ✓Writes forensic payload to MdrSentinelAlert UEFI variable
MdrSentinelSmm.efi — SMM Handler
- ✓Runs inside System Management Mode — Ring −2
- ✓100ms periodic timer inside SMM
- ✓Counts SMI frequency — establishes baseline rate
- ✓Detects SMI spikes indicating hidden SMM activity
- ✓Writes alerts via SmmVariable protocol from inside SMM
- ✓Same privilege level as firmware implants
UEFI variable interface
The DXE driver communicates with the MDRwatchdog Windows Rust agent via three UEFI runtime variables. The agent polls MdrSentinelAlert every 500ms.
| Variable | Content | Meaning |
|---|---|---|
| MdrSentinelStatus | UINT32 = 0x4D445253 | Sentinel module is active and armed |
| MdrSentinelBaseline | UINT64[4] — timing + region data | Baseline established, values stored |
| MdrSentinelAlert | MDR_ALERT_PAYLOAD struct | Motion detected — agent reads and seals |
Evidence sealed before response fires
Build and deployment
- AMI Aptio via MMTool — DXE_DRIVER + DXE_SMM_DRIVER
- Insyde H2O via FIT firmware image tool
- coreboot/OVMF via UEFI.fdf FILE entries
- Tested in QEMU with OVMF before hardware deployment
Common questions
What are the two firmware modules and what does each do?+
MdrSentinel.efi is a UEFI DXE driver that runs during the Driver Execution Environment phase of the boot lifecycle, before the OS bootloader loads. It establishes memory CRC baselines across key firmware regions, plants canary pages, measures RDTSC timing to detect hidden SMM execution, and hooks the SetVariable service to intercept unauthorized UEFI variable writes. MdrSentinelSmm.efi is a separate SMM driver that runs inside System Management Mode itself — the highest CPU privilege level. It counts SMI frequency on a 100ms interval, establishes a baseline rate, and detects spikes that indicate hidden SMM activity.
Why does running inside SMM matter?+
System Management Mode is the highest privilege level on x86 hardware. Code running in SMM is invisible to the OS and to all OS-layer security tools. Nation-state firmware implants use SMM to hide their activity. MdrSentinelSmm.efi runs at the same privilege level as those implants — it monitors from inside the same environment the implants use, making evasion structurally harder.
How does the UEFI variable interface work?+
The DXE driver writes to three named UEFI runtime variables under MDR_SENTINEL_VENDOR_GUID: MdrSentinelStatus (confirms the module is active), MdrSentinelBaseline (timing and region data from baseline establishment), and MdrSentinelAlert (forensic payload when motion is detected). The MDRwatchdog Windows Rust agent polls MdrSentinelAlert every 500ms via GetFirmwareEnvironmentVariable. When the variable contains an alert payload, the agent reads it, seals it to the Quantum Audit Chain™ with Ed25519 and ML-DSA-87 signatures, and clears the variable.
How was this tested?+
The modules were tested in QEMU with OVMF firmware before hardware deployment. The QEMU serial output confirms: memory baseline established across 12 regions, canary pages planted, timing baseline measured, SetVariable hook installed, periodic check timer armed at 500ms, and the SMM module armed at 100ms interval inside SMM. The build process uses EDK2 with GCC5 targeting x86_64 and produces MdrSentinel.efi and MdrSentinelSmm.efi as PE32+ executables.
How is this distinct from Eclypsium and OS-layer firmware scanners?+
Eclypsium and similar platforms run inside the OS and scan firmware binaries for known vulnerabilities. They operate after the OS loads, from above the firmware layer. MDRwatchdog Patent #10 operates inside the firmware itself during the DXE phase — before the OS bootloader executes. The baseline is established before any OS code runs, making it inaccessible to OS-layer attackers. The SMM module runs at Ring -2, below the OS entirely.
What is the priority date?+
The priority date is September 8, 2026, established by public disclosure of the MdrSentinel.c and MdrSentinelSmm.c source code, the MdrSentinel.dsc EDK2 package descriptor, and the BUILD.md documentation on that date, corroborated by the PQC-sealed MDRwatchdog audit ledger (Block #1, 24,432 records, sealed September 7, 2026).
Related patents and features
Plain-language answers to the questions buyers ask most — readiness and evidence, not certification or legal advice.
Security that runs before the OS exists.
MDRwatchdog Patent #10 puts detection at the firmware layer \u2014 before any OS code runs, before any implant can hide. Book a 15-minute review.
Schedule your 15-minute review