Every device in this series so far attacks something from the outside: a telephone line, a radio channel, a Universal Serial Bus (USB) port, a badge reader. This part opens the case. Inside almost every router, smart meter, car module and hardware wallet there are connections that the factory used and the customer never sees: a serial console, a test port, a debug port, a memory chip that can be read on its own. The series opened by the map from the blue box to the Flipper Zero argued that hacking hardware appears wherever a protocol trusts its medium; on a circuit board, the medium is the copper itself, and the protocols were designed for engineers with the board on the bench. After reading, you can say what a universal asynchronous receiver-transmitter (), the Joint Test Action Group () port, Serial Wire Debug (), the Serial Peripheral Interface (SPI) and the Inter-Integrated Circuit (I2C) bus are for; read a serial settings line and a debug-header pin-out; decode a JTAG identification code by hand; explain in principle what power analysis and fault injection do; name the tools from their makers' own documentation; and judge the controls that manufacturers use to close these doors. The law on owning and using such tools is the subject of the next part, on owning hacking gear legally.

This is an explanation of interfaces, tools and defences, written from published standards, datasheets, vendors' documentation and peer-reviewed research. It does not give a procedure against any real product.

Why a circuit board has doors

Boards are hard to test. The testability primer that Texas Instruments (TI) published in 1997 explains that the time to develop a board test program grew from 3 to 6 months in the late 1970s to 12 to 24 months by 1987 to 1990, and that the lack of standards had left test circuits "implemented in an ad hoc and proprietary manner" (Texas Instruments, IEEE Std 1149.1 (JTAG) Testability Primer, SSYA002C, 1997, chapter 1). The industry's answer, as the same primer records, came "In 1985", when "an ad hoc group composed of key electronic manufacturers joined to form the Joint Test Action Group (JTAG)", a group that grew to "over 200 members around the world"; its solution, standardized by the Institute of Electrical and Electronics Engineers (), "became IEEE Std 1149.1-1990, IEEE Standard Test Access Port and Boundary-Scan Architecture", adopted "in February 1990" (same source).

The same logic produced the other doors. A serial console lets an engineer see a boot loader's messages before any network exists; a debug port lets a developer stop the processor, read memory and load ; a memory chip on a shared bus can be programmed at the factory. The European Telecommunications Standards Institute (ETSI) standard for consumer Internet of Things (IoT) security defines a debug interface as a "physical interface used by the manufacturer to communicate with the device during development or to perform triage of issues with the device and that is not used as part of the consumer-facing functionality", and gives as examples "Test points, UART, SWD, JTAG" (ETSI EN 303 645 V2.1.1, a European Standard (EN), June 2020, section 3.1).

Doors left open become a recognized weakness. The (CWE), maintained by the Corporation, lists "On-Chip Debug and Test Interface With Improper Access Control" as CWE-1191: "The chip does not implement or does not correctly perform access control to check whether users are authorized to access internal registers and test modes through the physical debug/test interface" (MITRE, CWE-1191). Joe Grand, the hardware engineer who built one of the tools in this part, opens his talk on it with the attacker's view: on-chip debug interfaces are "a well-known attack vector", used to "Extract program code or data", "Modify memory contents" and "Affect device operation on-the-fly" (Grand Idea Studio, JTAGulator: Assisted Discovery of On-Chip Debug Interfaces, slides revised 16 September 2018). Both sentences describe the same copper; the difference is who is holding the probe, and whether the owner agreed.

UART: the console that prints the boot log

A UART turns bytes into a timed stream of bits on one wire and back again. Texas Instruments' datasheet for the TL16C550D, a descendant of the classic personal computer (PC) serial chip, describes a part that performs "serial-to-parallel conversions on data received from a peripheral device or modem and parallel-to-serial conversion on data received from its CPU" (central processing unit), adds or removes "Start, Stop, and Parity" bits, and supports "5-, 6-, 7-, or 8-Bit Characters", "Even-, Odd-, or No-Parity Bit Generation" and one, one and a half or two stop bits (Texas Instruments, TL16C550D datasheet, SLLS597E, April 2004, revised December 2008). Nothing is negotiated: both ends must be set the same way beforehand, which is why, as the site's article on terminals, shells, TTYs and consoles puts it, a console showing garbage is usually a speed setting rather than a broken cable.

There is no clock wire. The receiver finds each character by its start bit and samples the following bits at the agreed rate. The datasheet's baud-rate generator divides a reference clock: "divisor = XIN frequency input ÷ (desired baud rate × 16)", and its table for a 1.8432 MHz crystal gives a divisor of 12 for 9,600 baud and 3 for 38,400 baud (TI, TL16C550D, Table 9). The same document states that "Bit 0 is the least significant bit. It is the first bit serially transmitted or received", and that the serial output is "set to the marking (high) level" after reset (same source); the bit-order consequences are worked through in the article on the least and most significant bit.

Voltage is the trap. A UART pin on a modern board swings between ground and the chip's supply, often 3.3 volts, while the RS-232 serial port of an old PC used much larger swings. The first , published in 2008, needed a separate transceiver chip that "converts 3.3volt serial output to +/-10volt RS232 signals compatible with a PC serial port" (Hackaday, How-to: The Bus Pirate, Universal Serial Interface, 19 November 2008). Modern adapters translate levels instead: the Tigard's level shifters work from "1.8 to 5.5v" (Tigard README), and the Bus Pirate 5's input and output pins from 1.2 to 5 volts (Bus Pirate documentation, hardware).

