मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट35k · #7945

hunting-bootkits-in-efi-system-partition

यह क्या करती है

यह tool आपके computer की startup area (जिसे ESP कहते हैं) में छिपे खतरनाक programs खोजता है। यह जांचता है कि सिस्टम शुरू करने वाले programs असली हैं या नहीं, और उनमें कोई संदिग्ध बदलाव तो नहीं हुआ।

कब इस्तेमाल करें

  • ✓यह पक्का करने के लिए कि operating system से पहले चलने वाला कोई खतरनाक software इंस्टॉल तो नहीं किया गया है।
  • ✓अगर आपको शक है कि कोई hacker आपके computer पर लगातार पहुंच बनाए रखने के लिए कुछ इंस्टॉल कर सकता है।
  • ✓startup area सुरक्षित है और उसमें बिना अनुमति के बदलाव नहीं हुए हैं, यह नियमित रूप से जांचने के लिए।

Skill का लिंक

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-bootkits-in-efi-system-partition/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-bootkits-in-efi-system-partition/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे computer की startup area में खतरनाक programs की जांच करो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

tool आपके computer की startup area को mount करता है, system startup programs को एक भरोसेमंद सूची से मिलाकर जांचता है, और अजीब files या हाल में हुए बदलाव खोजता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Hunting Bootkits in the EFI System Partition

Overview

The EFI System Partition (ESP) is a small FAT32-formatted partition that the platform firmware reads at power-on to locate and execute the operating system's boot loader. Because it executes before the operating system, kernel, and any EDR agent, the ESP is one of the most coveted persistence locations for advanced adversaries. UEFI bootkits that live on the ESP survive OS reinstallation, disk reformatting of the OS partition, and most endpoint defenses.

This skill follows the detection research published by Eclypsium ("Enhanced Threat Detection: Bootloaders, Bootkits, and Secure Boot", and the Bootkitty and Glupteba analyses) and aligns with the ESP-hunting methodology Rapid7 documented for Velociraptor (Windows.Forensics.UEFI, Windows.Detection.Yara.UEFI). The threat context is concrete and current:

  • ESPecter (ESET, 2021) — a UEFI bootkit that persists on the ESP as a patched Windows Boot Manager (bootmgfw.efi) plus malicious kernel-mode drivers. It marked the move of UEFI threats from SPI flash to the ESP, where they are far easier to deploy.
  • BlackLotus (2023) — the first in-the-wild UEFI bootkit able to bypass Secure Boot on fully patched Windows 11 by exploiting CVE-2022-21894 ("baton drop") and staging a vulnerable signed bootmgfw.efi on the ESP.
  • Bootkitty (2024) — the first UEFI bootkit targeting Linux, dropped onto the ESP.
  • Glupteba — commodity malware whose UEFI variant replaces software on the EFI partition.

The core detection insight from Eclypsium and Rapid7 is that the bootloader normally changes only during a vendor or OS update; an out-of-band change to ESP binaries, an unsigned or untrusted-signed boot loader, or any file in the ESP root that is not under the EFI/ directory is a high-fidelity indicator of compromise. This skill builds that baseline and hunts deviations from it.

When to Use

  • During proactive threat hunts for firmware/bootkit persistence (MITRE ATT&CK T1542.003 — Pre-OS Boot: Bootkit)
  • After an incident where an adversary achieved SYSTEM/root and may have established below-OS persistence
  • When validating Secure Boot posture across a fleet and confirming boot-chain integrity
  • As a periodic integrity check, comparing the current ESP contents against a trusted golden baseline
  • When triaging hosts that show measured-boot (TPM PCR) mismatches

Prerequisites

  • Administrative/root access to the target host (mounting and reading the ESP requires elevation)
  • Linux analysis tooling — install on Debian/Ubuntu:
    sudo apt-get update
    sudo apt-get install -y sbsigntool pesign efitools efibootmgr binwalk yara
    pip install pefile
    
  • UEFITool for inspecting firmware/binaries (download from https://github.com/LongSoft/UEFITool/releases)
  • A trusted golden baseline of EFI binary hashes for the OS/vendor versions in scope (build it once on a known-clean, freshly imaged host)
  • For Windows targets: WinPE or a forensic boot environment, or Velociraptor with the Windows.Forensics.UEFI artifact

Objectives

  • Mount and enumerate the ESP read-only without altering evidence
  • Inventory every EFI binary and compute cryptographic hashes
  • Verify Secure Boot signatures on each boot loader against trusted keys
  • Compare contents against a golden baseline to surface out-of-band changes
  • YARA-scan ESP binaries for known bootkit signatures
  • Flag anomalies: files outside EFI/, unsigned loaders, modified bootmgfw.efi/grubx64.efi, and tampered boot entries
  • Confirm measured-boot (TPM PCR 0/2/4) integrity where TPM is present

MITRE ATT&CK Mapping

ID Name Relevance
T1542.003 Pre-OS Boot: Bootkit Adversaries place malicious boot loaders on the ESP to execute before the OS and EDR, achieving stealthy, resilient persistence. This skill hunts exactly that artifact.

Workflow

Step 1: Identify and mount the ESP read-only

The ESP is a FAT32 partition, usually flagged EF00 (GPT) or esp,boot. Locate it and mount read-only to preserve evidence.

# Identify the ESP (type code EF00 / "EFI System")
sudo lsblk -o NAME,FSTYPE,PARTTYPENAME,MOUNTPOINT
sudo fdisk -l | grep -i "EFI System"

# Mount the ESP read-only (replace /dev/sda1 with the identified partition)
sudo mkdir -p /mnt/esp
sudo mount -o ro,umask=077 /dev/sda1 /mnt/esp

# Confirm the canonical layout: EFI/ should be the only top-level dir

…
अक्सर पूछे जाने वाले सवाल

'EFI System Partition' (ESP) क्या है?

यह आपकी hard drive पर एक छोटा हिस्सा है, जिसमें वे programs होते हैं जो operating system शुरू होने से पहले उसे चालू करने के लिए जरूरी होते हैं।

खतरनाक programs वहां छिपना क्यों पसंद करते हैं?

अगर कोई खतरनाक program ESP में छिप जाए, तो वह किसी भी antivirus या security software से पहले चलता है, इसलिए उसे पकड़ना और हटाना बहुत मुश्किल होता है। यह system को दोबारा install करने के बाद भी बचा रहता है।

'bootkit' क्या है?

यह एक तरह का खतरनाक program है जो boot area (जैसे ESP) में खुद को इंस्टॉल करता है, ताकि startup प्रक्रिया की बहुत शुरुआत में ही computer पर नियंत्रण पा सके।

जानकारी

लेखक का मूल विवरण

Baseline the EFI System Partition and hunt malicious EFI binaries such as ESPecter, BlackLotus, Bootkitty, and Glupteba by mounting the ESP, hashing and verifying boot loaders, scanning with YARA, and flagging anomalous non-EFI files or out-of-band bootloader changes. Use during proactive threat hunts for firmware/bootkit persistence (MITRE ATT&CK T1542.003) or when investigating suspected UEFI-le

repo: mukul975/Anthropic-Cybersecurity-Skills

लोकप्रियता

GitHub स्टार
35k
रैंकिंग में स्थान
#7945
लाइसेंस
Apache-2.0
अपडेट की गई
31/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills