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.
npx skills add dslsdzc/rev-skills --skill re-uefigit clone --depth 1 https://github.com/dslsdzc/rev-skillsWrote 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.
[](https://agentmods.dev/skills/dslsdzc/rev-skills/re-uefi)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once 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 |
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.
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输出用法;GUIuefitool能打开固件镜像
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.
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.
- 2mo ago Changed · +39 lines · +28 tokens per session 47769bffb3ae
- 2mo ago Changed · +1 lines c56541029c92
- 2mo ago First seen · 134 lines · 51 tokens per session scan A c4f529ec37c0
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.
re-uefi compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| re-uefidslsdzc/rev-skills | Skill | 275 | 1mo ago | Apache-2.0 | A | 79 | Claude Code |
| analyzing-golang-malware-with-ghidraYoungmaidainon/Agent-Level-Up | Skill | 4 | 3mo ago | MIT | A | 95 | Claude Code, Codex |
| reverse-engineering-arm-binariesmeltedinhex/analyst-ai-pack | Skill | 25 | 4d ago | Apache-2.0 | A | 69 | Claude Code, Codex |
| analyzing-golang-malware-with-ghidramukul975/Anthropic-Cybersecurity-Skills | Skill | 37k | 3mo ago | Apache-2.0 | A | 95 | Claude Code |
| analyzing-golang-malware-with-ghidra26zl/cybersec-toolkit | Skill | 114 | today | MIT | A | 95 | Claude Code |
| reverse-engineering-binaries-with-ghidrameltedinhex/analyst-ai-pack | Skill | 25 | 4d ago | Apache-2.0 | A | 80 | Claude Code, Codex |
| performing-iot-security-assessmentxalgorix/xalgorix | Skill | 1.5k | yesterday | Apache-2.0 | C | 97 | Claude Code, Codex |