What a console offers depends entirely on what the manufacturer left enabled. U-Boot, the boot loader used in many embedded Linux devices, sets its default console speed in a single configuration line, default 115200 (U-Boot, drivers/serial/Kconfig). ETSI's example of a properly closed console says what an open one can give away: "A UART serial interface is disabled through the bootloader software on the device. No logon prompt and no interactive menu is available due to this disabling" (ETSI EN 303 645, provision 5.6-4, example 5).

Worked example: a UART settings line

Serial settings are usually written as a speed and three characters, such as 115200 8N1. Each field, with the document that defines it:

FieldCommon valueWhat it meansSource
Baud rate115,200 (U-Boot default); 9,600 (older equipment)Bits per second, set by a clock divisor of XIN ÷ (baud × 16)U-Boot Kconfig; TI TL16C550D
Data bits8Characters of 5, 6, 7 or 8 bits are possibleTI TL16C550D
ParityN (none)Even, odd or no parity bitSame
Stop bits1One, one and a half or twoSame
Bit orderLeast significant bit first"Bit 0 ... is the first bit serially transmitted"Same
Idle levelHigh (mark)Output set to the marking level after resetSame
WiringGround, TX, RXA UART header needs ground, transmit (TX) and receive (RX); flow-control lines are optionalTigard README, UART
Logic level1.8, 3.3 or 5 VMust match the target; RS-232 levels (about ±10 V) are differentHackaday, 2008; Tigard README

The arithmetic follows from the table. TI's datasheet counts a "typical character time" as "start bit, 8 data bits, stop bit", ten bits in all (TI, TL16C550D); at 115,200 bits per second that is 11,520 characters per second, and each bit lasts about 8.68 microseconds. With the classic 1.8432 MHz crystal, 1,843,200 ÷ (9,600 × 16) gives exactly 12, the divisor in TI's table; 1,843,200 ÷ (115,200 × 16) gives 1. A receiver set to the wrong speed samples in the wrong places and sees valid-looking but wrong characters, which is why mismatched settings produce garbage rather than silence.

JTAG and boundary scan: IEEE 1149.1

JTAG was invented to test the solder joints between chips, not to debug software. Every compliant chip, TI's primer explains, "has four additional pins": "two for control and one each for input and output serial test data" (TI, JTAG Testability Primer). XJTAG, a boundary-scan tool , lists the signals of the Test Access Port (TAP): TCK (Test Clock); TMS (Test Mode Select), "sampled at the rising edge of TCK to determine the next state"; TDI (Test Data In); TDO (Test Data Out), valid on the falling edge; and TRST (Test Reset), "an optional pin which, when available, can reset the TAP controller's state machine" (XJTAG, JTAG: A technical overview).

The TAP controller is a small state machine driven only by TCK and TMS. TI's primer notes that "only one steady state exists for the condition when TMS" is held high, and that the test logic is forced into the Test-Logic-Reset state "by driving TMS high and applying five or more TCKs" (TI, JTAG Testability Primer, chapter 3). From there, shifting bits through TDI and TDO either loads an instruction or reads and writes a data register.

Boundary scan is the original purpose. "All the signals between the device's core logic and the pins are intercepted by a serial scan path known as the Boundary Scan Register (BSR)", invisible in normal operation, which in test mode can "set and/or read values from the device pins" (XJTAG). The standard "defines nine test instructions. Of the nine instructions, three are required and six are optional"; the required ones are BYPASS, SAMPLE/PRELOAD and EXTEST, and an optional IDCODE instruction selects a 32-bit identification register (TI, JTAG Testability Primer). The identification code links a chip to its Boundary Scan Description Language (BSDL) file, which "contains details of the Boundary Scan configuration for the device" (XJTAG). The standard was last revised as IEEE 1149.1-2013, approved on 6 February 2013 and published on 13 May 2013; the IEEE Standards Association (IEEE SA) lists it as an "Inactive-Reserved Standard" (IEEE SA, IEEE 1149.1-2013).

Chip makers then reused the same four wires for on-chip debug, which is where the security story begins. Grand's slides spell out what the standard leaves to each vendor: JTAG protection is "Vendor/implementation specific", "Not part of the JTAG standard", and should "allow BYPASS, but prevent higher level function"; the examples he lists are code "Disabled in SW", "traces removed/components unpopulated", a "security fuse", a "password", "challenge/response" and "encrypted communications", each "Possibly exploited via brute force, timing, glitch, or silicon die attack" (Grand Idea Studio, JTAGulator slides).

Worked example: decoding a JTAG IDCODE

TI's primer gives the layout of the identification register: a version in bits 31 to 28, a part number in bits 27 to 12, a manufacturer identity in bits 11 to 1 and a fixed bit 0 set to 1; the manufacturer codes are assigned by the JEDEC Solid State Technology Association (JEDEC) and published in its list JEP106 (TI, JTAG Testability Primer, Figure 3-8). OpenOCD, the open-source on-chip debugger, extracts the same three fields with masks in its source code (OpenOCD, src/jtag/core.c), and its configuration for the STM32F1 microcontrollers of STMicroelectronics (ST) expects the JTAG identification code 0x3BA00477, citing ST's reference manual, and 0x1BA01477 when the same chip is reached over SWD (OpenOCD, tcl/target/stm32f1x.cfg).

