Logo: Auditing Secure Boot And Firmware Signing

Auditing Secure Boot And Firmware Signing

Organisatioun
UnboundCompute
auditing-secure-boot-and-firmware-signing

Kontrolléiert den Updater- a Bootloader-Code op eng Firmware-Vertrauensgrenz, déi et erlaabt, en net ënnerschriwwent oder zréckgestuuft Bild ze flashen oder ze booten. Dozou gehéieren Update-Biller, déi ouni Ënnerschrëftkontroll tëscht Empfang a Commit zu engem Flash-Schreiwvirgang oder engem Boot-Sprong féieren; e Verifikatiounsresultat, dat ignoréiert oder ëmgedréint gëtt; en Integritéitshash, dee mat enger Authentifikatiounsënnerschrëft verwiesselt gëtt; eng Ënnerschrëft, déi iwwer déi falsch oder nëmmen deelweis Bytes oder iwwer en anere Buffer kontrolléiert gëtt wéi dee, deen iwwerholl gëtt; e Verifikatiounsschlëssel, deen an engem beschreiwbare Späicher läit oder iwwer e Feld am Bild ausgewielt gëtt; an eng fehlend Anti-Rollback-Kontroll oder eng Kontroll virun der Ënnerschrëftverifikatioun, soudatt eng bekannte vulnérabel Versioun nees installéiert gëtt. Benotzt dëse Skill, wann Dir Code iwwerpréift, deen e Firmware-Bild empfänkt, verifizéiert, flasht oder boot. Dat empfaangent Bild ass d'Quell, de Flash-Schreiwvirgang oder de Boot-Sprong ass d'Zil, an de Feeler ass, datt eng erfollegräich Authentizitéitsverifikatioun dëse Wee net blockéiert.

Iwwersiicht

EditeurUnboundCompute
Repositorysecurity-agent-skills
Skill-Nummauditing-secure-boot-and-firmware-signing
Stären
27
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    UnboundCompute huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Auditing Secure Boot And Firmware Signing an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/UnboundCompute/security-agent-skills.git /tmp/security-agent-skills
mkdir -p .claude/skills
cp -r /tmp/security-agent-skills/skills/auditing-secure-boot-and-firmware-signing .claude/skills/auditing-secure-boot-and-firmware-signing
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Auditing Secure Boot And Firmware Signing an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Auditing Secure Boot And Firmware Signing automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Auditing Secure Boot And Firmware Signing net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Auditing secure boot and firmware signing: does a verified signature gate every path to flash and boot

Firmware is the most durable place an attacker can land, and the whole defense is one property: an image is verified for authenticity before any code writes it to a boot slot or jumps to it. Auditing that property is a domination question, not a checklist. Trace the received image to every place it is committed, to flash or to the program counter, and ask whether a correct, enforced signature check stands on every path, over the exact bytes that reach the commit, against a key the attacker cannot influence. The common failures are all ways that check is absent, thrown away, checking the wrong thing, or checking the wrong bytes. You find them by reading the receipt-to-commit path, not by trusting that a function named verify verifies.

When to use

  • Code receives a firmware image over an update channel and writes it to flash or activates a boot slot.
  • A bootloader decides whether to execute an image at startup.
  • You want to know whether an unsigned, tampered, or downgraded image can be flashed or booted.

Scope check

Audit firmware trust boundaries only on devices and code you own or are authorized to assess, and flash crafted images only to hardware in scope. A confirmed secure-boot bypass is persistent code execution, so treat it accordingly and coordinate. If you can't name the authorization, stop.

The loop

  1. Map the receipt-to-commit paths. Find where an image arrives (an update channel, a port, a shared store) and every sink that commits it: a flash erase or write of a boot region, a call that marks a slot active or valid, and the branch to the image's entry point at boot. These sinks are what a verification must dominate, so enumerate them before judging any check.

  2. Check that verification exists and its result is enforced. On each path, a signature check must run between receipt and commit. The bug is a commit with no check, a result computed and then discarded, a result defaulted to success and only set to failure on one branch, or an inverted test. A verify whose outcome does not gate the flash or the boot is not a check.

  3. Check authenticity, the bytes, and the buffer. The check must verify an asymmetric signature, not a hash or checksum compared against a value carried in the image, which an attacker simply recomputes; a hash is integrity, not authenticity. It must cover the whole image, including the version and any rollback counter, not a header or a length-limited region. And it must verify the exact buffer that is committed, not one that is re-read or re-streamed between verification and flash.

  4. Check the trust anchor. The verification key must live in immutable storage, read-only or one-time-programmable memory, not in the same writable region an update can overwrite. It must be fixed, not selected by an index or field taken from the image, and not a key or certificate embedded in the image itself. A fallback to a test or development key, or to an unsigned path, is the same failure.

  5. Check anti-rollback. A monotonic version or counter must prevent re-flashing a known-vulnerable image, its value must be compared only after the signature is verified so the attacker does not control the compared field, and it must be stored where an attacker cannot reset it, in hardware-backed rather than ordinary writable storage. A rollback gate enforced by the updater but not the bootloader, or the reverse, is a split boundary.

  6. Confirm and record. Confirm by flashing or presenting a crafted image, unsigned, tampered after the verified region, signed by a foreign key, or an older signed version, and showing it is committed or booted. Kill the lead if a bootloader re-verifies the same bytes against an anchored key before every boot so a bad flashed image will not run, if the flagged embedded key is a public verification key rather than a secret, if the bypass path is compiled out of the production build or gated by hardware, or if a weak-looking version compare is backstopped by a hardware monotonic counter. Record the sink, the missing or bypassable check, and the image that reached it.

