Skip to main content
SecurityAI reviewed Jul 21, 2026

SEC-SECURE-OTA

We earn commissions when you shop through the links below.

Ensure OTA updates are authenticated, integrity-checked, atomic, and safely recoverable, with regulatory considerations for software changes.

v1.0.0New

Unsigned, install at your own risk

Unverified

This skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.

Install this skill

No account required. Pick your tool, or use the command that detects it for you.

Run in your terminal. It detects your AI tool.

npx @skills-hub-ai/cli install meddev-skills-sec-secure-ota
Or get the file:
Browse all CLI commands →
Manual setup by platform

Claude Code

~/.claude/skills/meddev-skills-sec-secure-ota/SKILL.md

Setup guide →
0Save

Instructions

Secure Over-the-Air Updates

Purpose

Ensure OTA updates are authenticated, integrity-checked, atomic, and safely recoverable, with regulatory considerations for software changes.

When to Apply

  • Adding or modifying OTA/update mechanisms (WiFi/BLE/cellular/USB bootstrap).

Requirements (testable)

  1. Signed Packages: All update images are signed (ECDSA/Ed25519); verification before apply. Rationale: integrity/authenticity.
  2. Transport Security: Fetch updates over TLS 1.3 (or strong 1.2) with server auth; consider mTLS for device auth. Rationale: in-transit protection.
  3. Atomic Apply & Rollback: Use A/B or staging; ensure power loss-safe writes; rollback to known good on failure. Rationale: availability and safety.
  4. Version & Anti-Rollback: Enforce monotonic versioning; reject older/vulnerable images. Rationale: prevent downgrades.
  5. Manifest Validation: Validate length, hash, target slot, and compatibility before flashing. Rationale: prevent corruption/wrong target.
  6. Policy & Approvals: Apply update policy (who/when); log approvals where required; align with change control and regulatory submission needs. Rationale: compliance.
  7. Post-Update Verification: Self-test on first boot after update; revert if critical tests fail. Rationale: functional assurance.

Recommended Practices

  • Limit update window/bandwidth; throttle retries.
  • Use delta updates only if integrity is protected end-to-end.
  • Log update attempts/results with reasons; expose for service.
  • Coordinate with secure boot keys and rotation plan.

Patterns

Manifest structure (example):

// REQ-OTA-MAN-01; TEST-OTA-03
{
  "version": 12,
  "slot": "B",
  "len": 262144,
  "hash": "f3ab...",
  "sig": "3045...",
  "compat": "hw:rev2"
}

Apply flow (pseudo):

// REQ-OTA-APPLY-02; TEST-OTA-06
if (!verify_manifest(m) || !verify_sig(pkg, m->sig)) abort();
if (m->version <= current_version()) abort(); // anti-rollback
if (!write_slot(m->slot, pkg, m->len)) abort();
mark_pending(m->version, m->slot);
reboot();

Post-update self-test:

// REQ-OTA-VERIFY-03; TEST-OTA-09
if (!run_startup_tests()) {
    rollback();
    log_event("OTA_FAIL_SELFTEST");
}

Anti-Patterns (risks)

  • Unsigned updates or signature ignored on failure -> risk: code injection.
  • In-place single-slot updates without power-fail protection -> risk: bricking.
  • No anti-rollback -> risk: reintroducing known vulnerabilities.
  • Delta updates without end-to-end verification -> risk: patch tampering.
  • Missing post-update self-test -> risk: latent defects in field.

Verification Checklist

  • Updates signed and verified; failures abort safely.
  • Transport over TLS with server validation (and mTLS if required).
  • Atomic apply/rollback path implemented; power-fail safe.
  • Anti-rollback/version checks enforced.
  • Manifest validated (length/hash/slot/compatibility).
  • Update policy/approvals logged; change control followed.
  • Post-update self-test executes; rollback on failure; results logged.

Traceability

  • REQ-OTA-### to TEST-OTA-###; link to secure boot requirements and change control records.

References

  • NIST SP 800-193 (firmware resiliency).
  • FDA Cybersecurity Premarket Guidance (updates/patching).
  • MCU/vendor A/B or DFU application notes.

Changelog

  • 1.0.0 (2026-01-04): Initial secure OTA skill with signing, atomicity, anti-rollback, and post-update verification.

Audit History

  • 2026-01-04: Audit performed. Verified:
    • NIST SP 800-193 reference appropriate
    • A/B update patterns accurately described
    • Signature and manifest verification patterns technically sound
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

Browse all →
meddev-authenticationDefine secure user/device authentication, session management, and RBAC suitable for medical device risk profiles. Use when working on authentication in medical device software.0 installsmeddev-state-machinesDefine explicit, testable state machines with safe states, controlled transitions, and error handling suited to medical device safety classes. Use when working on state machines in medical device software.0 installsmeddev-change-controlDefine controlled change-request workflow for software: impact analysis, approvals, verification scope, and regulatory submission flags. Configuration identification and baselines are in DOC-SCM (IEC 62304 Clause 8.1, 8.3); approved implementation and re-verification align with 8.2. Use when working on change control in medical device software.0 installsCONN-USBImplement safe USB device connectivity: class selection, enumeration handling, data validation, electrical and safety considerations.0 installsmeddev-ai-ml-medical-device-softwareAddress machine learning inside the regulated product (not LLM coding assistants): Good Machine Learning Practice (GMLP), training/validation data integrity, Predetermined Change Control Plans (PCCP) where applicable, drift monitoring, and linking models to ISO 14971 and software lifecycle controls. Use when working on ai ml medical device software in medical device software.0 installsTEST-HILValidate software with real or representative hardware, sensors, actuators, and timing, to uncover integration and safety issues not visible in simulation.0 installs

More from Medical Device Skills

View source →

More Security skills

Browse category →

Frequently asked questions about SEC-SECURE-OTA

What does the SEC-SECURE-OTA skill do?

Ensure OTA updates are authenticated, integrity-checked, atomic, and safely recoverable, with regulatory considerations for software changes. 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 SEC-SECURE-OTA skill?

Run `npx @skills-hub-ai/cli install meddev-skills-sec-secure-ota` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/meddev-skills-sec-secure-ota/ 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 SEC-SECURE-OTA work with?

SEC-SECURE-OTA 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 SEC-SECURE-OTA 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 SEC-SECURE-OTA after installing it?

In Claude Code, type `/meddev-skills-sec-secure-ota` (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 SEC-SECURE-OTA 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.