I would like to know if there are any common techniques of powering your computer off after a number of failed login attempts from the machine locally (from the terminal login, or from lightdm for example).
For SSH or any remote login, I would just use fail2ban. I'm asking this for the purposes of a personal computer, like desktop or laptop which is more likely to be stolen.
The reason I want the machine to power off during local brute force attempts is to force the thief out of the encrypted disk which had been unlocked during this bootup.