MCU reverse engineering

Microcontroller Unlock - MikaTech

Our values and goals

About MikaTech

Time went fast, from the day we did our first 8051 MCU reverse engineering project in 1998, to the day we set up our million dollar reverse engineering lab in 2012, 14 years went by. Now we start our new business of embedded visual system development, hope we can serve another 10 years.

sign Peter Lee Co-Founder & CEO

A Comprehensive Technical Analysis of Vulnerabilities in Secure Processors

Abstract

Modern digital security infrastructures spanning subscription television broadcasting, contactless electronic payment purses, automotive anti-theft systems, and mobile communication identity authentication overwhelmingly rely on the claimed tamper resistance of smartcard chips and dedicated cryptographic security processors. Tamper resistance is widely marketed as a hardware-enforced security boundary that prevents unauthorized parties from extracting embedded secret keys, reverse-engineering proprietary algorithms, and modifying pre-programmed access control logic. In this paper, we systematically categorize and demonstrate a broad spectrum of practical attacks targeting tamper-resistant embedded devices, including legacy classical exploits, newly discovered hardware glitching techniques, and physical penetration methods that remain obscure within mainstream cybersecurity research circles but are well-documented in professional semiconductor testing laboratories. We prove through empirical case studies and technical reasoning that unconditional trust in commercial-grade tamper resistance constitutes a critical engineering fallacy. Mass-market smartcards are routinely compromised by low-resource amateur attackers, and even flagship security processors certified by governmental signal intelligence agencies as the most secure commercial-grade chips available are susceptible to low-complexity protocol and hardware exploits. We conclude that secure system designers must conduct rigorous threat modeling, account for the realistic limits of hardware tamper protection, and adopt defense-in-depth strategies to mitigate the inherent vulnerabilities of embedded security hardware.

1. The Evolution and Limitations of Cryptographic Tamperproof Mechanisms

The concept of tamper protection for cryptographic materials predates modern electronic computing, originating from the need to safeguard manual encryption systems used in military and governmental communication networks. Early cryptographic defense strategies focused primarily on preventing the unauthorized recovery of plaintext key material after equipment or documents fell into adversarial possession. These primitive countermeasures relied heavily on physical obfuscation and self-destruction rather than automated technical enforcement.

Naval maritime communication systems implemented one of the earliest standardized tamper protection protocols. Printed code books used for fleet-wide message encryption were manufactured with weighted lead bindings. This simple physical design ensured that code books would sink rapidly if thrown overboard during ship capture, denying enemy forces the opportunity to recover and reuse the classified encryption tables [Kah67]. This method was effective in emergency scenarios but entirely dependent on the discipline and timely action of on-duty naval personnel.

Mechanical rotor encryption machines, widely deployed during the Second World War for diplomatic and military traffic, adopted a different anti-tampering strategy. Their daily rotor setting sheets, which defined the cryptographic key space for each operational day, were printed on water-soluble paper stock. If captured by enemy operatives or accessed by unauthorized internal staff, the documents could be instantly destroyed by contact with water, eliminating immediate key leakage risks.

The most aggressive early self-destruct mechanism was applied to one-time pad encryption materials, the gold standard for information-theoretically secure communication. Many vintage one-time pads were printed on cellulose nitrate substrate, a highly flammable material that undergoes rapid, complete combustion upon ignition. This design guaranteed that no residual readable key fragments would remain after deliberate incineration, eliminating forensic recovery possibilities entirely.

All these pre-electronic tamper protection systems shared a fundamental critical limitation: their effectiveness was fully contingent on human operator vigilance and prompt execution of destruction protocols. In surprise raids, ambushes, or rapid battlefield captures, operators frequently lacked sufficient time to trigger document disposal procedures. As a result, numerous legacy cryptographic systems were compromised through unplanned seizure of intact key materials, leading to catastrophic intelligence breaches throughout cryptographic history.

This historical vulnerability drove a paradigm shift in cryptographic equipment design during the late 20th century. Modern cryptographic hardware abandoned human-dependent tamper response workflows and adopted autonomous, technology-driven anti-tampering mechanisms that require no manual intervention. These embedded hardware safeguards react automatically to physical intrusion attempts, eliminating the human error factor that plagued older protection schemes.

A canonical example of this modern technical tamperproof design is the VISA Security Module (VSM), a dedicated cryptographic appliance ubiquitously deployed within commercial bank data centers worldwide. The primary function of the VSM is to generate, verify, and store personal identification number (PIN) data that customer use to authenticate transactions at automated teller machines (ATMs) and point-of-sale terminals [VSM86].

Architecturally, the VSM is constructed as a reinforced physical safe housing an embedded dedicated microcomputer responsible for executing all PIN-related cryptographic operations in isolation. The safe enclosure is fitted with mechanical lid contact switches linked directly to the internal memory power circuitry. The core anti-tampering logic is straightforward yet effective: any unauthorized opening of the safe lid triggers the switches, instantly cutting power to the volatile key storage memory and permanently erasing all resident cryptographic keys and PIN derivation data.

Beyond physical intrusion prevention, the VSM serves a critical institutional and forensic purpose for financial institutions. By isolating all PIN processing within a tamper-locked hardware boundary, banks can formally deny their internal programmers, system administrators, and data center staff any direct access to customer PIN values and the master keys that protect them. When customers dispute fraudulent ATM transactions, banks can therefore plausibly attribute liability to the end user rather than internal staff misconduct, establishing a legally defensible chain of custody for sensitive authentication data [And94].

Despite its widespread deployment, the evaluation framework for tamper resistance strength remains an underdeveloped domain within academic cybersecurity research. While cryptanalysis, network security, and software vulnerability research have mature rigorous evaluation methodologies, hardware tamper resistance lacks standardized testing metrics, threat benchmarking, and vulnerability disclosure conventions. This research gap has led to overconfidence among system designers and unrealistic security assumptions in commercial product requirements.

One of the few foundational publications addressing structured tamper resistance evaluation originates from IBM’s embedded security division, which proposed a widely adopted attacker classification taxonomy to standardize threat modeling for secure hardware [ADD+91]. This taxonomy remains the primary reference for embedded security engineers defining adversarial capabilities during device development.

1.1 IBM Adversary Taxonomy for Tamper Resistance Threat Modeling

The IBM framework partitions potential attackers against tamper-resistant hardware into three distinct capability classes, differentiated by technical knowledge, equipment access, funding resources, and team scale. This classification directly determines the required strength of anti-tampering countermeasures for any given embedded system.

Class I – Clever Outsiders: This group consists of independent hobbyists, university students, amateur hackers, and self-taught technical enthusiasts. They often possess high raw intellectual capability but lack deep proprietary knowledge of the target device’s internal firmware, circuit layout, and protection logic. Their laboratory equipment is limited to low-cost, commercially available tools sourced from consumer electronics stores, basic university teaching labs, and general-purpose test gear. Rather than designing novel physical intrusion methods, Class I attackers predominantly exploit pre-existing logical flaws, undocumented interface loopholes, and environmental sensitivity weaknesses inherent in target hardware.

Class II – Knowledgeable Insiders: This category includes professional embedded engineers, semiconductor test technicians, former vendor staff, and certified system integrators. They hold formal specialized technical education and years of hands-on experience with embedded security hardware. They possess partial or complete documentation of target system architectures and have physical access to most device subsystems during routine maintenance and deployment. Their toolset includes high-precision oscilloscopes, logic analyzers, microprobing stations, and chemical processing equipment unavailable to amateur actors.

Class III – Funded Organisations: This highest threat tier encompasses nation-state intelligence agencies, large criminal syndicates, defense research laboratories, and well-funded corporate competitive intelligence teams. These actors can assemble interdisciplinary teams of cryptographers, semiconductor physicists, firmware reverse engineers, and hardware penetration specialists backed by unlimited financial resources. They conduct full-layer device analysis, design custom tailored attack workflows, and deploy cutting-edge semiconductor processing tools. Class III organizations frequently subcontract Class II experts to execute specialized phases of complex hardware penetration campaigns.

Bob Morris established the most critical governing principle for tamper resistance assessment: the entire security posture of a device hinges on whether an adversary can obtain unsupervised, prolonged physical access to the hardware [Mor94]. This single factor overrides all other protection parameters in practical threat modeling.

If unsupervised access is strictly prohibited via continuous surveillance, relatively basic anti-tampering circuitry is sufficient to mitigate risk. The VISA Security Module exemplifies this scenario. Although its lid-switch protection logic can be permanently disabled by a trained service engineer during a scheduled maintenance visit, banks mitigate this risk by housing all VSM units within continuously monitored data center cages and conducting strict background checks and access logging for all maintenance personnel.

However, a rapidly expanding range of modern embedded applications inherently grants adversaries complete unsupervised access to target devices, often in large quantities. This threat scenario forms the central focus of our analysis. High-risk use cases include pay-TV conditional access smartcards, utility prepayment meter tokens, remote automotive keyless entry modules, and GSM subscriber identity module (SIM) cards [And95]. All these devices are distributed to end users physically outside the operator’s secure infrastructure with zero ongoing surveillance.

Many of these mass-distributed systems are already targeted by sustained, well-funded adversarial campaigns. Pay-TV piracy syndicates and utility fraud rings deploy dedicated engineering teams to reverse-engineer smartcard protections and develop mass-exploitable attack tools targeting consumer-grade secure hardware.

For the remainder of this paper, we adopt a realistic threat premise aligned with modern real-world conditions: all attackers, regardless of class, can acquire multiple physical samples of the target secure processor device for offline analysis and experimentation. We intentionally exclude printed circuit board (PCB)-level tampering attacks from our primary scope, despite documented financial losses from such exploits in prepaid electricity meter ecosystems [AB96]. Our core focus centers on chip-level physical and logical attacks designed to recover classified cryptographic key material stored within smartcards and monolithic security processors.

2. Technical Breakdown of Smartcard and Microcontroller Tampering Attacks

To understand vulnerability origins, we first outline the standard hardware architecture of a conventional contact-based smartcard, the most prevalent mass-market tamper-resistant device globally. A typical smartcard integrates a complete 8-bit embedded microprocessor core alongside three discrete memory types: read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and random-access memory (RAM). All components are fabricated on a single monolithic silicon die packaged within a rigid PVC plastic carrier. A gold-plated contact pad on the card surface provides serial bidirectional communication with external card reader terminals.

ROM stores immutable manufacturer firmware and bootloader code that cannot be altered after chip fabrication. RAM serves as volatile temporary runtime storage for program variables, stack data, and intermediate cryptographic calculation results. EEPROM is the critical security storage partition, designed to retain secret encryption keys, user authentication state, and access control policies persistently without continuous power supply.

The central hardware design dilemma for all EEPROM-based secure devices stems from the fundamental physics of floating-gate memory cells. Erasing the electrical charge trapped within a floating gate to reset a memory bit requires application of a relatively high programming voltage, typically ranging between 12V and 21V for legacy smartcard generations. This operational requirement creates an exploitable security boundary that early chip designers failed to fully anticipate.

First-generation smartcards received the required high programming voltage via a dedicated discrete contact pin on the card’s external interface. This simplistic hardware layout enabled one of the earliest and most widespread mass smartcard attacks targeting pay-TV broadcast access control systems. Early pay-TV smartcards were factory-enabled to decrypt all available broadcast channels by default. Subscriber channel restrictions were enforced remotely via over-the-air broadcast command signals that erased specific authorization flags stored in the card’s EEPROM memory.

Amateur attackers quickly discovered a trivial countermeasure to block these deactivation commands. By covering the dedicated programming voltage contact pin with insulating adhesive tape, subscribers physically prevented the card reader from delivering the high erase voltage required to modify EEPROM authorization bits. Other attackers installed clamping diodes across the contact pin circuit within set-top box decoders to suppress voltage spikes.

This simple physical modification rendered the remote channel deactivation signals completely ineffective. Subscribers could subsequently cancel their monthly pay-TV subscriptions with the service provider while retaining permanent access to all premium channels, generating massive revenue losses for broadcast operators throughout the 1990s.

