Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #25832 > unrolled thread

Is protected flash secure?

Started byKlaus Kragelund <klauskvik@hotmail.com>
First post2017-02-16 14:41 -0800
Last post2017-02-17 12:38 +0000
Articles 5 — 5 participants

Back to article view | Back to comp.arch.embedded


Contents

  Is protected flash secure? Klaus Kragelund <klauskvik@hotmail.com> - 2017-02-16 14:41 -0800
    Re: Is protected flash secure? Johann Klammer <klammerj@NOSPAM.a1.net> - 2017-02-17 00:22 +0100
    Re: Is protected flash secure? Don Y <blockedofcourse@foo.invalid> - 2017-02-16 20:38 -0700
    Re: Is protected flash secure? Paul Rubin <no.email@nospam.invalid> - 2017-02-16 20:54 -0800
    Re: Is protected flash secure? Theo Markettos <theom+news@chiark.greenend.org.uk> - 2017-02-17 12:38 +0000

#25832 — Is protected flash secure?

FromKlaus Kragelund <klauskvik@hotmail.com>
Date2017-02-16 14:41 -0800
SubjectIs protected flash secure?
Message-ID<1be0d7bb-4d01-4993-973b-896a6f4303d4@googlegroups.com>
Hi

So, I have been using a ST Cortex M0 STM32, NXP LPC, PIC32 and also a Renesas RX63. Just for fun. They look interesting as a potential candidate 

All processors has a bit to set it up in protected mode, so the flash with proprietary IP cannot be read out 

But, say my competitor wants to dig into my code

Is there really such a thing as a safe micro controller which memory is protected from Reverse Engineering conducted by a Russian or Chinese firm?

Isn't it just a matter of how much you pay for an invasive attack? (I have read numbers from 1000 to 20.000 USD)

Regards 

Klaus

[toc] | [next] | [standalone]


#25833

FromJohann Klammer <klammerj@NOSPAM.a1.net>
Date2017-02-17 00:22 +0100
Message-ID<o85bci$d0e$1@gioia.aioe.org>
In reply to#25832
On 02/16/2017 11:41 PM, Klaus Kragelund wrote:
> Hi
> 
> So, I have been using a ST Cortex M0 STM32, NXP LPC, PIC32 and also a Renesas RX63. Just for fun. They look interesting as a potential candidate 
> 
> All processors has a bit to set it up in protected mode, so the flash with proprietary IP cannot be read out 
> 
> But, say my competitor wants to dig into my code
> 
> Is there really such a thing as a safe micro controller which memory is protected from Reverse Engineering conducted by a Russian or Chinese firm?
> 
> Isn't it just a matter of how much you pay for an invasive attack? (I have read numbers from 1000 to 20.000 USD)
> 
> Regards 
> 
> Klaus
> 
Andrew Zonenberg has a nice blog on decapping. I guess with access to a SEM it should 
be quite possible to sense the gate charge. 

<http://siliconexposed.blogspot.com/>

I think there was also a presentation of his at a DefCon some years ago. I don't have a link. 

[toc] | [prev] | [next] | [standalone]


#25838

FromDon Y <blockedofcourse@foo.invalid>
Date2017-02-16 20:38 -0700
Message-ID<o85r3d$ol4$1@dont-email.me>
In reply to#25832
On 2/16/2017 3:41 PM, Klaus Kragelund wrote:
> Hi
>
> So, I have been using a ST Cortex M0 STM32, NXP LPC, PIC32 and also a
> Renesas RX63. Just for fun. They look interesting as a potential candidate
>
> All processors has a bit to set it up in protected mode, so the flash with
> proprietary IP cannot be read out
>
> But, say my competitor wants to dig into my code

What resources do they have available?  How motivated are they to attempt
outright theft vs. just being a "copycat" (at some other level)?

> Is there really such a thing as a safe micro controller which memory is
> protected from Reverse Engineering conducted by a Russian or Chinese firm?
>
> Isn't it just a matter of how much you pay for an invasive attack? (I have
> read numbers from 1000 to 20.000 USD)

Exactly.  Virtually every "protection scheme" can be beat; the question is
where you draw the line between practical vs. impractical for a given attack
vector.

Is it cheaper for me to try to break your ("hardware") protection?  Bribe
one of your employees?  Reimplement your design from black-box observations
of its behavior/specifications?

[There are firms that specialize in the latter -- and I'm sure others who
resort to the other approaches!]

If you are truly interested in the types of attacks that can be mounted
on your hardware with MINIMAL access to the device's internals, there
are lots of papers on the subject.  (E.g., dynamically monitoring
power supply current to deduce the instructions that are being executed)

[toc] | [prev] | [next] | [standalone]


#25839

FromPaul Rubin <no.email@nospam.invalid>
Date2017-02-16 20:54 -0800
Message-ID<871suxo1rs.fsf@nightsong.com>
In reply to#25832
Klaus Kragelund <klauskvik@hotmail.com> writes:
> Is there really such a thing as a safe micro controller which memory
> is protected from Reverse Engineering conducted by a Russian or
> Chinese firm?

A typical MCU won't have serious protection but some security processors
will, including ones that aren't very expensive because they're intended
for use in high-volume applications like payment cards.  A very
determined and high-resource attacker will be hard to stop, especially
if they can get their hands on lots of individual units.  But you can
make it pretty hard.  Today's smart cards evolved over a many-year
technical arms race between cable TV companies and cable pirates.  These
days the smart card manufacturers seem to have the upper hand, though
maybe the advantage will flip again some day.

The book "Security Engineering" by Ross Anderson is now somewhat dated,
but it's good reading about this type of subject.

http://www.cl.cam.ac.uk/~rja14/book.html

[toc] | [prev] | [next] | [standalone]


#25840

FromTheo Markettos <theom+news@chiark.greenend.org.uk>
Date2017-02-17 12:38 +0000
Message-ID<m+l*TUBkw@news.chiark.greenend.org.uk>
In reply to#25832
Klaus Kragelund <klauskvik@hotmail.com> wrote:
> Isn't it just a matter of how much you pay for an invasive attack? (I have
> read numbers from 1000 to 20.000 USD)

Pretty much.  Though the costs can go a lot, lot higher than that.

My advice would be to pick something in as small a technology as possible. 
It doesn't prevent attacks, but ratchets up the difficulty level
substantially, at least for physical attacks.  It also reduces SNR for
sidechannel attacks, though some features of more complex processors (eg
caches) can increase the potential sidechannels.

The other option is to go for hardened processors (eg as used on smartcards)
which have additional mechanisms to prevent physical attacks - but those are
mostly focused on protecting key material rather than software.

But, generally, making it not worth their while is the safest defence.

Theo

[toc] | [prev] | [standalone]


Back to top | Article view | comp.arch.embedded


csiph-web