bios-flash-protection-audit

bios-flash-protection-audit is a skill for Claude Code from laurigates/claude-plugins. It costs 43 tokens per session (1,359 once invoked), scanned A, original, MIT.

A read-only audit of an Intel computer's SPI flash protection and Boot Guard, with a full firmware backup. SPI flash is the chip storing firmware; Boot Guard is Intel's check that can reject modified firmware at startup.

In plain words
What is it for?
Use it before patching firmware or attaching a programmer to inspect protection settings, check Boot Guard, and save the current flash contents.
Why use it?
It shows whether Linux can write the firmware, whether an external programmer is needed, whether a modified image could boot, and whether there is a backup for recovery.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the bios-plugin plugin — 7 skills shipped together

Good fit Use it before patching firmware or attaching a programmer to inspect protection settings, check Boot Guard, and save the current flash contents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/laurigates/claude-plugins/bios-flash-protection-audit
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 laurigates/claude-plugins --skill bios-flash-protection-audit
Clone the repo
git clone --depth 1 https://github.com/laurigates/claude-plugins

Made for: Claude Code.

Or install bios-plugin, the plugin that ships this one along with the rest of its 7 skills.

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 bios-flash-protection-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/laurigates/claude-plugins/bios-flash-protection-audit/github.svg)](https://agentmods.dev/skills/laurigates/claude-plugins/bios-flash-protection-audit)
Your own site
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/bios-flash-protection-audit"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/bios-flash-protection-audit/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 bios-flash-protection-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/laurigates/claude-plugins/bios-flash-protection-audit"><img src="https://agentmods.dev/badge/skills/laurigates/claude-plugins/bios-flash-protection-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,359 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00043 $0.01359
Opus 5.5 $0.00017 $0.00544
Sonnet 5.5 $0.00009 $0.00272
Haiku 4.5 $0.00004 $0.00136

Measured 13d ago against content hash 24f92f3eb581, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bios-flash-protection-audit scanned grade A with 1 finding 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 13d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/build-flashrom.sh, scripts/spi-protect.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

allowed-tools: Bash(sudo bash ${CLAUDE_SKILL_DIR}/scripts/spi-protect.sh *), Bash(bash ${CLAUDE_SKILL_DIR}/scripts/build-flashrom.sh *), Bash(sha256sum *), Bash(cmp *), Read, Grep, Glob

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

bios-plugin/skills/bios-flash-protection-audit/SKILL.md · 103 lines

How it starts

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

BIOS Flash Protection Audit (Intel PCH, read-only)

Before changing anything in the SPI flash (patching an EC image, a BIOS region, a setup default), find out three things from the running OS:

  1. Can the OS write the region at all, or is an external programmer needed?
  2. Does anything verify the image at boot (Intel Boot Guard)?
  3. Is there a verified full backup to restore from?

Everything here only reads: PCI config space, the SPI controller's registers and one MSR, then the flash contents.

When to Use This Skill

Use this skill when... Use something else when...
Deciding whether a firmware patch can be written from Linux Installing a vendor capsule: bios-plugin:bios-capsule-install
Taking a full SPI flash backup before risky work Writing the flash externally: bios-plugin:bios-external-programmer
Checking whether Boot Guard would reject a modified image Analysing the EC image inside the flash: bios-plugin:ec-firmware-analysis

Step 1: Read the protection registers

sudo bash "${CLAUDE_SKILL_DIR}/scripts/spi-protect.sh"

The script auto-detects the Intel SPI controller (vendor 8086, class 0c80); pass --dev BB:DD.F to override. The register offsets are those of the 100– to 400-series PCH. It was verified on Comet Lake LP; check the datasheet before trusting it on another generation.

How to read the output:

Field Meaning
BIOS_CNTL BIOSWE=0 BLE=1 SMM_BWP=1 BIOS-region writes only from SMM; the OS cannot enable them
HSFS FLOCKDN=1 Protected ranges and region access are locked until the next reset
PRn ... WP=1 That flash range is write-protected for every master, regardless of region access
FRAP / BIOS_master=rw What the host CPU may read/write per region (descriptor, BIOS, ME, …)
FREGn The region map: where the BIOS and ME regions sit in the chip
MSR_0x13A=0x0…0 No Boot Guard ACM ran: nothing verifies the BIOS region at boot

A target address inside any WP=1 range, with FLOCKDN=1, cannot be written from the OS. The only route is an external programmer on the chip. Reading is possible when the range has RP=0 and the region is readable (r).

Read the full file on GitHub · 103 lines

Files

What ships with it

2 files 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. 13d ago First seen · 103 lines · 43 tokens per session scan A 24f92f3eb581

Subscribe to this mod's changes

bios-flash-protection-audit is a skill published in the GitHub repository laurigates/claude-plugins (60 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,359 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-17.

Related

bios-flash-protection-audit compared with skills from other repositories

bios-flash-protection-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
bios-flash-protection-auditlaurigates/claude-pluginsSkill60yesterdayMITA43Claude Code
jetson-diagnosticNVIDIA/skillsSkill4.2k2d agoApache-2.0A30Claude Code, Codex
offensive-z-waveSnailSploit/Claude-RedSkill12k13d agoMITA113Claude Code, Codex
jtagprobeBrownFineSecurity/iothackbotSkill89611d agoMITA85Claude Code
triton-ascend-case-reduction-amin-atomicmindspore-ai/akgSkill269yesterdayApache-2.0A85Claude Code, Codex
flotherm-simsvd-ai-lab/sim-cliSkill256yesterdayApache-2.0A81Claude Code, Codex
remotebks-lab/open-bridgeSkill16todayMITA98Claude Code, Codex