Using Superpowers for Hardware Reverse Engineering

Joe Grand

BruCON 0x06 · Day 1

Overview

In this compelling BruCON talk, renowned hardware hacker Joe Grand unveils a suite of advanced techniques for hardware reverse engineering, likening them to "superpowers." Grand moves beyond conventional tools like soldering irons and oscilloscopes, introducing attendees to the transformative capabilities of lasers, sound waves (acoustic microscopy), and X-ray imaging for dissecting and understanding complex electronic devices. The research presented stems from a Cyber Fast Track project in the US, an initiative by hacker Mudge to fund innovative security research. Grand’s work emphasizes non-destructive and highly precise methods, providing invaluable insights for both offensive and defensive security practitioners aiming to uncover hidden functionalities, identify attack vectors, or analyze anti-tamper mechanisms in modern hardware.

Watch on YouTube

Visual summary for Using Superpowers for Hardware Reverse Engineering by Joe Grand
Visual summary for Using Superpowers for Hardware Reverse Engineering by Joe Grand

Key moments

  1. 0:00 Introduction to hardware reverse engineering and research
  2. 2:40 What is hardware reverse engineering? (Layer cake)
  3. 8:10 Laser superpower: Precision material removal for PCBs
  4. 20:00 Acoustic microscopy: Non-destructive imaging of internal defects
  5. 26:00 Acoustic microscopy: Finding hidden chips under epoxy
  6. 30:00 2D X-ray: Real-time inspection and anti-tamper analysis
  7. 38:40 Pac-Man Plus DRM: X-ray reveals hidden anti-tamper logic
  8. 42:40 3D X-ray (CT scan): Non-destructive full PCB layer extraction

Using Superpowers for Hardware Reverse Engineering

Speakers: Joe Grand, Hardware Hacker

Conference: BruCON

YouTube: https://www.youtube.com/watch?v=_UDlGnQz0B0

Overview

In this compelling BruCON talk, renowned hardware hacker Joe Grand unveils a suite of advanced techniques for hardware reverse engineering, likening them to "superpowers." Grand moves beyond conventional tools like soldering irons and oscilloscopes, introducing attendees to the transformative capabilities of lasers, sound waves (acoustic microscopy), and X-ray imaging for dissecting and understanding complex electronic devices. The research presented stems from a Cyber Fast Track project in the US, an initiative by hacker Mudge to fund innovative security research. Grand’s work emphasizes non-destructive and highly precise methods, providing invaluable insights for both offensive and defensive security practitioners aiming to uncover hidden functionalities, identify attack vectors, or analyze anti-tamper mechanisms in modern hardware.

This talk is particularly significant because it democratizes access to and understanding of industrial-grade analysis equipment, demonstrating their practical application in the security domain. By showcasing how these sophisticated technologies can reveal intricate details of printed circuit board (PCB) construction, internal component layouts, and even individual routing layers, Grand empowers the security community to tackle hardware challenges with unprecedented depth. The implications are far-reaching, enabling more thorough vulnerability assessments, intellectual property protection, and the development of more robust physical security measures against increasingly sophisticated adversaries.

Background

▶ Watch: Introduction to hardware reverse engineering and research (0:00)

Reverse engineering, at its core, is the art of "undesigning an existing system" to comprehend its original intent and functionality. While commonly applied to software and network protocols, hardware reverse engineering focuses on the physical components of electronic devices. The motivations are diverse: understanding how a device operates, identifying potential attack vectors like JTAG or UART interfaces, detecting hardware tampering or injected functionality, or pinpointing optimal locations for surreptitious modifications – a technique famously employed by government organizations like the NSA.

The process typically involves examining product internals, analyzing circuitry, tracing connections, and, at the deepest level, deconstructing individual PCB layers to reconstruct an electrical schematic. Grand illustrates PCB construction with the analogy of spekkoek, a Dutch-Indonesian layer cake, highlighting the alternating insulating layers (fiberglass epoxy weave) and conductive copper layers. A cross-section of a 16-layer board visually demonstrates this complexity, where thicker layers often indicate power or ground planes, offering initial clues about board function. Beyond copper and substrate, PCBs feature a silkscreen (or component legend) with white markings indicating part designators, connector labels (e.g., "debug connector," "serial port"), and manufacturer information, all valuable for reverse engineers. The solder mask, typically a green coating, protects most copper traces, requiring careful removal (e.g., scraping) to access specific lines for probing or modification. Standard hardware hacking tools, while fundamental, often fall short when dealing with highly integrated, multi-layer, or epoxy-encapsulated devices, necessitating the "superpowers" Grand introduces.

Key Findings

▶ Watch: Laser superpower: Precision material removal for PCBs (8:10)

