# Understanding ESP32's Security Features

DevFeed: [Understanding ESP32's Security Features](<https://devfeed.tech/articles/understanding-esp32-s-security-features-13965.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/understanding-esp32s-security-features/>)

Author: John Lee

Published: 2018-05-31T00:00:00Z

Content type: article

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [Secure Boot](<https://devfeed.tech/topics/secure-boot.md>), [Flash Encryption](<https://devfeed.tech/topics/flash-encryption.md>), [ESP32](<https://devfeed.tech/topics/esp32.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [application](<https://devfeed.tech/tags/application.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bootloader](<https://devfeed.tech/tags/bootloader.md>), [building-products](<https://devfeed.tech/tags/building-products.md>), [code](<https://devfeed.tech/tags/code.md>), [data](<https://devfeed.tech/tags/data.md>), [device](<https://devfeed.tech/tags/device.md>), [encryption](<https://devfeed.tech/tags/encryption.md>), [esp32](<https://devfeed.tech/tags/esp32.md>), [execution](<https://devfeed.tech/tags/execution.md>), [external](<https://devfeed.tech/tags/external.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [flash](<https://devfeed.tech/tags/flash.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [keys](<https://devfeed.tech/tags/keys.md>), [memory](<https://devfeed.tech/tags/memory.md>), [rsa](<https://devfeed.tech/tags/rsa.md>), [secure-boot](<https://devfeed.tech/tags/secure-boot.md>), [security](<https://devfeed.tech/tags/security.md>), [soc](<https://devfeed.tech/tags/soc.md>), [spi](<https://devfeed.tech/tags/spi.md>), [spi-flash](<https://devfeed.tech/tags/spi-flash.md>)

## AI overview

ESP32v3's flash encryption and secure boot address risks from external SPI flash: its contents could be read or modified. The 1024-bit, one-time-programmable eFUSE stores keys for the two features; it can be configured to prevent software from reading or changing them, leaving hardware to use them. Secure boot builds a chain of trust from hardware through the bootloader to application firmware and rejects code if even one bit has changed. The excerpt describes a bootloader image containing the executable, an RSA3072 signature and a public key for validation, but cuts off before explaining the full validation process.

## Source excerpt

[This document discusses security features for ESP32v3. If you are looking for the security features of the latest ESP32-S2 SoC, that article is available here.] The ESP32v3 has two interesting features, secure boot and flash encryption. Let's have a quick overview of these features. Typically when a device is shipped, any firmware or data is stored in the SPI flash connected to the ESP32v3.