Skip to main content
MSipo
Senior II
Nov 18, 2020 7:34 PM UTC
Solved

Change all JTAG pins to inputs to prevent read out of RAM?

How safe is it to change all JTAG pins to inputs to prevent read out of RAM in protection level 1?

I tried it today and I could no longer connect to the board and dump the RAM. But how safe is it?

I read about the Nintendo Game & Watch that use an STM32H7B0. They were able to hack the ROM loading by dumping the STM32 RAM.

I wan't to make it harder for hackers to dump my RAM. Else I must go to protection level 2.

    This topic has been closed for replies.
    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Nov 19, 2020 1:33 PM UTC

    Resets typically don't clear RAM, although that is often done by startup code.

    ​

    The real issue is that the adversary is more smart, has more time, is more tenacious, is better equipped/resourced​, and only has to find the weakest point to make entry.

    ​

    Script Kidz and paint by numbers devs aren't hard to confuse, but they also aren't the real threat.​

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

    4 replies

    Tesla DeLorean
    Guru
    Nov 18, 2020 7:38 PM UTC

    >>But how safe is it?

    Not very

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Uwe Bonnes
    Chief
    Nov 19, 2020 11:41 AM UTC

    If NRST is available, connect under reset will still allow to attach via the SWJ pins.

    MSipo
    MSipoAuthor
    Senior II
    Nov 19, 2020 12:39 PM UTC

    Yes. But it would not allow a "hot plug" (I think) and dump of RAM. I could not hot plug with ST link utility when I tried it.

    No problems if they need to connect during reset as this will also reset the RAM contents, so that way a hacker can't dump my RAM?

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    Nov 19, 2020 1:33 PM UTC

    Resets typically don't clear RAM, although that is often done by startup code.

    ​

    The real issue is that the adversary is more smart, has more time, is more tenacious, is better equipped/resourced​, and only has to find the weakest point to make entry.

    ​

    Script Kidz and paint by numbers devs aren't hard to confuse, but they also aren't the real threat.​

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..