Logo van Auditing Secure Boot And Firmware Signing

Auditing Secure Boot And Firmware Signing

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

Controleer updater- en bootloadercode op een vertrouwensgrens rond firmware waardoor een niet-ondertekende of gedowngrade image kan worden geflasht of opgestart. Dit omvat een update-image die een flash-write of boot jump bereikt zonder handtekeningcontrole tussen ontvangst en vastlegging; een verificatieresultaat dat wordt genegeerd of omgekeerd; een integriteitshash die wordt aangezien voor een authenticiteitshandtekening; een handtekening die over de verkeerde of slechts gedeeltelijke bytes wordt gecontroleerd, of over een andere buffer dan degene die wordt vastgelegd; een verificatiesleutel in beschrijfbare opslag of geselecteerd via een veld in de image; en ontbrekende anti-rollbackbeveiliging, of een controle vóór de handtekeningverificatie waardoor een bekende kwetsbare versie opnieuw kan worden geflasht. Gebruik deze skill bij het beoordelen van code die een firmware-image ontvangt, verifieert, flasht of opstart. De ontvangen image is de bron, de flash-write of boot jump is het doel, en de kwetsbaarheid is dat een geverifieerde authenticiteitscontrole dit pad niet volledig afschermt.

Overzicht

UitgeverUnboundCompute
Repositorysecurity-agent-skills
Skillnaamauditing-secure-boot-and-firmware-signing
Sterren
27
Forks
8
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door UnboundCompute op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Auditing Secure Boot And Firmware Signing in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Auditing Secure Boot And Firmware Signing in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Auditing Secure Boot And Firmware Signing automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Auditing Secure Boot And Firmware Signing niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill Auditing Secure Boot And Firmware Signing?

Controleer updater- en bootloadercode op een vertrouwensgrens rond firmware waardoor een niet-ondertekende of gedowngrade image kan worden geflasht of opgestart. Dit omvat een update-image die een flash-write of boot jump bereikt zonder handtekeningcontrole tussen ontvangst en vastlegging; een verificatieresultaat dat wordt genegeerd of omgekeerd; een integriteitshash die wordt aangezien voor een authenticiteitshandtekening; een handtekening die over de verkeerde of slechts gedeeltelijke bytes wordt gecontroleerd, of over een andere buffer dan degene die wordt vastgelegd; een verificatiesle...

Waarom Auditing Secure Boot And Firmware Signing gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Auditing Secure Boot And Firmware Signing bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Auditing Secure Boot And Firmware Signing in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Auditing Secure Boot And Firmware Signing gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Auditing Secure Boot And Firmware Signing gebruiken?

Zoveel als je wilt. Je kunt Auditing Secure Boot And Firmware Signing gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Auditing Secure Boot And Firmware Signing gratis?

Ja. Deze skill is door UnboundCompute op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