howdy icon indicating copy to clipboard operation
howdy copied to clipboard

Require confirmation of recognition

Open jonas-eschle opened this issue 5 years ago • 5 comments

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.

jonas-eschle avatar Jun 02 '19 08:06 jonas-eschle

Good point, not sure how to implement this with PAM though. Needs be be looked into

boltgolt avatar Jun 09 '19 17:06 boltgolt

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.

stinobook avatar Jun 11 '19 08:06 stinobook

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.

lennart-k avatar Jul 02 '19 09:07 lennart-k

Additionally, that would only work in the console and would hang authentication forever on the login or lock screen.

boltgolt avatar Aug 02 '19 09:08 boltgolt

The concept of rubber stamps is being implemented in 3.0.0

boltgolt avatar Apr 02 '21 12:04 boltgolt