This legacy vulnerability still impacts certain embedded card systems today, causing sporadic operational faults in public telephone prepaid card networks. Dirty, corroded, or mechanically bent programming voltage contacts on public phone card readers fail to deliver erase voltage pulses correctly, resulting in user card balances never decrementing after call usage. This unintended side effect demonstrates how fundamental hardware interface vulnerabilities persist across decades of device revisions.

Modern pay-TV smartcards have addressed the external pin vulnerability by integrating an on-chip voltage generation circuit. These devices use the standard 5V supply voltage from the card reader to synthesize the required 12V programming potential via an internal oscillator driving a diode-capacitor charge pump network. This design eliminates external voltage pins entirely, raising the barrier for basic insulating-tape attacks.

On-chip voltage generation does not eliminate the vulnerability; it merely increases attack complexity. The charge pump relies on large on-die storage capacitors to maintain the high programming voltage during erase operations. Attackers can locate these capacitor structures under a standard optical microscope and destroy them using precision laser ablation, ultrasonic micro-drilling, or focused ion beam (FIB) milling.

A chip with disabled charge pump circuitry permanently loses the ability to generate erase voltage internally. Researchers can then perform unlimited offline analysis of the modified device without risk of automatic EEPROM key erasure during probing and reverse-engineering experiments. This proves that integrated power solutions raise attack cost but never eliminate intrinsic tampering risks.

In the following sections, we systematically classify tampering attacks into non-invasive logical/environmental exploits, direct physical penetration methods, and advanced semiconductor laboratory techniques. We also quantify the approximate financial and technical cost of each attack class to contextualize feasibility for the three IBM adversary tiers.

2.1 Non-Invasive Environmental and Voltage-Glitching Attacks

Non-invasive attacks are defined as exploits that alter the device’s operating environment without physically damaging, depackaging, or modifying the silicon die or packaging material. These attacks manipulate supply voltage, clock frequency, operating temperature, and electrical transients to induce unintended memory behavior and instruction execution faults.

EEPROM write and erase operations exhibit extreme sensitivity to deviations from the manufacturer’s specified nominal operating voltage. This sensitivity creates reproducible exploit vectors for bypassing security lock bits without full memory erasure. The Microchip PIC16C84 8-bit microcontroller, a popular legacy embedded device, hosts a well-documented vulnerability of this type.

Attackers raise the core supply voltage (VCC) to precisely 0.5V below the official programming voltage (VPP) during repeated write attempts targeting the device’s global security lock bit. This subtle voltage offset distorts the floating-gate charge injection mechanism selectively for the security cell alone. The lock bit clears successfully under these conditions, while all remaining EEPROM user memory retains its stored data intact.

The Dallas Semiconductor DS5000 series security processor features a similar transient voltage vulnerability. A precisely timed brief voltage drop on the core power rail triggers the internal security lock release circuit without activating the parallel key-erasure logic. Attackers can therefore disable access restrictions while preserving all confidential cryptographic data stored in on-chip memory.

Hybrid memory microcontrollers such as the Intel 8752 present another environmental vulnerability. These devices support both internal on-chip ROM and external off-chip program memory, with hardware restrictions preventing runtime memory mode switching except during full device reset. Researchers exploit ultra-low supply voltage conditions to corrupt the memory mode detection logic, toggling between internal and external memory banks without triggering a system reset.

This low-voltage manipulation enables complete dumping of protected internal program memory that the manufacturer intended to be inaccessible to external interfaces. Low voltage interference also compromises embedded random number generators (RNGs), a critical component for cryptographic key derivation and nonce generation.

At least one commercial smartcard integrates an on-board analog RNG powered directly from the core supply rail. Reducing the input voltage by merely 3–5% pushes the analog noise source into a saturated state, causing the RNG to output a constant stream of binary 1 values. Predictable RNG output completely breaks cryptographic protocol security, as all derived keys and handshake nonces become deterministic and trivial to forecast.

To mitigate environmental exploits, modern security processors integrate dedicated monitoring sensors that trigger immediate system resets when voltage, temperature, or clock frequency operating parameters drift outside certified ranges. While theoretically effective, these sensors introduce inherent robustness tradeoffs that weaken real-world protection performance.

One generation of mainstream smartcard processors included a low-clock-frequency detection circuit designed specifically to prevent single-stepping attacks, where attackers step through firmware instruction cycles one at a time to trace secret execution flows. The sensor monitored the input clock signal and triggered a security reset if frequencies dropped below a predefined threshold.

However, clock frequency naturally fluctuates wildly during the power-on initialization phase as the card’s internal power regulation circuit stabilizes. These legitimate startup fluctuations triggered thousands of false positive security resets during normal daily operation. The false alarm rate became so disruptive that the card’s official operating system disabled the sensor entirely by default.

The clock monitor feature was relegated to optional use at the discretion of application-level firmware developers. Very few developers enable the sensor due to reliability concerns, and those who do face frequent customer complaints about card lockups and transaction failures. As a result, nearly all cards in this product line remain fully vulnerable to single-stepping analysis by Class I attackers.

Identical robustness constraints apply to under-voltage and over-voltage protection circuits in most commercial secure chips. Manufacturers intentionally design these sensors to ignore short-duration electrical transients to avoid false resets caused by normal power-line noise and contact bounce in card readers. This deliberate engineering compromise creates an exploitable window for attackers.

Precisely crafted fast voltage and clock transients can trigger security logic resets without activating the mass data erasure mechanisms. This allows adversaries to disable access protection while retaining all secret key material, and this exploit class is now widely documented within professional embedded hacking communities for dozens of popular processor models.

Beyond memory protection bypass, power and clock glitches can corrupt individual instruction decoding and execution within the CPU core. Every transistor and its interconnect wiring possesses intrinsic resistance and capacitance, forming parasitic RC delay elements that govern signal propagation timing across the die.

The processor’s maximum rated clock frequency is determined by the longest signal delay path across all internal logic gates. Similarly, every hardware flip-flop contains an extremely narrow sampling time window of only a few picoseconds, during which it samples its input voltage and updates its stored state.

This sampling window lies within the standardized setup-hold timing cycle defined in the device datasheet but is uniquely fixed for each individual chip at a given voltage and temperature combination. This physical uniqueness enables targeted glitch attacks tailored to specific device samples.

Attackers inject clock glitches (ultra-short clock pulses far briefer than the nominal cycle length) or power glitches (rapid nanosecond-scale supply voltage spikes/drops) to violate flip-flop timing constraints selectively. These perturbations affect only a subset of transistors on the die, corrupting instruction decoding logic locally.

By systematically varying glitch amplitude, duration, and timing offset relative to the program counter cycle, attackers can force the CPU to execute unintended, invalid machine instructions. These corrupted instructions may include opcodes not officially defined in the processor’s native microcode specification.

Although the exact outcome of any single glitch cannot be predicted in advance due to process variation, systematic brute-force searching is computationally trivial with basic automated test hardware. Attackers iterate through thousands of glitch parameter combinations per second until a desired behavioral change is observed.

A common target for glitch attacks is memory-dump subroutines embedded within security processor firmware. A typical bounded memory transmission loop is ubiquitous in smartcard runtime code, designed to transmit structured data over the serial interface under authorized conditions.

The loop initializes a pointer to a target memory address and a length counter, then iteratively transmits each byte over the serial port until the counter reaches zero. Attackers target two critical instructions in this loop: the conditional jump that terminates the loop when the counter reaches zero, and the decrement operation that reduces the counter after each byte transmission.

A perfectly timed glitch can alter the conditional jump logic to always continue looping regardless of the counter value, or disable the counter decrement operation entirely. Either modification forces the subroutine to stream the entire address space over the serial port, including protected EEPROM key data that was never intended for external access.

To conduct repeatable glitch searches, attackers must synchronize all input signals to the card with sub-nanosecond precision after each power-on reset. This ensures identical initial CPU state and signal timing across thousands of test iterations, enabling consistent observation of glitch-induced behavior changes.

Once a functional glitch parameter set is identified, it can be reused reliably on identical device samples to extract secret memory contents. Glitch attacks are not limited to memory dumps; they can also corrupt password verification branches, access rights validation logic, and cryptographic protocol response checks.

Corrupting a single comparison instruction during authentication can bypass multi-layered access control policies entirely. Software countermeasures against glitch attacks trace back to early unreliable computing hardware, where programmers avoided single-point failure conditional instructions.

A classic historical example comes from 1950s mainframe programming, where prudent programmers would verify bit-masking operations with secondary checks to prevent hardware error-induced security bypasses. Modern firmware developers can adopt redundant conditional checks and distributed key storage to mitigate single-glitch vulnerabilities.

Hardware-level glitch countermeasures include integrating fully independent internal clock generators that only phase-lock synchronize with external reference signals, isolating core CPU timing from external transient interference sources. This raises the complexity of clock-glitch attacks significantly for lower-tier adversaries.

2.2 Low-Cost Physical Depackaging and Microprobing Attacks

Physical attacks involve direct mechanical, chemical, or optical manipulation of the chip packaging and silicon die to gain direct access to internal hardware layers. Contrary to vendor marketing claims, physical penetration of modern smartcards requires minimal technical expertise and extremely low-cost materials accessible to Class I amateur attackers.

Older EPROM-based microcontrollers feature trivially defeatable security lock mechanisms. The security lock bit cell is physically isolated from the main memory array on the silicon die. Focused ultraviolet (UV) light directed through the chip’s transparent window erases only the lock cell without affecting the remaining program and data memory, enabling full code dumping with basic laboratory UV exposure equipment.

Current-generation EEPROM smartcards employ slightly more robust packaging but offer no fundamental barrier to physical access. Most vendors admit that their products include minimal anti-intrusion features because enterprise customers have never demanded sophisticated physical tamper resistance [Mae94]. Market competition prioritizes low unit cost over advanced hardware protection.

The limited protective features implemented in mass-market cards primarily include capacitive passivation layer sensors and optical intrusion detectors hidden under opaque outer coatings. Capacitive sensors monitor the continuous presence of the silicon nitride passivation layer covering the die surface [RE95]. Optical sensors detect changes in light intensity when the opaque card material is removed [AndA].

These detection sensors suffer the same reliability flaws as the clock-monitoring circuits discussed previously. Frequent false triggers during normal thermal expansion and mechanical bending cause card operating systems to disable the sensors by default in most production firmware builds. Even when enabled, the sensor layouts are easily identifiable via surface inspection and can be bypassed with simple conductive shielding layers.

To contextualize physical attack workflows, we detail the standard construction of a typical smartcard chip module. The core component is a 1 cm² thin plastic substrate with conductive contact plating on both planar surfaces. The outer surface forms the visible contact area that interfaces with card reader terminals during operation.

The silicon die is adhesively bonded to the inner hidden surface of the plastic substrate. Ultrathin gold or aluminum bonding wires connect die I/O pads to the substrate’s conductive contact traces. The entire inner assembly is then encapsulated within opaque epoxy resin to form a rigid chip module.

This finished module is finally laminated into the PVC card body, available in standard ISO credit card form factor, miniature dimensions for compact GSM SIM slots, or key-shaped formats for prepaid electricity and pay-TV access tokens.

Removing the epoxy encapsulation to expose the functional silicon die is a straightforward, low-cost procedure requiring no specialized semiconductor equipment. The attacker begins by using a sharp craft knife or miniature hand lathe to carve away the rear PVC card material until the hard epoxy encapsulant surrounding the chip is fully exposed.

Next, several drops of fuming nitric acid (concentration >98% HNO₃) are applied directly to the epoxy surface. The acid acts as a selective etchant that dissolves the hardened resin without damaging the underlying silicon die, metal interconnects, or gold bonding wires.

Heating the acid gently with an infrared radiator accelerates the chemical dissolution process, reducing processing time from minutes to seconds. Before the acid can over-etch and potentially damage delicate bonding wires, the card is agitated vigorously in an acetone bath to neutralize and remove dissolved epoxy residue.

This acid-etch and acetone-clean cycle is repeated between five and ten times until the entire silicon die surface is fully exposed with intact bonding wires. The depackaged chip remains fully electrically functional for probing and runtime analysis unless physical wire damage occurred during processing.

All chemical materials required for this procedure are legally obtainable from high school and undergraduate chemistry laboratories. The total cost of consumables and hand tools totals approximately 30 US dollars, as highlighted in Figure 1, which shows a fully functional depackaged smartcard processor prepared for microprobing experiments.

Practical testing with pay-TV and prepaid phone smartcards confirms that concentrated nitric acid has zero effect on stored EEPROM data. The chemical properties of the acid prevent charge leakage from floating-gate memory cells, ensuring all secret keys and firmware remain intact after depackaging.

Fuming nitric acid is a strong oxidizing agent requiring standard laboratory safety precautions, especially when paired with flammable acetone solvent. However, it does not react with silicon, silicon dioxide, silicon nitride, or gold materials used in chip fabrication. Aluminum metal layers on the die instantly form a protective native oxide layer that resists further acid corrosion.

Industrial semiconductor manufacturing routinely uses nitric acid for wafer surface cleaning, confirming its compatibility with raw silicon hardware. Commercial automated IC depackaging machines use HNO₃ vapor streams for high-volume resin removal, producing cleaner die surfaces but consuming far more acid than manual processing.

Professional analysis labs prefer manual acid depackaging for small sample batches due to lower cleanup overhead. All modern chips feature a protective silicon nitride or silicon oxide passivation layer deposited over the top metal layers to block environmental contamination and ion migration.

This passivation layer is impervious to nitric acid etching. Professional chip testers traditionally remove passivation via hydrogen fluoride dry etching, a process requiring specialized vacuum equipment inaccessible to most amateur hackers.

Nevertheless, dry etching is not the only path to passivation removal. Ultrasonic microprobing needles can locally punch through the passivation layer at precise contact points via high-frequency mechanical vibration. Laser dissection microscopes common in cellular biology labs also enable localized passivation ablation without full-die processing.

Professional security testing laboratories deploy arrays of up to nine synchronized microprobes to contact exposed bus lines during real-time chip operation, enabling full monitoring of address and data bus traffic during cryptographic algorithm execution [BVR95].

Electron beam testers, used to visualize internal node voltages with nanosecond timing resolution, also require passivation removal. The insulating passivation layer accumulates positive charge from secondary electron emissions during scanning, obscuring signal readings within seconds of observation.

Unexpectedly, experimental testing reveals that a thin residual layer of nitric acid and epoxy residue left intentionally on the die surface reduces charge accumulation due to weak conductive properties. This discovery provides a low-cost alternative passivation workaround for amateur electron beam probing without dry etching equipment.

2.3 Advanced Semiconductor Laboratory Attack Techniques

The non-invasive and basic physical attacks detailed above are fully executable by Class I amateur attackers with minimal funding and academic lab access. We now examine advanced techniques exclusive to professional semiconductor research facilities, of which several hundred operate globally across universities, defense labs, and corporate R&D centers.

Many university semiconductor labs host the same equipment used for professional hardware reverse engineering. Undergraduate research projects frequently grant Class I student attackers access to million-dollar professional tools, blurring the traditional boundary between amateur and professional adversarial capabilities.

A foundational layer reverse-engineering technique was developed at the University of Cambridge’s Cavendish Laboratory, detailed in a landmark 1993 publication [BFL+93]. The research team developed a controlled iterative etching process to remove chip metal and dielectric layers one at a time with precise thickness control.

A key innovation of this method uses the Schottky effect to distinguish N-type and P-type doped silicon regions invisible under standard electron microscopy. A thin gold or palladium film is deposited on the etched die surface, forming a Schottky diode junction whose contrast differentiates doping polarity in electron beam images.

Sequential layer images are imported into a PC-based image processing platform that de-noises fuzzy raw micrographs, converts them into clean vector polygon layouts, and automatically identifies standard logic cells, memory arrays, and routing structures.

The Cambridge system was validated by fully reverse-engineering the Intel 80386 microprocessor and various embedded controller chips. Complete reconstruction of the 80386 layout required two weeks of processing time and approximately six physical chip samples to resolve ambiguous layer features correctly.

The output dataset can be exported as manufacturing mask layouts, hierarchical circuit schematics, or standardized library cell netlists that exactly replicate the original chip’s logical functionality. This enables full firmware and hardware behavior simulation on external workstations.

Once a chip’s complete layout and cell functionality are mapped, IBM developed a non-invasive optical probing technique to monitor node voltages during live operation without removing passivation. A lithium niobate crystal is placed over the target transistor or bus line on the die surface.

Lithium niobate exhibits a refractive index that varies linearly with applied electric field. An ultraviolet laser beam passed at grazing incidence through the crystal measures these refractive changes to read the underlying silicon node potential in real time.

This optical probing technique achieves bandwidth up to 25 MHz with 5V signal sensitivity, enabling full monitoring of cryptographic register transfers and EEPROM data output during algorithm execution [Wie90]. Well-funded Class III laboratories routinely use this method to extract secret keys from chips with fully characterized layouts by targeting EEPROM output amplifiers and key register banks.

The security industry’s primary countermeasure against optical and microprobe attacks is conformeal glue packaging. These specialized coatings are opaque, electrically conductive, and mechanically robust. Any attempt to grind, etch, or ablate the coating induces mechanical stress that fractures the underlying silicon die, destroying key storage circuitry irreparably.

Conformeal materials are standardized in the FIPS 140 security certification framework [FIP94] and widely deployed in U.S. military secure hardware. However, these formulations are classified and not commercially available for mainstream consumer processor packaging.

Commercial designers implement alternative obfuscation tactics within the silicon layout itself to frustrate automated reverse engineering. Dummy transistor structures are fabricated that visually resemble functional MOSFETs but contain only a direct gate-source connection with no switching capability.

Modified logic gates such as three-input NOR gates are constructed to operate internally as two-input gates, creating misleading netlist information for automated analysis tools. These copy traps rely on buried isolation layer voids and ion implantation doping tricks invisible under basic microscopy.

Unfortunately for designers, the iterative layer etching and Schottky doping imaging techniques from the Cavendish Lab easily identify these deceptive structures, rendering layout obfuscation largely ineffective against professional analysis.

