Chip decryption is the process of bypassing or circumventing the read-protection mechanisms inside a microcontroller to recover the firmware stored in its flash or EEPROM. It is used legitimately when engineers need to recover their own code from a locked device — for legacy maintenance, prototype reconstruction, or disaster recovery. The feasibility depends on the silicon vendor, the protection level set, the fabrication process node, and the specific attack class applied. Not every chip can be decrypted, and not every locked device should be.
What Does “Chip Decryption” Actually Mean?
When a microcontroller leaves the factory with its code-protection fuse or option byte set, external read commands (JTAG, SWD, ICSP, UART bootloader) are blocked. The firmware is still physically present in flash memory, but the debug interface refuses to return it. Chip decryption — sometimes called IC unlock, MCU crack, or firmware readout — refers to any technique that recovers that firmware despite the lock.
The term “decryption” is slightly misleading on many devices. Most 8-bit and older 16-bit MCUs do not encrypt flash contents; they simply disable the read path. True encryption (AES-256 on-chip key storage, secure boot chains) appears on newer parts like the STM32L5 or STM32U5 families. The distinction matters because disabling a read gate and breaking AES are fundamentally different problems with very different success rates.
How Microcontroller Protection Works

Protection schemes vary by vendor and generation, but they share common building blocks:
| Protection Mechanism | Where It Appears | What It Blocks |
|---|---|---|
| Code Read Protection (CRP / RDP) | STM32, LPC, NXP Kinetis | Debug read of flash; may still allow erase |
| Code-Protect (CP) fuse bits | PIC10–PIC32, dsPIC families | ICSP read of program memory per block or globally |
| Security fuse / lock bits | AVR ATmega, ATtiny, SAM | ISP/JTAG flash read; sometimes also EEPROM |
| Secure Boot + TrustZone | STM32L5, STM32U5, STM32WL, STM32WB | Encrypted flash, hardware key isolation, anti-tamper |
| JTAG disable / fuse blow | Many SoCs, FPGAs | Entire debug port permanently disabled |
Protection Levels Are Not Binary
Many MCU families implement tiered protection. STM32 parts, for example, define RDP Level 0 (no protection), Level 1 (debug read blocked but can be reverted — with a full flash erase), and Level 2 (debug port permanently disabled, irreversible on most silicon). The STM32L1 protection-level breakdown illustrates how Level 1 vs. Level 2 changes the recovery calculus entirely.
Microchip PIC devices use per-block code-protect bits. On older families like the PIC14 series, the protection relies on a single fuse that gates the read path — a simpler barrier than modern secure-boot chains. Newer 32-bit parts such as the PIC32MZ add boot-flash protection, code-guard security segments, and JTAG key authentication, making unauthorized readout far harder.
Five Classes of Chip Decryption Attacks
Every chip decryption technique falls into one of five broad categories. Each trades off cost, risk, and applicability differently.
1. Non-Invasive Software Attacks
These exploit bugs in the bootloader, debug protocol, or protection-state machine — no physical modification of the die. A classic example: certain STM32F0 devices allowed a timing-window read during the RDP downgrade sequence. Software attacks are the cheapest (often under $500 in engineering time) and carry zero risk of destroying the chip, but they only work when a specific vulnerability exists and has not been patched in later silicon revisions.
2. Semi-Invasive Attacks (Fault Injection)
Voltage glitching, clock glitching, or electromagnetic fault injection (EMFI) can corrupt the protection check at the exact clock cycle it executes, causing the MCU to expose flash contents through the normal debug interface. Success rates vary from 30 % to 90 % depending on the target, and the technique requires precise timing equipment (sub-nanosecond pulse generators, EM probes). The chip is not physically opened, but the package may need partial decapsulation for EM coupling on some setups.
3. Invasive Microprobing
After chemically decapsulating the IC (removing the epoxy package with fuming nitric acid or laser ablation), a technician uses a probing station with sub-micron needle tips to contact internal bus lines and read flash contents directly. This works on older process nodes (≥ 180 nm) where metal layers are accessible. Below 90 nm, the interconnect density and number of metal layers (8–12+) make physical probing impractical without a focused ion beam (FIB) — pushing costs above $10,000 per device.
4. Side-Channel Analysis
Differential power analysis (DPA) and electromagnetic analysis (EMA) measure the power consumption or EM emissions of a running chip to extract cryptographic keys or firmware bit-patterns. This is most relevant for parts that use true AES encryption of flash — such as the STM32U5 with TrustZone and OTFDEC. Side-channel attacks require thousands to millions of traces and significant post-processing, making them expensive and slow (weeks to months).
5. UV / Laser Reset of Fuse Bits
On older EPROM/OTP-based MCUs, the code-protect bit is stored in a UV-erasable cell. Masking the flash array while exposing only the fuse area to UV light can reset protection without erasing program data. This technique is largely historical — it applies to legacy PIC16C, PIC17C, and some early 8051 variants — but it remains relevant for vintage equipment maintenance.
What Determines Whether Chip Decryption Is Feasible?
Our engineers evaluate four factors before accepting any firmware-recovery project:
- Chip family and revision. A STM8L with ROP enabled is a very different challenge from an STM32L5 at RDP Level 2 with TrustZone active.
- Process node. Parts fabricated at 350 nm–180 nm are generally accessible to microprobing. At 90 nm and below, invasive techniques become exponentially harder and more expensive.
- Known vulnerabilities. Published glitch vectors, bootloader exploits, or protocol flaws dramatically reduce time and cost. If no known vector exists, the project may require original research — raising both price and uncertainty.
- Number of samples. Fault-injection and side-channel methods are statistical. Having 3–5 identical devices improves success probability and allows destructive attempts without losing the only sample.
Realistic Success-Rate Ranges
| Category | Typical Success Range | Turnaround | Cost Indicator |
|---|---|---|---|
| 8-bit MCU, single fuse (PIC10–PIC17, ATmega, STM8) | 85–98 % | 3–7 working days | $ (low hundreds) |
| 32-bit MCU, RDP Level 1 or equivalent (STM32F0/F1/F4, PIC32MM) | 60–90 % | 5–15 working days | $$ (mid hundreds to low thousands) |
| 32-bit MCU, RDP Level 2 / secure boot (STM32L5, STM32WB) | 10–40 % | Weeks to months | $$$ (thousands+) |
| Parts with hardware AES + anti-tamper (STM32U5, some NXP i.MX) | < 15 % | Months, if at all | $$$$ (project-priced) |
These are honest ranges, not guarantees. Any provider claiming 100 % success on all chips is overpromising.
When Is Chip Decryption Legitimate?
Authorized chip decryption covers scenarios where you have legal ownership of the firmware or explicit permission from the IP holder:
- Lost source code recovery. Your original developer left, the repository was lost, and the only copy of your firmware lives inside a production MCU you own.
- Legacy equipment maintenance. A machine built in 2005 uses a discontinued PIC or 8051. The OEM is gone. You need the firmware to repair or replicate the control board.
- Prototype reconstruction. A pre-production board was programmed before the design files were version-controlled. Recovering the binary is the fastest path to continuing development.
- Competitive analysis (clean-room, legal). Some jurisdictions allow reverse engineering for interoperability under specific legal frameworks. This requires legal counsel, not just technical capability.
We require proof of ownership or written authorization before starting any firmware-recovery project. Every engagement is covered by an NDA.
The Chip Decryption Process: Step by Step

- Feasibility assessment. Client submits the chip part number, package type, protection level (if known), and number of available samples. Our lab evaluates known vectors and estimates success probability within 1–2 business days.
- Authorization check. Client provides proof of ownership or a signed authorization letter. We verify before any physical work begins.
- Attack selection. Based on the chip family and protection tier, we choose the lowest-risk method — software exploit first, then glitch, then invasive, in that order.
- Execution. The chip is processed in our lab. For fault injection, we typically attempt 500–5,000 glitch cycles. For microprobing, decapsulation and imaging come first, followed by targeted probing sessions.
- Verification. Recovered binary is loaded onto a blank device of the same part number and functionally tested (where the client provides a test fixture or procedure).
- Delivery. Firmware delivered as a raw .bin or .hex file, encrypted in transit, under the terms of the NDA.
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility reviewCommon Misconceptions About Chip Decryption
“Every chip can be cracked”
False. Modern secure elements (ATECC608, Infineon OPTIGA) and MCUs with hardware-root-of-trust (STM32U5 RDP2 + TrustZone + OTFDEC) are designed to resist nation-state-level attacks. Our lab is transparent about what we cannot do.
“It always destroys the chip”
Not necessarily. Software and glitch-based methods are non-destructive. Microprobing requires decapsulation, which is destructive to the package but not always to the die. UV-based fuse reset on legacy parts is also non-destructive to program data.
“It’s always illegal”
Legality depends on jurisdiction, ownership, and intent. Recovering your own firmware from your own hardware is legal in most jurisdictions. Circumventing protection to steal a competitor’s IP is not.
Frequently Asked Questions
What is the difference between chip decryption and chip cloning?
Chip decryption refers specifically to bypassing the read-protection to extract firmware. Chip cloning is the broader process of duplicating an entire programmed IC — which may include decryption as one step, followed by programming the recovered binary onto a new blank device. Decryption is a prerequisite for cloning when the source chip is locked.
Can you decrypt a chip if I only have one sample?
Yes, but risk is higher. Fault-injection methods are statistical and may require multiple attempts. If the only available technique is invasive (microprobing), a failed decapsulation means losing the device. We recommend providing at least 2–3 samples when possible to maximize success probability.
How do I know what protection level my chip is set to?
On STM32 parts, connecting via SWD with an ST-Link and running STM32CubeProgrammer will report the RDP level (if the debug port is not fully disabled). On PIC devices, attempting an ICSP read will return all zeros or an error if code-protect is set. Our feasibility evaluation can determine the exact protection state for you.
Do you need the original schematic or PCB to decrypt the chip?
Usually not. We work directly with the IC, desoldered from the board if necessary. However, having the schematic helps us understand power-supply requirements and pin configuration, which speeds up fault-injection setup. For wireless MCUs like the STM32WL, knowing the RF front-end configuration avoids accidental damage during probing.
What file format will I receive?
Standard delivery is a raw binary (.bin) or Intel HEX (.hex) file of the flash contents. If EEPROM or option bytes are also recovered, those are delivered as separate files. We do not provide disassembled source code unless specifically contracted for reverse-engineering analysis.
Related Resources
Check feasibility for your project
Send the chip marking or board details and tell us what you need to recover. Add clear photos if available.
Request a feasibility review{
“@context”: “https://schema.org”,
“@type”: “Article”,
“headline”: “Chip Decryption Explained: Protection Methods & Feasibility Limits”,
“description”: “Technical guide covering microcontroller protection mechanisms, five classes of chip decryption attacks, feasibility factors, and the authorized firmware recovery process.”,
“url”: “https://pcb-copy.com/chip-decryption-explained/”,
“author”: {
“@type”: “Organization”,
“name”: “PCB-Copy.com”
},
“publisher”: {
“@type”: “Organization”,
“name”: “PCB-Copy.com”,
“url”: “https://pcb-copy.com/”
}
}
What do you need to recover?
Send the full marking or board photos, sample condition and required outcome. Ask for an NDA before sharing confidential files. Scope and sample handling are confirmed individually.
The article title is carried into the contact form. Add your own details and review the enquiry before sending.