r/computerscience • u/code-at-night • Aug 12 '25
General We have three levels of access... what about a fourth?
Okay, hear me out here. This might get lengthy, but it might be worth the read and discussion. Battlefield 6 just had one of the best turnouts Steam has ever seen for a Beta. This has, of course, reignited the discussion about kernel-level anti-cheat, its effectiveness, the invasiveness of it, etc.
The research I've done on the topic around discussing it with a friend posed some questions neither of us have answers to, and something I figured I'd see about asking people who are smarter than I am. So I'm breaking this post into two questions.
Question #1: Could Microsoft decide to close the OS Kernel access to all but strictly verified system and third party system monitoring software, thus nearly eliminating the need for kernel-level anti-cheat, and minimizing the prevalence of kernel-level cheats?
Personally, I'm not sure it could get done without it being a big mess, considering the hardware access that Kernel-level provides. But I'm also not an expert, so I could be wrong. Which brought up the other question:
Question #2: Why doesn't Microsoft's OS have four levels, instead of three now? Is it too hard? Not feasible? I'm envisioning a level system like Kernel -> Anti-cheat/Anti-virus -> Driver -> User. Is this difficult or not realistic? Genuinely asking here, because I don't have all the answers.
At the end of the day, I despise those that hack my multiplayer games and ruin it for everyone else, so I put up with kernel level anti-cheat, but I'm just trying to figure out if there's a better way. Because clearly application-level anti-cheats aren't cutting it anymore.
P.S. - I used "Microsoft OS" because every time I used the actual name of the OS, I got warnings my post could be flagged for violation of post rules, and frankly, I'm not feeling like reposting this. Lol
3
u/WittyStick Aug 12 '25 edited Aug 13 '25
Protection levels need hardware support. On x86 there were 4 levels (ring0-ring3), but rings 1 and 2 were basically never used. On x64 there's only ring0 and ring3.
There is no amount layers that can solve this. If something runs on the user's machine, they can reverse engineer it. We have debuggers than can run in ring0, so something running at a lesser privilege level is not going to stop a sophisticated hacker. Even anti-cheat running in ring0 is not fool-proof. The operating system could itself be running in a virtual machine, where we have hypervisor permission.
To give an example of what's possible, with SGX, which is supposed to execute an encrypted payload, it has been demonstrated that we can work out what is being executed based on voltage levels in the CPU. Someone with the skill and determination will always find a way to reverse it if its profitable, or even just because they're intellectually curious enough.
The best solutions for online games is to have the server detect cheating, since the user can't access that even if they manage to reverse engineer the client. Detection should be based on gameplay and not some obscure method of trying to detect if the user is running the official client. There's a chance that this could result in false positives.
However, this is likely to get even more difficult because we'll soon have AI agents able to play the games 24/7. There's nothing that is going to prevent this - the AI could be running on a different machine, taking input from the DisplayPort from the machine running the game, and feeding input to the machine running the game as if it were a keyboard and mouse. Sure enough, if a "player" is on 24/7 then that's a trivial way to detect cheating, as no human can do without sleep.
Perhaps the real solution is for the server itself to utilize AI to detect cheating. With enough training it might be able to determine sufficient differences between human and bot gameplay that it could make decisions with few to no false positives.
I can understand the frustration, but I'm also guilty. I used to hack online games some years ago, mainly out of intellectual curiosity. I wanted to know how people were cheating and ended up learning how to reverse engineer games myself - though I never done it for any kind of profit. I made some private servers, but reverse engineering was more fun than playing the game!
For one game I found a "bug" in the way the server determined whether an attack commonly used by aimbotters would hit its target. I utilized the bug in my own bot to always evade the attack, provided latency was low enough. I could then launch my counter-attack which would hit every time. Only I knew about the bug and how to get around it, which must've been frustrating for the aimbotters. I imagine the bug is still present in the game.
19
u/wandering_melissa Aug 12 '25
Kernel level anti cheats work because they are at kernel level. If they were on top of kernel level they wouldnt work because hacks can happen at kernel level or hardware level and anticheats not at the same level cant keep track of them.
6
u/MoussaAdam Aug 12 '25 edited Aug 12 '25
what would be the difference between the "kernel" level and the "anticheat" level in your model ?
these will either end up being identical or with very few differences, making it useless.
or these will be quite different, in which case the "anticheat" level will have much less power compared to the "kernel" level, which again makes it useless: the anticheat wants to have full access to your hardware and doesn't want any level under it because anything running at that level can be used to manipulate the anticheat
1
u/TomDuhamel Aug 13 '25
Yes, Microsoft could decide to close kernel access. They won't though because too many (genuine) features are using that and compatibility is typically more important to Microsoft than security.
What do you think moving anticheat in a layer above the kernel would do? You would put anticheat down one level while actual cheats would still be in the kernel.
For your information, kernel level anticheat has been demonstrated to be less than perfect. While a lot less harder to break, it has been done by a few people with the motivation. It's not the god level security they are claiming it is.
1
u/DTux5249 Aug 12 '25
Higher levels can't see what's happening in the lower levels... That's like, the whole point of the layers.
If your anticheat can see what's happening in the kernel, it's not a layer above, it's part of the kernel.
1
u/Encursed1 Aug 13 '25
The right solution is having anti cheat devs use kernel modules instead of the shitshow that is klac
1
u/Nerketur Aug 16 '25
To add to the other better answers:
This is more a matter of security than it is about anti-cheat.
I love video games, and I refuse to install a game with kernel-level anti-cheat. They don't get my money, and I don't have to deal with issues.
The reason is in the name. Kernel level. The kernel is a very high level of access to the system. Whatever runs in the kernel can basically see everything that goes on. Everything downloaded. Everything run. All videos watched. It can record video from discord. It can then send all that information anywhere it wants. And there is no way to stop it.
You are giving anti-cheat complete and total* access to your system.
Now, I'm not saying anti-cheat will violate your privacy in this way. In fact, most anti-cheat couldn't even if it wanted to. But it only takes a single bug in the kernel to render your computer useless. A bug in the anti-cheat could open up very dangerous attack vectors for hackers.
Even if Kernel Level Anti-Cheat was provably private and never made connections on its own, that's one more program with access to everything that others can exploit. I'm not giving any game that option. I don't want to install a game and potentially give people an attack vector into my computer.