howdy
howdy copied to clipboard
Require confirmation of recognition
Hi, first of all: many thanks for this little peace of code, great work!
I do currently though have slight security concerns about using it. I do not fear abusive colleagues or me mistyping sudo, but a peace of malware code that tries to execute sudo. Just because I am sitting in front of the laptop does not mean that I want everything that tries to execute with sudo to be executed with sudo.
Is it possible to add a required confirmation before the face recognition is successful? This can be as little as pressing "Enter". So the face get's recognized and then "Enter" has to be pressed to proceed.
This would allow to be sure about what actually uses sudo and what should not.
Good point, not sure how to implement this with PAM though. Needs be be looked into
i think a good solution to this might be to make a 2nd 'sudo' command which calls a script that adds howdy to the sudo pam file and removes it afterwards. for security reasons i think it would be best to let the user decide an alias to do this so the malware cannot just use this command instead.
As far as I can see it seems fairly easy to just wait for a keypress with https://python-libinput.readthedocs.io/en/latest/index.html The problem would just be that this keypress could also affect the program you are currently using.
Additionally, that would only work in the console and would hang authentication forever on the login or lock screen.
The concept of rubber stamps is being implemented in 3.0.0