Bao'An Shenzhen China

ATtiny Crack | Protection Levels & Firmware Recovery

Published · About 7 min read · PCB-Copy

On this page
  1. ATtiny Crack: Recovering Firmware from Protected ATtiny Microcontrollers
  2. How ATtiny Lock-Bit Protection Actually Works
  3. Which ATtiny Variants Are Commonly Targeted?
  4. What Does an ATtiny Crack Procedure Involve?
  5. Turnaround, Pricing Signals, and Constraints
  6. ATtiny vs. Other Atmel/Microchip MCU Families
  7. Common Failure Modes and Honest Caveats
  8. Frequently Asked Questions About ATtiny Crack
  9. Related Microcontroller Recovery Services

ATtiny Crack: Recovering Firmware from Protected ATtiny Microcontrollers

An ATtiny crack is the process of bypassing or resetting the lock-bit protection on Microchip (formerly Atmel) ATtiny-series microcontrollers to read back the internal flash and EEPROM contents. ATtiny devices use a two-bit lock mechanism (LB1 and LB2) that restricts external access through the ISP, HVPP, or debugWIRE interfaces. When both lock bits are programmed, standard read-back commands return 0x00 or 0xFF. Our engineers recover firmware from these protected ATtiny parts for authorized owners—typically for legacy product maintenance, redesign, or disaster recovery when source code has been lost.

How ATtiny Lock-Bit Protection Actually Works

attiny crack: ATtiny85 SOIC-8 microcontroller held with ESD tweezers on a workbench

Every ATtiny MCU ships with lock bits unprogrammed (logic “1”). The user programs them during production to prevent firmware theft. The protection is not encryption—it is access gating enforced by the memory-bus controller. Understanding the levels matters because each level changes what an ATtiny crack must overcome.

Mode LB2 LB1 What Is Blocked Recovery Difficulty
Mode 1 (No lock) 1 1 Nothing — flash/EEPROM freely readable Trivial (no crack needed)
Mode 2 1 0 Further programming of flash/EEPROM disabled via ISP/HVPP Low — read-back still possible
Mode 3 0 0 Both programming AND verification (read-back) disabled High — requires physical or glitch techniques

Mode 3 is the configuration seen in nearly every production-locked ATtiny. The ISP “Read Flash” command is blocked at the silicon level, and a chip-erase is the only official way to clear the lock bits—which also wipes the flash. An ATtiny crack circumvents this erase-or-nothing constraint.

Boot-Lock Bits on ATtiny Devices with Bootloader Sections

Some larger ATtiny variants (ATtiny828, ATtiny1634, ATtiny3217 in the newer tinyAVR 1-series) support separate boot and application sections with their own BLB bits. These add another layer: even if the main lock bits were somehow bypassed, BLB12/BLB11 can independently block reads from the boot section. Our approach accounts for both layers when planning an ATtiny crack engagement.

Which ATtiny Variants Are Commonly Targeted?

The ATtiny family spans dozens of part numbers across three architectural generations. Recovery feasibility depends on the specific die revision, the flash size, and the package. Below is a practical breakdown of the parts we see most often.

Sub-Family Common Parts Flash Range Package Types Crack Feasibility
Classic AVR (tiny) ATtiny13A, ATtiny25/45/85, ATtiny2313A 1–8 KB SOIC-8, DIP-8/20, QFN-20 High — well-documented die
Classic AVR (larger) ATtiny44A, ATtiny84A, ATtiny861A, ATtiny828 4–8 KB SOIC-14/20, QFN-32 High
tinyAVR 0-series ATtiny402, ATtiny804, ATtiny1604 2–16 KB SOIC-8/14, VQFN-20 Moderate — UPDI interface, newer silicon
tinyAVR 1-series ATtiny814, ATtiny1614, ATtiny3217 8–32 KB SOIC-14/20, VQFN-24 Moderate to case-by-case
tinyAVR 2-series ATtiny1627, ATtiny3227 16–32 KB SOIC-20, VQFN-24 Case-by-case — latest protection

Classic ATtiny parts (manufactured on 350 nm and 180 nm processes) have been studied for over 15 years. The newer 0/1/2-series parts use a UPDI single-wire debug interface and a different lock architecture (LOCKBIT register in the fuse area), which requires updated techniques. We evaluate each part individually before committing to a timeline.

What Does an ATtiny Crack Procedure Involve?

The exact method depends on the protection level and die revision. At a high level, ATtiny firmware recovery follows one of three paths:

  • Voltage/clock glitching: Precisely timed power or clock transients during the lock-bit check can cause the access-control logic to pass when it should fail. This is non-destructive to flash contents and is the preferred first approach for classic ATtiny parts.
  • UV/laser fault injection: Targeted photon energy on the lock-bit storage cells can flip them without triggering a bulk erase. Requires decapsulation (chemical removal of the epoxy package) and a micro-positioning stage. Used when glitching alone is insufficient.
  • Microprobing: Direct contact with internal bus lines using sub-micron probe tips under a probing station. This is the most invasive and expensive path, reserved for high-value recovery on parts where other methods fail.

