code security question

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
Post Reply
JimTal001
Posts: 176
Joined: Thu Jul 30, 2015 4:59 pm

code security question

Post by JimTal001 » Fri Sep 11, 2015 7:44 pm

Is it possible to compile a program and place the binary version on the SD card for code security? The situation is that I will be using a proprietary algorithm on the pyboard which must be more secure than a text script on the SD card.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: code security question

Post by dhylands » Fri Sep 11, 2015 8:27 pm

In order to make anything secure generally requires encryption.

In its default configuration, its essentially trivial to put the board in DFU mode and grab the entire flash contents (including the internal file system). You could also easily write a simple python script which you put on an sdcard which copies the contents of the internal flash onto the sdcard.

So you'd need to make a number of changes to the firmware (to prevent sdcard booting) and modify some of the fuses in order to disable DFU mode.

There are a bunch of other issues that come with that (like how do you update your firmware when DFU mode is disabled).

Post Reply