EYE on NPI: STSAFE chip collection from ST


Apr 15 2020 6 mins   9
This week's EYE ON NPI takes a closer look at security! The STSAFE chip collection from ST (https://www.digikey.com/product-detail/en/stmicroelectronics/X-NUCLEO-SAFEA1A/497-X-NUCLEO-SAFEA1A-ND/11568322) is a super easy and inexpensive way to add hardened security to your project - giving you a lot of flexibility when deciding on core chipsets. Why is a separate chip important? Microcontrollers often store their code in flash memory, so even if you hard-code authentication keys in flash or EEPROM, it can be read out by dumping the firmware. Yes, even if you have a chip that has firmware-readback turned off, it’s possible to trick chips into revealing their secrets! As hackers ourselves, we've seen novel and effective techniques for unlocking microcontroller firmware that would normally be in State-actor's toolkits available at hobbyist costs. Techniques like epoxy-removal and pinpoint UV erasing, power glitching, bootloader buffer overflows, key brute-force guessing, decompilation, power-usage instruction tracking can be used to disable or circumvent firmware protection fuses. In addition, many products are now embedded Linux computers running a plain filesystem with executables that cannot be secured. So, given that your microcontroller memory should not be considered a secure storage, you may want to consider using a secure element chip. These chips are designed to withstand many attacks and can be programmed with the private key at your factory. Then, the secrets never leave the secure chip. Instead of having a private key sit in microcontroller memory where it could be read out, data that needs to be authenticated or encrypted is sent back and forth through I2C. It’s a little extra BoM cost but is a nice way to keep the secrets in a lock-box. We've seen these chips used for a variety of purposes - TLS handshake speed-up, firmware verification, device authentication, message signing and authentication, and of course secure-channel establishment. We teamed up with Digi-Key to make a video series to cover IoT security - best practices and techniques - which also covers secure chips so if you want a deep dive into IoT security check out this guide and video! (https://learn.adafruit.com/all-the-internet-of-things-episode-five-the-s-in-iot-is-for-security) When sourcing a security chip, you want a trustworthy supplier who takes security seriously - the chips are not expensive, but you want to make sure the supply chain is accounted for. ST is a well known semiconductor company that we'd recommend and trust for any of our uses! The STSAFE-A100 is a highly secure solution that acts as a secure element providing authentication and data management services to a local or remote host. It consists of a full turnkey solution with a secure operating system running on the latest generation of secure microcontrollers. The STSAFE-A100 can be integrated in IoT (Internet of things) devices, smart-home, smart-city and industrial applications, consumer electronics devices, consumables and accessories. If you want to get started with the STSAFE, you can pick up this handy board, it is Arduino-header compatible. You can plug it into an ST Nucleo dev board. In particular, the STM32L476RG is used for the X-CUBE example firmware so we recommend picking up a NUCLEO-L476RG as well (https://www.digikey.com/products/en/development-boards-kits-programmers/evaluation-boards-embedded-mcu-dsp/786?k=STM32L476RG). The ST dev boards are really affordable and come with a built-in debug/programming chipset for quick setup. Development is done in ST's IDE setup, if you've never used it before, please check out Shawn Hymel's excellent video series that takes you step by step through setting up to use STM32Cube IDE (https://www.digikey.com/en/maker/videos/shawn-hymel/getting-started-with-stm32-and-nucleo-part-1-introduction-to-stm32cubeide-and-blinky) video - https://www.youtube.com/watch?v=18hou01YIiw video 2 - https://www.youtube.com/watch?v=wIdtqPB3rE4 Visit the Adafruit shop online - http://www.adafruit.com ----------------------------------------- LIVE CHAT IS HERE! http://adafru.it/discord Adafruit on Instagram: https://www.instagram.com/adafruit Subscribe to Adafruit on YouTube: http://adafru.it/subscribe New tutorials on the Adafruit Learning System: http://learn.adafruit.com/ -----------------------------------------