Skip to content
Back to skills

Esp32 Fault Injection Power

ASecurity

Use when designing controlled power-interruption validation and recovery tests for ESP32 firmware and hardware.

  • 16 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 7, 2026
developmenttestingsecurity

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-fault-injection-power --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Esp32 Fault Injection Power?

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

Security grade badge for Esp32 Fault Injection Power
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/esmail-sarhadi-esp32-fault-injection-power/badge)](https://www.skillsdirectory.com/skills/esmail-sarhadi-esp32-fault-injection-power)

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-fault-injection-power
description: Use when designing controlled power-interruption validation and recovery tests for ESP32 firmware and hardware.
license: MIT
---

# Fault Injection Power

## Purpose
Design safe, repeatable power-interruption experiments for ESP32 products. This skill does not authorize unsafe mains work or uncontrolled interruption of hazardous equipment.

## Required context
- Exact ESP32 SoC/module, board revision, schematic and power tree.
- Supply ratings, protection, stored energy, load and test fixture.
- Firmware state machine, persistent data and OTA/update behavior.
- Current limits, isolation requirements and approved lab procedure.

## Procedure
1. Define the hypothesis and exact interruption point before testing.
2. Use a current-limited, isolated low-voltage bench setup appropriate to the board.
3. Protect personnel and equipment; never probe exposed mains or bypass protection.
4. Identify persistent writes, NVS commits, filesystem operations, OTA transitions and actuator states.
5. Add fixture-controlled power interruption with timestamps and repeatable trigger conditions.
6. Capture serial logs, reset reason, supply waveform and resulting persistent state.
7. Repeat each case and compare recovery against explicit acceptance criteria.
8. Record fixture revision, instrument calibration, firmware hash and limitations.

## Domain checklist
- Verify brownout/reset behavior and ensure brownout detection is not disabled.
- Never invent GPIO capabilities or claim unsupported board-level behavior.
- Never disable brownout detection to conceal a power integrity fault.
- Check atomicity and recovery of persistent writes and OTA state.
- Verify outputs return to a defined safe state after restart.
- Check repeated resets cannot corrupt configuration or create boot loops.
- Separate fixture/software evidence from production power-integrity validation.

## Safety and security
- Never conduct uncontrolled tests on mains-powered or hazardous equipment.
- Never defeat isolation, current limiting or protective interlocks.
- Never treat an ESP32 as a safety-rated controller.
- A successful build does not prove power-fail resilience.

## Validation matrix
| Level | Evidence | Limitation |
|---|---|---|
| Static | State and persistence review | Cannot prove physical interruption behavior |
| Host | Recovery/state-machine tests | Does not model real rail collapse |
| Build | Pinned SDK/toolchain build | Does not prove power integrity |
| Hardware | Controlled fixture, waveform, logs and repeated trials | Applies only to tested setup |

## Deliverable
Provide test matrix, safe setup, interruption points, measured waveform, firmware hash, pass/fail results and residual risks.

## References
- ESP-IDF programming guide: https://docs.espressif.com/projects/esp-idf/en/stable/
- Espressif technical documents: https://www.espressif.com/en/support/documents/technical-documents

Files in this skill

  • LICENSE.txt791 B
  • SKILL.md2.9 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 development →

Comments

Loading comments…

Newsletter

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