← Latest papers
💻 computer science

Voltage and Electromagnetic Fault Injectioin in TinyML: Attacks and Countermeasures

This paper demonstrates that TinyML models on constrained IoT devices are vulnerable to stealthy voltage and electromagnetic fault injection attacks that can degrade accuracy or force predictable outputs, and proposes Randomized Self-Reduction and majority voting as effective countermeasures to enhance their robustness.

Original authors: Srilalith Nampally, Anthony Etim, Aubtin Rasouli, Dustin Mazza, Tinghung Chiu, Ferhat Erata, Leyla Nazhandali, Jakub Szefer, Wenjie Xiong

Published 2026-08-31
📖 5 min read🧠 Deep dive

Original authors: Srilalith Nampally, Anthony Etim, Aubtin Rasouli, Dustin Mazza, Tinghung Chiu, Ferhat Erata, Leyla Nazhandali, Jakub Szefer, Wenjie Xiong

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where tiny computers, no larger than a coin, are embedded in everything from smart doorbells to medical sensors. These devices, known as microcontrollers, are the silent engines of the Internet of Things. They are designed to be small, cheap, and energy-efficient, often running sophisticated software that allows them to recognize a voice command, detect a falling person, or identify a specific sound in a noisy room. This capability comes from a field called Tiny Machine Learning, where complex mathematical models are shrunk down to fit into these limited devices. Because these computers are often placed in public spaces or remote locations, they are physically accessible to anyone who walks by. This accessibility creates a unique vulnerability: an attacker does not need to hack the software code remotely. Instead, they can simply touch the device and use a burst of electricity or a focused pulse of magnetism to confuse the computer's brain, causing it to make a mistake.

A team of researchers set out to understand exactly how easily these tiny, intelligent devices can be tricked. They focused on two specific ways to disturb a computer's thinking: voltage glitching and electromagnetic fault injection. Voltage glitching is like giving the device a sudden, tiny shock to its power supply, causing it to stumble for a fraction of a second. Electromagnetic fault injection is similar but uses a magnetic pulse to jolt the internal circuits without touching the power wires. The researchers wanted to know if these physical jolts could force a machine learning model to misidentify what it sees or hears, and if so, whether the attacker could control the mistake to make it happen in a specific way. They tested this on four different types of models running on two different kinds of microcontrollers, simulating real-world scenarios where a device might be left unattended.

The experiments revealed that these tiny computers are surprisingly fragile. When the researchers applied carefully timed voltage glitches, they found that they could induce errors that did not crash the device but instead caused it to output the wrong answer. In many cases, the device did not just guess randomly; it was steered toward a specific, predictable error. For instance, a model designed to recognize handwritten numbers could be forced to always say "zero" or "seven," regardless of what was actually written. This happened because the electrical disturbance flipped a single bit of data inside the computer's memory at the exact moment it was calculating a result. Since the models are so small and run so fast, a single flipped bit in the middle of a calculation can ripple through the rest of the process, leading to a final decision that is completely wrong. The researchers found that by adjusting the timing of the glitch down to the nanosecond, they could choose which mistake the device would make.

Electromagnetic attacks proved to be even more sensitive to the physical setup. The researchers used a probe to send magnetic pulses at different spots on the computer chip. They discovered that moving the probe by just a few millimeters changed the outcome entirely. In some positions, the pulse would cause the device to reset and reboot. In others, it would cause the device to freeze in a state where it kept giving the same wrong answer over and over again, even after the attack stopped. This "persistent corruption" was particularly dangerous because the device would not recover on its own; it would need to be manually restarted. The study showed that while voltage glitches were easier to reproduce, electromagnetic pulses could cause more severe, long-lasting damage if the attacker knew exactly where to aim.

The researchers also looked at how these attacks affected different types of models. They found that a compact image recognition model was the most vulnerable, with its accuracy dropping drastically when attacked. A model designed to detect wake words, like "Hey Siri," was also susceptible, often being tricked into thinking a random noise was the wake word. However, the researchers did not just identify the problem; they also proposed a solution. They developed a method called Randomized Self-Reduction, which essentially asks the computer to solve the same problem multiple times in slightly different ways and then compare the answers. If one of the calculations was corrupted by a fault, the other correct calculations would outvote it, allowing the device to recover the right answer. While this protection requires the device to do more work, the researchers showed it could be implemented without slowing the device down too much, offering a practical way to make these tiny computers more resilient against physical tampering.

This work highlights a critical gap in the security of modern technology. As we put more powerful artificial intelligence into smaller, cheaper devices, we must also consider that these devices can be physically manipulated. The study demonstrates that an attacker with physical access can reliably force a machine learning model to fail, and in some cases, force it to fail in a way that benefits the attacker. The findings suggest that simply making the software smarter is not enough; the hardware itself needs new layers of protection to ensure that these intelligent devices can be trusted in the real world.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →