re-uefi

re-uefi is a skill for Claude Code from dslsdzc/rev-skills. It costs 79 tokens per session (4,604 once invoked), scanned A, original, Apache-2.0.

A workflow for analysing UEFI and BIOS firmware, including its internal modules, DXE drivers, and bootkits. UEFI is the software that starts a computer before the operating system loads.

In plain words
What is it for?
Use it to extract and inspect UEFI modules, investigate bootkits, analyse startup hooks, and review signatures, certificates, and firmware settings.
Why use it?
Firmware code uses specialised structures that ordinary file-analysis tools may not understand. This helps examine startup components and security features such as Secure Boot and boot-chain changes.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it to extract and inspect UEFI modules, investigate bootkits, analyse startup hooks, and review signatures, certificates, and firmware settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dslsdzc/rev-skills/re-uefi
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dslsdzc/rev-skills --skill re-uefi
Clone the repo
git clone --depth 1 https://github.com/dslsdzc/rev-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for re-uefi

README.md
[![agentmods](https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-uefi/github.svg)](https://agentmods.dev/skills/dslsdzc/rev-skills/re-uefi)
Your own site
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-uefi"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-uefi/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for re-uefi

Your own site · 80×15
<a href="https://agentmods.dev/skills/dslsdzc/rev-skills/re-uefi"><img src="https://agentmods.dev/badge/skills/dslsdzc/rev-skills/re-uefi.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00079 $0.04604
Opus 5.5 $0.00032 $0.01842
Sonnet 5.5 $0.00016 $0.00921
Haiku 4.5 $0.00008 $0.00460

Measured 2mo ago against content hash 47769bffb3ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

re-uefi scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/re-uefi/SKILL.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 lines — stays where its author put it; the contents beside it link to each section on GitHub.

UEFI 固件逆向(DXE 驱动 / UEFI 模块 / bootkit)

第一步永远是判阶段与模块类型:

SEC → PEI → DXE → BDS → OS / Runtime(+ SMM 独立一路)

同一份固件里,不同阶段的模块运行在完全不同的执行环境:可用内存不同、可调用的服务不同(PPI / Protocol / Runtime Services)、生命周期不同(DXE_DRIVER 与 DXE_RUNTIME_DRIVER 不是一回事)。

所以顺序是:先判阶段与类型,再谈逻辑——类型判错,后面所有"它为什么这么写"的推理都会错。详见 [[pi-stages]]。 </CORE RULE>

阶段与模块类型(先分类)

类型 阶段 服务形式 / 生命周期
SEC 最早 安全与初始化入口,无通用内存环境
PEIM PEI PPI;PEI 主要任务之一是建立永久内存
DXE driver DXE Protocol;仅存在于 boot services 环境
DXE runtime driver DXE + Runtime 跨生命周期:ExitBootServices() 后仍存在,SetVirtualAddressMap() 时被重定位
UEFI driver / application DXE/BDS 之后 跑在 UEFI 环境里的驱动/应用,与固件内建模块不是一回事
SMM/MM driver 独立 SMM 内执行,特权层级与生命周期自成一套

三条高频判据(细节与决策树见 [[pi-stages]]):

  • 读一串没有 producer xref 的结构 → 先想 HOB(PEI→DXE 单向交接,DXE 侧只读)
  • LocateProtocol(&guid) → 做 GUID 字典解析,恢复成 EFI_XXX_PROTOCOL_GUID 与接口 vtable;协议图比直接调用图更有意义
  • 固件地址 ≠ OS runtime 地址 → 不一定是 hook 或重定位错误,先确认比对的是哪个阶段的映射

何时使用 / 何时不用

  • 前置:拿到固件镜像但不确定是 UEFI/PI 结构还是嵌入式镜像 → [[re-analyze/system-fingerprints]] 的固件段(FV → FFS → section 层次)
  • 用:固件镜像内含 EFI 结构(Firmware Volume / FFS 文件 / DXE 驱动)——BIOS 更新包(.fd/.rom/.bin)、UEFI 驱动、EFI 应用
  • 用:bootkit 定位(SMM handler、定时器回调、启动路径挂钩)与验证
  • 用:Secure Boot / 启动链相关分析(签名、证书、NVRAM 变量)——需合法授权,见坑 4
  • 不用:固件是传统 Linux 嵌入式 rootfs(走 [[re-fw-extract]] / [[re-fw-rootfs]];[[re-firmware]] 网关先判定)
  • 不用:Legacy BIOS Option ROM / 非 EFI 传统固件(binwalk 走 [[re-fw-extract]])
  • 不用:只需整体解包看内容(先 [[re-fw-extract]] 初判,确认是 UEFI 结构再进本技能)
  • 注意:静态分析先行(大型固件原则);仿真 bootkit = 运行恶意代码,默认沙箱([[re-analyze/platform-tips]] 最高原则)

工具准备

所有工具先验证再使用。固件镜像解析/模块静态分析可免沙箱;OVMF 仿真(步骤 5)是动态执行,默认沙箱 + 网络隔离([[re-analyze/platform-tips]] 最高原则)。

UEFITool / UEFIExtract(固件解析主力)

  • Debian/Ubuntu: apt install uefitool uefitool-cli(官方包:GUI + CLI;CLI 含 UEFIExtract/UEFIFind)
  • Arch: AUR yay -S uefitool(或 uefitool-git;非官方仓库)
  • Fedora: 无官方包 → GitHub releases 的 Linux x64 二进制(https://github.com/LongSoft/UEFITool/releases)或源码构建(qmake + Qt6)
  • macOS: GitHub releases 的 universal macOS 二进制(同上页面)
  • Windows: GitHub releases 的 win64 二进制(或 choco install uefitool 如镜像可用)
  • 验证: uefiextract --help 输出用法;GUI uefitool 能打开固件镜像

Read the full file on GitHub · 174 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +39 lines · +28 tokens per session 47769bffb3ae
  2. 2mo ago Changed · +1 lines c56541029c92
  3. 2mo ago First seen · 134 lines · 51 tokens per session scan A c4f529ec37c0

Subscribe to this mod's changes

re-uefi is a skill published in the GitHub repository dslsdzc/rev-skills (275 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 79 tokens to every session and 4,604 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

re-uefi compared with skills from other repositories

re-uefi next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
re-uefidslsdzc/rev-skillsSkill2751mo agoApache-2.0A79Claude Code
analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-UpSkill43mo agoMITA95Claude Code, Codex
reverse-engineering-arm-binariesmeltedinhex/analyst-ai-packSkill254d agoApache-2.0A69Claude Code, Codex
analyzing-golang-malware-with-ghidramukul975/Anthropic-Cybersecurity-SkillsSkill37k3mo agoApache-2.0A95Claude Code
analyzing-golang-malware-with-ghidra26zl/cybersec-toolkitSkill114todayMITA95Claude Code
reverse-engineering-binaries-with-ghidrameltedinhex/analyst-ai-packSkill254d agoApache-2.0A80Claude Code, Codex
performing-iot-security-assessmentxalgorix/xalgorixSkill1.5kyesterdayApache-2.0C97Claude Code, Codex