Firmware protection

anihilator
Posts: 7
Joined: Wed Mar 25, 2015 12:35 am

Firmware protection

Postby anihilator » Fri May 15, 2015 10:05 pm

Hi,

We developed some application for ESP8266 directly flashed via UART. Problem is anybody can readout our code out via UART. Is there any solution to protect our code inside ESP8266?
Thx for possible help.

raz123
Posts: 13
Joined: Tue Feb 24, 2015 9:14 am

Re: Firmware protection

Postby raz123 » Sat May 16, 2015 10:41 pm

anihilator wrote:Hi,

We developed some application for ESP8266 directly flashed via UART. Problem is anybody can readout our code out via UART. Is there any solution to protect our code inside ESP8266?
Thx for possible help.


Physically kill the UART pins.

anihilator
Posts: 7
Joined: Wed Mar 25, 2015 12:35 am

Re: Firmware protection

Postby anihilator » Sun May 17, 2015 6:13 pm

We know about this solution. But after that, we can't update it anymore (which is sad). Have you any tips on how destroy that pins without damaging other functions of chip? Or different solution?

joostn
Posts: 19
Joined: Thu Jan 22, 2015 5:00 pm

Re: Firmware protection

Postby joostn » Sun May 17, 2015 10:58 pm

It's useless, people can still desolder the flash chip and read your firmware. There's simply no way to prevent that.

hdrut
Posts: 25
Joined: Fri Feb 13, 2015 11:02 am
Location: Argentina

Re: Firmware protection

Postby hdrut » Sun May 17, 2015 11:02 pm

Hi,


I'm also interested in this topic. There is the possibility of encrypting the contents of flash memory. I have asked this question before to people at Espressif with no luck.
Hope we can all push harder to get this feature up and running. It´s really important for commercial applications.

Greetings,


Horacio

raz123
Posts: 13
Joined: Tue Feb 24, 2015 9:14 am

Re: Firmware protection

Postby raz123 » Mon May 18, 2015 12:09 am

There are products that are designed, tested, and certified to be "secure" -- and even then, "secure" only lasts until a new vulnerability is found.
This product is not secure by any means.

If you wish to make it something that it is not (eg. secure), then your most probable bet is to destroy the UART pins. Might even do it with electricity.

For updating mechanisms, you can come up with a wireless and encrypted method.

costaud
Posts: 138
Joined: Fri Oct 24, 2014 7:40 pm

Re: Firmware protection

Postby costaud » Mon May 18, 2015 11:03 am

How about :
burn a key which is generated from chip-id to flash.
After boot, check chip id and the key value , run while(1) if not match.

hdrut
Posts: 25
Joined: Fri Feb 13, 2015 11:02 am
Location: Argentina

Re: Firmware protection

Postby hdrut » Mon May 18, 2015 8:43 pm

Hi Costaud,

thks for your reply. As far as i know, that´s only a partial solution, since contents of flash memory can still be read and programmed into another ESP8266 module.

Am i wrong here?


Rgds,


Horacio

User avatar
rudi
Posts: 197
Joined: Fri Oct 24, 2014 7:55 pm

Re: Firmware protection

Postby rudi » Sun May 24, 2015 12:20 pm

hi.. u have post ;-)


btw,
eagle.rom.addr.v6.ld
how this hw function to be use?

aes_decrypt = 0x400092d4
aes_decrypt_deinit = 0x400092e4
aes_decrypt_init = 0x40008ea4
aes_unwrap = 0x40009410

_rom_store = 0x4000e388
_rom_store_table = 0x4000e328

there are MD5, SHA and more availabel...

we have more protection availabel!?
are there api function ;-) ;-) ;-)

;-)

best wishes
rudi ;-)

-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

Who is online

Users browsing this forum: No registered users and 26 guests