[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AEHD34W465QBJD76XZCJ6F":3,"skill-same:01M6AEHD34W465QBJD76XZCJ6F":108},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":66,"repositoryHtmlUrl":67,"repositoryHomepageUrl":68,"ownerHtmlUrl":69,"ownerBlogUrl":70,"ownerDescription":71,"updatedAt":72,"install":73,"resources":86},"01M6AEHD34W465QBJD76XZCJ6F","detecting-secure-boot-bypass","UEFI 安全启动绕过检测","Detect UEFI Secure Boot bypasses and bootkits such as BlackLotus and Bootkitty by verifying Secure Boot state, checking dbx revocation currency, and hashing EFI boot binaries against known-bad sets using mokutil, efi-readvar\u002Fdbxtool, CHIPSEC, sbverify\u002Fpesign, and Windows Confirm-SecureBootUEFI. Use when auditing fleet dbx rollout after a bootkit advisory or hunting for pre-OS persistence on a suspected-compromised endpoint.","通过验证安全启动状态、检查 dbx 吊销更新的时效性，以及将 EFI 引导二进制文件哈希与已知恶意集合进行比对，检测 UEFI 安全启动绕过和 bootkit（如 BlackLotus 和 Bootkitty），所用工具包括 mokutil、efi-readvar\u002Fdbxtool、CHIPSEC、sbverify\u002Fpesign 和 Windows Confirm-SecureBootUEFI。适用于在 bootkit 安全公告后审计机群的 dbx 部署情况，或追捕疑似已被入侵端点上的操作系统启动前（pre-OS）持久化行为。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSJ8FPTACYEEYRWQRNFXKY","安全检测工程","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"detecting secure boot bypass","secure","boot","firmware","firmware-integrity","blacklotus","dbx-revocation","endpoint","hardware-firmware-security","chipsec","Secure-Boot","security","UEFI","bootkit","persistence","state","windows","cybersecurity","2026-11-10 10:12:30",false,"---\nname: detecting-secure-boot-bypass\ndescription: Detect UEFI Secure Boot bypasses and bootkits such as BlackLotus and\n  Bootkitty by verifying Secure Boot state, checking dbx revocation currency, and\n  hashing EFI boot binaries against known-bad sets using mokutil, efi-readvar\u002Fdbxtool,\n  CHIPSEC, sbverify\u002Fpesign, and Windows Confirm-SecureBootUEFI. Use when auditing\n  fleet dbx rollout after a bootkit advisory or hunting for pre-OS persistence on\n  a suspected-compromised endpoint.\ndomain: cybersecurity\nsubdomain: hardware-firmware-security\ntags:\n- hardware-firmware-security\n- secure-boot\n- uefi\n- bootkit\n- dbx-revocation\n- blacklotus\n- chipsec\n- firmware-integrity\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- DE.CM-01\nmitre_attack:\n- T1542.003\n---\n# Detecting Secure Boot Bypass\n\n> **Legal Notice:** Firmware and Secure Boot assessment must only be performed on systems you own or are explicitly authorized to test. CHIPSEC's write\u002Fmodify modes and EFI variable manipulation can brick hardware. Run destructive checks only in a lab. This skill is for defensive verification and authorized assessment.\n\n## Overview\n\nUEFI Secure Boot is the firmware-enforced trust chain that only permits boot components signed by keys in the platform's allow-list (db) and not present in the revocation list (dbx). Bootkits defeat this layer to gain pre-OS, persistent, kernel-level control that survives OS reinstalls and disk wipes. **BlackLotus** (2023) was the first publicly observed UEFI bootkit to bypass Secure Boot on fully patched Windows 11, abusing **CVE-2022-21894** (\"baton drop\") in a vulnerable, signed Windows boot manager to neutralize Secure Boot and disable BitLocker, HVCI, and Defender. **Bootkitty** (2024) was the first PoC UEFI bootkit targeting Linux. Microsoft's **CVE-2023-24932** addressed a related Secure Boot bypass that required a phased dbx (revocation) rollout because revoking the vulnerable boot managers can render systems unbootable if applied carelessly.\n\nThe core defensive insight is that patching the OS is **not sufficient** — the platform remains exploitable until the vulnerable, signed binaries are revoked in **dbx**. Detection therefore combines: (1) confirming Secure Boot is actually enabled, (2) verifying dbx is current and contains the relevant revocations, (3) checking the integrity and protection of Secure Boot EFI variables with CHIPSEC, (4) hashing on-disk EFI boot binaries and comparing them against the revocation list and known-bad sets, and (5) inspecting firmware\u002FESP for bootkit artifacts. This skill provides a cross-platform (Linux + Windows) workflow using `mokutil`, `efi-readvar`\u002F`dbxtool`, `chipsec`, `sbverify`\u002F`pesign`, and Windows `Confirm-SecureBootUEFI` \u002F `Get-SecureBootUEFI`.\n\n## When to Use\n\n- Verifying that an estate's Secure Boot configuration is enabled, locked, and current after the CVE-2023-24932 \u002F BlackLotus advisories.\n- Hunting for UEFI bootkit indicators on a suspected-compromised endpoint.\n- Validating that dbx revocations (e.g., vulnerable Windows boot managers, Kaspersky\u002Fother vulnerable bootloaders) have actually applied across the fleet.\n- Auditing firmware integrity and Secure Boot variable protections during a hardware security assessment.\n- Building a recurring measured\u002Fbaseline check for boot-chain tampering.\n\n## Prerequisites\n\n- Root\u002Fadministrator on the target (firmware reads require privilege).\n- Linux tooling:\n  ```bash\n  sudo apt install mokutil efitools sbsigntool dbxtool      # Debian\u002FUbuntu\n  sudo dnf install mokutil efitools sbsigntools dbxtool     # Fedora\u002FRHEL\n  ```\n- CHIPSEC (run from a live USB or controlled host; loads a kernel driver):\n  ```bash\n  pip install chipsec        # or build from https:\u002F\u002Fgithub.com\u002Fchipsec\u002Fchipsec\n  ```\n- Windows tooling: PowerShell (built-in `Confirm-SecureBootUEFI`, `Get-SecureBootUEFI`), and optionally the UEFI dbx update package from Microsoft.\n- The current `dbxupdate` files from https:\u002F\u002Fuefi.org\u002Frevocationlistfile to compare against.\n\n## Objectives\n\n- Confirm Secure Boot is enabled and in user (not setup) mode.\n- Enumerate db, dbx, KEK, and PK contents and assess freshness of dbx.\n- Verify the relevant CVE revocations are present in dbx.\n- Validate Secure Boot EFI variables are authenticated and protected (CHIPSEC).\n- Hash ESP boot binaries and check them against dbx and known-bad hash sets.\n- Identify bootkit artifacts and report exploitable gaps with remediation.\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Technique Name | Relevance |\n|--------------|----------------|-----------|\n| T1542.003 | Pre-OS Boot: Bootkit | Core technique — bootkit subverts the boot chain below the OS. |\n| T1542 | Pre-OS Boot | Parent technique covering firmware\u002Fboot-component tampering. |\n| T1542.001 | Pre-OS Boot: System Firmware | Adjacent: firmware modification used to persist or weaken Secure Boot. |\n| T1014 | Rootkit | Bootkits provide rootkit-level concealment and persistence. |\n| T1562.001 | Impair Defenses: Disable or Modify Tools | BlackLotus disables BitLocker\u002FHVCI\u002FDefender after bypassing Secure Boot. |\n\n## Workflow\n\n### 1. Confirm Secure Boot state (Linux)\nA disabled or setup-mode platform offers no protection.\n```bash\nmokutil --sb-state                       # \"SecureBoot enabled\" expected\nbootctl status | grep -i \"secure boot\"   # systemd-boot view\n# 6 = enabled+user mode on the EFI SecureBoot\u002FSetupMode vars:\nod -An -t u1 \u002Fsys\u002Ffirmware\u002Fefi\u002Fefivars\u002FSecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c\n```\n\n### 2. Confirm Secure Boot state (Windows)\n```powershell\nConfirm-SecureBootUEFI        # $true if enabled\n# Inspect the raw dbx variable from Windows:\n[System.BitConverter]::ToString((Get-SecureBootUEFI dbx).bytes) | Out-File dbx.hex\n```\n\n### 3. Enumerate the Secure Boot databases\nList db (allowed), dbx (revoked), KEK, and PK.\n```bash\nefi-readvar                      # dumps PK, KEK, db, dbx\nefi-readvar -v dbx -o dbx.esl    # export dbx to a file for offline analysis\nmokutil --list-enrolled          # MOK (shim) enrolled keys\nmokutil --db                     # platform db entries via shim\n```\n\n### 4. Assess dbx freshness and applied revocations\nCompare on-system dbx to the current official UEFI revocation list.\n```bash\ndbxtool --list                                   # current dbx entries + count\n# Download latest dbxupdate from uefi.org\u002Frevocationlistfile, then:\ndbxtool --dbx .\u002FDBXUpdate.bin --apply --dry-run  # show what WOULD be added (no write)\n```\nA low dbx entry count or absence of recent revocations indicates the platform is behind and likely still vulnerable to known bypasses.\n\n### 5. Check Secure Boot variable protection with CHIPSEC\nVerify the SB key variables are authenticated and not freely writable.\n```bash\n# Verify Secure Boot is enabled and the SB variables are properly protected:\nsudo chipsec_main -m common.secureboot.variables\n\n# Check S3 resume boot-script protections (an SMM\u002Ffirmware bypass vector):\nsudo chipsec_main -m common.uefi.s3bootscript\n\n# Dump SPI flash for offline firmware diffing:\nsudo chipsec_util spi dump rom.bin\n```\n\n### 6. Hash ESP boot binaries and check signatures\nVerify bootloaders are signed and not present in dbx.\n```bash\n# Locate and hash EFI boot binaries\nfind \u002Fboot\u002Fefi -iname '*.efi' -exec sha256sum {} \\;\n# Validate a binary's signature against the platform db\nsbverify --list \u002Fboot\u002Fefi\u002FEFI\u002FBOOT\u002Fbootx64.efi\nsbverify --cert \u002Fetc\u002Fsecureboot\u002Fdb.crt \u002Fboot\u002Fefi\u002FEFI\u002FMicrosoft\u002FBoot\u002Fbootmgfw.efi\n# pesign equivalent on RHEL-family:\npesign -S -i \u002Fboot\u002Fefi\u002FEFI\u002FBOOT\u002Fbootx64.efi\n```\n\n### 7. Cross-check against known-bad bootkit hashes\nCompare collected hashes to revocation\u002Fknown-bad sets (e.g., LoFP \u002F vendor advisories).\n```bash\n# Example: confirm a binary's SHA-256 is NOT one of the revoked CVE-2022-21894 boot managers\nsha256sum \u002Fboot\u002Fefi\u002FEFI\u002FMicrosoft\u002FBoot\u002Fbootmgfw.efi\n# Compare against the hash list extracted from the latest dbxupdate \u002F advisory.\n```\n\n### 8. Inspect for bootkit artifacts\nLook for unauthorized ESP modifications and self-deployment markers.\n```bash\n# Unexpected files \u002F recently modified binaries on the ESP\nls -laR \u002Fboot\u002Fefi\u002FEFI\u002F\nfind \u002Fboot\u002Fefi -newermt \"-30 days\" -iname '*.efi'\n# On Windows, examine the EFI partition for rogue \\EFI\\Microsoft\\Boot entries.\n```\n\n### 9. Validate measured-boot evidence (optional pivot)\nIf a TPM is present, current PCR[7] reflects Secure Boot policy; deviations corroborate tampering.\n```bash\ntpm2_pcrread sha256:7        # Secure Boot policy PCR\n```\n\n### 10. Run the bundled assessment helper\n`agent.py` collects SB state, dbx counts, ESP binary hashes, and CHIPSEC results into one report.\n```bash\nsudo python scripts\u002Fagent.py --check-chipsec --output secureboot_report.json\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| mokutil | Secure Boot state and enrolled keys (Linux) | https:\u002F\u002Fgithub.com\u002Flcp\u002Fmokutil |\n| efitools (efi-readvar) | Dump PK\u002FKEK\u002Fdb\u002Fdbx | https:\u002F\u002Fgit.kernel.org\u002Fpub\u002Fscm\u002Flinux\u002Fkernel\u002Fgit\u002Fjejb\u002Fefitools.git |\n| dbxtool | Inspect and apply dbx updates | https:\u002F\u002Fgithub.com\u002Frhboot\u002Fdbxtool |\n| CHIPSEC | Firmware \u002F Secure Boot variable assessment | https:\u002F\u002Fgithub.com\u002Fchipsec\u002Fchipsec |\n| sbsigntool \u002F pesign | EFI binary signature verification | https:\u002F\u002Fgithub.com\u002Fjejb\u002Fsbsigntools |\n| UEFI Revocation List | Official dbx update files | https:\u002F\u002Fuefi.org\u002Frevocationlistfile |\n| Microsoft KB CVE-2023-24932 | Secure Boot bypass guidance | https:\u002F\u002Fsupport.microsoft.com\u002Ftopic\u002Fkb5025885 |\n| ESET BlackLotus analysis | Bootkit technical writeup | https:\u002F\u002Fwww.welivesecurity.com\u002F2023\u002F03\u002F01\u002Fblacklotus-uefi-bootkit-myth-confirmed\u002F |\n\n## Validation Criteria\n\n- [ ] Secure Boot confirmed enabled and in user mode on the target.\n- [ ] PK\u002FKEK\u002Fdb\u002Fdbx enumerated and exported for analysis.\n- [ ] dbx compared against the current official UEFI revocation list.\n- [ ] CVE-2022-21894 \u002F CVE-2023-24932 revocations confirmed present (or gap flagged).\n- [ ] CHIPSEC `secureboot.variables` and `s3bootscript` modules run.\n- [ ] ESP boot binaries hashed and signature-verified.\n- [ ] Hashes cross-checked against known-bad \u002F revoked sets.\n- [ ] ESP inspected for unauthorized or recently modified binaries.\n- [ ] Findings documented with remediation (dbx update \u002F firmware update) per host.\n","# Detecting Secure Boot Bypass\n\n> **Legal Notice:** Firmware and Secure Boot assessment must only be performed on systems you own or are explicitly authorized to test. CHIPSEC's write\u002Fmodify modes and EFI variable manipulation can brick hardware. Run destructive checks only in a lab. This skill is for defensive verification and authorized assessment.\n\n## Overview\n\nUEFI Secure Boot is the firmware-enforced trust chain that only permits boot components signed by keys in the platform's allow-list (db) and not present in the revocation list (dbx). Bootkits defeat this layer to gain pre-OS, persistent, kernel-level control that survives OS reinstalls and disk wipes. **BlackLotus** (2023) was the first publicly observed UEFI bootkit to bypass Secure Boot on fully patched Windows 11, abusing **CVE-2022-21894** (\"baton drop\") in a vulnerable, signed Windows boot manager to neutralize Secure Boot and disable BitLocker, HVCI, and Defender. **Bootkitty** (2024) was the first PoC UEFI bootkit targeting Linux. Microsoft's **CVE-2023-24932** addressed a related Secure Boot bypass that required a phased dbx (revocation) rollout because revoking the vulnerable boot managers can render systems unbootable if applied carelessly.\n\nThe core defensive insight is that patching the OS is **not sufficient** — the platform remains exploitable until the vulnerable, signed binaries are revoked in **dbx**. Detection therefore combines: (1) confirming Secure Boot is actually enabled, (2) verifying dbx is current and contains the relevant revocations, (3) checking the integrity and protection of Secure Boot EFI variables with CHIPSEC, (4) hashing on-disk EFI boot binaries and comparing them against the revocation list and known-bad sets, and (5) inspecting firmware\u002FESP for bootkit artifacts. This skill provides a cross-platform (Linux + Windows) workflow using `mokutil`, `efi-readvar`\u002F`dbxtool`, `chipsec`, `sbverify`\u002F`pesign`, and Windows `Confirm-SecureBootUEFI` \u002F `Get-SecureBootUEFI`.\n\n## When to Use\n\n- Verifying that an estate's Secure Boot configuration is enabled, locked, and current after the CVE-2023-24932 \u002F BlackLotus advisories.\n- Hunting for UEFI bootkit indicators on a suspected-compromised endpoint.\n- Validating that dbx revocations (e.g., vulnerable Windows boot managers, Kaspersky\u002Fother vulnerable bootloaders) have actually applied across the fleet.\n- Auditing firmware integrity and Secure Boot variable protections during a hardware security assessment.\n- Building a recurring measured\u002Fbaseline check for boot-chain tampering.\n\n## Prerequisites\n\n- Root\u002Fadministrator on the target (firmware reads require privilege).\n- Linux tooling:\n  ```bash\n  sudo apt install mokutil efitools sbsigntool dbxtool      # Debian\u002FUbuntu\n  sudo dnf install mokutil efitools sbsigntools dbxtool     # Fedora\u002FRHEL\n  ```\n- CHIPSEC (run from a live USB or controlled host; loads a kernel driver):\n  ```bash\n  pip install chipsec        # or build from https:\u002F\u002Fgithub.com\u002Fchipsec\u002Fchipsec\n  ```\n- Windows tooling: PowerShell (built-in `Confirm-SecureBootUEFI`, `Get-SecureBootUEFI`), and optionally the UEFI dbx update package from Microsoft.\n- The current `dbxupdate` files from https:\u002F\u002Fuefi.org\u002Frevocationlistfile to compare against.\n\n## Objectives\n\n- Confirm Secure Boot is enabled and in user (not setup) mode.\n- Enumerate db, dbx, KEK, and PK contents and assess freshness of dbx.\n- Verify the relevant CVE revocations are present in dbx.\n- Validate Secure Boot EFI variables are authenticated and protected (CHIPSEC).\n- Hash ESP boot binaries and check them against dbx and known-bad hash sets.\n- Identify bootkit artifacts and report exploitable gaps with remediation.\n\n## MITRE ATT&CK Mapping\n\n| Technique ID | Technique Name | Relevance |\n|--------------|----------------|-----------|\n| T1542.003 | Pre-OS Boot: Bootkit | Core technique — bootkit subverts the boot chain below the OS. |\n| T1542 | Pre-OS Boot | Parent technique covering firmware\u002Fboot-component tampering. |\n| T1542.001 | Pre-OS Boot: System Firmware | Adjacent: firmware modification used to persist or weaken Secure Boot. |\n| T1014 | Rootkit | Bootkits provide rootkit-level concealment and persistence. |\n| T1562.001 | Impair Defenses: Disable or Modify Tools | BlackLotus disables BitLocker\u002FHVCI\u002FDefender after bypassing Secure Boot. |\n\n## Workflow\n\n### 1. Confirm Secure Boot state (Linux)\nA disabled or setup-mode platform offers no protection.\n```bash\nmokutil --sb-state                       # \"SecureBoot enabled\" expected\nbootctl status | grep -i \"secure boot\"   # systemd-boot view\n# 6 = enabled+user mode on the EFI SecureBoot\u002FSetupMode vars:\nod -An -t u1 \u002Fsys\u002Ffirmware\u002Fefi\u002Fefivars\u002FSecureBoot-8be4df61-93ca-11d2-aa0d-00e098032b8c\n```\n\n### 2. Confirm Secure Boot state (Windows)\n```powershell\nConfirm-SecureBootUEFI        # $true if enabled\n# Inspect the raw dbx variable from Windows:\n[System.BitConverter]::ToString((Get-SecureBootUEFI dbx).bytes) | Out-File dbx.hex\n```\n\n### 3. Enumerate the Secure Boot databases\nList db (allowed), dbx (revoked), KEK, and PK.\n```bash\nefi-readvar                      # dumps PK, KEK, db, dbx\nefi-readvar -v dbx -o dbx.esl    # export dbx to a file for offline analysis\nmokutil --list-enrolled          # MOK (shim) enrolled keys\nmokutil --db                     # platform db entries via shim\n```\n\n### 4. Assess dbx freshness and applied revocations\nCompare on-system dbx to the current official UEFI revocation list.\n```bash\ndbxtool --list                                   # current dbx entries + count\n# Download latest dbxupdate from uefi.org\u002Frevocationlistfile, then:\ndbxtool --dbx .\u002FDBXUpdate.bin --apply --dry-run  # show what WOULD be added (no write)\n```\nA low dbx entry count or absence of recent revocations indicates the platform is behind and likely still vulnerable to known bypasses.\n\n### 5. Check Secure Boot variable protection with CHIPSEC\nVerify the SB key variables are authenticated and not freely writable.\n```bash\n# Verify Secure Boot is enabled and the SB variables are properly protected:\nsudo chipsec_main -m common.secureboot.variables\n\n# Check S3 resume boot-script protections (an SMM\u002Ffirmware bypass vector):\nsudo chipsec_main -m common.uefi.s3bootscript\n\n# Dump SPI flash for offline firmware diffing:\nsudo chipsec_util spi dump rom.bin\n```\n\n### 6. Hash ESP boot binaries and check signatures\nVerify bootloaders are signed and not present in dbx.\n```bash\n# Locate and hash EFI boot binaries\nfind \u002Fboot\u002Fefi -iname '*.efi' -exec sha256sum {} \\;\n# Validate a binary's signature against the platform db\nsbverify --list \u002Fboot\u002Fefi\u002FEFI\u002FBOOT\u002Fbootx64.efi\nsbverify --cert \u002Fetc\u002Fsecureboot\u002Fdb.crt \u002Fboot\u002Fefi\u002FEFI\u002FMicrosoft\u002FBoot\u002Fbootmgfw.efi\n# pesign equivalent on RHEL-family:\npesign -S -i \u002Fboot\u002Fefi\u002FEFI\u002FBOOT\u002Fbootx64.efi\n```\n\n### 7. Cross-check against known-bad bootkit hashes\nCompare collected hashes to revocation\u002Fknown-bad sets (e.g., LoFP \u002F vendor advisories).\n```bash\n# Example: confirm a binary's SHA-256 is NOT one of the revoked CVE-2022-21894 boot managers\nsha256sum \u002Fboot\u002Fefi\u002FEFI\u002FMicrosoft\u002FBoot\u002Fbootmgfw.efi\n# Compare against the hash list extracted from the latest dbxupdate \u002F advisory.\n```\n\n### 8. Inspect for bootkit artifacts\nLook for unauthorized ESP modifications and self-deployment markers.\n```bash\n# Unexpected files \u002F recently modified binaries on the ESP\nls -laR \u002Fboot\u002Fefi\u002FEFI\u002F\nfind \u002Fboot\u002Fefi -newermt \"-30 days\" -iname '*.efi'\n# On Windows, examine the EFI partition for rogue \\EFI\\Microsoft\\Boot entries.\n```\n\n### 9. Validate measured-boot evidence (optional pivot)\nIf a TPM is present, current PCR[7] reflects Secure Boot policy; deviations corroborate tampering.\n```bash\ntpm2_pcrread sha256:7        # Secure Boot policy PCR\n```\n\n### 10. Run the bundled assessment helper\n`agent.py` collects SB state, dbx counts, ESP binary hashes, and CHIPSEC results into one report.\n```bash\nsudo python scripts\u002Fagent.py --check-chipsec --output secureboot_report.json\n```\n\n## Tools and Resources\n\n| Tool | Purpose | Source |\n|------|---------|--------|\n| mokutil | Secure Boot state and enrolled keys (Linux) | https:\u002F\u002Fgithub.com\u002Flcp\u002Fmokutil |\n| efitools (efi-readvar) | Dump PK\u002FKEK\u002Fdb\u002Fdbx | https:\u002F\u002Fgit.kernel.org\u002Fpub\u002Fscm\u002Flinux\u002Fkernel\u002Fgit\u002Fjejb\u002Fefitools.git |\n| dbxtool | Inspect and apply dbx updates | https:\u002F\u002Fgithub.com\u002Frhboot\u002Fdbxtool |\n| CHIPSEC | Firmware \u002F Secure Boot variable assessment | https:\u002F\u002Fgithub.com\u002Fchipsec\u002Fchipsec |\n| sbsigntool \u002F pesign | EFI binary signature verification | https:\u002F\u002Fgithub.com\u002Fjejb\u002Fsbsigntools |\n| UEFI Revocation List | Official dbx update files | https:\u002F\u002Fuefi.org\u002Frevocationlistfile |\n| Microsoft KB CVE-2023-24932 | Secure Boot bypass guidance | https:\u002F\u002Fsupport.microsoft.com\u002Ftopic\u002Fkb5025885 |\n| ESET BlackLotus analysis | Bootkit technical writeup | https:\u002F\u002Fwww.welivesecurity.com\u002F2023\u002F03\u002F01\u002Fblacklotus-uefi-bootkit-myth-confirmed\u002F |\n\n## Validation Criteria\n\n- [ ] Secure Boot confirmed enabled and in user mode on the target.\n- [ ] PK\u002FKEK\u002Fdb\u002Fdbx enumerated and exported for analysis.\n- [ ] dbx compared against the current official UEFI revocation list.\n- [ ] CVE-2022-21894 \u002F CVE-2023-24932 revocations confirmed present (or gap flagged).\n- [ ] CHIPSEC `secureboot.variables` and `s3bootscript` modules run.\n- [ ] ESP boot binaries hashed and signature-verified.\n- [ ] Hashes cross-checked against known-bad \u002F revoked sets.\n- [ ] ESP inspected for unauthorized or recently modified binaries.\n- [ ] Findings documented with remediation (dbx update \u002F firmware update) per host.\n",{"name":5,"tags":54,"author":57,"domain":48,"license":16,"version":58,"nist_csf":59,"subdomain":39,"description":7,"mitre_attack":61},[39,55,56,44,37,36,40,35],"secure-boot","uefi","mahipal","1.0",[60],"DE.CM-01",[62],"T1542.003","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fdetecting-secure-boot-bypass",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":74,"prompt":84,"zipAvailable":85},[75,78,81],{"tool":76,"command":77},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-secure-boot-bypass",{"tool":79,"command":80},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-secure-boot-bypass",{"tool":82,"command":83},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-secure-boot-bypass","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002FSKILL.md",true,[87,92,98,102],{"path":88,"resourceType":88,"resourceTypeDesc":89,"sizeBytes":90,"sourceHtmlUrl":91},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002FLICENSE",{"path":93,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fapi-reference.md","REFERENCE","参考文档",2221,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002Freferences\u002Fapi-reference.md",{"path":99,"resourceType":94,"resourceTypeDesc":95,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fstandards.md",1580,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002Freferences\u002Fstandards.md",{"path":103,"resourceType":104,"resourceTypeDesc":105,"sizeBytes":106,"sourceHtmlUrl":107},"scripts\u002Fagent.py","SCRIPT","脚本",5269,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-secure-boot-bypass\u002Fscripts\u002Fagent.py",[109,140,167,199,229,261],{"skillNo":110,"name":111,"nameZh":112,"description":113,"descriptionZh":114,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":115,"categories":116,"keywords":121,"publishedAt":49},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[117,118],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":119,"categoryName":120,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[122,123,124,125,42,48,126,127,128,129,130,131,132,133,134,135,136,137,138,139],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","pr","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":152,"publishedAt":49},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[148,149],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[33,136,153,154,42,155,48,128,156,157,34,158,159,160,161,162,163,164,165,166],"TPM","validating tpm measured boot attestation","policy","verification","ZeRO","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":168,"name":169,"nameZh":170,"description":171,"descriptionZh":172,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":173,"categories":174,"keywords":181,"publishedAt":49},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[175,178],{"categoryNo":176,"categoryName":177,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":179,"categoryName":180,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[161,182,183,184,185,48,186,187,156,188,189,190,191,192,193,194,195,196,197,198],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":200,"name":201,"nameZh":202,"description":203,"descriptionZh":204,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":205,"categories":206,"keywords":211,"publishedAt":49},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[207,208],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":209,"categoryName":210,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[47,212,213,48,214,215,216,217,218,219,220,221,222,223,224,225,158,226,227,228],"kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","data","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":230,"name":231,"nameZh":232,"description":233,"descriptionZh":234,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":235,"categories":236,"keywords":241,"publishedAt":49},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[237,240],{"categoryNo":238,"categoryName":239,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[242,243,244,48,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":262,"name":263,"nameZh":264,"description":265,"descriptionZh":266,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":267,"categories":268,"keywords":273,"publishedAt":49},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[269,270],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":271,"categoryName":272,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[42,274,48,275,276,277,278,279,280,281,282,194,283,195,284,285,286,287,288,289],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]