Live data from Hacker News

Swift-Keylogger – Keylogger for MacOS written in Swift using HID

github.com

71–80 of 84 posts

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#71
post #2

It doesn't log passwords using EnableSecureEventInput. There are probably other use cases, but Apple seems to have implemented things rather well here.

So are there any keyloggers for MacOS in the wild that still manage to capture keystrokes with EnableSecureEventInput, or can I consider this as "secure"? Also, is there a way to tell when/for which processes EnableSecureEventInput is active?

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#72
post #71
post #2

It doesn't log passwords using EnableSecureEventInput. There are probably other use cases, but Apple seems to have implemented things rather well here.

So are there any keyloggers for MacOS in the wild that still manage to capture keystrokes with EnableSecureEventInput, or can I consider this as "secure"? Also, is there a way to tell when/for which processes EnableSecureEventInput is active?

Answering my own question: EnableSecureEventInput does not protect from processes that have root privileges, see https://security.stackexchange.com/questions/47749/how-secur...

A good way to check whether EnableSecureEventInput is enabled is to start the Keyboard Viewer that comes with MacOS and see if it echoes keystrokes.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#73
post #72
post #71

Earlier quoted context omitted.

So are there any keyloggers for MacOS in the wild that still manage to capture keystrokes with EnableSecureEventInput, or can I consider this as "secure"? Also, is there a way to tell when/for which processes EnableSecureEventInput is active?

Answering my own question: EnableSecureEventInput does not protect from processes that have root privileges, see https://security.stackexchange.com/questions/47749/how-secur... A good way to check whether EnableSecureEventInput is enabled is to start the Keyboard Viewer that comes with MacOS and see if it echoes keystrokes.

Does Keyboard Viewer still come with macOS? I thought it disappeared years ago…

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#74
post #25

Earlier quoted context omitted.

Interesting anecdote. What did you end up doing? Did you just leave it as-was?

I guess he looked for key-up events.

Yes, you could detect the condition by tracking key-up events without matching keydown events, so I wrote a little logic that would keep track of tab keyup-keydown states and with that I could detect it.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#75

Earlier quoted context omitted.

No. You could listen for the keydown, but you wouldn't hear it, so you may as well ignore what you can't hear.

You should get a key down event when moving into the password field since you're coming from a field which is not secure.

Yes you're right. I made a variable that tracked the current state of keyup keydown and could detect this special case.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#76
post #3

Earlier quoted context omitted.

It would be nice if macOS had the same permissions models as iOS, and then some. A permission before apps can access the camera, or access what keys are held down when the app isn't in the foreground - that would block this case.

Most applications can’t offer the functionality you expect without a great amount of permissions. New apps in the Mac App Store have to run in the sandbox and they are quite severely limited.

And permissions do not exist for many common and expected behaviors of Mac apps, leaving the Sandbox/Mac App Store pretty unviable.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#77
post #23

".. Heck, even the $300 chromebook we recently got has 16GB of RAM.. " I don't think sth like that exists.. which one is it?

Chromebooks are disappointing because they can have great hardware but you need to jump though hoops to install any real software, and even that's sketchy depending on the model.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#78

Earlier quoted context omitted.

Not on ios though. See, the problem is not the permissions, but the fact you are at their mercy. And because by definition innovations assume you have nit thought of it before, this will limit innovation.

To m, that just shows that it's up to the implementation.

You are assuming the implementator can think of everything. Innovating however, assume to come up with something you haven't thought before.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#79
post #28

Earlier quoted context omitted.

There is also a reason I can do 99% of the things I do on a laptop on my (totally sandboxed, not rooted) iPad Pro.

No you can't. You just have a very limited way to use it. Even with the same screen size, give me a laptop os and i'll be more productive, with a factor of 10. It's not a figure of style. Phone os are terribly limited.

You’re objectively wrong, and likely have significantly outdated understanding of what is possible on a “terribly limited” “phone os”.

Re: Swift-Keylogger – Keylogger for MacOS written in Swift using HID

#80
post #59

Earlier quoted context omitted.

I mean, you can get the HP Chromebook 13 with 16GB of RAM.. but not for $300.

Appears to be 500 dollars new on best buy website, so what would make you think that 300 dollars is not possible?

16gb of ram is around 140 dollars.
Post reply on HN