Replies: 3 comments 12 replies
-
The most secure way to do that is by removing (as in not including) the (web)repl from the (production) firmware. Recycling electrons from below thread:
based on the known vulnerabilities -it may be best to disable Bluetooth classic / Mesh while you are at it ( although I'm not sure if the MicroPython BT stack is also exploitable) For more details see https://github.com/orgs/micropython/discussions/12303 And as Sun Tzu said: don't forget about threat modelling |
Beta Was this translation helpful? Give feedback.
-
Thanks @Josverl for the answer and the resource links, it was very helpful. Definitely disable WebREPL before compiling the firmware is a plus as discussed on that thread. The question is if that make a real difference in practice compared to disable (or not enable) it by code in micropython as @projectgus pointed out. Physical access is not a threat scenario in my case. |
Beta Was this translation helpful? Give feedback.
-
There's also more extreme levels you can go to, such as building with the python compiler disabled - this means that even if someone could get to a repl it couldn't execute any commands because it can't compile them. #define MICROPY_ENABLE_COMPILER 0 On a related note, this topic comes up a lot (not surprisingly) so it would be well worth writing up tips / strategies like this for a wiki / doc page! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys,
I am wondering if there is a way to get access to the REPL prompt wirelessly with obscure tools or hacking tools.
My concern is for security reasons. I don't want anyone to get access to a micropython based ESP32 or ESP8266 or any other wifi capable device.
The devices is configured like this for the ESP-NOW protocol:
network.WLAN.active([is_active])
returnsTrue
.network.WLAN.isconnected()
returnsFalse
.The assumption here is that no one can access the physical device directly for wired connection.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions