Extract Microcontroller Code

Extract microcontroller code, and the first organisational question is which of the three extraction classes applies — non-invasive, semi-invasive, or invasive — because each class buys different access at different cost and risk. The most commonly used non-invasive techniques modulate supply voltage and disturb the clock signal, working the timing margins of ordinary logic; the classes above them trade package integrity for depth. The classification is old, but it remains the cleanest decision framework in the trade, and it is worth restating with modern examples.

Class one: non-invasive

No package harm, no die contact. The repertoire spans firmware-level entry through bootloaders and undocumented commands, the interface-protocol work of interface and protocol readout, and disturbance attacks — voltage and clock manipulation in the shock tradition of voltage and clock shock attacks. Strengths: affordable, repeatable, and it leaves the sample intact. Weakness: modern sensor-equipped parts log or reset anomalies, so class one fails loudly rather than quietly. Its role is always first — it prices the problem, and a clean null result is real information for the classes that follow.

Class two: semi-invasive

The package opens or thins, but probes do not touch active circuitry. Backside optical work leads here: infrared imaging of ROM arrays per infrared backside ROM imaging, laser stimulation and fault injection through the substrate, the UV-era techniques that UV-radiation extraction methods documents for EPROM generations. Semi-invasive work is where fixed-point precision meets physics — the fixed-point fault injection method often ends up executed through a laser rather than a coil once sensors close the electrical door.

Class three: invasive

Full opening and direct contact: microprobing, ion-beam edits, wire taps. Highest cost, highest risk, and the only class that reads everything — the tier that invasive chip reverse engineering surveys and that the top of the tier ladder reserves for assets that justify it. Invasive work consumes samples; with one part on the bench it is the last resort, per the sample-economics of repeat-cost economics in MCU unlock.

Running the classification honestly

The classes are a sequence, not a menu: each one’s failure mode is the next one’s scope. What the sequence protects is the sample and the budget — and what it produces, class by class, is a documented fingerprint of the protection, which is why every engagement here ends with the file discipline of binary recovery regardless of which class succeeded. Three classes, one rule: never enter a class whose costs you have not priced, and never skip one whose information you have not collected.

A worked progression shows the classification earning its keep. A sealed industrial controller arrives; the class-one hour runs — boot conversation logged, interface probed, firmware-level routes attempted — and closes with two findings: the bootloader authenticates honestly, but a peripheral bus carries unencrypted telemetry that includes the firmware’s version string and a configuration checksum. Neither is content; both are scope. The class-two quotation is now specific: backside preparation to image the array, since the version string narrows the firmware build and the checksum gives a verification target for any reconstruction. Suppose the imaging shows a plain, unprotected layout — the campaign may end at class two with a file, never meeting class three. Suppose instead it shows encryption on the read path — then class three is priced knowing the electrical work is futile and the effort belongs to key handling. Three classes, three prices, one hour of class-one evidence deciding between them. That is the framework working as designed: each class purchases the information that makes the next class optional or precise. Campaigns that begin at class three are not merely expensive; they are blind, and blindness at the invasive tier is how irreplaceable samples die for conclusions a bus trace would have given away for free.


Tags: ,,,,,,,,,