Where the firmware trust boundary leaks

  • A hash is integrity, not authenticity. Comparing the image against a digest it carries stops corruption, not an attacker, who recomputes the digest. Only an asymmetric signature authenticates.
  • A verified result thrown away is no result. The most common real finding is a verify that runs and whose return is ignored, defaulted true, or inverted; the check exists and protects nothing.
  • Verifying the wrong bytes or the wrong buffer is a bypass. A signature over the header only, or over a buffer that is re-read before flashing, leaves the committed bytes unauthenticated.
  • The key is the anchor; a movable anchor holds nothing. A key in writable flash, selected by the image, or embedded in it lets the attacker choose who signs.
  • Rollback checked before the signature trusts the attacker's number. The version must be authenticated before it is compared, and stored where it cannot be reset.

Worked example (a confirm and a kill)

Confirm. The updater computes a digest of the received image, compares it to a digest field in the image header, and on a match erases and writes the boot slot and reboots. There is no asymmetric signature anywhere on the path, so an attacker ships a malicious image together with its matching digest and it is flashed and booted. Confirmed integrity check mistaken for authenticity, critical, remediation = verify an asymmetric signature over the complete image against a key anchored in immutable storage before any flash, and fail closed on the result.

Kill. The updater has no verification, but the bootloader, before every jump, verifies an asymmetric signature over the whole image, including its version, against a key whose hash is held in one-time-programmable memory, and refuses to boot on failure or on a version below the stored monotonic counter; the key embedded in the tree is the public verification key. A flashed malicious or downgraded image does not boot. Killed, kill_reason = "boot-time re-verification of the committed bytes against an anchored key with a hardware rollback counter dominates the boot path; the embedded key is public, not a secret."

Rationalizations to reject

  • "The image is hashed, so it is verified." -> A hash proves it was not corrupted, not who made it. An attacker recomputes the hash. Authenticity needs a signature.
  • "Verification runs before the flash." -> Is its result enforced, over the whole image, on the exact buffer that is written? A verify whose outcome is ignored or whose bytes differ is decorative.
  • "The key is in the firmware, so it is protected." -> A key in writable flash is overwritable, and a key selected by the image is the attacker's choice. Only an immutable, fixed anchor holds.
  • "We block downgrades by checking the version." -> From the unverified header, before the signature? Then the attacker sets the version. Compare it only after authenticating it, from hardware-backed storage.
  • "There is a debug switch to skip verify, but it is off." -> Off in which build? If it compiles into production or is not hardware-gated, it is a bypass, not a convenience.

Executing this in practice

You need the receipt path and every flash and boot sink, the verification routine and exactly what bytes and buffer it covers and how its result is used, where the verification key is stored and how it is selected, and the rollback counter's storage and the order of its check against verification. For each sink, decide whether a verified authenticity check over the committed bytes dominates it. Reading the path tells you which checks exist; flashing or presenting a crafted image on hardware in scope tells you whether they hold.

Related

  • hunting-firmware-secrets-and-debug-interfaces - the companion firmware audit; an unauthenticated update path there plus a missing signature here is one trivial persistent-code-execution chain.
  • finding-crypto-misuse - the signature routine can itself be misused (weak algorithm, unchecked padding, wrong-length compare); that skill covers the primitive this one assumes is sound.
  • finding-fail-open-flaws - a verification result ignored, inverted, or defaulted to success is a fail-open control in the boot path; both hunt a check that does not stop what it should.
  • FINDING-SCHEMA.md - source = the received image, sink = the flash write or boot jump, evidence = the unsigned, tampered, or downgraded image that is committed or booted.

Heefeg gestallte Froen

Wat mécht de KI-Skill Auditing Secure Boot And Firmware Signing?

Kontrolléiert den Updater- a Bootloader-Code op eng Firmware-Vertrauensgrenz, déi et erlaabt, en net ënnerschriwwent oder zréckgestuuft Bild ze flashen oder ze booten. Dozou gehéieren Update-Biller, déi ouni Ënnerschrëftkontroll tëscht Empfang a Commit zu engem Flash-Schreiwvirgang oder engem Boot-Sprong féieren; e Verifikatiounsresultat, dat ignoréiert oder ëmgedréint gëtt; en Integritéitshash, dee mat enger Authentifikatiounsënnerschrëft verwiesselt gëtt; eng Ënnerschrëft, déi iwwer déi falsch oder nëmmen deelweis Bytes oder iwwer en anere Buffer kontrolléiert gëtt wéi dee, deen iwwerholl...

Firwat Auditing Secure Boot And Firmware Signing op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Auditing Secure Boot And Firmware Signing besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Auditing Secure Boot And Firmware Signing an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Auditing Secure Boot And Firmware Signing benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Auditing Secure Boot And Firmware Signing benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Auditing Secure Boot And Firmware Signing domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Auditing Secure Boot And Firmware Signing gratis?

Jo. UnboundCompute huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