Skip to main content
BuildUnlistedReviewed Oct 20, 2026

Meddev Secure Boot

v1.0.0New

Install this skill

No account required. Pick your tool, then copy.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install meddev-skills-meddev-secure-boot

What this does: Establish a root of trust and verify firmware integrity/authenticity from reset through handoff, including anti-rollback and recovery. Use when working on secure boot in medical device software.

Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/meddev-skills-meddev-secure-boot/SKILL.md

Setup guide →

Signing

Verified copySLSA L1
Signed by
skills-hub.ai verified copy of https://github.com/AminAlam/meddev-agent-skills
Method
Verified copy of the source repoPublished by a community repo, not by skills-hub.ai. We signed this exact version to vouch that its content matches what the repo published. Check it with `npx @skills-hub-ai/cli verify`.
Key
skills-hub-ed25519-2026-11
Signed
0Save

Instructions

Secure Boot Implementation

Purpose

Establish a root of trust and verify firmware integrity/authenticity from reset through handoff, including anti-rollback and recovery.

When to Apply

  • Bootloader design/updates; adding secure boot to devices; integrating OTA/update flows.

Requirements (testable)

  1. Root of Trust: Immutable boot ROM or fuse-backed root keys; verify first mutable stage signature. Rationale: trust anchor.
  2. Signature Verification: Verify each stage (bootloader, app) with strong signature (e.g., ECDSA P-256, Ed25519); reject on failure. Rationale: authenticity/integrity.
  3. Anti-Rollback: Enforce monotonic version/counter in secure storage; block rollback to vulnerable images. Rationale: prevent downgrade attacks.
  4. Measured Boot/Logs: Record hash/version of loaded image; store for audit; optionally attest. Rationale: traceability and attestation.
  5. Secure Updates Tie-in: Only install signed images; reuse verification path; fail-safe if verification fails. Rationale: consistent chain of trust.
  6. Key Protection: Store verification keys in secure hardware or read-only region; support key rotation with dual-key or certificate chain. Rationale: prevent key tampering.
  7. Recovery Path: Provide authenticated recovery image path; safe state if both primary/recovery invalid. Rationale: availability with integrity.

Recommended Practices

  • Use minimal bootloader; avoid network stacks in first stage.
  • Keep signature verification constant-time; validate manifest (lengths, addresses).
  • Separate signing keys (offline) from device-embedded verification keys.
  • Log boot result and reason codes for field diagnostics.

Patterns

Manifest verification (pseudo):

// REQ-SBOOT-VERIFY-01; TEST-SBOOT-04
bool verify_image(const manifest_t *m) {
    if (m->len > MAX_IMG || m->entry < FLASH_BASE) return false;
    uint8_t hash[32];
    sha256(image_region(m), m->len, hash);
    return ecdsa_verify(m->sig, m->sig_len, hash, root_pubkey);
}

Anti-rollback check:

// REQ-SBOOT-ROLL-02; TEST-SBOOT-06
if (m->version < stored_version()) {
    return false; // reject rollback
}

Boot log:

// REQ-SBOOT-LOG-03; TEST-SBOOT-08
boot_log_t log = { .version = m->version, .status = BOOT_OK };
log_boot(&log);

Anti-Patterns (risks)

  • Accepting unsigned or self-signed images -> risk: code injection.
  • Storing verification keys in writable flash without protection -> risk: key swap.
  • No anti-rollback -> risk: reintroducing known vulnerabilities.
  • Skipping length/region checks -> risk: overwrite/exec unintended memory.

Verification Checklist

  • Root key immutable or fuse-protected; first mutable stage verified.
  • Each stage signature verified with approved algorithms; failures halt/enter safe recovery.
  • Anti-rollback enforced with monotonic counter/version.
  • Boot measurements logged; available for diagnostics/attestation.
  • Update path uses same verification; unsigned images rejected.
  • Verification keys protected; rotation process defined and tested.
  • Recovery path authenticated; safe behavior if both images invalid.

Traceability

  • Requirements REQ-SBOOT-### linked to tests TEST-SBOOT-###; map to threat model controls.

References

  • NIST SP 800-193 (Platform Firmware Resiliency).
  • MCU vendor secure boot app notes.
  • FDA Cybersecurity Premarket Guidance (integrity of software).

Changelog

  • 1.0.0 (2026-01-04): Initial secure boot skill with root of trust, signature, anti-rollback, and recovery guidance.

Audit History

  • 2026-01-04: Audit performed. Verified:
    • NIST SP 800-193 (Platform Firmware Resiliency) correctly referenced
    • Signature algorithm recommendations (ECDSA P-256, Ed25519) are current
    • Anti-rollback mechanisms accurately described
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →

More from Medical Device Skills

View source →

More Build skills

Browse category →
senior-frontendShowcaseBuild and review React, Next.js, TypeScript or Tailwind frontends: components, scaffolding, performance and bundle size. Use whenever the user wants a new component or app, a page feels slow, the bundle is too big, or asks for a frontend…659 installsui-design-systemShowcaseUse when building a design system: tokens, component docs, responsive scales or developer handoff. Generates tokens with design_token_generator.py.562 installsfounder-consumerThe consumer panel. Spins up a swarm of buyer sub-agents (default 100, --quick for 20) trained on the user's target customer, each with a different income, age, buying behaviour and objection, shows every one the same pitch, and runs the…439 installsfrontend-designShowcaseGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.376 installssenior-backendShowcaseBuild and fix backend services: REST or GraphQL APIs, auth, microservices, PostgreSQL queries, migrations and load tests. Use whenever the user's API is slow or broken, needs login or auth added, a schema change, or a new endpoint or…270 installsself-improving-agentCurate what the agent has learned into durable project knowledge. Reviews Claude Code auto-memory (MEMORY.md and its topic files) for learnings worth keeping, promotes proven ones into CLAUDE.md or .claude/rules/, records a correction as a…188 installs

Frequently asked questions about meddev-secure-boot

What does the meddev-secure-boot skill do?

Establish a root of trust and verify firmware integrity/authenticity from reset through handoff, including anti-rollback and recovery. Use when working on secure boot in medical device software. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the meddev-secure-boot skill?

Run `npx @skills-hub-ai/cli install meddev-skills-meddev-secure-boot` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-meddev-secure-boot/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does meddev-secure-boot work with?

meddev-secure-boot runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the meddev-secure-boot skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use meddev-secure-boot after installing it?

In Claude Code, type `/meddev-skills-meddev-secure-boot` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the meddev-secure-boot skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.