Joe Grand's research highlights several key findings across three advanced technological domains, significantly expanding the toolkit for hardware reverse engineering:

  1. Lasers for Precision Material Removal: Grand demonstrated that UV-based and CO2 laser systems offer unparalleled precision for selectively removing material. This is crucial for tasks like ablating solder mask over specific pads (e.g., on an iPhone 4 connector) to enable probing or soldering, or even removing entire copper and substrate layers. While effective for delicate, localized operations, large-scale layer removal for "black box" analysis proved challenging due to issues like heat-induced delamination and the need for prior knowledge (Gerber data) for optimal results. The "Moon Patrol" board experiment showcased layer-by-layer deconstruction when provided with layout data.
  1. Acoustic Microscopy for Sub-Surface Imaging: Using ultrasound, acoustic microscopy (specifically Scanning Acoustic Microscopy - SAM) proved to be a powerful non-destructive technique. While it struggled with imaging the full internal layers of multi-layer PCBs (likened to "yelling into a pillow"), it excelled at detecting internal defects within components (e.g., air gaps, voids, cracked silicon dies) that X-ray might miss. Critically, SAM was highly effective at seeing through epoxy encapsulation, revealing hidden silicon dies and other components underneath, as demonstrated with a USB thumb drive and a PINpad.
  1. X-ray Imaging for Internal Structure Analysis:
  • 2D X-ray: This non-destructive method provides composite grayscale images of internal board structures. With real-time manipulation capabilities (adjusting beam strength, angle, contrast, zoom), it allows for general board inspection, identifying internal traces, and verifying solder joint quality in Ball Grid Array (BGA) packages. Grand showed how 2D X-ray could reveal complex anti-tamper mesh layers (e.g., in a VeriFone PINpad 1000SE) and identify components hidden under epoxy (e.g., Pac-Man Plus security module, modern PINpads). It also offers a non-destructive way to determine the number of PCB layers by angling the board and counting vias.
  • 3D X-ray (CT Scan): This was presented as the most groundbreaking technique. By acquiring numerous 2D X-ray images from different angles and applying advanced post-processing, it reconstructs a full 3D volumetric model of the target. This enables "slicing" through the board in the Z-plane, effectively extracting individual PCB layers non-destructively. Grand successfully demonstrated this on a 4-layer Emic 2 circuit board, with the extracted layers perfectly matching the original Gerber plots. This capability fundamentally changes the landscape for understanding complex multi-layer hardware designs.

Technical Deep Dive

▶ Watch: Acoustic microscopy: Finding hidden chips under epoxy (26:00)

The talk delves into the operational specifics and practical applications of each "superpower" technology:

Laser Systems

Grand utilized both ultraviolet (UV) and CO2 lasers typically found in industrial settings for precision material processing. The UV laser, ideal for thin layers, was employed for tasks like selectively ablating solder mask. This allowed for exposing specific copper pads on a complex board, such as an iPhone 4 connector, with extreme accuracy, making them accessible for probing or soldering. The CO2 laser, with its higher power, was used for removing substrate material.

The process for layer removal involved a two-step approach: first, using the UV laser to remove the top copper layer, then the CO2 laser to ablate the exposed substrate. While successful in revealing underlying traces and vias, this method proved highly delicate and time-consuming for "black box" scenarios. The "Moon Patrol" test board, a six-layer PCB, demonstrated the potential for full layer deconstruction, but this required providing the laser operator with the Gerber data (PCB layout files) in advance. This allowed for precise, controlled ablation of each layer, preventing damage to underlying features. However, attempts to rush the process by increasing laser power led to excessive heat generation and delamination, highlighting the destructive potential if not carefully controlled. The beam width and system control software are critical for ensuring no overlap and precise material removal.

Acoustic Microscopy (SAM)

Acoustic Microscopy operates on the principle of ultrasound, using high-frequency sound waves (e.g., 50 MHz to 400 MHz) to image internal structures. Unlike X-rays, which penetrate based on material density, ultrasound interacts with material interfaces and acoustic impedance. The target device is submerged in a coupling medium, typically deionized water, through which a transducer sends and receives sound waves. Two primary scanning methods are used:

  1. Through Scan: Measures sound waves that pass entirely through the object, captured by a receiver on the opposite side.
  2. Reflection Scan: Captures sound waves reflected off internal interfaces back to the transducer.

SAM is particularly adept at detecting air gaps, voids, and cracks within components (e.g., in capacitors or silicon dies within packages), which can lead to device failure. However, Grand found that for multi-layer PCBs (like his 4-layer Emic 2 board), the sound waves scatter and attenuate significantly, resulting in a "muffled response" and making full layer imaging impractical.