BitsFieldValue in 0x3BA00477Meaning
31 to 28Version0x3Revision of the part
27 to 12Part number0xBA00Assigned by the manufacturer
11 to 1Manufacturer identity0x23BJEDEC JEP106 code
0Fixed1Always 1 in a valid IDCODE

The 11-bit manufacturer field has two parts. OpenOCD's helper splits it as manufacturer >> 7 for the bank, described as the "number of continuation codes", and manufacturer & 0x7f for "The 7-bit manufacturer ID (i.e. with parity stripped)" (OpenOCD, src/helper/jep106.h). For 0x23B, decimal 571, the bank is 571 ÷ 128 rounded down, 4, and the identifier is 571 − 512 = 59, or 0x3B. OpenOCD's copy of the JEDEC list, aligned to revision JEP106BP of September 2026, has the entry [4][0x3b - 1] = "ARM Ltd" (OpenOCD, src/helper/jep106.inc). The code identifies the -designed debug port inside an ST chip, not ST itself: the IDCODE answers "whose test logic is this?", which is all a scan tool needs to confirm that it has found a real TAP.

That last point explains how pin-finding tools work in principle. Grand's slides note that a chip's 32-bit device identifier sits in the data register after a TAP reset, that a TAP without one resets to BYPASS with bit 0 equal to 0, and that a scan can therefore reject any value that is all ones or whose bit 0 is not 1 (Grand Idea Studio, JTAGulator slides). OpenOCD applies the same sanity check when it reports "does not have valid IDCODE" (OpenOCD, src/jtag/core.c).

SWD: two wires for Arm