Increasing layout complexity and deploying proprietary nonstandard cell libraries represents another common obfuscation strategy. While this increases reverse-engineering time, functional chip operation imposes hard physical limits on complexity. Nonstandard cells can be decomposed into fundamental gate-level primitives and added to recognition software databases over time.

The most sophisticated government-grade tamper-resistant chip design is the U.S. Clipper chip, developed for national secure voice communication systems. The Clipper chip incorporated fusible link technology to embed classified cryptographic keys and algorithm logic after wafer fabrication.

The fusible links were constructed from amorphous silicon to complicate microscopic inspection and identification. The die surface was additionally populated with dummy oscillator circuits to disrupt electromagnetic side-channel analysis attacks targeting internal signal emanations.

Technical documentation for the fusible link system is publicly available in manufacturer data books [GW93]. Scanning electron micrographs confirm that targeted cross-section slicing of the die can recover fusible link state data with sufficient effort. Confirmed industry reports verify that at least one major U.S. chipmaker fully reverse-engineered the Clipper chip shortly after its public release.

Notably, the critical vulnerabilities that discredited the Clipper program originated from cryptographic protocol flaws rather than physical tampering or silicon-level exploits [Bla94]. This reinforces our broader thesis that logical and protocol weaknesses often pose greater risks than hardware intrusion vectors.

Backside infrared probing is another advanced non-destructive reverse-engineering technique declassified from Sandia National Laboratories. Silicon substrates are transparent to specific infrared wavelengths, allowing laser illumination through the rear of the die without depackaging the front-side passivation and metal layers.

Infrared laser stimulation generates photocurrents within active transistor junctions, enabling researchers to probe runtime logic states and trace signal paths across the entire chip from the substrate side [Ajl95]. This method avoids all front-side anti-probe coatings and sensors entirely.

All techniques discussed thus far are passive, focused on observing existing chip behavior without modifying hardware structure. Active attacks that physically alter the target device represent an even more powerful, underexplored threat category for secure processors.

Active adversaries can modify circuit routing, disable protection logic, and create direct access pathways to protected memory, achieving far more reliable key extraction than passive observation alone. This asymmetry mirrors the advantage active attackers hold over passive adversaries in cryptographic protocol breaking.

Focused Ion Beam (FIB) workstations are the primary tool for active chip modification. These industrial systems use precision gallium ion beams to cut metal interconnect tracks, deposit new conductive routing layers, etch isolation trenches, and implant doping ions to alter transistor threshold voltages.

FIB systems can also drill vertical vias through dielectric layers to contact buried conductive structures in the lowest metal layers of complex modern chips. While full-capability FIB machines cost several million US dollars, low-budget attackers can rent hourly access time from semiconductor service companies for targeted modifications.

FIB-enabled attacks simplify smartcard compromise drastically compared to passive methods. A typical exploit involves cutting the CPU core’s data and address bus connections to all peripheral modules except the EEPROM memory array.

The attacker leaves only the program counter logic connected to the bus, forcing the chip to sequentially iterate through all memory addresses when clocked normally. A single microprobe needle placed on the isolated data bus can then read the entire EEPROM key storage region without complex multi-probe alignment.

This modified device produces a complete static memory dump rather than a complex execution trace, drastically reducing post-processing analysis effort. It also eliminates the mechanical challenge of maintaining simultaneous alignment of multiple probes on sub-micron-width bus lines.

Collectively, these advanced techniques prove a definitive engineering conclusion: no silicon chip design or stored secret data can remain concealed from a capable, motivated adversary with professional resources. Tamper resistance can only add cost and delay to attacks, never provide absolute protection.

2.4 Lessons from Nuclear Weapons: State-of-the-Art High-Assurance Protection

To identify the upper boundary of achievable tamper resistance against Class III adversaries, we analyze protection systems engineered for nuclear weapons, the highest-assurance secure devices ever constructed. Billions of dollars have been invested to defeat funded state-level attackers targeting nuclear armament control systems.

The threat model for nuclear security explicitly defines opponents as Class III: rogue nation states deploying terrorist commando teams in collusion with compromised insider military personnel. This represents the most pessimistic adversarial scenario possible for embedded security design.

Modern nuclear tamper protection philosophy evolved directly from lessons learned during the 1962 Cuban Missile Crisis. Military planners identified two critical existential risks driving hardware security redesign after the crisis concluded.

First, local field commanders operating under extreme battlefield pressure might initiate unauthorized nuclear launches if they perceived national command authorities were unaware of theater-level threat severity. Second, U.S. nuclear weapons deployed on allied foreign soil risked seizure and independent use by host governments during geopolitical tensions.

Three urgent emergency security studies led by presidential science advisor Jerome Wiesner validated these risks, proving that existing custodial controls were insufficient to prevent unauthorized weapon access and use [Sim93].

President John F. Kennedy issued National Security Action Memo 160, mandating positive centralized control over all 7,000 U.S. nuclear weapons deployed across Turkey, Germany, and other allied nations or immediate repatriation to the United States.

Concurrent with this policy directive, the U.S. Department of Energy refined environmental arming logic for nuclear devices. Early safety mechanisms required detection of unique, weapon-specific environmental conditions before the arming sequence could activate.

Ballistic missile warheads detected zero-gravity space flight conditions during launch. Artillery-fired nuclear shells measured the extreme 20,000g acceleration impulse of cannon firing to validate legitimate deployment. These environmental triggers prevented accidental detonation during storage, transport, and handling.

Atomic demolition munitions (ADMs) presented a unique design challenge. These portable nuclear devices are transported by jeep, helicopter, or special forces foot patrol and detonated via programmable time fuses. No unique environmental signature exists to distinguish legitimate deployment from adversarial possession, eliminating sensor-based arming locks entirely.

The solution developed for ADMs and all subsequent nuclear weapons was cryptographic code-based arming. A secret digital unlock code activated a solenoid-driven physical lock embedded deep within the weapon’s plutonium primary pit assembly.

Designers immediately recognized the same vulnerability present in the VISA Security Module: internal maintenance access to the lock mechanism risked code exposure during servicing. Uniform global codes were therefore rejected in favor of small batch group codes, limiting compromise scope if a single key was leaked.

Following Kennedy’s memo, all nuclear weapons were integrated into a hierarchical cryptographic command system. A presidential universal unlock message needed to derive unique batch-specific firing codes distributed across the global arsenal.

The Carter administration’s measured response doctrine further complicated requirements by introducing selective unlock commands, enabling the president to authorize discrete subsets of weapons such as nuclear artillery or air-defense warheads during limited regional conflicts.

Additional safeguards were added to mitigate decapitation strike risks, ensuring the arsenal remained usable even if the national presidential command structure was destroyed in a first strike. This complex key distribution problem drove foundational advances in secret-sharing cryptomathematics [Sch96].

Prescribed Action Links (PALs) replaced solenoid locks in modern nuclear weapons as the primary arming control mechanism. Detailed PAL design specifications remain classified, but open-source analysis confirms they are only deemed secure when embedded deep within large, complex weapon assemblies.

Small portable devices like ADMs cannot be fully secured with PALs against Class III attackers. These devices are therefore stored within Prescribed Action Protective System (PAPS) sensing containers that add a secondary layer of tamper detection and response.

All nuclear weapon protection systems incorporate active penalty mechanisms to deny usable devices to successful thieves. Deformation gas cylinders rupture the plutonium pit structure upon intrusion. Shaped explosive charges destroy neutron initiators and tritium boost components.

Asymmetric internal detonation scatters plutonium material harmlessly instead of producing a nuclear yield. A universal design priority is the immediate erasure of all cryptographic unlock codes during tamper response sequences.

Planners explicitly assume adversarial states targeting nuclear weapons will sacrifice several captured devices and personnel to recover one functional weapon, making total code destruction non-negotiable.

Authorized maintenance requires temporary disabling of tamper protections via separate service unlock codes. The key-storage devices for both firing and service codes feature identical extreme tamper protection as the weapons themselves.

A notable hardware refinement emerged from airborne command post vulnerability testing. After analysis revealed 1mm chip fragments retained recoverable key data following protective detonation, control device firmware was rewritten to split all keys into two non-consecutive components stored more than 1mm apart on the die surface.

This granular implementation detail illustrates the extreme design rigor required for Class III-resistant secure processors. Nuclear device validation includes independent third-party verification and mandatory black-hat penetration testing by competing government laboratories.

Complementary procedural defenses include continuous armed physical guard, zero-notice random compliance inspections, and on-demand re-certification testing for all custodial staff. This combined technical and procedural defense has successfully prevented state-level nuclear weapon theft to date.

Two treaty verification systems represent the only non-weapon tamper-resistant hardware certified against unsupervised Class III access. The un-deployed SALT II missile verification sensors and active test-ban treaty seismic monitoring packages use massive reinforced mechanical construction.

Seismic sensors are encased in thick steel tubing, embedded in concrete-filled drill holes. The rigid mechanical structure allows the sensors themselves to detect tamper events with high statistical confidence, backed by random on-site inspections.

From nuclear industry experience, we derive two definitive design rules for Class III threat scenarios. First, tamper detection alone is viable for treaty monitoring if reinforced with heavy physical construction and random audits. Second, near-certain key loss prevention against funded adversaries requires integrated explosive destruction mechanisms plus continuous physical guarding.

Senior intelligence agency officials confirmed to us after reviewing this paper’s draft that capable motivated adversaries can always extract chip contents; tamper resistance only imposes cost and time delay. Leading semiconductor manufacturers share this sober assessment of hardware protection limits.

Crucially, nuclear-grade protection is financially and operationally infeasible for commercial banking and consumer embedded systems. This creates a critical capability gap between military high-assurance hardware and mass-market commercial security processors.

3. Vulnerabilities in Commercial Battery-Backed Security Processors

Commercial secure hardware primarily deploys two form factors: standalone rack-mounted security modules similar to the VSM, and portable smartcard-style monolithic processors. A growing modern third category integrates processor, memory, tamper detection circuitry, and onboard backup battery into a single composite sealed package.

IBM’s ÌABYSS cryptographic coprocessor represents the most thoroughly documented early composite security module. The development team evaluated dozens of tamper-resistant packaging technologies during prototype testing for intrusion difficulty and manufacturing scalability.

Evaluated materials included tin-oxide conductive trace networks etched on glass substrates, piezoelectric vibration-detection sheets, and various fine-gauge wire winding arrays for perimeter intrusion sensing.

The final production design adopted a four-layer spiral wrapping of 80μm-diameter nichrome fine wire surrounding the entire circuit assembly. The wire mesh was embedded within opaque silica-filled epoxy resin to resist mechanical machining and induce cracking during laser ablation attempts [WC87] [Wei87].

This wrapping creates a continuous conductive sensing grid; any break, short, or resistance change in the wire mesh triggers immediate volatile memory erasure. The design’s effectiveness improves as modern semiconductor geometries shrink and power consumption decreases.

The original ÌABYSS design protected 260 cm² of circuit area, far larger than modern compact security modules. Contemporary 128KB SRAM chips feature retention currents below 1μA at room temperature, enabling decade-long data retention powered by a single small lithium coin cell.

Battery-backed protection introduces new chemical detection capabilities. Corrosive acids used for epoxy removal exhibit low electrical resistance, creating predictable short circuits in the nichrome sensing grid before die exposure can occur.

Designers can construct multi-material sensing grids using dissimilar conductive and insulating compounds, ensuring any solvent capable of removing packaging will damage at least one sensing layer and trigger self-destruction.

Multi-layer composite packaging frustrates staged layer-stripping attacks, forcing attackers to perform laborious X-ray-guided manual shorting of nested sensing wires to disable tamper response logic completely.

A critical low-temperature vulnerability undermines battery-backed SRAM security. While SRAM loses state without power at room temperature after seconds, cryogenic cooling with liquid nitrogen or helium extends static data retention to minutes or hours.

Attackers can freeze a device to preserve SRAM key data while chemically disabling the tamper detection circuitry, then restore power to recover intact secrets. Extended low-voltage exposure also alters SRAM cell preferred power-up states permanently via dielectric stress, creating detectable data remnants for days without power [Gut96].

