2020-09-15 04:49 PM
We welcome everyone
Is there a way to protect uart from being hacked!?
For example:I have a device that uses gsm to send sensitive data.
Anyone with a simple background can learn the uart pins and then put a logic analyzer or rx probe and then know ip and port !!
2020-09-15 05:29 PM
You could encrypt what is sent over UART. Some chips have encryption peripherals to make this quicker/easier. Probably won't help much though. If they have access to the UART pins, presumably they also have access to the ethernet pins as well.
2020-09-15 05:49 PM
>>Anyone with a simple background can learn the uart pins and then put a logic analyzer or rx probe and then know ip and port !!
You'd really need to worry about those with 150+ IQ
Probably want to encrypt the content, ideally asymmetric.
Have a non repeating IV, or a time-stamp / session key to limit replay attacks.
Use Elliptical Curve signing so content is resistant to modification/spoofing.
2020-09-16 09:51 AM
but I have to embarrass command via uart, I cannot send an encrypted command
2020-09-16 09:55 AM
I admit to you that I have a low IQ, but I have practiced this method with some devices in the market then succeeded:face_without_mouth:
If you send the commands encrypted, the module does not understand it
2020-09-16 10:17 AM
>>If you send the commands encrypted, the module does not understand it
Not sure you can avoid that beyond burying the traces within a multi-layer board, which would work for BGA and LGA packaged devices.
What you would want to do is encrypt your "sensitive data" as it is transmitted across connections and networks you can't physically secure.
Perhaps you can find a modem providing a secure communication channel, or put an applet or script within the modem that you could interact with more securely.