Логотип Auditing Secure Boot And Firmware Signing

Auditing Secure Boot And Firmware Signing

Організація
UnboundCompute
auditing-secure-boot-and-firmware-signing

Перевірте код оновлювача та завантажувача на наявність межі довіри прошивки, яка дає змогу записати у флеш-пам’ять або завантажити непідписаний чи понижений за версією образ. Сюди належать випадки, коли образ оновлення доходить до запису у флеш-пам’ять або переходу до завантаження без перевірки підпису між отриманням і фіксацією; результат перевірки ігнорується або інтерпретується навпаки; хеш цілісності помилково вважається підписом автентичності; підпис перевіряється для неправильних або неповних байтів чи іншого буфера, ніж той, який фіксується; ключ перевірки зберігається в доступному для запису сховищі або вибирається полем образу; а також відсутній захист від відкату або його перевіряють до підпису, тож повторно встановлюється відома вразлива версія. Використовуйте під час перевірки коду, який отримує, перевіряє, записує у флеш-пам’ять або завантажує образ прошивки. Отриманий образ є джерелом, запис у флеш-пам’ять або перехід до завантаження — ціллю, а помилка полягає в тому, що перевірка автентичності не гарантує безпечного проходження цього шляху.

Огляд

ВидавецьUnboundCompute
Репозиторійsecurity-agent-skills
Назва навичкиauditing-secure-boot-and-firmware-signing
Зірки
27
Форки
8
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: UnboundCompute. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Auditing Secure Boot And Firmware Signing у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Auditing Secure Boot And Firmware Signing в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Auditing Secure Boot And Firmware Signing, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Auditing Secure Boot And Firmware Signing не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ Auditing Secure Boot And Firmware Signing?

Перевірте код оновлювача та завантажувача на наявність межі довіри прошивки, яка дає змогу записати у флеш-пам’ять або завантажити непідписаний чи понижений за версією образ. Сюди належать випадки, коли образ оновлення доходить до запису у флеш-пам’ять або переходу до завантаження без перевірки підпису між отриманням і фіксацією; результат перевірки ігнорується або інтерпретується навпаки; хеш цілісності помилково вважається підписом автентичності; підпис перевіряється для неправильних або неповних байтів чи іншого буфера, ніж той, який фіксується; ключ перевірки зберігається в доступному д...

Навіщо використовувати Auditing Secure Boot And Firmware Signing у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Auditing Secure Boot And Firmware Signing — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Auditing Secure Boot And Firmware Signing у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/UnboundCompute/security-agent-skills/tree/main/skills/auditing-secure-boot-and-firmware-signing. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Auditing Secure Boot And Firmware Signing?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Auditing Secure Boot And Firmware Signing?

Зі скількома забажаєте. У TypingMind ви можете використовувати Auditing Secure Boot And Firmware Signing із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Auditing Secure Boot And Firmware Signing?

Так. На GitHub цю навичку публікує UnboundCompute за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