objective-see / DoNotDisturb

Detect Evil Maid Attacks
GNU General Public License v3.0
294 stars 43 forks source link

Option/Ability for locked mac detection #10

Closed noaht8um closed 6 years ago

noaht8um commented 6 years ago

This may be a misunderstanding on my part of how the tool works in general. I assume it's something like (simplified):

  1. DND running on Mac
  2. DND detects laptop close event
  3. DND alerts iPhone
  4. User decision
  5. Repeat

Now for me, I often leave my mac running but lock the screen before I walk away (control-command-q). Again, I could be totally wrong on the flow of DND, but what if it could detect laptop close and laptop lock/screensaver. I'm no Apple developer, but Apple has the "CGSessionCopyCurrentDictionary" API that gives access to computer lock status. Then it could be like:

  1. DND running on Mac
  2. DND detects laptop close event OR lock OR screensaver
  3. DND alerts iPhone
  4. User decision
  5. Repeat

I'll clone the repo and start looking myself, but I just think this would be a nice feature. Thanks!

noaht8um commented 6 years ago

Just realized there's an issue tracker. Moving this there.