[We are aware of issues regarding the images when viewed in the latest Firefox browser.Â This page has been tested on bothÂ Internet ExplorerÂ and Opera to properly display the pictures.]Â
Chances are you haveÂ probably seen one of these little USB based tokens made fromÂ Safenet, Inc.
The one we opened was in a blue shell.
As well, theÂ brochure the link above takes youÂ too states,Â "iKey 2032s small size and rugged, tamperresistant construction, make it easy to carry so users can always have their unique digitalÂ entities with them."Â
Now we're not really sure what tamperresistant construction has to do with making things easy for a user to carry aroundÂ but let's get down to the good stuff.
So we took our token apart and the following picturesÂ are what we found:
Above:Â Main CPU side of the token.Â
Our suspicion:Â Could there be aÂ Cypress CY7C63xxx series CPU present?
Above:Â Something buried under epoxy.Â Appears to be die-bonded to the PCB.
Once initial images of the PCB intact were taken.Â It was time to remove the CPU.
We carefully decapsulated the epoxy covering the die buried inside the 24 pin SOIC part.Â What did we find?Â We found a Cypress CY7C63613!Â We suspected it might be this part because of the pinout.Â This is why scratching off the top of the part does not always help.Â Even with the silkscreen scratched away, there are only a few possible candidates using this pinout.Â Additionally,Â this CPU is very common used inÂ USBÂ applications.
Here is the CPU opened up.Â Note that pin 1 on the PCB is in the upper-right corner while in our picture we rotated the device so pin 1 is in the lower-left (we labeled it with a red dot).
Above:Â Cypress CY7C63613 USB CPU (Click on picture for a larger size)
Above:Â Actual closer view of the bare CPU substrate (Click to see commented higher-res image)
Once the CPU was decapsulated, we performed some tests on the device.Â After executing some tricks, the software contained internally was magically in our hands.
We lookedÂ for some type of copyright information in the software but all we found was the USB identifier string at address offset $3C0: i.K.e.y. .188.8.131.52
Now that we successfully analyzed the CPU, the protocol for communications to whatever is present under the epoxy is available to us.Â At this point, we believe it's more than an serial EEPROM because this CPU is not strong enough to calculateÂ asymmetric cryptographic algorithms in a timely manner.
Next we carefully removed the die-bonded substrate from the PCB:
With the die-bonded device removed and a little cleanup, we can clearly see the bondout pattern for a die-bonded smartcard IC.Â Â In the picture above, we can see VCC, RST, CLK, IO, and GND layed out according to the ISO-7816 standard which Flylogic Engineering are experts on.
After completely decapsulating the smartcard processor, we found a quite common Philips smartcard IC.Â We will call this part from now on the Crypto-Coprocessor (CCP).Â Notice there is still a small spec of dirt in the middle of the die.Â We decided to leave itÂ since it's not in our way.
Rotating this picture of the CCP (50x magnified)Â 90 degrees counter-clockwise,Â you can see how it fits into place on the PCB.Â It is glued down and then five alluminum wires were wedge-bonded to the PCB.Â Alluminum wedge-bonding was used so the PCB would not need to be heated which would help them cut down the time required on theÂ assembly line.
In preparation for analysis, we had to rebond theÂ CCP into a 24-pin ceramic dip (CDIP).Â Although we only needed five contacts rebonded, the die-size was too large to fit into the cavity of an 8-pin CDIP.
The CCP is fabricated by Philips.Â It appears to be aÂ ~250nm, five metal layer technology based on the Intel 8051 platform.Â It contains 32k of EEPROM, two static ram areas and a ROM nested underneath a mesh made up of someone(s) initials (probably the layout designers).
This CPU (The CCP is also a CPU but acting as a slave to the Cypress CPU)Â is not secure.Â In fact, this CPU is also all over the globe in GSM SIM cards.Â Â The only difference is the code contained inside the processor.Â
Some points of interest:
Point #1-Â The 'mesh' protecting probing from the ROM's databus outputs is NOT SECURE!
When we cropped and shrunk this picture, it came out pretty bad.Â However, you can see that there is now an opening where we wrote our url.Â The device is alive still but now has a gaping hole over the signature-mesh.
Point #2-Â A quick search on the internet and we came across a public document from when Philips tried to get this part or a part very close to this one common criteria certified.Â You can find this document here.Â Alternatively in case that link goesÂ bad,Â we have saved a copy of the document here.Â You will need Adobe Acrobat reader to view the document.
The document labels this assumed to-be part as a, "Philips P8WE5033V0F Secure 8-bit Smart Card Controller."
Reading over this document, we find a block diagram on page 8.
In the above diagram they mention, "Security Sensors" as a block of logic.Â That's ironic considering we opened a gaping hole in their "mesh" over the ROM and the processor still runs 100% functional.
Point #3-Â For such a "secure" device, Philips could have done a lot more.Â The designer's were pretty careless in a lot of areas.Â Below are some photo's showing a sawn-off test-enable line.Â Simply reconnecting the two tracks together will definately be helpful to an attacker.Â A Focused Ion-Beam Workstation can make bond-pads for those two tracks that we can then bond out to the CDIP.Â This wayÂ we can short or open this test-circuit.
Above:Â Two test tracks (inside the red box)Â lead off to the left edge of the die.
Above:Â Notice on the very right lower edge there is a wire in orange.Â This was the loop back of the track that has now been sawn off.Â This orange loopback would have belonged to the die to the right of this die when still present on the wafer.
Â Now ask yourself if you are a potential customer to Safenet, Inc-Â Would you purchase this token?