Urgent.News

What's breaking now, across thousands of outlets.

Tech

Why I Built a $5 ESP32 Hardware Firewall to Stop Cyber-Physical Grid Attacks

`The Problem: Physics is Faster Than the CloudAs we rapidly deploy distributed high-voltage infrastructure—like public EV charging stations and autonomous drone landing pads—we are securing them exactly the wrong way. The industry standard relies on centralized cloud firewalls and heavy industrial controllers to authorize power delivery.But this creates a fatal vulnerability: Tight Coupling and…

Electric vehicle charging infrastructure and drone landing pads are being deployed rapidly, but current security measures are inadequate. Industry standards depend on centralized cloud firewalls and industrial controllers to authorize power delivery. This tight coupling between the network and physical devices creates a critical vulnerability.

A cyber-attack that breaches the central network can command remote chargers to draw maximum current within 50 milliseconds, potentially damaging transformers and Li-Po batteries instantly. Traditional cloud-based firewalls cannot respond quickly enough to protect such high-voltage systems.

The solution involves creating a hardware-based edge firewall using a low-cost ESP32 microcontroller. Unlike software firewalls, this device monitors the physical characteristics of the charging cable at the edge of the grid. By placing the security logic directly where the power and devices connect, the attack surface is minimized to virtually zero.

The ESP32 continuously samples the RMS current of the charging cable every 100 milliseconds using a sensor. It calculates the derivative of the current over time (dI/dt) to detect sudden changes that indicate an attack. If the rate of current change exceeds a safe threshold, the firewall triggers a relay that disconnects the power. This is done without any reliance on cloud services or software, making it impervious to network disruptions or software exploits.

Once an anomaly is detected, the ESP32 locks the system into a safe "halted" state by dropping the relay. This prevents rapid opening and closing of the contactor, which could otherwise destroy the relay. The system remains completely isolated from the power grid until a trusted human operator manually resets it. The circuit is designed to follow strict safety standards, ensuring that the 3.3V ESP32 logic is never exposed to the high-voltage AC mains.

The simplicity of this hardware solution eliminates many common cybersecurity vulnerabilities. With a minimal software footprint, the ESP32 becomes resistant to most attacks. It remains functional even if the local network is compromised or taken down by an adversary. This approach demonstrates that sometimes, the most effective security is achieved through straightforward hardware designs rather than complex software systems.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

MarkLogic discloses 31 flaws, five rated critical

Progress Software published 31 security flaws in its MarkLogic Server database on October 12, 2026. Five are rated critical, and three of those score 9.9 out of 10.

  • MarkLogic disclosed 31 vulnerabilities in its MarkLogic Server database on October 12, 2026
  • Five vulnerabilities rated critical, three with maximum severity of 9.9/10
  • Users on earlier patch versions (11.3.6, 12.0.3) remain vulnerable

More from Tuesday 13 October →