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.
Unsigned, install at your own risk
UnverifiedThis 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-otaManual setup by platform
Claude Code
~/.claude/skills/meddev-skills-sec-secure-ota/SKILL.md
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)
- Signed Packages: All update images are signed (ECDSA/Ed25519); verification before apply. Rationale: integrity/authenticity.
- Transport Security: Fetch updates over TLS 1.3 (or strong 1.2) with server auth; consider mTLS for device auth. Rationale: in-transit protection.
- Atomic Apply & Rollback: Use A/B or staging; ensure power loss-safe writes; rollback to known good on failure. Rationale: availability and safety.
- Version & Anti-Rollback: Enforce monotonic versioning; reject older/vulnerable images. Rationale: prevent downgrades.
- Manifest Validation: Validate length, hash, target slot, and compatibility before flashing. Rationale: prevent corruption/wrong target.
- Policy & Approvals: Apply update policy (who/when); log approvals where required; align with change control and regulatory submission needs. Rationale: compliance.
- 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-###toTEST-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
Security
Reviews (0)
Related skills
Browse all →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.