Where SAM truly shone was in analyzing epoxy encapsulation. X-rays often struggle to differentiate between epoxy and the components beneath if densities are similar. SAM, however, effectively images through the epoxy due to the distinct acoustic impedance difference between the epoxy and the embedded silicon die. This was dramatically demonstrated by revealing a hidden silicon die under epoxy in a generic USB thumb drive, which an X-ray operator initially believed to be empty. This capability is invaluable for reverse engineering anti-tamper measures that rely on opaque potting compounds.

X-ray Systems (2D and 3D)

The talk showcased the Nordson DAGE XD7500VR as an example of a high-end 2D X-ray inspection system. These machines allow for real-time manipulation of the X-ray beam (strength, angle), contrast, and zoom, which is crucial for detailed analysis.

2D X-ray

In 2D X-ray, X-rays are passed straight through the board, creating a composite shadow image. Its primary uses include:

  • General board inspection: Visualizing internal routing and component placement.
  • BGA solder joint inspection: Verifying proper connections and detecting shorts underneath Ball Grid Array packages, a common manufacturing quality control step.
  • Trace following: For simpler boards, or specific areas, X-ray can help identify where a trace from a BGA pin connects to an external test point or via, facilitating non-destructive probing. An example given was tracing a specific pin (A5) on a laser rangefinder's BGA device to a large via for probing.
  • Anti-tamper analysis: X-ray effectively penetrates opaque materials to reveal hidden components. Grand demonstrated this with a VeriFone PINpad 1000SE, where X-ray clearly showed a complex internal "maze" of traces forming an active anti-tamper mesh under a protective board. Another historical example was the Pac-Man Plus security module, where a veterinarian's pet X-ray machine revealed the Z80 microcontroller and logic devices under a thick epoxy block, enabling its eventual bypass. X-ray can also help determine the number of PCB layers by angling the board and counting the distinct copper layers visible within a via.

3D X-ray (CT Scan)

The pinnacle of X-ray analysis presented was 3D X-ray, akin to a medical CT scan. This technique involves acquiring hundreds (e.g., 360) of 2D X-ray images as the target object is rotated through a full 360 degrees (e.g., one image every six seconds at a 50-degree angle). These individual 2D projections are then computationally reconstructed into a 3D volumetric dataset using complex mathematical algorithms. Software like VG Studio (or open-source alternatives used in medical imaging) allows for interactive manipulation of this 3D model.

The most profound capability of 3D X-ray is its ability to generate virtual "slices" through the target object along the Z-axis. This allows a reverse engineer to literally scroll through the PCB, layer by layer, and visualize each individual copper layer as if it were isolated. Grand successfully demonstrated this on his 4-layer Emic 2 board, where the extracted X-ray "slices" perfectly matched the original Gerber plots for each layer. This provides a completely non-destructive method for obtaining the full internal routing of a multi-layer PCB, a task previously requiring destructive and often imprecise physical de-layering. While time-consuming (around 30 minutes for a small 2x1 inch area) and potentially requiring stitching for larger boards, it represents a monumental leap in hardware analysis capabilities. The use of a fiducial marker (e.g., a small solder ball) on the board aids the reconstruction software in aligning the multiple 2D images.

Demo / Proof of Concept

▶ Watch: 2D X-ray: Real-time inspection and anti-tamper analysis (30:00)

Joe Grand's talk itself served as a comprehensive demonstration, replete with visual examples and practical applications of each "superpower" technology.

For laser systems, he showed highly detailed images of an iPhone 4 board where a UV laser precisely ablated the solder mask from specific connector pads, making them accessible for modification. The most illustrative laser demo involved a custom six-layer "Moon Patrol" test board. While not a "black box" attack (Gerber data was provided), the sequence of images clearly showed the controlled removal of successive layers, revealing different features of the Moon Patrol graphic embedded within each copper layer. This visually reinforced the laser's ability to selectively remove material layer by layer.

The utility of acoustic microscopy was compellingly demonstrated with a USB thumb drive. An initial 2D X-ray image had failed to show any significant components under an epoxy blob, leading an X-ray operator to assume nothing was there. However, the acoustic microscopy scan clearly revealed a silicon die embedded within the epoxy, which Grand later verified through destructive physical deconstruction. This served as a powerful proof of concept for SAM's ability to penetrate opaque potting compounds.

2D X-ray demonstrations included a VeriFone PINpad 1000SE, where the X-ray images unveiled the intricate, maze-like conductive traces forming an anti-tamper mesh layer, a critical step in understanding and potentially bypassing the device's physical security. Historical context was provided with the Pac-Man Plus security module, showing how an early X-ray scan helped identify the Z80 and logic devices under epoxy, paving the way for its reverse engineering. The ability to follow traces from BGA packages to external points on a laser rangefinder board was also visually highlighted.

