This blog post is dedicated to CS59200-FIA third lab — EMFI using a BBQ/cigarette lighter. The whole lab is inspired by the Fault Injection Lab from “The Hardware Hacking Handbook”. This post documents the whole setup process.
1. Get the Target Ready

Our target is Arduino Metro Mini (Adafruit part number 2590, https://www.adafruit.com/product/2590?srsltid=AY6E963RgIDm2cCm4YlZrMi1IjciWVm6Mfr4HJ4pQ2gF4zK8xf9llQvX). This board has an ATmega328P in a QFN package, which has the least amount of materials between the top of the chip surface and the die itself — in other words, EMFI friendly.
Download the code from the code repo: https://github.com/daveti/code/blob/main/cs592fia_arduino_metro_mini_emfi.ino
Program it using the Arduino IDE. Choose the board to be Arduino UNO. On my CachyOS, the serial port is /dev/ttyUSB0 after the board is connected. Make sure you have the rw permission for this serial port before you flash the code into the board. Once flashed, you can see the couting from the serial monitor within the IDE. The code should be straightforward to understand. Just read it, and run it.
2. Prepare the EMFI Tool
Since we are cheap, we will use a BBQ/cigarette lighter as our EMFI tool. Actually, we will use the piezoelectric ignitor within the lighter as the EMFI tool. So first thing’s first. Get your cigarette and lighter!

One common brand I find in most grocery stores is BiC. Above are the possible BiC lighters you can find, ranging from $1 to $5 each. Pay attention to the exact kind you need to buy. The green and the blue ones are flint lighters. Long story short, they do not have a piezoelectric ignitor inside. I used the pink one. I assume the light blue one should work too but never verify it myself.
Once you have your favorite lighter, we need to disassemble it to extract the piezoelectric ignitor. Do Google/ChatGPT/whatever you use the “Safety of disassembling a lighter”. Ideally, you should release the gas first. BiC has the bottom and the top methods to do this (Google!). Other brands might have their own way of doing this. Make sure you understand what gas you are dealing with and how it can become dangerous if not taken carefully. Nevertheless, I figured out that you can extract the ignitor without emptying the tank for that “PINK BiC” model, thanks to the design which separates and seals the gas in its tank.

Find a reasonable screwdrive and use it to loosen the metal part above. Hopefully, you will see the dent caused by the screwdrive. Once this whole metal part starts to loose, you can just pull it from the lighter, together with your piezoelectric ignitor:

This is the piezoelectrical ignitor I extracted from my BiC. The black head is the button you push to generate a spark, which is released at the tip of the black button, which is essentially a metal spring (coil!), as highlighted in the picture above. As you press down the button, besides the spark used to light the gas of hte lighter, it also generates a temporary high voltage. Together with the coil, you have your first EMFI tool ready to get fired!
3. Protect Your Mini
As mentioned earlier, your piezoelectric ignitor can generate a high voltage. For EMFI, you wanna get the spring (coil) as close as possible to the chip. But the high voltage might also kill the board. Here is our solution — isolation tapes.

The tape we are using is polyimide tape (Adafruit part numbner 3057). A common brand is Kapton. Once we have the tape, we will use it to wrap up the chip to isolate the potential high voltage in case the ignitor was too close and touched the chip and board. This what my Mini looks like with some tapes wrapping around the chip.

4. Protect Your Machine
To be safe, it is also good to use a USB isolator when connecting the Mini board with your own machine. The one I used was this from Amazon — DSD Tech Sh-G01A USB isolator.

The whole connection with the target board looks like this with my Trashcan:

5. EMFI
Put your piezoelectric ignitor close enough to the target board, while monitoring the counting from the Arduino IDE. Press the black button to generate the spark of love (aka, EMFI). With some patience and luck, this is what you will see:




