Posts Tagged ‘dsp mcu copy’

PostHeaderIcon What Counts as a Successful Crack: Four Acceptance Levels

Nearly every disagreement in this business comes from a sentence that was never written down: what does success look like. A customer says the extraction failed because the replacement board does not behave like the original. The supplier says it succeeded because the image is byte-identical to the die. Both are right about different things, and the difference was decided at quotation time and forgotten.

Four acceptance levels exist. They are ordered by the evidence they require, and each one has a distinct definition of failure.

Level one: it runs

The weakest claim, and the one most extractions actually support, is that the recovered image runs on an identical device.

The evidence is simple: program a blank part of the same type, power it up, and observe that it does what the original did. If it blinks, enumerates, displays or responds, the image is complete enough to execute.

That “complete enough” is the limitation. Many images that run are not complete. A missing calibration block may be tolerated because the code falls back to defaults; a missing serial number may be filled with 0xFF and accepted; a checksum that is never verified may be wrong without consequence. The device runs, and the contents are not the original.

Evidence What it proves What it does not
Device boots Reset vector and startup code intact Nothing about data regions
Peripheral initialises Register configuration present Nothing about calibration
Main function behaves Application code present Whether every byte matches

A level-one acceptance is appropriate when the goal is to get a dead unit working again, and it is inappropriate for anything else.

Level two: it can be changed

The second level adds the requirement that the image can be modified and the modification can be made to work.

The evidence is a change that is verifiable: alter a displayed string, change a parameter, disable a feature, and confirm that the device behaves differently in exactly the way intended. This is a much stronger test than level one, because it requires the image to be understood well enough to locate the thing to change and to keep everything else intact.

It also requires that whatever integrity mechanism the original had is either absent or reproducible. A device that verifies a CRC over its own flash will refuse to boot after any modification, and a device that verifies a signature will refuse even if the CRC is recomputed. Recomputing a CRC is an afternoon; recomputing a signature is not possible without the key.

Integrity mechanism After modification Effort
None Works None
Checksum in the image Must be recomputed Hours
CRC with the polynomial in the code Must be recomputed Hours
Signature over the image Cannot be satisfied Key required
Encrypted image Cannot be modified meaningfully Key required

The third row is the one that catches people, because it looks like the second. A CRC whose polynomial is embedded in the code is a checksum the customer’s engineer can recompute; a CRC whose polynomial lives in a secure element is not.

Level three: it can be cloned

The third level requires the image to work on a part that is not the original, and this is where most programs fail.

The failure is rarely about the code. It is about everything the code depends on that is not code: calibration constants stored in a separate region, a unique identifier burned into a protected area, option bytes that set the clock source, analogue trim values that were measured per unit, and external components with tolerances that the firmware compensates for.

A clone that boots and runs but is inaccurate, drifts with temperature, or fails a self-test is the characteristic outcome of a level-two image applied to a level-three goal. The code is right and the unit is wrong.

Dependency Where it lives Consequence if missing
Calibration constants Separate flash page or EEPROM Measurement inaccuracy
Unique ID Protected OTP Authentication failure
Option bytes Configuration area Wrong clock, wrong boot
Analogue trim Factory-written registers Drift, offset, gain error
External component values Not in the device Systematic error

The fourth row is the one most often missed, because trim values are written by the factory test programme and are not part of the application image. A complete clone requires them, and obtaining them requires either reading the factory area or re-trimming each unit.

Level four: it can be proven equivalent

The highest level is not about function at all. It is about evidence.

A forensic or legal engagement does not ask whether the extracted image runs. It asks whether a specific claim can be supported: that this device contains this code, that these two devices contain the same code, that this code was derived from that source. Those claims need a chain of custody, a reproducible method, and a report that another expert can follow and disagree with.

The evidence at this level is documentary as much as technical: a hash of the image, the method used to obtain it, the device identifiers, the timestamps, and the limitations of the method stated in the same document as the conclusion.

Claim Evidence required Weakness to declare
This device holds this code Hash plus acquisition log Device identification
Two devices hold the same code Byte-level diff plus region map Legitimate shared libraries
This code derives from that source Structural similarity, not identity Compiler differences
This function was disabled Disassembly plus behavioural test Alternative explanations

The third row is where most expert reports are weakest. Compiled code is never identical to its source, and a claim of derivation rests on structural features — function ordering, string constants, error messages, table values — rather than on matching bytes. A report that claims byte identity between compiled output and source is a report that will be dismantled.

The question that decides the level

One question, asked before the quotation, separates the four levels reliably: what will you do with the result.

If the answer is “get this unit working again”, the level is one. If it is “change how it behaves”, the level is two. If it is “build more of them”, the level is three. If it is “show that this is what happened”, the level is four.

The question works because each answer implies a different test that the deliverable has to pass, and the tests are not nested in the way people assume. A level-three image passes level one and level two tests by construction, but a level-two image does not come close to passing a level-three test, because the missing pieces are not in the code at all.

Answer Level Test the deliverable must pass
Repair this unit One Boots and functions
Change behaviour Two A specific change is observable
Build more Three A second unit meets specification
Demonstrate a fact Four An independent expert can reproduce it

A second question sharpens it: who is the sceptic. For levels one and two the sceptic is the customer’s engineer, who will try the device. For level three the sceptic is the production line, which will try a thousand. For level four the sceptic is an opposing expert, who will try to break the argument rather than the device.

Why the level must be in the quotation

The four levels differ in cost by more than an order of magnitude, and the difference is almost entirely in levels three and four.

A level-one extraction is the read plus a boot test. A level-two extraction adds a disassembly pass and a patch. A level-three engagement adds the factory data, the per-unit calibration, and a production process. A level-four engagement adds documentation, reproducibility and the possibility of being cross-examined.

Level Typical duration Main cost driver
One Days The read itself
Two One to two weeks Locating and patching
Three One to three months Factory data and per-unit trim
Four Months Documentation and reproducibility

A quotation that says “MCU crack” without naming a level is a quotation that will be read as the level the customer needs, which is usually three, and delivered at the level the supplier assumed, which is usually one.

How we handle it

Every engagement begins with the level written down and agreed, in the customer’s words and ours, before the part is touched. That single sentence prevents the dispute that would otherwise arrive at delivery.

Where the customer’s goal is to repair a single failed unit, level one is right and the work is described in extracting MCU firmware. Where the goal is to change a behaviour, level two is implied and the prerequisite is the analysis in MCU break plus the patching technique in patching IC code. Where the goal is production, level three is implied and the missing pieces are the six conditions in cloning IC firmware. Where the goal is a report that will be relied on, level four is implied and the work is documentary from the first hour.

The one thing we will not do is accept a level-three goal at a level-one price because the customer used a single word. That conversation is shorter than the one that follows delivery.