The most impactful demonstration was for 3D X-ray (CT Scan). Grand presented a video showing the X-ray machine rotating around an Emic 2 4-layer circuit board, taking numerous 2D images. The subsequent post-processed video then virtually "sliced" through the board, clearly revealing each of the four individual copper layers with their respective traces and components. Crucially, he provided side-by-side comparisons of these extracted X-ray layers with the original Gerber plots from the board's design, unequivocally proving the accuracy and effectiveness of the 3D X-ray in non-destructively reconstructing a multi-layer PCB's internal layout. This was a direct, irrefutable proof of concept for the technology's transformative potential in hardware reverse engineering.

Defensive Implications

▶ Watch: 3D X-ray (CT scan): Non-destructive full PCB layer extraction (42:40)

Joe Grand's talk presents profound defensive implications for hardware manufacturers, security architects, and reverse engineers. The capabilities demonstrated by lasers, acoustic microscopy, and especially 3D X-ray fundamentally alter the security posture of electronic devices.

Firstly, traditional anti-tamper mechanisms like epoxy encapsulation are shown to be significantly less effective against these advanced techniques. Acoustic microscopy can readily penetrate epoxy to reveal hidden silicon dies and component layouts, while 2D X-ray can identify components within potted modules. This means designers can no longer rely on simple physical obscurity or potting compounds alone to protect sensitive intellectual property or cryptographic keys. More sophisticated counter-measures, potentially involving X-ray opaque materials or active tamper-detection networks within the epoxy itself, may be necessary.

Secondly, the ability of 3D X-ray to non-destructively reconstruct individual PCB layers poses a direct challenge to security by obscurity. Complex multi-layer boards, once considered difficult to fully map without destructive techniques, can now be completely visualized. This means that internal routing, power planes, ground planes, and even subtle design choices are now transparent to a determined adversary. Designers must assume that their internal PCB layouts will be fully revealed. This necessitates a shift towards security-by-design principles, where the device remains secure even if its full internal architecture is known. This could involve, for example, designing sensitive circuits to be fault-tolerant to probing, using cryptographic techniques that are resilient to side-channel attacks even if physical access is gained, or employing active mesh layers that are genuinely difficult to bypass even when their layout is known.

Furthermore, the talk highlights the ease with which JTAG ports, UART interfaces, and other debug or test points can be located, even if hidden under BGA packages or solder mask, using techniques like 2D X-ray and precision laser ablation. Defenders must ensure these interfaces are properly disabled or secured in production devices, as their discovery can provide a direct gateway for exploitation.

Finally, the question raised by an audience member about protecting against 3D X-rays underscores a critical, emerging area for research. While no commercial off-the-shelf solutions exist, potential defensive measures could include using materials with specific X-ray absorption properties, significantly thicker copper or substrate layers, or multi-material composites designed to obfuscate internal structures in X-ray images. The talk serves as a clear warning: the "superpowers" of hardware reverse engineering are advancing rapidly, demanding a corresponding evolution in hardware security design.

Key Takeaways

  • Expanded Toolset: Joe Grand's talk introduces advanced "superpower" technologies—lasers, acoustic microscopy, and X-ray—that significantly augment traditional hardware reverse engineering tools.
  • Precision Material Removal: Lasers provide unparalleled accuracy for selective removal of solder mask or even circuit board layers, enabling precise access to specific traces or pads.
  • Epoxy Penetration: Acoustic microscopy excels at non-destructively imaging through opaque epoxy encapsulation, revealing hidden components like silicon dies that X-ray might miss.
  • Internal Visibility: 2D X-ray offers real-time inspection of internal PCB structures, facilitating trace following, BGA solder joint analysis, and identification of components under opaque materials or potting.
  • Full Layer Reconstruction: 3D X-ray (CT scan) is a transformative technique that non-destructively reconstructs individual layers of multi-layer PCBs, providing complete visibility into internal routing and design, a capability previously difficult to achieve.
  • Enhanced Adversary Capabilities: These advanced techniques empower adversaries with unprecedented capabilities to analyze, understand, and potentially exploit hardware, necessitating a re-evaluation of physical security and anti-tamper design strategies.

About the Speaker(s)

Joe Grand is an accomplished electronics expert and a self-described "hardware hacker." His deep passion for electronics and hardware hacking spans decades, influencing his groundbreaking research. Grand was notably involved as a child in The L0pht, a prominent hacker group. The research presented in this talk originated from a Cyber Fast Track project in the US, a program conceived by Mudge (another L0pht alumnus) to fund innovative security research. Grand has previously presented aspects of his work, including PCB deconstruction, at conferences like DEF CON. He operates through his company, grandideastudio.com, where further details of his research are often made available.

Reviews

→ Top-rated talks at BruCON 0x06

All talks from BruCON 0x06