Posts Tagged ‘hack custom ic’
Custom ICs: Three Steps to Identify What You Cannot Look Up
An ordinary microcontroller gives you a starting point: a part number, a datasheet, a known instruction set, a documented debug interface. A custom IC gives you none of that. The marking may be a house number, the pinout is unknown, and there is nothing to search for. Work on such a part begins with an investigation that has no equivalent in standard recovery jobs.
The investigation has three steps, and they are ordered by cost. The first is free, the second costs a decapsulation, and the third costs a cross-section. Doing them in order avoids paying for the third when the first two have already answered the question.
What “custom” actually covers
The word covers at least four different things, and they have almost nothing in common technically.
A full-custom ASIC is designed transistor by transistor. It has no instruction set, no firmware, and no memory in the usual sense; its function is the wiring.
A gate array or structured ASIC uses a prefabricated array of gates personalised by the upper metal layers. It looks like an ASIC from outside and behaves like one, but the underlying array is standard.
A COB — chip on board — is an ordinary die mounted directly on the PCB under a blob of epoxy. It is almost always a standard microcontroller, and the absence of a package is what makes it look exotic.
An FPGA with a hardened processor is a different thing again: programmable fabric plus a real CPU, with the configuration in an external flash.
| Type | Has firmware | Has known ISA | Where the value sits |
|---|---|---|---|
| Full-custom ASIC | No | No | Netlist, unrecoverable |
| Gate array | No | No | Netlist, partly recoverable |
| COB of a standard MCU | Yes | Yes | Flash, easy once identified |
| FPGA plus CPU | Yes, in the fabric | Yes, for the CPU | Bitstream and software |
The third row is the one that matters commercially, because a large fraction of “custom” parts sent for analysis turn out to be standard microcontrollers under a blob. Identifying that early converts an unbounded project into a routine one.
Step one: the package and the marking
The first step costs nothing and eliminates half the possibilities.
The package tells you the pin count, which bounds the complexity. A 48-pin QFN can be a small ASIC or a small MCU. A 256-ball BGA with a large thermal pad and a ring of decoupling capacitors around it is not a microcontroller; it is a device with a fast parallel interface, which suggests memory, an FPGA, or a processor with external bus.
The marking tells you the vendor, if not the part. House numbers are common, but the date code format, the font, the laser versus ink process and the presence of a logo are all vendor signatures. A die marked in a particular fine-pitch dot matrix is from one of a handful of foundries, and the package’s tooling marks narrow it further.
The board tells you the interface. A part surrounded by 22-ohm series resistors on eight parallel lines is driving a bus. A part with a single SPI flash beside it and nothing else is a small processor booting from that flash. A part with a crystal, a reset supervisor and a programming header is a microcontroller almost certainly.
That last observation is the most useful one in the entire investigation: look for a programming header. If the board has a five-pin or six-pin unpopulated footprint near the part, the part is programmable, and programmable parts are usually standard.
Step two: the pad ring and the cell structure
If step one does not settle it, the die has to be exposed. Under a microscope at 200 to 500 times, three features answer the question.
The pad ring is the ring of bond pads around the periphery. A ring with evenly spaced pads and a power ring behind them is a standard-cell design. A ring with pads grouped in clusters, with large gaps between groups, is a pad-limited design where the die size was set by the number of pads rather than by the logic — typical of a small controller in a large package.
The standard-cell rows are the horizontal bands of logic. They have a constant height, usually between two and ten microns, and the height is characteristic of the library. A die with perfectly regular rows across the whole area is a standard-cell ASIC or a microcontroller. A die with a large regular array of identical cells in one region and rows in another is an FPGA or a device with embedded memory.
The metal layers count is the third feature and the most diagnostic. Two or three layers suggests a mature process and a simple device. Six or more suggests a modern process and a fast design. A die with visible upper-metal personalisation over a regular base array is a gate array, and the personalisation layer is the part that carries the design.
| Observation | Inference |
|---|---|
| Regular cell rows across the die, few metal layers | Small standard-cell ASIC or MCU |
| Repeated identical array plus logic rows | FPGA or embedded memory |
| Uniform base array with sparse upper metal | Gate array |
| Large analog blocks beside small digital area | Mixed-signal ASSP |
| Bond pads clustered, large empty areas | Pad-limited small controller |
Step three: on-die storage
The third step is only needed if the first two leave the question open, and it answers the one question that decides the commercial route: is there non-volatile storage on this die?
Flash is visible as a regular array with a distinctive texture and, in newer processes, as a region with a different colour under bright-field illumination because the floating-gate stack has a different thickness. A die with no such region has no on-chip firmware, which means the function is either mask-programmed or wired, and neither is extractable as code.
Mask ROM is visible as a dense array with a programmed pattern, usually near the bottom or the edge. It is readable optically, and the pattern is the data. This is the one case where an ASIC-like part yields recoverable contents without any electrical interface.
SRAM is visible as a large regular array with a fine pitch, and it is volatile. Its size tells you the class of the device: a few kilobytes suggests a controller, hundreds of kilobytes suggests a processor or a buffer-heavy design.
Reading the power tree
One observation that is available before any decapsulation and that is frequently decisive: the board’s power distribution.
A single-die device usually has one regulator feeding it, with a handful of decoupling capacitors and possibly a small LC filter. A multi-die package, or a board with two significant digital loads, shows two regulators or one regulator with two separately filtered branches. Counting regulators on a board is a two-minute inspection and it tells you how many substantial pieces of silicon are present.
| Board observation | Inference |
|---|---|
| One regulator, one decoupling cluster | Single die |
| Two regulators, similar current ratings | Two significant dies |
| One regulator plus a small LDO near the part | Core plus analog, or an IO supply |
| Regulator with a ferrite bead to a small cluster | Sensitive analog or RF section |
The fourth row is common on parts that mix a digital core with an analog front end, and it explains a die that looks like an MCU with an unusually large analog block. Those parts are custom in the sense that matters — the analog behaviour is undocumented — while the digital half is often an ordinary core that can be attacked normally.
Power sequencing is the second observation from the same inspection. A device that requires two supplies in a particular order has a power-on state machine, and that state machine is frequently less protected than the main interface. Sequencing faults are a recognised attack class in their own right, and the relevant mechanisms are the ones described in power glitches.
Where the firmware usually is
The single most useful statistical fact about undocumented parts is that their firmware is frequently not inside them. A custom ASIC paired with an external SPI flash is an extremely common architecture, and in that arrangement the ASIC is the fixed function and the flash holds everything that varies.
This is why the investigation’s third step often ends with a redirection rather than a result. A die with no floating-gate region and a nearby eight-pin SOIC is a system whose contents are in the SOIC, and the SOIC is readable in ten seconds with a clip.
| Architecture | Where the contents are | Effort |
|---|---|---|
| ASIC plus external serial flash | The flash | Low |
| ASIC with mask ROM | The die, optically | Moderate |
| ASIC with embedded flash | The die, electrically or optically | High |
| FPGA plus configuration flash | The flash, but as a bitstream | Low, different meaning |
| MCU under a blob | The die, via standard interface | Low once identified |
What the service actually delivers
For an undocumented part the first deliverable is a written identification: what class of device it is, what process it appears to be built in, whether it has on-die non-volatile storage, and where the system’s contents most likely reside. That document is produced from a package inspection, a board inspection, and where necessary a decapsulation, and it costs a fraction of an extraction campaign.
Only after that does a route get named. Where the contents are in an external flash, the work is a read, and the relevant techniques are in extracting IC flash. Where the die carries the contents in mask ROM, the work is optical and the device does not survive. Where the part is a standard microcontroller under a blob, the work becomes a normal job, and the route depends on the protection state described in breaking IC code.
We decline one category outright: full-custom ASICs whose function is wiring and whose value is the netlist. Delivering a netlist from a metal image is possible for small arrays and uneconomic for anything else, and saying so before a decapsulation is more useful than a report that explains it afterwards. The narrower question of whether a given part is an ASIC at all is treated separately in identifying an ASIC.