r/linuxquestions • • Dec 21 '25

Why don't kernel level anti-cheats exist on linux?

Its my understanding that programs can get access to kernel space by installing themselves as drivers (makes sense, actual drivers likely require the privilege to control hardware) - I'm assuming drivers on linux also have access to kernel space - so why cant an anti-cheat just install itself as a driver, in the same way it does on windows? Just curious about the inner workings

347 Upvotes

193 comments sorted by

View all comments

Show parent comment

53

u/DerekB52 Dec 21 '25

Microsoft has been hardening the Windows kernel and working toward getting 3rd parties out of the kernel. They want more stuff running in userland. Kernel anti cheat will be killed by Microsoft before Linux implements it.

Nobody wants this around.

39

u/Appropriate_Ant_4629 Dec 21 '25 edited Dec 21 '25

Perhaps motivated whenever CrowdStrike's enterprise-level anti-cheat effectively does a kernel-level DDOS on all their customers.

Why Microsoft ever gave them that level of access was insane.

7

u/spiralenator Dec 21 '25

Why would the company that takes screenshots of user's desktop and sends it over the internet without consent ever allow that?!?!

19

u/basemodel Dec 21 '25

I'm no fan of CrowdStrike or Microsoft at all, but Microsoft didn't 'give' them anything, they had to do it because, ironically, in Windows kernel-level access is required for security products to keep it well, secure. This is partly because the API's they need simply aren't available in user-space, but mostly due to Win architecture. I dislike CS as much as the next guy (my team fixed 1200+ servers on July 19th '24) but it's Microsoft's fault for sure, and they'll tell you the same.

8

u/InvisibleTextArea Dec 22 '25

With the windows OS we have done this before with the graphics subsystem. NT4 never fell over because graphics drivers were in user space. Windows 95/98/ME allowed kernel level graphics drivers and they were an unstable mess.

Yet somehow we are doing this again.

→ More replies (1)

1

u/Remmon Dec 24 '25

Microsoft wasn't forced to give everyone kernel level access. They chose to do so because their other option was to revoke kernel level access for their own applications.

They chose the easy option with no regard for the security and stability implications. And it came back to bite them in the ass.

2

u/jesskitten07 Dec 25 '25

Not only that. People forget how much of an Adam (Frankenstein’s Monster) Windows actually is. Due to the enterprise sector, they have had to consistently ship legacy processes and such just to make things work. Like from a something I heard, some of the performance issues are that on servers sure they are nvme native now, but desktop is still shipping with nvme drivers just being an emulator for SCSI ones. Like this type of mindset shows not only where their thinking and care is, but also why just doing they allow is not a good way of doing things. Likely they will end up changing this soon hopefully, not holding my breath, but they are just totally weighed down by legacy baggage.

→ More replies (1)

1

u/ScoobyGDSTi Dec 26 '25

Unfortunately some of it is down to antitrust.

Microsoft need to move carefully and slowly to ensure that the likes of Crowdstrike don't cry that Microsoft blocked or negatively impacted their software.

5

u/LittlestWarrior Dec 21 '25

I worry that if Microsoft did that, their solution would somehow continue to keep Linux users from playing these games.

6

u/Simple_Project4605 Dec 21 '25

Of course it would. Like the parent poster said, you need full trust chain to the OS manufacturer, which you will never get with Linux.

Anticheat on an open OS like Linux will just fundamentally not ever work. You either eat the cheats if you’re a smaller game developer, or if you’re somebody like Activision, you’ll just support special BSD and Linuxes with full trust chain - like PlaystationOS, SwitchOS, Android, iOS, and generally stuff that’s locked down.

Even Valve’s flavour won’t work due to the ability to sideload kernels (i.e., it’s not locked down enough).

5

u/Swagigi Dec 22 '25

if we had community hosted servers with harsh ban conditions I feel like cheating would be way less successful, which would lessen the need to anti-cheat at all

2

u/RiverRattus Dec 23 '25

You clearly have never been admin abused. Any game that relies on private server to moderate the game always has rampant admin abusers. This happens because the server owner has access to moderation tools that are effectively cheats and nobody pays to host a server that they are not going to play on themselves. People that do this are generally degenerate losers looking to power trip In their own little world. When it happens to you ya quickly realize it’s actually worse than “regular” cheating because there is zero actual recourse. Game devs will never do anything about this. Fuck that noise

2

u/Swagigi Dec 23 '25

I hadn't considered that, but if you have any old spare computer it can't be that hard to spin up a server that can handle a couple dozen/a hundred people on it, no?

It being decentralized from the devs means a bad server admin can be avoided by playing on a different server, or even a private one that is specifically only a subsection of the community that personally knows/trusts each other.

→ More replies (5)

4

u/aldi-trash-panda Dec 22 '25

I would dual boot a locked down kernel to play certain games. I'd rather that then get on Windows ever again.

2

u/Moonl1ghter Dec 22 '25

Aa long as the kernel is not ancient, you can just load your default is with it :). Nothing prevents you from having multiple kernels.

