Archive for the ‘Break IC’ Category
Break W79E201 secured flash firmware
Anyone who has to break W79E201 secured flash firmware usually starts with a legacy board, a faded marking and no build archive. This page sets out what the W79E201 actually exposes before any tool is connected, and where the technical limits of that work sit. This member adds an eight-channel 10-bit converter and a JTAG-capable LQFP48 option to the fast 8051 core.
Why break W79E201 secured flash firmware starts with the core
The W79E201 is a fast 8051 derivative whose redesigned core removes wasted clock and memory cycles, so an instruction stream runs roughly 2.5 times faster than a classic 8051 at the same crystal frequency. Because Port 1 is shared with the converter, a board that uses all eight analogue inputs has no spare lines for a field programming header. Three 16-bit timer/counters, one UART, an eight-source two-level interrupt controller and a watchdog complete the CPU surroundings. Port 1 doubles as an eight-channel analogue or digital input, which is the main reason this member appears in data-acquisition boards rather than simple logic replacements. An eight-channel 10-bit converter is the distinguishing peripheral here, and its reference and channel configuration belong in any firmware record. That distinction matters when the deliverable is source code or a binary archive rather than a bare photograph of the decapsulated chip.
Program memory and RAM geometry
Program storage is 16 Kbytes of in-system programmable APROM together with a separate 4 Kbyte LD Flash that holds the loader program, while the CPU sees 256 bytes of on-chip RAM and the usual 64 Kbyte program and data address spaces. The 16 KB APROM / 4 KB LDROM / 256 B RAM / 8-channel 10-bit ADC combination is unique within this group of parts. Related device notes on this site cover the wider 8051 family: W78E52B flash documentation.
Security state and what the interface can report
| Item | What the data sheet states |
|---|---|
| Core | Fast 8051, 4 clocks per machine cycle, up to 40 MHz, 2.5x classic throughput |
| Memory | 16 KB APROM / 4 KB LDROM / 256 B RAM / 8-channel 10-bit ADC |
| Program memory | 16 Kbytes ISP APROM plus 4 Kbytes LD Flash for the loader |
| RAM | 256 bytes on-chip RAM |
| Package | 48-pin LQFP (ICE/JTAG option), DIP40 and PLCC44 variants |
| Programming | W79E201A boots LDROM when P4.0 is held low at reset |
Security on this family is a protection bit in the configuration area rather than an encryption engine that could be used as a service route. When it is set, an external read of the application array returns no usable instructions; the part still answers identification and reports its memory size. A defensible deliverable on a protected sample is therefore an identification record plus a comparison against the archive. For background on a neighbouring Winbond part, see W78IE52 flash documentation.
Peripheral inventory worth recording
The analogue block provides eight multiplexed inputs to a 10-bit converter on Port 1, alongside three 16-bit timers, one full-duplex serial port and a programmable watchdog. The 4 Kbyte loader region is what makes in-system updating possible, so its contents deserve their own checksum in an archive manifest. The W79E201A16LN in a 48-pin LQFP supports in-circuit emulation through a JTAG interface, which is a development feature and not a production programming header. Any documentation of the firmware should record the ADC channel assignment, the baud-rate generator setting and the reboot-pin strapping, because those values are board specific. The surrounding microcontroller cross-reference is documented in W77E058A flash documentation.
Ordering codes, bodies and rails
Ordering codes distinguish the 48-pin LQFP development part from the through-hole and PLCC bodies, and the suffix also selects temperature grade and packing. Rework notes should record the crystal or external clock source, since the core is fully static and will happily run at a lower frequency with lower power draw. The P4.0 strap is the practical access detail, because the W79E201A boots LDROM only when that line is held low at reset. A comparable recovery note is 32 bit power architecture MCU spc56ap54l5 flash memory recovery.
Scope of an authorised engagement
Within the Winbond 8051 catalogue this member sits in the fast W79 line, which shares the instruction set but not the memory map with the slower W78 devices. The loader array is a real second region, which is why service notes written for single-array parts are misleading here. A written handover starts with package marking, ordering code, identification word, clock source and supply rails, then compares the owner’s archived build output with what the fitted device reports. A JTAG-capable development package exists for emulation, but production parts are normally programmed over the ISP boot path instead. Technical findings, not a claimed bypass, are what the service provides. Further reading on adjacent 8051 and MCU boards: Altera cpld epm7064aetc100 chip protection breaking.
If you need to break W79E201 secured flash firmware, the practical first step is a written identification report: package marking, ordering code, device identification, clock source and supply rails, followed by a comparison with any build archive you hold. Our engineers document those findings, explain whether a clean read is possible, and state the whole-chip-erase limit before any destructive work is authorised. We work under NDA for legitimate owners and their appointed repair partners, and we do not quote a readout that depends on suppressing a protection state.
Low temperature data remanence in SRAM
Security engineers are interested in the period of time for which an SRAM device will retain data once the power has been removed. The reason for this is as follows. Many products do cryptographic and other security-related computations using secret keys or other variables that the equipment’s operator must not be able to read out or alter. The usual solution is for the secret data to be kept in volatile memory inside a tamper-sensing enclosure. On detection of a tampering event, the volatile memory chips are powered down or even shorted to ground. If the data retention time exceeds the time required by an opponent to open the device and power up the memory, then the protection mechanisms can be defeated.
In the 1980s, it was realised that low temperatures can increase the data retention time of SRAM to many seconds or even minutes. With the devices available at that time, it was found that increased data retention started about −20°C and increased as temperature fell further. Some devices are therefore designed with temperature sensors; any drop below −20°C is treated as a tampering event and results in immediate memory zeroisation. We set out to repeat this work. Our goal was to find whether the memory devices available in the year 2000 exhibit the same behaviour.
Quoted from “Semi-invasive attacks – A new approach to hardware security analysis” writen by Sergei P. Skorobogatov.
Data Remanence: Why ‘Erased’ Is a Statement About a Threshold
The word “erased” hides a measurement. A memory cell stores a quantity — charge on a floating gate, charge on a capacitor, the state of a latch — and a sense amplifier decides whether that quantity represents a one or a zero by comparing it against a reference. Erasing drives the quantity toward one end of the range. It does not remove it, and it does not remove the reference. What remains is a margin, and the margin is the thing that can sometimes be read.
Understanding this changes what a customer should expect from a device that has been through an erase, and it also explains why the same procedure that recovers data from one part yields nothing from another that looks identical.
Three storage mechanisms, three kinds of residue
The mechanisms matter because they fail differently. A volatile latch loses its state when power is removed, but not instantly and not completely. A floating gate holds charge for years but the charge distribution after an erase is not uniform. A DRAM capacitor leaks in milliseconds, which sounds hopeless until the refresh is considered.
| Mechanism | What is stored | What erase does | Residue window |
|---|---|---|---|
| SRAM latch | Cross-coupled inverter state | Nothing; state is lost on power down | Milliseconds to seconds, longer when cold |
| Floating gate (flash, EEPROM) | Trapped charge on an isolated gate | Moves charge to the erased distribution | Thousands of cycles of margin, then none |
| DRAM capacitor | Charge on a capacitor | Refresh stops; charge leaks | Tens of milliseconds without refresh |
The SRAM row is the one that surprises people, because a volatile memory is assumed to be gone the instant power is removed. It is gone as a logical state, but the physical tendency of each cell to prefer one side persists briefly, and cooling the device slows the relaxation enough to extend the window from milliseconds to seconds. This is the basis of cold-boot recovery, and it is a real effect with real limits.
Why temperature changes the window
The relaxation of a latch is driven by thermal energy. Cool the die and the carriers have less energy to cross the barrier that holds the preferred state, so the state persists longer. The relationship is strong enough that the practical procedure involves cooling the device below the point where the effect is measurable, then powering it up and reading immediately.
The same logic applies in reverse to floating gates. A floating gate loses charge by thermionic emission and by trap-assisted leakage, both of which are temperature-activated. A device stored hot for years will have a wider erased distribution than one stored cold, which means less margin, which means less chance of distinguishing a partially erased cell from a fully erased one.
What an erase actually does to a floating gate
A flash erase applies a field that drives charge off the floating gate through the oxide. The result is a distribution of threshold voltages, not a single value. Cells that were programmed hard end up at the high end of the erased distribution; cells that were already erased are pushed further. The two groups overlap less than before, but they do not become identical.
| Cell history | Post-erase threshold | Detectable? |
|---|---|---|
| Programmed once, erased once | Slightly above the erased median | Marginally, with careful measurement |
| Programmed and erased many times | Indistinguishable from erased | No |
| Never programmed | At the erased floor | No, and nothing to detect |
| Programmed, erase interrupted | Well above the erased median | Yes, clearly |
The fourth row is the interesting one for forensics: an interrupted erase leaves cells in an intermediate state, and the pattern of intermediate cells is the pattern of the data that was being erased. This is not a routine recovery route, but it is the mechanism behind the occasional result where a partially erased region yields fragments.
Reading margin requires a different instrument
A normal read uses the sense amplifier’s fixed reference and reports one bit per cell. That is precisely the wrong measurement for remanence, because it collapses the margin into a single bit and discards the information that matters. What is needed is a measurement of the actual threshold, cell by cell, which means either a parametric test structure or a physical technique that reads charge directly.
| Approach | What it measures | Applicability |
|---|---|---|
| Normal read at nominal reference | Logical value only | Useless for margin |
| Read at shifted reference | Whether the cell is above or below a moved threshold | Works if the reference is adjustable |
| Parametric sweep | Threshold voltage distribution | Requires test access, rarely available |
| Physical probing or imaging | Charge or doping profile | Destructive, expensive, definitive |
The second row is the practical one where the device supports it: if the reference can be moved, each cell can be interrogated at several thresholds and the margin reconstructed. Most production devices do not expose that control, which is why the fourth row exists.
EEPROM arrays in older programmable logic show the same effect in a form that is easier to work with, because the cells are large and the programming mechanism is documented. Extracting PLD EEPROM covers the charge pump and threshold behaviour of those devices, and the physics is the same one that makes flash margin decay with erase cycles.
The distinction that matters commercially
Recovery from remanence is not the same service as recovering a protected device. In the protected case, the data is fully present and the question is access. In the remanence case, the data is degraded and the question is whether enough margin survives to decide each bit. The second is probabilistic, and a supplier who quotes it as a certainty is either misunderstanding the physics or overselling.
| Situation | Data state | Realistic outcome |
|---|---|---|
| Protection set, never erased | Fully present | High confidence recovery |
| Bulk erased hours ago, stored cool | Margin partially present | Partial recovery, block-level certainty varies |
| Bulk erased, many cycles, stored hot | Margin at floor | No recovery |
| Power removed from SRAM, device cooled | Latch tendency present | Partial recovery with statistical error correction |
The fourth row is where the error-correction work happens: because the recovered SRAM image has a bit error rate rather than a clean read, the useful techniques are the ones that exploit redundancy — known plaintext, structure in the data, and repeated captures averaged together.
Where this sits in the wider workflow
Remanence work is downstream of everything else. It only becomes relevant when the device has been erased, which means the normal route has already failed. Restoring embedded information describes how partial material is turned into a usable deliverable, and breaking an MCU covers the access question that precedes it. The physical techniques used to measure charge are the same ones used to read a protected array, applied with a different instrument and a different objective.
Services at this boundary
Work covers assessment of whether a device has recoverable margin at all, cold-boot SRAM capture with statistical reconstruction, partial recovery from interrupted erases, and honest reporting of what was not recovered. It does not cover recovering data from a device that has completed many erase cycles and been stored at temperature, because the margin is genuinely gone.
The right expectation is a probability, not a promise. That is not a hedge; it is the accurate description of a measurement against a threshold.
PIC16F84A Microcontroller Chip Attack
PIC16F84A Microcontroller Chip Attack
It is not always necessary for the power glitches to be outside the specified power supply voltage range. For example, in the same PIC16F84A microcontroller the protection mechanism can be defeated by applying a mere 50 mV glitch after the chip erase operation has started which will cause the failure of PIC16F84A Microcontroller Chip Attack. That causes termination of the program memory erase operation but not the fuse erase.
All the above examples of glitch attacks show how powerful such attacks can be unless special countermeasures are implemented. These could be voltage and clock monitor circuits which reset the CPU if the voltage or clock frequency go out of range. Clock-monitoring circuits are normally used in smartcards but very few microcontrollers have them.
Break W78E62 secured flash binary
When a legacy controller fails, the phrase break W78E62 secured flash binary hides several distinct tasks: identification, comparison and, only where permitted, a labelled readout. The W78E62 makes that separation unusually clear. Built-in 74373 and 74244 logic on Port 2 is the unusual feature of this 64 Kbyte MTP member.
What the W78E62 exposes for break W78E62 secured flash binary
This group is the 64 Kbyte ISP generation: an 8052-compatible core with in-system programmable application flash, a separate 4 Kbyte loader array and a block of auxiliary RAM reached through MOVX. The 4 Kbyte LDROM can hold a complete field updater, so its contents deserve a separate checksum in an archive manifest. The CPU runs up to 40 MHz, provides three 16-bit timer/counters, one full-duplex UART, a watchdog and an eight-source two-level interrupt controller. Binary, heximal and source code are convenient shorthand, but the archive manifest must name the exact region each file came from.
Array geometry and linker maps
Application storage is 64 Kbytes of Flash or MTP APROM with a 4 Kbyte auxiliary LDROM that holds the loader program, and on-chip RAM is 256 bytes plus 1 Kbyte of AUX-RAM on most members or 512 bytes total on the B-style derivatives. The 64 KB APROM + 4 KB LDROM / 256+1 KB or 512 B RAM / ISP and software reset specification is the shared reference for this group. A comparable recovery note is W78E052 flash documentation.
Identification on a locked sample
| Item | What the data sheet states |
|---|---|
| Core | 8052-compatible, up to 40 MHz, 2.4-5.5 V or 4.5-5.5 V by derivative |
| Memory | 64 KB APROM + 4 KB LDROM / 256+1 KB or 512 B RAM / ISP and software reset |
| Program memory | 64 Kbytes main Flash or MTP APROM plus a 4 Kbyte LDROM loader array |
| RAM | 256 + 1 Kbyte AUX-RAM, or 512 bytes including 256 bytes AUX-RAM |
| Package | DIP40 / PLCC44 / QFP44 / LQFP48 |
| Programming | CHPCON register controls ISP mode; H/W reboot boots from LD Flash EPROM |
Security is implemented as a protection state in the configuration area, and the programming interface still returns the device identification and the reported memory size when external reads of the application array are disabled. A whole chip erase is the operation that clears the state, and it removes the application and the loader together. PWM outputs, the counter array and the Port 2 glue logic are application peripherals and provide no service backdoor. A signed build archive compared with the board’s observable behaviour is the reliable reconstruction path. Further reading on adjacent 8051 and MCU boards: W78E52B flash documentation.
Clock source and baud generation
Three 16-bit timer/counters, one UART, a watchdog and eight interrupt sources are standard, while the extra port P4 can serve as extra I/O, an interrupt input or a chip-select output. The ISP control register CHPCON selects the boot source and the software reset behaviour, so its value belongs in any firmware documentation. A CHPCON value that boots LDROM at reset makes the board look dead until the boot condition is understood. Recording the PWM duty configuration and the UART baud setting is as important as saving the executable program, because both are board specific. A secured microprocessor still exposes its identification word, which is why the first deliverable is always a written record. The wider Winbond, Nuvoton and general MCU material is linked here: W78E065 flash documentation.
Ordering codes across generations
DIP40, PLCC44, QFP44 and LQFP48 bodies appear across this group, with the 44-pin options exposing the extra port and the 48-pin option adding I/O lines. Ordering suffixes distinguish the MTP version from the Flash version and select lead-free or reel packing; none of them changes the 64 Kbyte array size. A 100 nF ceramic at each supply pin and a bulk capacitor on the rail complete the board checklist. Related device notes on this site cover the wider 8051 family: Attack arm stm32f205rf microprocessor tamper resistance.
Deliverables and service limits
These parts share the 64 Kbyte application array and the 4 Kbyte loader, but they are not identical silicon: PWM channel counts, the counter array, the auxiliary RAM size and the Port 2 glue logic vary by derivative. A service note that quotes only the family name is therefore insufficient evidence for an archive. The marked ordering code, the reported array size and the CHPCON value are the three items that identify the fitted device. Where protection is set, the deliverable is documentation rather than a claimed bypass, and the whole-chip-erase consequence is stated in writing. Derivatives with 74373 and 74244 logic on Port 2 can drive external memory without glue parts, which changes the bus timing recorded in a service note. All work is scoped under NDA for the owner or an appointed repair partner, and we never price a service that depends on defeating the protection field. For background on a neighbouring Winbond part, see Attack atmega IC chip microcontroller avr program.
Owners considering break W78E62 secured flash binary should expect a technical deliverable first: a datasheet-based identification record, a labelled image where the protection state permits one, and a clear written statement where it does not. We explain that a whole chip erase removes the firmware together with the protection, require written authorisation before any destructive step, and never price a service that depends on defeating the security field. That boundary is what keeps a recovered program file usable as evidence years later.
Attack Winbond W78E051A Protected Eeprom
When Attack Winbond W78E051A Protected Eeprom, we need to have some general idea about its architecture. The W78E051A architecture consists of a core controller surrounded by various registers, five general purpose I/O ports, 256 bytes of RAM, three timer/counters, and a serial port. The processor supports 111 different opcodes and references both a 64K program address space and a 64K data storage space.
Timers 0, 1, and 2
Timers 0, 1, and 2 each consist of two 8-bit data registers. These are called TL0 and TH0 for Timer 0, TL1 and TH1 for Timer 1, and TL2 and TH2 for Timer 2. The TCON and TMOD registers provide control functions for timers 0 and 1. The T2CON register provides control functions for Timer 2. RCAP2H and RCAP2L are used as reload/capture registers for Timer 2.
The operations of Timer 0 and Timer 1 are the same as in the W78E051A. Timer 2 is a special feature of the W78E051A: it is a 16-bit timer/counter that is configured and controlled by the T2CON register. Like Timers 0 and 1, Timer 2 can operate as either an external event counter or as an internal timer after Attack Winbond W78E051A Protected Eeprom, depending on the setting of bit C/T2 in T2CON. Timer 2 has three operating modes: capture, auto- reload, and baud rate generator. The clock speed at capture or auto-reload mode is the same as that of Timers 0 and 1.
New Defined Peripheral
In order to be more suitable for I/O, an extra 4-bit bit-addressable port P4 and two external interrupt INT2 , INT3 has been added to either the PLCC or QFP 44-pin package. And description follows:
1. INT2 / INT3
Two additional external interrupts, INT2 and INT3 , whose functions are similar to those of external interrupt 0 and 1 in the standard 80C52. The functions/status of these interrupts are determined/shown by the bits in the XICON (External Interrupt Control) register. The XICON register is bit-addressable but is not a standard register in the standard 80C52. Its address is at 0C0H. To set/clear bits in the XICON register, one can use the “SETB (/CLR) bit” instruction. For example, “SETB 0C2H” sets the EX2 bit of XICON.
Power Glitches: The Two Thresholds That Bound Every Vcc Dip
The phrase “power glitch” suggests something crude: drop the supply, confuse the chip, get lucky. In practice a usable power glitch occupies a band a few hundred millivolts tall and a few hundred nanoseconds wide, and everything outside that band produces either nothing at all or a dead device. The work is not in generating the dip. It is in finding and holding the band.
The reason the band exists is that two independent protection mechanisms sit on either side of it. Below it, the brown-out detector fires and the part resets, which destroys the state that was about to be corrupted. Above it, the logic still has enough margin to sample correctly, so nothing changes. A successful glitch lives in the space between a reset that happens too early and a computation that completes too well.
What a dip actually breaks
A digital circuit does not fail because the supply is low. It fails because the time a gate needs to propagate a value grows as the supply falls. Delay in a CMOS gate scales roughly as the inverse of the overdrive above threshold, so a supply that is twenty percent low can add thirty to fifty percent to the delay of the slowest path in a combinational block.
A flip-flop at the end of that path has a deadline. If the new value arrives after the setup window closes, the flip-flop either captures the previous value or enters a metastable state and resolves arbitrarily. The first outcome is the useful one: the register keeps its old contents while the rest of the machine has moved on. A conditional branch that should have been taken is not taken, a comparison that should have failed passes, a counter that should have incremented does not. This is a fault, not a crash, and it is why power glitching can be surgical.
The important consequence is that the effect is data dependent and path dependent. A dip that corrupts the comparison in one routine leaves every other routine correct. That selectivity is what makes the technique usable against a protected device: the target is one specific decision, and the rest of the chip has to keep running well enough to report the result.
The lower bound is the brown-out detector
Almost every microcontroller since the mid-2000s has a brown-out detector, sometimes called a BOR or a supply voltage supervisor. Its job is exactly the thing an attacker does not want: when Vcc falls below a threshold, hold the core in reset until the supply recovers. Thresholds are commonly selectable in steps between about 1.8 V and 4.3 V on a 3.3 V part, usually through a configuration byte.
The detector is the lower wall of the window. Below it, the reset dominates everything and the glitch is invisible in the output. This is the single most common reason a first attempt fails: the depth is increased until the device simply stops responding, and the conclusion drawn is that the part is protected. The part is not protected. The dip was too deep, and the reset fired before the target instruction executed.
Reading the detector threshold out of the configuration is therefore step zero. On parts with a readable option byte it is a routine read. On locked parts it can often be inferred from behaviour: apply a slow, monotonic ramp downward and find the supply at which the device stops executing and starts drawing the reset current. That measurement costs ten minutes and saves days.
The upper bound is the sampling margin
The upper wall is less obvious because it is not a designed feature. It is the leftover timing margin of the slowest path, and it moves with temperature, with the selected clock, and with the individual die.
A part running at 8 MHz from a 3.3 V supply has a 125 ns cycle. If the critical path needs 60 ns at nominal, there is 65 ns of slack. A supply dip that pushes the path to 70 ns still leaves it inside the cycle, so nothing is corrupted. The dip has to be deep enough, or the clock fast enough, that the path exceeds the cycle. This is why the same glitch setup that works on one board fails on the next: the two boards do not have the same slack, because they do not have the same clock configuration.
| Quantity | What moves it | What it changes |
|---|---|---|
| BOR threshold | Option byte setting | Lower wall of the window |
| Critical path delay | Temperature, supply, silicon speed grade | Upper wall of the window |
| Clock period | PLL and prescaler settings | Where the upper wall sits relative to the cycle |
| Dip duration | Pulse generator | Whether one or several cycles are affected |
The last row is often overlooked. A dip shorter than one clock cycle corrupts at most one pipeline stage. A dip spanning three cycles can corrupt three consecutive instructions, and the three are not independent: corrupting an instruction fetch and corrupting a data write produce very different failures.
Depth and width are independent knobs
Most published descriptions treat the glitch as a single parameter, the amplitude. That is misleading, because amplitude and duration act on different parts of the problem.
Depth decides whether any given path fails. Width decides how many operations are exposed to the failure. A deep, narrow pulse produces a single fault at a precisely known instruction. A shallow, wide pulse produces a slow supply that the regulators and the decoupling network have time to compensate for, which usually produces nothing. Between them sits the useful regime: a pulse wide enough that the pulse generator’s own edge rates do not dominate, and deep enough that the target path misses its deadline.
In practice the two are swept as a grid, not tuned independently, because the interaction is not separable. A deeper pulse can be narrower and still work, and the grid therefore has a hyperbolic ridge of successful settings rather than a single point. Mapping that ridge takes a few hundred attempts on a rig that can repeat a run every second, and it is the difference between a technique that works once and a technique that works on demand.
Why the window moves
Three environmental factors shift the window enough to lose a previously good setting.
Temperature is the largest. Delay rises as temperature rises in most process nodes, so a warm device needs a shallower dip to reach the same failure. A rig calibrated at room temperature and used on a warm part will overshoot into the reset region.
Clock frequency is the second. Doubling the clock halves the slack and makes the window wider and shallower, which is convenient, but it also halves the time available to trigger the dip at the right instruction, which makes the timing harder.
Supply decoupling is the third, and it is the one that varies most between boards. A board with 10 µF of ceramic capacitance near the die resists a 100 ns dip far more than a board with 100 nF. The pulse generator’s specified amplitude is therefore not the amplitude seen at the die, and the difference can be a few hundred millivolts.
Measuring the dip at the die rather than at the generator is not optional if the work is to be repeatable. A short ground lead and a wideband probe are enough; the measurement is crude but it converts a guess into a number.
Three outcome signatures
Once the rig is running, every attempt produces one of three outcomes, and telling them apart is what turns a sweep into a search.
The first is a reset. The device reboots, the startup banner repeats, and any volatile state is gone. This means the dip crossed the brown-out threshold, so the next attempt should be shallower or shorter.
The second is a hang. The device stops responding but does not restart. This is the signature of a corrupted control flow: the program counter reached an address that holds no valid instruction, or a loop lost its exit condition. It means the dip was in the useful depth range but landed on the wrong instruction, so the timing offset should move.
The third is the target outcome, and it is usually quiet. The device behaves normally except for one decision: a check passes that should have failed, or a lock state reads as open that should read as closed. There is no error message, because from the device’s point of view nothing went wrong.
Only the third outcome is progress, and it is easy to mistake the second for it if the acceptance criterion is not explicit before the run starts.
What this means in recovery work
On a device whose read protection is a single configuration bit checked at boot, a power glitch is one of the few techniques that can open a session without erasing the array. The dip has to land on the branch that evaluates the protection state, which is why the first task in such a job is locating that branch rather than building a pulse generator.
The honest boundary is worth stating. A glitch can make a device accept a command it would otherwise refuse; it cannot make a device return data it never stored. Where the protection is enforced by a physical barrier rather than a firmware check, no supply manipulation changes the outcome, and the work moves to the optical route described in extracting IC flash. What a glitch can reliably produce is a session, and what that session can read depends on the read path itself, which is the subject of three read channels.
The service side of this is narrow and specific. We characterise the brown-out threshold and the timing slack of the actual board, sweep the amplitude and duration grid, and report the ridge of settings that produces a controlled fault rather than a reset. We do not promise that a glitch will defeat every protection, because on parts with a shielded die and an internal supply regulator there is no external node to dip. Establishing which case applies costs one measurement and prevents an unfundable project.
Related mechanisms
A clock glitch attacks the same margin from the time side instead of the voltage side, and the difference in what it can reach is treated in clock glitch application. The injection point for either technique decides whether the chip can even see the disturbance, which is covered in clock glitch injection points. Once a fault is reproducible, finding the right instruction among thousands is a search problem, and glitch attacks as a search problem sets out the sweep strategy that makes it tractable.
Attack W77E058A protected program data
Laboratories that attack W77E058A protected program data begin by transcribing the schematic, the crystal value and the reset circuit. For the W77E058A those three items decide which data sheet section actually applies. Two UARTs and dual data pointers are the signature features of this turbo 8051 generation.
Reading the data sheet before attack W77E058A protected program data
![]()
The turbo 8051 generation uses a redesigned core that runs at 4 clocks per machine cycle instead of 12, so at the same crystal frequency most instructions finish 1.5 to 3 times faster and overall throughput is about 2.5 times a classic 8051. It is fully static CMOS, pin compatible with the 80C52 and instruction-set compatible with MCS-51, with a maximum 40 MHz clock on a 4.5 to 5.5 V rail. Dual 16-bit data pointers, three 16-bit timers, twelve interrupt sources with two priority levels and two enhanced full-duplex serial ports complete the CPU environment. The 4 clocks per machine cycle architecture is the defining characteristic here. The phrase locked chip describes a configuration state, not a mechanical barrier that decapsulation can remove.
Single-array versus loader-based maps
![]()
Program memory is 32 Kbytes of Flash EPROM, and data memory is 256 bytes of scratchpad RAM plus a separate 1 Kbyte on-chip SRAM block reached through MOVX instructions. That second RAM bank is the reason a board can be built without external memory and without the glue logic that would otherwise consume I/O pins. For background on a neighbouring Winbond part, see W78E54B flash documentation.
What the protection state changes
| Item | What the data sheet states |
|---|---|
| Core | 4 clocks per machine cycle, up to 40 MHz, 4.5-5.5 V, 2.5x classic 8051 |
| Memory | 32 KB Flash / 256 B + 1 KB SRAM / 4T 8051 core / dual UART |
| Program memory | 32 Kbytes of Flash EPROM, multiple-time programmable |
| RAM | 256 B scratchpad plus 1 Kbyte on-chip MOVX SRAM |
| Package | DIP40 / PLCC44 / PQFP44 |
| Programming | no loader ROM on the base W77E58; the 516A derivative supports ISP |
Security bits and a timed access protection mechanism guard the configuration registers, and the data sheet states that only a whole chip erase resets the protection state. With that state set, an external read of the application array returns no usable instructions while device identification and the reported memory size remain readable. The 1 Kbyte MOVX SRAM is invisible to a classic 8051 memory dump, which is a common gap in an incomplete archive. Timed access protection is a safeguard against accidental register writes, not a cryptographic engine and not a service interface. The dual data pointers and the second UART are application features and provide no alternate readout path. The surrounding microcontroller cross-reference is documented in W78IE54 flash documentation.
Timers, interrupts and watchdog
Two enhanced full-duplex UARTs, dual data pointers, three 16-bit timers, a programmable watchdog, twelve interrupt sources and software-programmable access cycles for external RAM are all on chip. The extra 4-bit port and the wait-state control signal appear only on the 44-pin PLCC and QFP bodies. Recording the clock frequency and the UART divisor is part of documenting any recovered software. A cloned program file without its oscillator and watchdog settings cannot be validated against the original board behaviour. A comparable recovery note is W78IE52 flash documentation.
Temperature grade and supply window
DIP40, PLCC44 and PQFP44 bodies are published, with lead-free derivatives carrying longer ordering codes such as W77E058A40DL. The 44-pin options expose the extra port and the wait-state signal, so a schematic review is needed before a captured image is trusted on a different body. Further reading on adjacent 8051 and MCU boards: Atmel avr microcontroller atmega32 flash memory breaking.
Archive comparison and final report
Within the Winbond catalogue this is the high-speed 4T branch, distinct from the 12T W78 line even though the pin-out is compatible. A 64 Kbyte sibling exists with ISP support, but the 32 Kbyte members described here have no loader ROM. The second UART is often wired to a service connector, so its baud setting is worth recording before the board is powered down. Core timing, the second UART and dual data pointers are the three items that separate this branch from a W78 part. Our written scope covers the package marking, ordering code, device identification, clock frequency, supply rails and UART configuration, then compares the owner’s release archive with what the fitted device reports. On an unlocked part the handover is a labelled program file for the single 32 Kbyte flash array. We work under NDA for the owner or an authorised repair agent, disclose the erase consequence up front, and never quote a readout that depends on defeating the protection state. The wider Winbond, Nuvoton and general MCU material is linked here: Attack altera cpld epm7064stc44 10 IC EEPROM memory.
Any attack W77E058A protected program data request is handled the same way on every 8051 board: identify the fitted generation, record the memory map and clock tree, then compare the customer’s archived build output with what the programming interface reports. Where the array is unprotected a labelled program file can be returned; where it is protected we supply an identification and documentation package instead. All work is scoped in writing for the owner or an authorised agent, with the erase consequence stated up front.
Clock Glitches in Practice: Hitting the Path With the Least Margin
A clock glitch is the cleanest fault injection technique available on a microcontroller, and the reason is that it changes only one variable. The supply stays at nominal, the temperature stays where it was, and no analog node is disturbed. What changes is that a clock edge arrives earlier than the design expected, and a register somewhere samples a value that has not finished arriving.
This is why clock glitching is the first technique taught in every hardware security course and the last one that works on a real protected product. It is clean in the laboratory and awkward in the field, because the injection has to reach the clock input, and modern designs increasingly generate their clock internally.
Why an extra edge is enough
Synchronous logic is built on a promise: every path between two flip-flops settles within one clock period. The synthesis tool guarantees this by computing the longest path and choosing a period longer than it. The margin, the difference between the longest path and the period, is what keeps the chip working across temperature, voltage and process variation.
A clock glitch shortens one period. If the shortened period is still longer than the longest path, nothing happens. If it is shorter, the flip-flop at the end of that path samples a value that is still changing, and the sampled value is unpredictable but not random: it is biased towards whichever value was present earlier, because the input has had time to move partway.
That bias is important. It means a glitched comparison usually resolves one way, not fifty-fifty. Repeated identical glitches produce repeated identical failures, which is exactly what makes the technique usable: an attacker can learn the behaviour of one specific decision and then reproduce it on demand.
The margin is not uniform
The critical path that synthesis reports is the single worst path in the whole design. It is almost never the path that matters to an attacker. The paths that matter are the ones with the smallest margin among those that carry security-relevant decisions, and those are usually short, fast structures with plenty of slack.
| Structure | Typical slack | Why it is reachable |
|---|---|---|
| Byte comparison loop | Large | Loop increments dominate, so the compare can be shortened |
| Flag test after a crypto block | Moderate | Depends on the block’s last round |
| Branch on a status register | Large | Set by an earlier long operation |
| Address decode for a protected region | Small | Combinational, deep, and on the critical path already |
The fourth row is the interesting one. Address decoders and protection-state comparators are combinational logic in the middle of the memory path, and they are frequently close to the timing limit because the designer wanted the access fast. They are therefore the easiest targets, and they are also the least likely to be mentioned in a design review.
The practical implication is that an attacker does not need to know the netlist. Sweeping the offset of the glitch across an instruction boundary produces a map of which offsets produce a fault, and the shape of that map identifies the structure: a one-instruction-wide response is a flag test, a three-instruction-wide response is a comparison loop, and a broad response across many instructions is a clock domain problem rather than a targeted fault.
What an extra edge does to the pipeline
A pipeline complicates the model. In a three-stage pipeline, shortening one period corrupts the instruction in the execute stage, but the instruction in the fetch stage may also be affected if the fetch happens on the same edge. The result is that a single glitch can corrupt two instructions that are adjacent in time but not in program order, which produces failures that look incoherent until the pipeline is drawn.
On parts with a prefetch buffer the situation is worse, because the buffer decouples fetch from execute by several cycles. A glitch that lands on a fetch fills the buffer with a wrong instruction, and that instruction executes two or three cycles later, long after the glitch has ended. The symptom is a fault that appears several instructions after the injection point, and the offset has to be corrected by the buffer depth. Getting this wrong produces a sweep that finds nothing, because the operator is looking in the wrong window.
Determining the pipeline depth and prefetch behaviour is therefore part of the setup, not an optimisation. It is usually visible from the datasheet’s instruction timing table, and it can be confirmed by injecting a fault at a known instruction and observing where the failure appears.
Voltage and clock are not interchangeable
It is tempting to treat power and clock glitching as two ways of doing the same thing. They are not, and the difference is what each one can reach.
A voltage dip slows every path in the design at once, so the first path to fail is the one with the least absolute slack. A clock glitch shortens the window for every path at once, so the first path to fail is again the one with the least slack. The difference is in the side effects: a voltage dip disturbs the analog blocks, the oscillators, the ADC references and the brown-out detector, while a clock glitch disturbs none of them.
That makes the clock glitch preferable when the target involves an analog measurement or a clock-derived delay. It makes the voltage glitch preferable when the clock is generated internally and cannot be reached. The choice is a topological one, decided by the board, not by preference.
The offset is more important than the width
In a clock glitch the width parameter is the position of the extra edge relative to the nominal edge, and the useful range is narrow: a few nanoseconds on either side of the point where the target register would have sampled.
| Offset relative to nominal edge | Effect |
|---|---|
| Earlier than the previous edge | Two full periods collapse; usually a reset or a hang |
| Just after the previous edge | Previous instruction’s result corrupted |
| Just before the nominal edge | Target register samples early; the useful case |
| After the nominal edge | No effect on this cycle |
The third row is where the work happens, and it is a window of a few nanoseconds that moves with temperature. A rig that cannot resolve a one-nanosecond step cannot do this reliably, and a rig that can is usually a programmable delay line rather than a function generator.
Reading the failure
The output of a clock glitch attempt is one of four things, and each points at a different correction.
A clean reset means the glitch hit the reset logic or corrupted the stack badly enough to trigger a watchdog. Move the offset later.
A hang with the clock still running means the program counter reached an invalid address. Move the offset earlier and check whether the target instruction was the one that got corrupted.
A single wrong decision with no other symptom is the target outcome. Record the offset, the temperature and the clock setting, because the same numbers will be needed to repeat it.
A device that stops responding to the programmer entirely means the glitch corrupted the debug interface’s own state machine. Power cycle before concluding anything, and if the condition persists, the part may have entered a state that only a mass erase clears, which is a data-loss event rather than a setback.
Where this fits in recovery work
A clock glitch is used in recovery work for one purpose: to make a device accept an operation it would otherwise refuse, without erasing what it holds. That means landing a fault on the branch that evaluates read protection, or on the check that gates a debug command.
The boundary is firm. A glitch can corrupt a decision; it cannot create data that was never programmed, and it cannot defeat a protection enforced by a physical barrier rather than a conditional branch. Where the barrier is physical, the route is the one described in extracting IC flash. Where the decision is reached through a supply-sensitive path, the complementary technique is in power glitches.
The service we provide at this layer is characterisation rather than magic. We measure the offset window on the customer’s actual board, identify the pipeline depth that shifts the observed fault, and report whether the target decision is reachable from the clock input at all. On boards where the clock is generated internally and no clock pin is exposed, the answer is no, and saying so early is more useful than a long attempt. The injection-point question itself is treated separately in clock glitch injection points.
Attack Nutovon Microcontroller W77E52 Flash Memory
It is very critical to reset the security bits of Microcontroller W77E52 to disable its protection against the internal memory system which include flash and eeprom, only when the bits has been disable, the Attack Nutovon Microcontroller W77E52 Flash Memory will become a possibility, now we list some of the basic features of its security bits:
During the programmer operation mode, the Flash EPROM can be programmed and verified repeatedly. Until the code inside the Flash EPROM is confirmed OK, the code can be protected. The protection of Flash EPROM and those operations on it are described below.
The W77E52 has a Special Setting Register, the Security Register, which can be accessed in normal mode. The register can only be accessed from the Flash EPROM operation mode. Those bits of the Security Registers can not be changed once they have been programmed from high to low. They can only be reset through erase-all operation. The Security Register is addressed in the Flash EPROM operation mode by address #0FFFFh when Attack Nutovon Microcontroller W77E52 Flash Memory.
7.1 Lock Bit
This bit is used to protect the customer’s program code in the W78E51B. It may be set after the programmer finishes the programming and verifies sequence. Once this bit is set to logic 0, both the on-chip ROM data and Special Setting Registers can not be accessed again.
7.2 MOVC Inhibit
This bit is used to restrict the accessible region of the MOVC instruction. It can prevent the MOVC instruction in external program memory from reading the internal program code. When this bit is set to logic 0, a MOVC instruction in external program memory space will be able to access code only in the external memory, not in the internal memory. A MOVC instruction in internal program memory space will always be able to access the ROM data in both internal and external memory. If this bit is logic 1, there are no restrictions on the MOVC instruction after Attack Nutovon Microcontroller W77E52 Flash Memory.
7.3 Encryption
This bit is used to enable/disable the encryption logic for code protection. Once encryption feature is enabled, the data presented on port 0 will be encoded via encryption logic. Only whole chip erase will reset this bit before reverse engineering MICROCONTROLLER.

