Skip to content
Back to skills

Esp32 Secure Ota Production

ASecurity

Use when designing production OTA, signed firmware delivery, rollback, anti-rollback, secure boot, flash encryption or fleet rollout.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
ai-agentsrust

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add Esmail-sarhadi/esp32-agent-skills --skill esp32-secure-ota-production --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Esp32 Secure Ota Production?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Esp32 Secure Ota Production
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/esmail-sarhadi-esp32-secure-ota-production/badge)](https://www.skillsdirectory.com/skills/esmail-sarhadi-esp32-secure-ota-production)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: esp32-secure-ota-production
description: Use when designing production OTA, signed firmware delivery, rollback, anti-rollback, secure boot, flash encryption or fleet rollout.
license: MIT
---

# Secure Ota Production

OTA is a boot-chain and lifecycle feature, not just an HTTP download. A production update must authenticate the image, preserve a recoverable boot path and survive power loss at every write boundary.

## Image trust

Define the threat model: network attacker, compromised update server, physical access and downgrade attempts. Use supported Secure Boot and flash encryption according to platform lifecycle guidance; irreversible eFuse operations require explicit review. Authenticate firmware cryptographically before marking it bootable. A checksum detects corruption but does not authenticate the publisher.

## Partition and rollback design

Validate partition layout against actual flash size and bootloader requirements. Use A/B slots sized for the largest image plus growth. Define when a candidate image is marked valid; require health checks before confirmation. Configure rollback and anti-rollback deliberately because version counters and eFuse policy can make recovery impossible if mishandled.

## Transport and server

Use TLS with certificate validation and a trustworthy time/bootstrap strategy. Enforce image size, version, target chip, project identity and content type before writing. Authenticate devices and authorize update channels; browser-side checks are not device authentication. Support staged rollout, pause/abort, rate limits and per-device audit logs.

## Power-fail resilience

Test power removal during download, erase, write, verification, boot and confirmation. Keep the currently confirmed image intact until candidate verification completes. Avoid changing boot metadata before validation. Provide a factory recovery path matching the exact partition table and image type.

## Verification

| Fault | Required outcome |
|---|---|
| Truncated download | Candidate rejected; old image boots |
| Wrong chip/project image | Rejected before activation |
| Invalid signature | Rejected |
| Power loss during write | Recoverable boot path remains |
| New image crashes early | Rollback or recovery policy executes |
| Downgrade attempt | Policy enforced and logged |

## Agent rules

TLS alone does not make firmware updates trusted; image signatures are separate. Never assume factory image and OTA app image share a flash offset. Document key provisioning and irreversible eFuse steps. Require a tested recovery procedure before production rollout.

Files in this skill

  • LICENSE.txt823 B
  • SKILL.md2.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.