2

u/Celestial_Nuthawk Dec 23 '25

I mean, yeah, that's definitely better than Windows, but we shouldn't have to dual-boot just to play certain games. And locking things like that stifles innovation.

→ More replies (1)

1

u/jesskitten07 Dec 25 '25

What do you mean full trust chain to the OS Manufacturer? H4xx0RMc1337H4x spinning up their own distro in their parent’s basement because Kali wasn’t hacker enough with their favourite waifu/husbando as the aesthetic is totally trustworthy

4

u/DerekB52 Dec 21 '25

I don't worry about it too much, since we already can't play these games on Linux. But, I think it will be hard for a new solution to be as impossible as Kernel EAC is now. They want to find a userland way to make this work. And we can replicate userland stuff thanks to WINE.

What I'm rooting for is the death of EAC programs in general though, and just have that stuff moved to authoritative game servers. Then Linux users will be allowed to play everything.

4

u/LittlestWarrior Dec 21 '25

That's certainly what I am hoping for. I have been absolutely dogpiled on r/linux_gaming for saying this, but I stick on Windows for COD: Zombies and Fortnite. Both require kernel level anticheat and secure boot. I hate Windows! I prefer Linux! But I don't want to give up those games, because then my gaming computer wouldn't really have much of a purpose. I am just hoping that I will eventually be able to play those games on Linux.

2

u/DerekB52 Dec 21 '25

The only game I haven't gotten working in Linux is DB FighterZ. I own a PS4, so I just bought the game a second time to ditch windows.

→ More replies (3)

1

u/jesskitten07 Dec 25 '25

I mean I was playing Arc Raiders last night and it has EAC. It really is often just a choice from developers these days about what they allow

→ More replies (1)

1

u/jin264 Dec 22 '25

MS attempted to lock it down during Vista and the anti-virus companies threaten lawsuits. CrowdStrike clusterf**k has increased pressure but we’ll see.

1

u/iDrunkenMaster Dec 23 '25

Don’t think that is the same. Microsoft isn’t only pushing software out of the kernel but pushing the user out as well. Many of the things kernel anti cheat is looking for if things the user has done to the kernel such as modified drivers. So the need for kernel level anti cheat will go down significantly. However do you think Linux would do the same by forcing the user out of the kernel?

1

u/DerekB52 Dec 23 '25

I don't see Linux kicking the user out of the kernel though. Maybe a Linux distro built by Steam could harden the kernel and enforce restrictions. They'd have to find a way to do this that didn't break compatibility with upstream though, because they don't want to maintain their own kernel by themselves.

I don't think Linux needs to do this though. What I'm saying is, if Microsoft kills kernel level anti cheats, I think anti cheat developers will end up making something that can at least work with WINE.

I guess its possible that anti cheat devs say, "On windows we can now do X checks in userland, which is more than we can do in Linux, so lets still block all Linux users". But, what I would hope for is the death of client side anti cheat in general, and more authoritative servers. If I'm playing an online game, the game server can check to make sure my character is moving like a human, and moving at the speed the game sets. I think the client side anti cheat is not necessary.

1

u/iDrunkenMaster Dec 23 '25 edited Dec 23 '25

I think they would most likely disable Linux some other way not just allow it to run though wine/proton. (Also anti cheat WANTS Microsoft to lockdown the kernel harder! It makes their jobs easier. If it’s truly locked down they won’t even need to be in the kernel. Though they want to be the last ones locked out not the first.). So they were lock into windows harder not allow Linux.

Kernel level anti cheat allows them to see behind the window. A big one is modified drivers, and anything peeking into memory. Let’s say you peek into memory and mark enemy’s and cross hair (only run every 25ms with 5ms jitter so uneven). If cross hair is on enemy it flips a switch. Then mouse driver gets that flipped switch and over the course of 50ms (with a 5ms jitter so uneven) it lowers your dpi from 400 to 200 lowering it 1 at a time so the change doesn’t look immediately. Now user land can’t detect anything and actions don’t look overly robotic so is ignored at least for a few days/weeks and even then a human will think “I’m not sure what the AI is flagging”. But kernel? It’s going to say hey why are their multiple unsigned things running here including something messing with the mouse and changing dpi rapidly. (It doesn’t even need to know what you’re doing. Since no normal person does this that alone is a massive flag)

(All of that above both sides need the kernel if no one has the kernel no one can check but no one can enter either so it become null which is what anti cheat desires)