If you wish to determine if this article relates to a particular PIC you may be in possession of, you can take an windowed OTPÂ part (/JW) and set the lock-bits.Â If after 10 minutes in UV, it still says it's locked, this article applies to your PIC.Â
IF THE PART REMAINS LOCKED, IT CANNOT BE UNLOCKED SO TEST AT YOUR OWN RISK.
The picture above is the die of the PIC16C558 magnified 100x.Â The PIC16C620-622 lookÂ pretty much the same.Â Â If there are letters after the final number, the dieÂ will be most likely, "shrunk" (e.g. PIC16C622 vs PIC16C622A).Â
Our area of concern is highlightedÂ above along with a zoom of the area.Â Â
When magnified 500x, things become clear.Â Notice the top metal (M2) is covering our DUAL 2-Input AND gate in the red box above.
We previously showed you one half of the above area.Â Now you can see that there is a pair of 2-input AND gates.Â This was done to offer two security lock-bits for memory regions (read the datasheet on special features of the CPU).
Stripping off that top metal (M2) now clearly shows us the bussing from two different areas to keep the part secure.Â Microchip went the extra step of covering the floating gate of the main easilly discoverable fuses with metal to prevent UV from erasing a locked state.Â The outputs of those two fuses also feed into logic on the left side of the picture to tell you that the part is locked during a device readback of the configuration fuses.
This type of fuse is protected by multiple set fuses of which only some are UV-erasable.Â The AND gates are ensuring all fuses are erased to a '1' to "unlock" the device.
What does this mean to an attacker?Â It means, go after the final AND gate if you want to forcefully unlock the CPU.Â The outputs of the final AND gate stage run underneather VDD!! (The big mistake Microchip made).Â Two shots witha laser-cutter and we can short the output stages "Y" from the AND-gate to a logic '1' allowing readback of the memories (the part will still say it is locked).Â
Stripping off the lower metal layer (M1) reveils the Poly-silicon layer.
What have we learned from all this?
- A lot of time and effort went into the design of this series of security mechanisms.
- These are the most secure Microchip PICs of ALL currently available.Â The latest ~350-400nm 3-4 metal layer PICs are less secure than these.
- Anything made by human can be torn down by human!