News for hackers. Stuff that matters.
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:35AM (#41376949)
One thing I don't understand and I would really appreciate if someone could explain this to me.

Why do we need separate anti-cheat programs? Can't the operating systems simply have an option when creating a process that prevents all operations looking at the memory of the process (and maybe if such a process is about to be launched the user has to explicitly accept that by clicking a button)? Wouldn't that stop almost all the cheats without needing separate anti cheat programs, since I assume those programs have to use OS facilities to mess with the game anyway.

Re:Are We Anti-Cheat Yet? by reportgunner on Wednesday August 28, 2024 @03:45AM (#41377027)
Cheats run on the cheater's machine, not on the other players' machines. Of course the cheater would always click accept because it's not an accident that the cheat is running on their machine.
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:50AM (#41377059)
It's not the cheat that has to be accepted, it is the game. The option prevents the cheats (or any other program) from being able to examine the game's memory.
Re:Are We Anti-Cheat Yet? by Algent on Wednesday August 28, 2024 @04:00AM (#41377131)
You would need to get rid of kernel level drivers for that to work. Which right now would completely disable any security software. But if it's ever done yeah this wouldn't be such a bad idea to isolate apps. However any security API would still have to allow read only access, which would be enough for most cheats, and by design blocking this type of access should never be possible since antivirus/EDR will need this.
Re:Are We Anti-Cheat Yet? by strken on Wednesday August 28, 2024 @03:54AM (#41377094)
Because the user controls their own machine, so they can open a hex editor and turn your option off.
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:58AM (#41377119)
Well I assume there are ways to prevent that (or make it extremely difficult at least)? E.g. look at denuvo, nobody has been able to "open a hex editor" and disable denuvo.
Re:Are We Anti-Cheat Yet? by strken on Wednesday August 28, 2024 @04:14AM (#41377212)
Denuvo isn't just a flag on a process. It's no more relevant to your suggestion than encryption would be to a suggestion that audio files have an option to prevent them being copied.
Re:Are We Anti-Cheat Yet? by BoringTimesGang on Wednesday August 28, 2024 @05:21AM (#41377627)
Picking an analogy that is actually how DRM worked is fitting.

>Denuvo isn't just a flag on a process

Nor would be PC's solution. That's why they added it, making it relevant.

Re:Are We Anti-Cheat Yet? by kuschku on Wednesday August 28, 2024 @05:18AM (#41377604)
> nobody has been able to "open a hex editor" and disable denuvo.

In fact, three people have been able to do so, that's why denuvo games do get cracked.

Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @05:29AM (#41377676)
Not the recent denuvo versions, and not in the past ~1 year.

That's not even the point though, I am not saying it is literally impossible to circumvent this, but as long as it is hard enough that it is not financially reasonable for the cheat makers, that's good enough.

Re:Are We Anti-Cheat Yet? by stavros on Wednesday August 28, 2024 @07:06AM (#41378215)
But now we've gone from "why do we need anti-cheat programs at all?" to "why do we need anti-cheat programs? Just make anti-cheat programs".
Re:Are We Anti-Cheat Yet? by lossolo on Wednesday August 28, 2024 @08:59AM (#41378987)
Denuvo has been disabled many times; however, the amount of work required to modify all the generated injection points is tedious—it's a LOT of work. It seems that fewer and fewer people are willing to spend weeks or months of their lives cracking a single game.

Anti-cheat systems, on the other hand, are entirely different. If you only need to modify one variable in the game, it's much easier because, in most cases, that variable is frequently used. This means you can't add too much overhead to its use, and after all, it's just one variable.

Re:Are We Anti-Cheat Yet? by pjc50 on Wednesday August 28, 2024 @07:11AM (#41378246)
Indeed. Anti-cheat is interesting, because it's a case where you "want" to be able to "prove" that you don't have control over your own machine. Or rather other players want a sufficient level of assurance that you're not running certain kinds of software.
Re:Are We Anti-Cheat Yet? by trustno2 on Wednesday August 28, 2024 @03:49AM (#41377047)
It's like DRM; on some level, the user is using computer how he is supposed to use it - interacting with memory and processor and the programs.

Of course nowadays DRMs are sort of baked-in, so I guess anti-cheats could be too?

Re:Are We Anti-Cheat Yet? by mariusor on Wednesday August 28, 2024 @03:40AM (#41376989)
Usually cheat programs are employed by the user. So they would of course click accept .
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:51AM (#41377064)
It's not the cheat that has to be accepted, it is the game. The option prevents the cheats (or any other program) from being able to examine the game's memory.
Re:Are We Anti-Cheat Yet? by Hikikomori on Wednesday August 28, 2024 @03:42AM (#41376999)
It could if the hardware allowed such separation, but the x86 platform doesn't do anything close to that and allows reading memory of other processes in so many different ways in both userspace and kernel. Not to forget hardware being able to read memory via DMA that many use now.
Re:Are We Anti-Cheat Yet? by lloeki on Wednesday August 28, 2024 @04:20AM (#41377249)
- Have a thin hypervisor kernel

- Have the user-facing OS be a VM managed by that hypervisor

- Have the game process run under a second sibling VM

The hypervisor can then mediate hardware access and guarantee nothing from VM A can access VM B nor the other way around.

IIRC WSL2 enables such a mode, both the Windows OS the user sees and the Linux VM run under Hyper-V as siblings VMs.

And Xbox One and up do EXACTLY the above: each game runs in its dedicated VM (I presume that's what "trivially" enables Quick Switch/Resume via pausing/shapshotting the VM) and apps run in another.

Tangent: I somewhat wish MS would allow WSL2 on Xbox.

Re:Are We Anti-Cheat Yet? by ElectricalUnion on Wednesday August 28, 2024 @10:44AM (#41380098)
Without hardware support, once the attacker gets to the hypervisor, you can't trust the hypervisor, or the "guarantees" that such tainted hypervisor provides to be upheld.

You need hardware support for confidential computing (for example, AMD SEV) to be able to trust that the hypervisor can't just read/write all over the VM RAM.

Re:Are We Anti-Cheat Yet? by lloeki on Thursday August 29, 2024 @12:33PM (#41392601)
Sure, security comes in layers. A trusted platform boot chain can validate the hypervisor much easily than a whole hard disk, and existing x86 instructions can do the rest. The attack surface is also quite a lot smaller. It's already miles better than unfettered access from the very same OS and anticheats being privacy-invasive rootkits.

Hardware support for confidential computing is cherry on the cake, but in this scenario the user is not trying to defend themselves against an attacker, the game is, from the user a.k.a the cheater.

Re:Are We Anti-Cheat Yet? by ale42 on Wednesday August 28, 2024 @03:37AM (#41376958)
Malware will be the first software using that option.
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:39AM (#41376973)
That's why I said the user has to explicitly accept that.
Re:Are We Anti-Cheat Yet? by HexDecOctBin on Wednesday August 28, 2024 @03:40AM (#41376988)
Who do you think downloads and runs malware? Users.
Re:Are We Anti-Cheat Yet? by hexomancer on Wednesday August 28, 2024 @03:52AM (#41377078)
By the same argument we should prevents the users from running any program at all because it might be malware.
Re:Are We Anti-Cheat Yet? by Am4TIfIsER0ppos on Wednesday August 28, 2024 @05:26AM (#41377661)
That is indeed what many people want! Look at people defending "app stores" as being for the users' own good, and sometimes everyone else's.
Re:Are We Anti-Cheat Yet? by HexDecOctBin on Wednesday August 28, 2024 @10:17AM (#41379806)
No, but we shouldn't treat user's freedom as an anti-virus mechanism. Pretending that user acceptance will help in preventing malwares is extremely naive.
Re:Are We Anti-Cheat Yet? by titannet on Wednesday August 28, 2024 @04:24AM (#41377273)
In addition to the technical details mentioned there is also the "social" part: Having Anticheat lets the company show they are doing "something" against cheating and keeps law abiding players from installing cheats.
Re:Are We Anti-Cheat Yet? by cherryteastain on Wednesday August 28, 2024 @04:30AM (#41377305)
> Can't the operating systems simply have an option when creating a process that prevents all operations looking at the memory of the process

Already the case for userspace programs, due to virtual memory

> those programs have to use OS facilities to mess with the game anyway.

Cheats today essentially are like drivers, they do not run as userspace programs. Hence, they can do literally anything on your computer. In terms of privileges, driver code runs at a level as privileged as the operating system. Hence the need for programs that run at the level of the OS kernel to catch the cheats.

Re:Are We Anti-Cheat Yet? by doix on Wednesday August 28, 2024 @04:49AM (#41377429)
> Already the case for userspace programs, due to virtual memory

Userspace programs can read other userspace programs memory, it's part of the standard win32 api[0].

> Cheats today essentially are like drivers, they do not run as userspace programs. Hence, they can do literally anything on your computer. In terms of privileges, driver code runs at a level as privileged as the operating system. Hence the need for programs that run at the level of the OS kernel to catch the cheats.

Some cheats nowadays do this, but they do this because of anti cheat programs. If there were no anti-cheat programs, they wouldn't have to do this.

[0] https://learn.microsoft.com/en-us/windows/win32/api/memoryap...

Re:Are We Anti-Cheat Yet? by themoonisachees on Wednesday August 28, 2024 @08:46AM (#41378863)
> The handle must have PROCESS_VM_READ access to the process.

While the process still stays in user space, that's significantly different than "just being a user space program"

Re:Are We Anti-Cheat Yet? by Hikikomori on Wednesday August 28, 2024 @10:01AM (#41379634)
What stops a process from running OpenProcess with PROCESS_VM_READ on another process run by the same user in the same logon session?
Re:Are We Anti-Cheat Yet? by maccard on Wednesday August 28, 2024 @04:30AM (#41377309)
If I wanted to write malware the first step to doing so would be turn on the “make me immune to any anti virus or endpoint detection software”

If you want to know why the OS doesn’t enforce this - https://slashdot.org/story/432238 you roll into HN’s other favourite topic of “why can’t I run the X of my choice on my OS?”

Re:Are We Anti-Cheat Yet? by abigail95 on Wednesday August 28, 2024 @04:36AM (#41377343)
you don't need to read memory to cheat
Re:Are We Anti-Cheat Yet? by paulannesley on Wednesday August 28, 2024 @04:38AM (#41377361)
What you're describing sounds like sandboxing, which Wikipedia vaguely suggests is an existing anti-cheat technique:

https://en.wikipedia.org/wiki/Cheating_in_online_games#Sandb...

Re:Are We Anti-Cheat Yet? by spacebacon on Wednesday August 28, 2024 @05:24AM (#41377656)
Unfortunately injection based cheating is not the most prevalent form of cheating within titles that do a great job at preventing it such as overwatch. Screen bots are used often outside of any monitored process through hdmi streams and such. They can use game features, sprites, and colors to make aim and trigger bots that seem pretty natural. Additionally the most prevalant and annoying cheaters are the ones that trick games into believing keyboard and mouse is a controller which combines sticky aim features of controller input with the precision of mouse and keyboard controls. On consoles this is a dominant persistent cheat that a larger percentage of gamers use as opposed to the small percentage that inject code.
Re:Are We Anti-Cheat Yet? by _factor on Wednesday August 28, 2024 @06:04AM (#41377842)
You would need hardware support to do this effectively. Telling a piece of software “no one is looking at your memory” as the OS doesn’t take into account rootkits and hypervisors.
Re:Are We Anti-Cheat Yet? by azthecx on Wednesday August 28, 2024 @12:20PM (#41381195)
For software related cheats maybe, but keep in mind that keyboard, screen and mouse being processed by an entirely separate computer is also very viable.