For the vast majority of classic ATtiny13A/25/45/85 jobs, voltage glitching succeeds. The ATtiny85 running at 8 MHz internal RC, for example, has a well-characterized glitch window of approximately 15–40 ns on the VCC rail during the ISP read handshake. Our custom glitch hardware can sweep this window in under an hour.

What You Receive After Recovery

A successful ATtiny crack delivers a verified binary image of the flash (Intel HEX or raw .bin) and, where applicable, the EEPROM contents and fuse/lock-bit configuration bytes. We provide an MD5/SHA-256 checksum and a brief report noting any suspect bytes. If calibration data was stored in the last flash page, we flag that separately so you can reconcile it with your target hardware.

Turnaround, Pricing Signals, and Constraints

Typical turnaround for a classic ATtiny crack is 3–5 working days from the time we receive the sample. Newer tinyAVR 1/2-series parts may require 7–10 days for feasibility evaluation before we commit. We charge no fee if recovery fails.

Pricing depends on the specific part, protection level, and quantity. As a rough guide:

  • ATtiny13A / ATtiny25 / ATtiny45 / ATtiny85 (Mode 3): starting range — contact for current quote.
  • ATtiny2313A / ATtiny44A / ATtiny84A: similar range to the above.
  • tinyAVR 0/1-series (ATtiny402–ATtiny3217): higher, reflecting additional R&D per die revision.
  • tinyAVR 2-series: feasibility assessment required first.

We require proof of ownership or written authorization before starting any ATtiny crack engagement. This protects both parties and is consistent with our ATxmega firmware recovery policy and all other Microchip/Atmel family work. Typical documentation includes a purchase order for the original product, a design-ownership declaration, or a signed NDA referencing the specific part numbers.

ATtiny vs. Other Atmel/Microchip MCU Families

Decapsulated microcontroller die under stereomicroscope with micro probes

Engineers sometimes ask whether an ATtiny crack is easier or harder than recovering firmware from related Microchip families. The answer depends on the silicon generation:

  • ATmega (e.g., ATmega328P): Same lock-bit architecture as classic ATtiny, but larger die area can make UV targeting slightly easier. Comparable difficulty overall.
  • ATxmega: Uses a more complex lock-bit scheme with per-region protection. Typically harder than classic ATtiny. See our ATxmega crack overview for details.
  • AT89C51 (8051-core): Older Atmel 8051-family parts have a single lock bit and are generally straightforward. Our AT89C51 recovery page covers the specifics.
  • AT89S52: Similar to AT89C51 but with ISP and three lock-bit levels. Documented thoroughly in our AT89S52 crack guide.

If your project involves a mixed Atmel design—say an ATtiny85 handling a sensor front-end alongside an ATmega or ARM-core SAM device—we can coordinate recovery of multiple parts under a single NDA and project timeline.

Common Failure Modes and Honest Caveats

Not every ATtiny crack succeeds. Transparency matters more than a sales pitch:

  • Die damage during decapsulation: Chemical decap on SOIC-8 packages has roughly a 3–5% failure rate due to acid reaching bond wires. We mitigate this with controlled-flow jet etching, but the risk is non-zero.
  • Newer silicon revisions: Microchip periodically updates die masks. A technique proven on rev. A of the ATtiny1614 may not transfer directly to rev. C. We maintain a die-revision database but cannot guarantee coverage of every stepping.
  • Corrupted flash: If the original firmware was partially overwritten or the device experienced latch-up damage, the recovered image may contain corrupt sections. We report this clearly rather than delivering an unchecked dump.
  • EEPROM wear: Devices that heavily cycled EEPROM (rated 100,000 cycles) may have degraded cells. Recovery captures the current state, not the original factory state.

Frequently Asked Questions About ATtiny Crack

Can the ATtiny be reused after firmware recovery?

In most glitch-based recoveries, yes. The flash is read without modification, and the device remains functional. If UV or laser methods are used, the package is destroyed during decapsulation, so the specific chip cannot be reused—but the firmware image can be programmed onto a fresh ATtiny of the same part number.

Is ATtiny crack legal?

Recovering firmware from a microcontroller you own or are authorized to service is legal in most jurisdictions under repair, interoperability, and IP-recovery provisions. We require proof of ownership or written authorization before proceeding. We do not assist with unauthorized extraction of third-party proprietary code.

How do I ship the ATtiny sample safely?

Pack the device in an ESD-safe bag inside a rigid box with foam padding. For SOIC-8 packages, tape the part to a carrier PCB or use a gel-pak. Ship via a tracked courier (DHL, FedEx, UPS). We provide a shipping label and customs declaration template upon request.

What if I only have the finished product, not a loose chip?

Send the complete board. Our technicians will desolder the ATtiny using hot-air rework (typically at 260 °C for lead-free joints) before starting the recovery process. We can also reball and resolder the part afterward if the board needs to remain functional.

Do you support the new AVR-Dx and AVR-Ex series?

The AVR-DA, AVR-DB, and AVR-DD parts use a UPDI-based lock with CRCSCAN integration. We are actively developing techniques for these families. Contact us for a feasibility assessment—turnaround on evaluation is typically 5–7 working days.

Related Microcontroller Recovery Services

If your project involves other MCU families alongside ATtiny, these resources may help:

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
TURN THE GUIDE INTO A PROJECT QUESTION

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.

WhatsApp Send board details