Arm's Serial Wire Debug keeps the debugging and drops the boundary scan. SEGGER, which makes the J-Link debug probes, describes it as replacing "the traditional 5-pin JTAG debug interface" with "a 2-pin interface with a clock (SWDCLK) and a single bi-directional data pin (SWDIO)", overlaid on the TMS and TCK pins of chips that support both, with an optional serial wire output (SWO) pin that streams trace output such as printf messages (SEGGER Knowledge Base, Target Interface SWD). OpenOCD's manual adds the limits: "SWD is debug-oriented, and does not support boundary scan testing", and it "uses fewer signal wires than JTAG" (OpenOCD User's Guide, 8.3.2 SWD Transport). Fewer pins make SWD attractive on small boards, and make its pads easy to miss on a circuit board.

SPI and I2C: where the firmware and secrets live

Not every attack needs the processor's cooperation. Firmware for routers, cameras and many other devices sits in a separate flash memory chip, usually on a Serial Peripheral Interface (SPI) bus, and small configuration memories, electrically erasable programmable read-only memories (EEPROMs), sit on I2C; the two buses differ even in the order they send bits, as the article on the least and most significant bit shows. The open-source flashrom utility, designed to write the firmware of mainboards (the basic input/output system, or BIOS, and its successors), network cards and other devices, lists support for "more than 627 flash chips" and for "30 USB devices" and many serial and parallel programmers (flashrom README). The Bus Pirate's documentation carries device pages for "W25QXXX NOR Flash Chips SPI" and the "AT24C256 EEPROM I2C" among others (Bus Pirate documentation), and the Tigard's SPI header "is designed specifically to match the pinout of most 8-pin SPI and I2C chips" (Tigard README). For a repairer or the device's owner, that is how a bricked board comes back; for an attacker with the device in hand, a readable flash chip is a copy of the firmware and of any secret stored in it unencrypted, which is why the defences described later encrypt flash contents and bind them to the chip.

Worked example: reading a debug-header pin-out

Debug connectors follow a handful of conventions. Four of them, as their own documentation gives them:

ConnectorPinsSignals in pin orderSource
Arm 20-pin JTAG (2.54 mm, Multi-ICE compatible)201 VTref, 2 not connected, 3 nTRST, 5 TDI, 7 TMS, 9 TCK, 11 RTCK, 13 TDO, 15 nRESET, 17 DBGRQ, 19 5 V supply; 4 to 20 even pins groundSEGGER, 20-pin J-Link connector
Arm 10-pin (1.27 mm)101 VTGT, 2 SWDIO or TMS, 3 GND, 4 SWDCLK or TCK, 5 GND, 6 TDO in JTAG mode, 7 key, 8 TDI in JTAG mode, 9 GND, 10 nSRSTTigard README, SWD
UART header (2.54 mm)4 (plus optional modem lines)1 VTGT, 2 ground, 3 TX, 4 RX; 5 to 9 RTS, CTS, DTR, DSR, DCDTigard README, UART
Bus Pirate 5 main connector (2.54 mm)101 VOUT/VREF (1 to 5 V, up to 300 mA), 2 to 9 IO0 to IO7, 10 GNDBus Pirate documentation, hardware

RTS, CTS, DTR, DSR and DCD are the classic modem-control lines, which TI's UART datasheet names request to send, clear to send, data terminal ready, data set ready and data detect (TI, TL16C550D); GND is ground, and VTGT or VTref is the target's reference voltage.

Three details in the table matter in practice. SEGGER describes pin 1, VTref, as the target reference voltage that the probe uses "to create the logic-level reference for the input comparators and to control the output logic levels to the target" (SEGGER, 20-pin J-Link connector): connecting it wrongly is how boards get damaged. In the 10-pin Cortex connector, the same physical pin 2 is SWDIO in one mode and TMS in the other, which is why the Tigard has a mode switch that "Combines DI and DO to create SWDIO" (Tigard README). And on production boards the header is often missing: the pads remain, or only test points, which is the problem the was built to solve.

The tools on the bench

The Bus Pirate

The Bus Pirate was published on Hackaday on 19 November 2008 by its designer, who signed as Ian: "A few years ago we built the first 'Bus Pirate', a universal bus interface that talks to most chips from a PC serial terminal", and the team had "cleaned up the code, documented the design, and released it here with specs, schematic, and source code" (Hackaday, 19 November 2008). That version spoke through the PC's serial port, ran on a PIC24FJ64GA002 microcontroller, and offered pins that "output 3.3volts, but are 5volt tolerant" (same source).

Dangerous Prototypes, the open-hardware group that took the design forward, described it as an open-source hacker multi-tool that talks to electronic stuff and gave its lineage: the v1a and v0a were serial-port prototypes; the v2go was the first Universal Serial Bus (USB) Bus Pirate, of which around 1,000 were sold to raise funds for Hack a Day; the v3a, v3b and v3.5 were available from October 2009 to June 2012; the v3.6, a minor update to v3, from June 2012; and a v4 was then in development (Dangerous Prototypes, Bus Pirate; inaccessible as of 17 November 2026). The same page stated the licences: Creative Commons (CC) public-domain dedications (CC-0) for the firmware and the printed circuit board (PCB) artwork, the boot loader under the General Public License (GPL), and the pinout, menu and command tables released into the public domain (same source).

The current generation was rebuilt around Raspberry Pi microcontrollers. The project announced on 18 January 2024 that "Bus Pirate 5 REV10 is ready!", a tool to "talk to chips over 1-Wire, I2C, SPI, UART, and more" and "Figure out how a chip works before writing a line of code" (Bus Pirate, 18 January 2024). An 8 August 2024 post introduced the Bus Pirate 5XL and Bus Pirate 6 after "Raspberry Pi just released a new chip: RP2350A/B" (Bus Pirate, 8 August 2024). The documentation, which describes the tool as "trusted by hackers since 2008", compares the two: the Bus Pirate 5 uses an "RP2040 dual core 125MHz" with 264 KB of random-access memory (RAM) and 8 programmable input/output (PIO) state machines, the Bus Pirate 6 an "RP2350 dual core 133MHz" with 512 KB and 12, and only the 6 has the "follow along logic analyzer" that shows bus activity live in sigrok's PulseView (Bus Pirate documentation, hardware). Both have eight buffered pins working "from 1.2-5volts", a programmable 1 to 5 volt supply with a current limit, a 240 by 320 pixel colour screen that labels the pins, and 1 Gbit of NAND-type flash memory that "Appears as a USB drive" (same source). The project's shop page lists distributors including DirtyPCBs, Blinkinlabs, Lab401 in the European Union, Adafruit and The Pi Hut (Bus Pirate, Get Bus Pirate, read 17 November 2026).

The documentation's own list of uses is the clearest summary of what the tool is: probe I2C, SPI, UART and 1-Wire "without writing code", read and write flash memory, EEPROMs, smart cards and the serial presence detect (SPD) chips of DDR5 memory modules, act as a logic analyser and low-speed oscilloscope, "Discover JTAG and SWD debug ports", and even "Glitch hack an Arduino" (Bus Pirate documentation, hardware).

The JTAGulator

The JTAGulator is Grand Idea Studio's answer to the missing header, a finder of on-chip debug (OCD) ports. Its page describes "an hardware tool that assists in identifying OCD interfaces from test points, vias, component pads, or connectors on a target device", with "Detection of JTAG/IEEE 1149.1, ARM SWD, and UART/asynchronous serial", "24 channels with input protection circuitry", an "Adjustable target I/O voltage for level translation: 1.4V to 3.3V" and direct connection to sigrok and OpenOCD (Grand Idea Studio, JTAGulator). "From 2013 to 2023, Parallax, Inc. was the official hardware manufacturer of the JTAGulator. As of July 2025, EXPLIoT is the official hardware manufacturer and project maintainer", and the design is distributed under a Creative Commons Attribution-ShareAlike 4.0 licence while the name and logo are registered trademarks (same source).

The slides that accompany it record its origins: goals to "Create an easy-to-use, open source tool to simplify the process" and to "Attract non-HW folks to HW hacking", inspiration from Hunz's JTAG Finder, the JTAGenum and RS232enum tools and the Defense Advanced Research Projects Agency (DARPA) Cyber Fast Track programme, a Parallax Propeller microcontroller at its core, a hardware document dated 19 April 2013, and a bill of materials totalling "$50.73" per unit (Grand Idea Studio, JTAGulator slides). Its method, as the slides describe it, is permutation: for each possible assignment of the candidate pins, reset the TAP, read the data register and keep only values that look like a valid IDCODE (same source). The same idea, applied to UART, looks for readable text at common speeds. It is slow, it can disturb a running board, and it only finds what the manufacturer left electrically reachable.

Logic analysers: Saleae and sigrok

A logic analyser records many digital lines at once and decodes what the bus said. Saleae, of South San Francisco, sells the best-known commercial line (Saleae, About); its product page records that "The first Logic was sold to Chip on June 3rd, 2008" (Saleae, Logic). On 17 November 2026 its comparison page listed the Logic 8 with 8 channels at 100 MS/s (million samples per second) digital and 10 MS/s analogue over USB 2.0, and the Logic Pro 8 and Logic Pro 16 at 500 MS/s digital and 50 MS/s analogue over USB 3.0, each channel usable as analogue, digital or both (Saleae, Compare Logic analyzers).

sigrok is the open-source counterpart: a software suite for "logic analyzers, oscilloscopes, multimeters, data loggers etc." from various vendors, made of the libsigrok and libsigrokdecode libraries, the PulseView viewer and command-line tools, which lets anyone "have a $10 logic analyzer for examining logic circuits", "make sense of digital signals with protocol decoders" and "write custom protocol decoders in " (sigrok, main page). Its decoder list showed "Number of currently supported protocol decoders: 131" on 17 November 2026 (sigrok, Protocol decoders). For an engineer, the analyser answers the question of what the board is actually doing; for a reviewer of a product's security, it shows whether secrets cross a bus in clear.

Multi-protocol adapters: GreatFET, Tigard and Shikra

Great Scott Gadgets, the open-source hardware company founded by Michael Ossmann (Great Scott Gadgets, About), whose radio tools are covered in the part on radio for hackers, calls its GreatFET One "a hardware hacker's best friend": an open design with "two USB ports, and 100 expansion pins" that offers "serial protocols including SPI, I2C, UART, and JTAG", logic analysis, analogue input and output and USB functions including Facedancer, extended by add-on boards it calls neighbours (Great Scott Gadgets, GreatFET One). The company presents it as "a next generation GoodFET", designed for automated assembly at lower cost while keeping a USB boot loader in read-only memory (same source). Brazil appears in that lineage: the badge Great Scott Gadgets made for the tenth anniversary of the Hackers to Hackers Conference () "in Brasil" in 2013 was an Arm Cortex-M3 board "intended as an experimental platform for development of a next-generation GoodFET" (Great Scott Gadgets, H2HC 2013 Badge).

The Tigard is "An FTDI FT2232H-based multi-protocol tool for hardware hacking", descended from an earlier design called TIMEP, with one port dedicated to UART and a second shared among SPI, I2C, JTAG and SWD, level shifters from 1.8 to 5.5 volts, a logic-analyser port and support from existing tools such as OpenOCD, flashrom and pyftdi; it is sold by SecuringHardware.com through Crowd Supply, Mouser and 1BitSquared, and published under the CC-BY-SA 4.0 licence (Tigard README). The Shikra, by Xipiter, is described by its shop page as a device that lets the user reach, over USB, a number of low-level data interfaces, JTAG, SPI, I2C, UART and general-purpose pins, developed by Xipiter as a single tool to replace several others; on 17 November 2026 an automated read of that page still showed it out of stock, with orders placed on or after 27 July 2020 to be fulfilled on restock (int3.cc, The Shikra; inaccessible as of 17 November 2026).

ChipWhisperer and side-channel analysis

Side-channel attacks read secrets from how a device behaves rather than from what it outputs. Paul Kocher's 1996 paper showed that "By carefully measuring the amount of time required to perform private key operations, attackers may be able to find fixed exponents, factor keys, and break other cryptosystems" (Kocher, Timing Attacks on Implementations of Diffie-Hellman, RSA, DSS, and Other Systems). Kocher, Joshua Jaffe and Benjamin Jun of Cryptography Research then introduced power analysis, which MITRE dates to 1998 (MITRE, CWE-1300, reference REF-1117): "actual computers and microchips leak information about the operations they process", and the paper examined "methods for analyzing power consumption measurements to find secret keys from tamper resistant devices" (Kocher, Jaffe and Jun, Differential Power Analysis). Their measurement set-up was a small resistor, "e.g., 50 ohm", in series with the power or ground line; Simple Power Analysis (SPA) reads operations directly from a trace, and Differential Power Analysis (DPA) uses statistics over many traces to find a key (same source). MITRE now lists the absence of countermeasures as CWE-1300, "Improper Protection of Physical Side Channels" (MITRE, CWE-1300); the part on radio for hackers tells how power analysis broke the KeeLoq garage and car remotes in 2008.

made such research affordable. Colin O'Flynn and Zhizhang (David) Chen presented it at COSADE 2014 as "a complete side channel analysis toolbox, inclusive of the analog capture hardware, target device, capture software, and analysis software", whose hardware "uses a synchronous capture method which greatly reduces the required sample rate" (Cryptology ePrint Archive, Paper 2014/204). NewAE Technology, the company built on it, describes itself as "a small Canadian company" whose flagship "started as part of our founder Colin O'Flynn's Ph.D. research", with products made in Nova Scotia, and records that "In 2022, NewAE Technology was acquired by lowRISC C.I.C." (NewAE, About). lowRISC's announcement of 2 June 2022 says NewAE was "Founded in 2014" and "built the first commercially supported open source toolchain for advanced hardware security evaluation, including side-channel analysis and fault injection" (PR Newswire, lowRISC acquires NewAE Technology, 2 June 2022).

The capture boards, in NewAE's words, are "the part of the hardware actually performing the side-channel attacks": they "measure power consumption, allowing you to recover an encryption key, or insert voltage glitches to cause mayhem on an embedded device" (ChipWhisperer documentation, Capture). The comparison page, read on 17 November 2026:

ModelAnalogue captureClock generationGlitchingStatus
ChipWhisperer-Husky12-bit, 200 MS/s; streaming above 20 MS/s10 to 350 MHzClock and voltageCurrent
ChipWhisperer-Husky-Plus12-bit, 250 MS/s10 to 350 MHzClock and voltageCurrent
ChipWhisperer-Lite (CW1173)10-bit, 105 MS/s5 to 200 MHzClock and voltageCurrent
ChipWhisperer-Nano8-bit, 20 MS/s, fixed 20 dB gain60 MHz divided by 2 to 16Voltage onlyLowest-cost, limited
ChipWhisperer-Pro (CW1200)Not in the tableNot in the tableNot in the tableDiscontinued, replaced by the Huskies

Source: ChipWhisperer documentation, Overview and Comparison, which also notes that "All capture devices can perform power analysis synchronous to the target's clock", helping "attacks succeed at much lower sampling frequencies than a conventional oscilloscope".

Fault injection

Fault injection makes a chip misbehave on purpose. The glossary entry on fault injection covers the software-reliability sense of the term; in hardware security, Espressif, a chip maker that faced it in the case listed as -2019-17391 in the Common Vulnerabilities and Exposures (CVE) list, defines it as "a technique for disrupting the behaviour of a hardware system by injecting faults via physical means, often by carefully timed voltage or clock fluctuations"; usually "the system will usually crash. However sometimes a carefully timed fault may cause the CPU or an internal hardware process to skip a particular instruction or corrupt the result of a particular operation", and "All electronic hardware is vulnerable to some types of physical fault injection, although the difficulty of inducing the fault varies" (Espressif, Security Advisory Concerning Fault Injection and eFuse Protections, CVE-2019-17391, 1 November 2019).

The idea is old in cryptography. The reference list of Kocher's power-analysis paper already cites Dan Boneh, Richard DeMillo and Richard Lipton, "On the Importance of Checking Cryptographic Protocols for Faults", EUROCRYPT '97, May 1997, and Eli Biham and , "Differential Fault Analysis of Secret Key Cryptosystems", CRYPTO '97, August 1997 (Kocher, Jaffe and Jun, Differential Power Analysis, references 4 and 5). Voltage glitching briefly starves or spikes the supply; clock glitching inserts a malformed clock edge; electromagnetic fault injection (EMFI) needs no electrical contact at all. NewAE's ChipSHOUTER, an EMFI tool, charges capacitors with low equivalent series resistance () "up to a configurable voltage", from 150 to 500 volts, and dumps the energy "through special inductors", which NewAE calls "Injection tips", an approach that suits "devices that are hardened against traditional voltage glitching" (NewAE, ChipSHOUTER). MITRE lists missing protection as CWE-1247, "Improper Protection Against Voltage and Clock Glitches": the device "does not contain or contains incorrectly implemented circuitry or sensors to detect and mitigate voltage and clock glitches" (MITRE, CWE-1247).

Cases on the record

Four cases show the pattern: a protection that relied on a setting, a fuse or a single check, and a physical attack that defeated it.

STM32F0 readout protection, 2017. Johannes Obermaier and Stefan Tatschner of Fraunhofer AISEC presented "the first investigation of the STM32 security concept", targeting the STM32F0 family, at the USENIX Workshop on Offensive Technologies (WOOT) in 2017 (Obermaier and Tatschner, Shedding too much Light on a Microcontroller's Firmware Protection, WOOT 2017). They described the three readout protection (RDP) levels: Level 0 "imposes no restrictions"; Level 1 "keeps the debug interface active but restricts access to flash memory"; Level 2 disables debug access "permanently" and "is irreversible". They found that a common configuration could be exploited "using our Cold-boot Stepping approach", that a design weakness let an attacker "downgrade the level of firmware protection", and that a race condition in the debug interface allowed direct extraction of protected firmware, "Each attack requires only low-priced equipment" (same source). Their explanation of why Level 1 persists in the field is itself a lesson: "companies dislike the idea of locking down their devices completely, since it impedes fixing buggy and failed devices", and some families lack Level 2 entirely (same source). They informed STMicroelectronics "using an adapted responsible disclosure approach" (same source).

Hardware wallets, 2018. At the 35th Chaos Communication Congress, on 27 December 2018, Thomas Roth, Dmitry Nedospasov and Josh Datko presented wallet.fail, attacks on the most popular cryptocurrency hardware wallets ranging "from breaking the proprietary bootloader protection, to breaking the web interfaces used to interact with wallets, up to physical attacks including glitching to bypass the security implemented in the IC of the wallet" (the integrated circuit) (media.ccc.de, wallet.fail, 35C3). Their classification of flaws is useful for any product team: firmware bugs can be patched; hardware misconfigurations sometimes; "Physical vulnerabilities" can "only be fixed in a future hardware revision"; and some attacks on the microcontrollers themselves require "new silicon to be fixed" (same source).

eFuses, 2019. Espressif's advisory of 1 November 2019 records that "An attacker who uses fault injection to physically disrupt the ESP32 CPU immediately after reset can corrupt eFuse bits when they are being read out", allowing "bypassing of read protection for Flash Encryption and Secure Boot keys stored in eFuse" (Espressif, Security Advisory, CVE-2019-17391). The timeline is in the same document: on 24 July 2019 the researcher known as LimitedResults "informed Espressif of a new vulnerability", and on 12 September provided "a proof of concept report". The response was new silicon, "The ESP32-D0WD-V3 chip has checks in ROM which prevent this attack", together with Secure Boot V2, which "does not require a read-protected Secure Boot key"; for chips already deployed, "there is no software mitigation for this issue" (same source). MITRE uses the case as an example of CWE-1247: "Lack of anti-glitch protections allows an attacker to launch a physical attack to bypass the secure boot and read protected eFuses" (MITRE, CWE-1247).

nRF52 APPROTECT, 2020. Nordic Semiconductor's APPROTECT is, in CNX Software's description of 15 June 2020, "a new security feature of nRF52 MCUs designed to enable readback protection and disable the debug interface"; LimitedResults used "a low-cost homemade voltage glitching system" to re-enable debug access, and Nordic, CNX reported, noted that "the nRF52-series of SoCs, like many standard microcontroller circuits, are not hardened against fault injection techniques" (CNX Software, 15 June 2020). Because it was a hardware issue, the same report says, "the only mitigations are to prevent physical access to the device, or detect and respond to product enclosure breach" (same source).

YearTargetDoorTechnique (in principle)Maker's response, as documented
2017STM32F0Readout protection Level 1Cold-boot stepping, downgrade, debug raceInformed by the researchers; Level 2 irreversible
2018Hardware walletsMicrocontroller protectionGlitching among other attacksSome flaws need new hardware or silicon
2019ESP32eFuse key read protectionVoltage fault after resetNew chip revision V3, Secure Boot V2, no fix for deployed chips
2020nRF52APPROTECT debug lockVoltage glitchPhysical-access controls; enclosure-breach detection

A fifth entry from MITRE's catalogue shows that timing matters too: CVE-2019-18827 is cited under CWE-1191 as a chain in which a "JTAG interface is not disabled" during boot ROM execution, "introducing a race condition" that allowed encryption keys to be extracted (MITRE, CWE-1191).

How manufacturers close the doors

Debug-port lockout. The simplest control disables the port. Obermaier and Tatschner show how STM32F0 parts encode it in option bytes: RDP 0xAA with its complement 0x55 means Level 0, 0xCC with 0x33 means Level 2, and "Any other combination" means Level 1 (Obermaier and Tatschner, WOOT 2017, Table 1), a design that fails safe towards protection when the bytes are corrupted but that their research showed could be pushed the other way. Espressif's documentation states that on the ESP32 the "JTAG interface stays disabled if any of the security features are enabled", and that it "can also be disabled in the absence of any other security features using eFuse API" (Espressif, ESP-IDF security overview, ESP32).

JTAG passwords and challenge-response. Where the port must stay usable for service, vendors put an authentication step in front of debug functions; Grand's list of protections includes a "password", "challenge/response" and "encrypted communications", none of them part of IEEE 1149.1 (Grand Idea Studio, JTAGulator slides).

Secure boot and encrypted flash. If firmware is signed and checked at every start, a modified image will not run; if flash is encrypted with a key held inside the chip, a copy of the memory is useless. Espressif's response to the 2019 attack moved to asymmetric signatures (Secure Boot V2) and recommended "per-device unique keys for Secure Boot and Flash Encryption", so that keys extracted from one chip "cannot be reused on other ESP32 chips" and "The physical fault injection attack must be repeated against each individual chip" (Espressif, Security Advisory, CVE-2019-17391). The general mechanism is in the glossary entry on secure boot.

Readout protection. Microcontrollers block reading their internal flash through the debug port; Obermaier and Tatschner's work shows why Level 1 settings that keep debug alive are weaker than an irreversible lock, and why product teams accept that trade-off for repairability (WOOT 2017).

Anti-glitch hardening. Chips can add sensors and redundant checks. Espressif's mitigation was "Additional checks were added in ROM code", developed after a May 2019 review with the security laboratory Riscure (Espressif, Security Advisory); CWE-1247's description names the target, circuitry or sensors "to detect and mitigate voltage and clock glitches" (MITRE, CWE-1247).

Tamper evidence and tamper response. For cryptographic modules, the United States (US) Federal Information Processing Standard () 140-2 of 25 May 2001, published by the National Institute of Standards and Technology (), sets graded physical security: Security Level 2 adds "tamper-evidence", such as "tamper-evident coatings or seals"; Level 3 adds circuitry that "zeroizes all plaintext CSPs", the critical security parameters (CSPs), when covers are opened; and Level 4 provides "a complete envelope of protection" and protection against "fluctuations outside of the module's normal operating ranges for voltage and temperature", the very excursions a glitch attack uses (NIST, FIPS PUB 140-2, Security Requirements for Cryptographic Modules, 25 May 2001, section 1). The standard is explicit that "Tamper detection and tamper response are not substitutes for tamper evidence" (same source).

Regulation now asks for closed doors. ETSI EN 303 645 states two provisions: 5.6-3, "Device hardware should not unnecessarily expose physical interfaces to attack", and 5.6-4, "Where a debug interface is physically accessible, it shall be disabled in software", which its conformance table makes mandatory whenever "a debug interface is physically accessible" (ETSI EN 303 645 V2.1.1, June 2020). The European Union (EU) Cyber Resilience Act, Regulation (EU) 2024/2847 of 23 October 2024, requires products with digital elements to "be designed, developed and produced to limit attack surfaces, including external interfaces", and applies from 11 December 2027, with its reporting obligations from 11 September 2026 (Regulation (EU) 2024/2847, Annex I and article 71). In Brazil, the (Anatel) issued its first act on the cybersecurity of telecommunications equipment, Ato 77, on 5 January 2021 (Teletime, 11 January 2021); the declaration that applicants for homologation sign lists, among other requirements, products "developed in observance of the principle of security by design" (our translation here and below), a check of "the integrity of the software/firmware during system start-up", and equipment "free of any test tool or backdoor used in the product's development processes and unnecessary to its usual operation" (Anatel, declaration of compliance with the cybersecurity requirements (in Portuguese), Ato 77/2021).

How product-security teams test their own devices

The same bench serves the defence. NewAE presents its business as helping engineers "learn the fundamentals, test your system, and understand the threats facing your embedded hardware security implementations", warning that "attackers can use power analysis to recover encryption keys from both hardware and software implementations" (NewAE, home page). A product team that owns its design can check, before shipping, whether the console prints a login prompt, whether the debug port answers with an IDCODE, whether readout protection is set at the level the threat model requires, whether flash contents are encrypted and bound to the chip, and whether a glitch at boot changes the outcome of a signature check. Each of those questions maps to a provision above: ETSI 5.6-4, the Cyber Resilience Act's attack-surface requirement, CWE-1191 and CWE-1247.

Vendors also give researchers devices with the doors opened deliberately. Apple's Security Research Device is "a specially fused iPhone that allows you to perform iOS security research without having to bypass its security features", with shell access, lent "as a 12-month renewable loan" during which "the device remains the property of Apple"; the programme lists Brazil among the eligible countries (Apple Security Research, Security Research Device Program). Coordinated disclosure completes the loop: Espressif's advisory publishes its timeline with the researcher (Espressif), and Anatel's Ato 77 asks suppliers to keep "Coordinated Vulnerability Disclosure processes" and a channel for reporting vulnerabilities (Anatel, Ato 77/2021 declaration); the article on bug bounties and vulnerability disclosure covers the practice.

Brazil runs one of the most public versions of the idea for a national device. The Tribunal Superior Eleitoral (TSE) held its Teste Público de Segurança (public security test) of the electronic voting systems from 1 to 5 December 2025 at its headquarters in Brasília, with external investigators "including technology specialists, academics and ethical hackers" executing test plans, and an evaluation committee that includes the Tribunal de Contas da União (TCU) (TCU, Elections 2026: TCU takes part in the electronic voting machine test (in Portuguese)). The Ministério Público Federal (MPF) reported "15 groups, made up of 27 investigators" simulating attacks, a committee that also includes the Ordem dos Advogados do Brasil, the Polícia Federal and the Sociedade Brasileira de Computação, and a Teste de Confirmação (confirmation test) in May 2026 in which investigators return to test the corrections (MPF, 4 December 2025). Convergência Digital counted 35 attack plans in that eighth edition and noted the 's research agreement with the TSE since 2021 (Convergência Digital, 5 December 2025). The sources read do not say which plans, if any, attacked the voting machine's hardware; the TSE's own pages refused automated reads.

What these tools cannot do

They need the device in hand. Espressif's advisory begins its risk statement with it: "This attack requires physical access to the device, and the time and resources to modify the device to apply fault injection" (Espressif). They find only what is electrically reachable: a JTAGulator scan finds a TAP whose pins reach the board, not one whose traces were removed or whose port was disabled by fuse (Grand Idea Studio, JTAGulator slides). An irreversible lock is exactly that: RDP Level 2 "cannot be downgraded" (Obermaier and Tatschner, WOOT 2017). Per-device keys turn a successful attack on one unit into an attack on one unit (Espressif). And glitching is statistical: most attempts crash the device, as Espressif notes, and success comes from repetition over many trials (same source).

What remains is the law. Owning a Bus Pirate or a ChipWhisperer is ordinary in most countries; using one against someone else's device is another matter, and the next part, on owning hacking gear legally, reads the statutes of Brazil, the United States, the European Union, the United Kingdom and Canada, including the research exemptions that cover work on one's own hardware.

What to remember

  • Debug and test interfaces exist for manufacturing and repair: UART consoles print boot logs; JTAG (IEEE 1149.1, from the 1985 Joint Test Action Group, standardized in February 1990) tests solder joints and was reused for on-chip debug; SWD is Arm's two-wire debug port; SPI and I2C carry firmware and configuration memories.
  • UART settings are never negotiated: 115200 8N1 means 115,200 bits per second, 8 data bits, no parity, 1 stop bit, least significant bit first; logic levels must match, and RS-232 levels differ.
  • A JTAG IDCODE has a version, a part number, an 11-bit JEDEC manufacturer code and bit 0 set to 1; 0x3BA00477 decodes to Arm's debug port, which is how scan tools recognize a real TAP.
  • The Bus Pirate (2008), the JTAGulator (2013), Saleae (first sale 2008) and sigrok analysers, GreatFET, the Tigard and the Shikra speak these interfaces; ChipWhisperer (2014) and ChipSHOUTER do power analysis and fault injection.
  • Documented attacks defeated STM32F0 readout protection (2017), hardware wallets (2018), ESP32 eFuse protection (2019) and nRF52 APPROTECT (2020); several needed new silicon to fix.
  • Defences: debug lockout and irreversible readout protection, authenticated debug, secure boot with per-device keys, encrypted flash, anti-glitch sensors, tamper evidence and response; ETSI EN 303 645 provision 5.6-4, the EU Cyber Resilience Act (from 11 December 2027) and Anatel's Ato 77 (2021) now ask for closed doors.

Sources