Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1310 CNY

100%

CVE-2022-21894 PoC — Secure Boot Security Feature Bypass Vulnerability

Source
Associated Vulnerability
Title:Secure Boot Security Feature Bypass Vulnerability (CVE-2022-21894)
Description:Secure Boot Security Feature Bypass Vulnerability
Description
Public repo for anything CVE-2022-21894
Readme
# CVE-2022-21894
Public repo for anything CVE-2022-21894

# Main page
https://www.microsoft.com/en-us/security/blog/2023/04/11/guidance-for-investigating-attacks-using-cve-2022-21894-the-blacklotus-campaign/
### Windows Defender now capable of removing this threat "Possible vulnerable EFI bootloader "

## Basic Detection
### Mounts the EFI system partition on the specified drive.
  $ mountvol /s

### Search for .efi files that have odd timestamps

  $ dir E:\EFI\Microsoft\Boot\*efi

### Get the FileHash of all the bootloader files to see if any generate ERROR_SHARING_VIOLATION
  $ Get-FileHash -Algorithm MD5 -Path (Get-ChildItem "E:\EFI\Microsoft\Boot\*.*" -Recurse)

### Staging directory presence
  Check historical presence of deleted files in a custom directory such as ESP:\system32\
  The directory is not deleted after BalckLotus installation.

### Check for HVCI integrity (if it exists)
  $ reg query HKLM\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity

### Check for specific Windows Defender Events (tampering with Defender)
  $ Get-EventLog -LogName System -InstanceId 3006
  
  $ Get-EventLog -LogName System -InstanceId 7023

### Check for connection to C2 serve via winlogon.exe port 80
  $ netstat -ano | findstr ":80"
  
  $ tasklist /V | findstr "winlogon.exe"
#### Use sysmon and add new configuration to the sysmonconfig.xml
  <Image condition="image">winlogon.exe</Image>



## Sysmon
https://github.com/olafhartong/sysmon-modular

## Vulnerability

### Method
https://github.com/Wack0/CVE-2022-21894


File Snapshot

Log in to view the POC file snapshot cached by Shenlong Bot

Log in to view
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →