AT Command UART Encryption

ufftech
Posts: 2
Joined: Fri Feb 09, 2024 9:34 am

AT Command UART Encryption

Postby ufftech » Fri Feb 09, 2024 9:43 am

Hi all,

would it be possible to cypher the UART AT messages ot at least their contents using the api provided with #include "mbedtls/aes.h"?

For example the command

AT+CWJAP="my-test-wifi","1234test"

is used to connect to an Access point. The SSID and the password at the moment could be sniffed by an attacker probing the UART pins.

Have you any suggestions?

At the moment I have successfully compiled the AT project including #include "mbedtls/aes.h" so at least the API are available...but I do not know how to use them to cypher UART messages.....

Thank you in advance for your help

Best regards

esp-at
Posts: 133
Joined: Mon May 09, 2022 3:00 am

Re: AT Command UART Encryption

Postby esp-at » Mon Feb 26, 2024 8:33 am

Thank you for your suggestion! In fact, we have already had this feature requirement, and it is expected to be completed by Q2 2024. Once it's done, I'll let you know.

If you're in a hurry, you can try to modify the encryption and decryption functions yourself.
- you can encrypt the data (data is sent to mcu) around https://github.com/espressif/esp-at/blo ... _api.c#L32, and mcu should decrypt the encrypted data.
- you can decrypt the data (data is from the mcu, and it should be encrypted by mcu) around https://github.com/espressif/esp-at/blo ... _api.c#L24

~

ufftech
Posts: 2
Joined: Fri Feb 09, 2024 9:34 am

Re: AT Command UART Encryption

Postby ufftech » Thu Feb 29, 2024 9:12 am

Hi,

Thanks! Very good knews!

While I wait for your releaseI I will try to implement your suggestions!

Best regards

Who is online

Users browsing this forum: No registered users and 61 guests