Modern commercial battery-backed security modules include the IBM Transaction Security System [ADD+91] and Dallas Semiconductor DS5000 microcontroller series [Dal93]. A European governmental signals security agency formally certified the DS5000 line as the most secure commercially available processor family prior to our research.

3.1 Architecture of the Dallas DS5002FP Secure Microcontroller

Miniaturization drives modern secure processor design, as hermetic packaging limits power dissipation, smaller enclosures reduce false tamper alarm rates, and reduced material volume lowers unit production costs.

Many financial applications require large RAM capacities exceeding feasible on-die integration limits. Bus encryption is the established industry solution for external memory extension while maintaining security [Bes79] [Bes80] [Bes81].

Bus encryption hardware within the CPU core encrypts all address and data signals in real time as they transit between the processor and external RAM. The external memory only stores ciphertext data at encrypted addresses, with the unique device-specific encryption key retained in battery-backed on-chip registers inaccessible via external pins.

The Dallas DS5002FP is an 8051-compatible secure microcontroller implementing this bus encryption architecture. It is widely deployed in financial transaction terminals and pay-TV access control systems to store root keys and execute proprietary cryptographic algorithms.

The on-chip bootloader accepts unencrypted user firmware during initial programming, then automatically encrypts the binary image before storing it in external off-chip memory. Each DS5002FP device is provisioned with a unique factory-programmed bus encryption key inaccessible to end users.

A dedicated external self-destruct input pin allows physical security enclosures to trigger immediate key erasure upon tamper detection. The enhanced DS5002FPM variant adds a dense top-metal shielding layer marketed to block microprobing and optical intrusion attempts.

Manufacturer documentation claims the top-metal layer is tightly interwoven with power and ground routing connected directly to security key logic. Any penetration or removal attempt triggers automatic security lock erasure and key bit corruption.

Additional security features include randomized dummy bus cycles executed whenever the CPU is not accessing external memory. These fake transactions obscure genuine memory access patterns from bus-monitoring attackers.

Critical reset and interrupt vectors (48 bytes total) are stored in protected on-chip memory. Accessing these internal vectors triggers fake external RAM cycles, preventing bus eavesdroppers from identifying critical runtime program flow events.

The DS5002FP uses two proprietary block ciphers loosely based on the DES algorithm. A 15-bit block cipher encrypts memory addresses, while an 8-bit block cipher secures data bytes. The data cipher’s round key is salted with the target memory address to reduce repetition patterns.

The 8-bit data block size, mandated by the 8051’s byte-oriented architecture, introduces exploitable statistical biases susceptible to differential cryptanalysis. We identified these weaknesses during preliminary algorithm review, though full cryptanalysis remains ongoing.

Most critically, the bus encryption system contains a structural vulnerability entirely independent of cipher strength, enabling trivial key recovery without breaking the underlying block cipher mathematics.

3.2 Practical Class I Exploit Against the DS5002FP

Co-author Markus Kuhn designed and demonstrated a complete, low-cost attack against the DS5002FP requiring only consumer-grade test equipment, proving that the agency-certified "most secure commercial processor" is vulnerable to Class I amateur adversaries.

This attack successfully extracted secret keys from deployed pay-TV access control devices and defeated a public challenge lock issued by Germany’s Federal Office for Information Security (BSI).

The total hardware cost consists of a standard personal computer, a custom interface circuit built from commodity electronic components (<$100 USD), and a basic logic analyzer test clip (~$200 USD). All experiments were conducted in a university undergraduate teaching lab using standard educational test gear.

Total development time for the attack hardware, firmware, and search algorithm was under three months, confirming its accessibility to non-professional, unfunded attackers within the IBM Class I definition.

We name this exploit the cipher instruction search attack. It leverages the processor’s inherent instruction execution side effects to map the bus encryption function without physical die access or cryptographic cipher breaking.

The core principle relies on

General Questions About Microcontroller Firmware Extraction


  • Is it safe to send payment to MikaTech ?

    If MikaTech was a bad company, you could find tons of bad reputations about its service on the internet over the 28 years history

    So, the answer is YES! We are good people.

    Why choose Mikatech, please click here to find out


  • Can Mikatech break ics not listed on this site ?

    Different chip manufacturers have different part numbers, but the inner core of the chip can be make with same technology, it would be quite impossible to list all the part numbers where our technology can apply such as MYSON, STK, FEELING, ANALOG, FUJITSU, NOVATEK, LG/HYNDAI.

    Also by the advancing of the technology, everyday we gain more and more experience and develope new methods for reverse engineering for different Intergated Circuit parts. Full list of Integrated Circuit part numbers which is within our scope of capability is always getting bigger, please contact us to find out.

  • Will my privacy be protected ?

    Mikatech Innovative Limited understands the importance of its clients' privacy. At the moment you contact Mikatech, the personal information from you will be put under protection by our management regulations which was developed by our years of practice, Mikatech uses these information to customize its service to you, it will never disclose these information to third party out of any reason.
    Every project we did, we will delete all the data, materials, and codes 60days after deliverig the files, it iwll protect us and protect your privacy.

  • Is it legal to get service from Mikatech ?

    Yes, it is totally legal.
    Mikatech deliver its reverse engineering services for educational purposes only, it can be illegal to use above mentioned services in some coutries or regions, please check your local laws. Mikatech does not take any responsibility in relation to the use of above mentioned services that may be considered illegal.


  • I sent you an email, why there is no answer ?

    • A. Our mail server is temperally broke down, your message has not been delivered to our mailbox even the mail sent successfully message is showed on the screen, please contact us again.
    • B. Our email is recognised as junk mail email by your mail server, so our reply has been rejected by your mail server or it is diverted to your junk mailbox, please remove our account from junkmail list or check your junk mailbox, or use another email account to contact such as gmail.
    • C. Your email is recognised as junk mail email by our mail server, so your email was put to our junk mailbox, please use another email account to contact us again.

    microcontroller_hack_time

    Years

    28 +
    microcontroller hack countries

    Countries

    110 +
    microcontroller attack clients

    Clients

    5000 +
    microcontroller projects unlocked

    Projects

    60000 +