News for hackers. Stuff that matters.
Re:Ask HN: How do you tell if something has a keylogger impl... by PeterisP on Tuesday October 10, 2023 @06:06AM (#37830238)
You may want to ask what does it mean for a game to have a keylogger?

A game is usually supposed to capture what buttons you press and, if it's an online game, send that over the internet, and so that would be perfectly fine as long as that's done while the game is running - so perhaps you're asking whether the game installs some malware that captures keystrokes outside of the game as well.

That would be generally detected by looking for various malware persistence mechanisms, seeing if there's something that's started on startup, possibly in a hidden way; or if there's some process that hides its activity. And if so, then you could check whether it was placed there by that game.

On the other hand, some of the anti-cheat mechanisms are so invasive that they effectively are far more capable than just a keylogger, and the game is quite open about placing them on your machine, e.g. requiring permissions to install it as a privileged driver.

Re:Ask HN: How do you tell if something has a keylogger impl... by laserstrahl on Tuesday October 10, 2023 @08:22AM (#37831149)
It runs at admin rights and I don’t know what it does. Besides having the game as usual. I don’t know if it’s malicious or not.
Re:Ask HN: How do you tell if something has a keylogger impl... by codingdave on Tuesday October 10, 2023 @08:31AM (#37831222)
> It runs at admin rights

Game over right there. No matter what it does or doesn't do today, you never know what they'll push in the next update, or when ownership changes hands. I'd never run a game with admin rights.

Re:Ask HN: How do you tell if something has a keylogger impl... by evanjrowley on Tuesday October 10, 2023 @08:43AM (#37831328)
This excludes most AAA multiplayer games with anti-cheat. I'm not disagreeing with you, only pointing out that it's an unfortunate mainstream trend.
Re:Ask HN: How do you tell if something has a keylogger impl... by piaste on Tuesday October 10, 2023 @11:00AM (#37832965)
I'm sure there are game devs that try to install rootkits for no good reason, but preventing cheating in multiplayer competitions can unfortunately be a legitimate reason to ask "Hey $customer, I need to take full control of your machine, and it can't be a VM".

You basically have three options:

- Cross your fingers and pray that the game company isn't going to do anything malicious to your machine

- Keep your gaming PC completely isolated from your private data

- Accept that you won't be able to play some competitive games, or the competitive modes of some games (eg. the default CounterStrike multiplayer runs with usermode anticheat, but competitive matchmakers like FaceIt require you to install a kernel-level anticheat)

Re:Ask HN: How do you tell if something has a keylogger impl... by evanjrowley on Tuesday October 10, 2023 @06:32PM (#37838575)
Yes, it is an unfortunate reality. I was very pleased to discover that Valve's newly released Counter Strike 2 did not require the invasive type of anti-cheat software. On the other hand, it also seemed like some players I encountered were making shots that were too accurate for a human player. Maybe CS2 players are just that good...

My wish is that multiplayer games would have the option to play on servers with anti-cheat and servers without anti-cheat. If my memory serves correctly, that is kind of how Microsoft's Halo: Master Chief Collection is, at least when played on the Steam Deck. While I don't like the entire experience (e.g., having to use a MS account), at least optional anti-cheat is a plus.

FWIW I typically choose option 2 - keeping the gaming PC separate from anything important.

Re:Ask HN: How do you tell if something has a keylogger impl... by Kuraj on Tuesday October 10, 2023 @12:04PM (#37833926)
I stopped seeing this once I stopped playing Asian MMORPGs.
Re:Ask HN: How do you tell if something has a keylogger impl... by k9unit on Thursday October 12, 2023 @03:38AM (#37854482)
Video games with anti cheats don't normally run as admin. A service on windows is created by requesting admin once when installing the anti cheat, so that the service with a kernel driver can be loaded without admin.

Furthermore, it's funny when people cry about how kernel anticheats are invading their privacy. These anticheats are better secured and protected than 99% of the drivers for windows, which are FULL of kernel elevation exploits. Absolutely filled to brink. I could go into it more, but this thread isn't the place.

Re:Ask HN: How do you tell if something has a keylogger impl... by PeterisP on Tuesday October 10, 2023 @08:57AM (#37831467)
I think that if you really care about privacy and security then the simplest way to ensure that a game can't harm you is to avoid handling anything important on your gaming PC. If you think they might do something malicious, not having admin rights won't prevent that game from reading all your authentication credentials from your browser, for example.
Re:Ask HN: How do you tell if something has a keylogger impl... by tetris11 on Tuesday October 10, 2023 @10:55AM (#37832906)
I've been playing PC games my whole life, but never with an internet connection. Yes sure I might miss out on some MMOs, but I see these mostly as toxic cesspools of enraged teen activity. Offline PC gaming is quiet, safe, and you know that no one is watching because they can't.
Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @08:32AM (#37831232)
So run it in a sandbox.
Re:Ask HN: How do you tell if something has a keylogger impl... by bell-cot on Tuesday October 10, 2023 @08:40AM (#37831297)
Yes, though that has two obvious issues:

- It might detect the sandbox and refuse to run the game

- If more seriously malicious, it might quietly escape the sandbox at first opportunity - say, a sandbox-escape exploit which the game provider obtains before the user can/does install the security patch

Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @09:01AM (#37831511)
That's more the behavior of something highly targeted than something as general as a game.
Re:Ask HN: How do you tell if something has a keylogger impl... by lazide on Tuesday October 10, 2023 @09:06AM (#37831562)
Welcome to anti-cheat/anti-piracy
Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @09:14AM (#37831633)
If it's a game from a big studio, then it won't have a keylogger.

If it's an indie game, it won't be checking if it's in a sandbox.

Re:Ask HN: How do you tell if something has a keylogger impl... by hiatus on Tuesday October 10, 2023 @10:30AM (#37832583)
> If it's a game from a big studio, then it won't have a keylogger.

History has proven this to be false. Recall the sony rootkit scandal.

https://en.wikipedia.org/wiki/Sony_BMG_copy_protection_rootk...

Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @10:32AM (#37832620)
I was talking about games, and what Sony did back then definitely wouldn't fly today.
Re:Ask HN: How do you tell if something has a keylogger impl... by hiatus on Tuesday October 10, 2023 @10:37AM (#37832679)
It didn't fly back then either, but it still happened. And if it was done for audio discs, which don't typically run executable code, I wouldn't be surprised to find it in games which ship executables.

Also, didn't zoom do something somewhat shady with admin permissions and self-updating? I'm not sure how you arrived at the conclusion that this couldn't happen today.

Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @10:56AM (#37832915)
You're drawing in things from numerous other contexts that don't really apply.

My claim was simple. If it's a game from a big studio, it won't have a keylogger. This is simply true and has been true for a long time. If that changes, we will hear about it.

Re:Ask HN: How do you tell if something has a keylogger impl... by qup on Tuesday October 10, 2023 @01:00PM (#37834622)
If you want to make your statement true, it needs to describe the past and the present, not make a prediction about the future.
Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Tuesday October 10, 2023 @01:27PM (#37834919)
Which is exactly what it did. No games from big studios have included keyloggers.
Re:Ask HN: How do you tell if something has a keylogger impl... by qup on Tuesday October 10, 2023 @07:58PM (#37839325)
That's not your claim.

> My claim was simple. If it's a game from a big studio, it won't have a keylogger.

Your "claim" is actually a prediction, and I would bet against it with a less-vague definition of "big" and a long enough time period. It's certainly not a fact, which is how you present it.

Re:Ask HN: How do you tell if something has a keylogger impl... by PrimeMcFly on Wednesday October 11, 2023 @01:11AM (#37841113)
Yes, it was my claim, clear as day in the comment I originally made it in.
Re:Ask HN: How do you tell if something has a keylogger impl... by perihelions on Tuesday October 10, 2023 @11:01AM (#37832968)
- "On the other hand, some of the anti-cheat mechanisms are so invasive that they effectively are far more capable than just a keylogger, and the game is quite open about placing them on your machine, e.g. requiring permissions to install it as a privileged driver."

The Steam anti-cheat mechanism is overtly and unapologetically a remote shell. At arbitrary times it receives executable code from remote Steam servers and runs it at a privileged user level. This functionality is present in the Steam Client (provided it's enabled, as is required for a large number of competitive multiplayer games). To obstruct anti-anti-cheat research, in practice it deploys this infrequently, only to a small subset of Steam users; sends different payloads to different users (presumably each one with only a subset of their available functionality, to limit the impact of disclosure); and of course erases all traces of itself after executing.

To install a Steam client on a machine is to grant unlimited remote access rights to Valve Inc.; it's sshd on your local machine with Valve as an authorized remote login.