My robot won't get hacked!

Simply out of interest, and for security at PiWars (and other maker venues), I have been working on a security feature for Lobsang. The Pi in Lobsang skips standard login (so the python programs can be run immediately and automatically on booting) so the system is not secure. My solution was inspired by a feature of the Scout robots in CHAPPiE- in the film there is a special USB chip that allows the robot's software to be updated, and without this USB 'key' you cannot 'unlock' and access the robots.

Enter Lobsang: I have created a program that can search through the USB drives connected to the Pi, and if one of them is my Sandisk CRUZER flash drive then the program exits (it is designed to be run by /etc/rc.local, at the end of the Pi booting) and you get the bash prompt. If the Sandisk drive is not found, then the program asks for a passkey instead. If you fail to give the correct passkey, then the program loops indefinitely and you don't get system access. You cannot exit the program with a KeyboardInterrupt as at the point when the program is run, the Pi is ignoring commands from the keyboard. It's definitely not the safest, best method of securing your Pi, but it was a fun addition to Lobsang.

cool share @welshgeekboy

cool share @welshgeekboy ,

btw, who is trying to hack your robot Sir ?

Pentagon of course!

No one, I’m doing it more for my own interests. I doubt it would stand up to any serious attempts at hacking. It’s more just to stop the curious Pi user from fiddling. :slight_smile: