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

13

u/kansetsupanikku Dec 21 '25

Why can't the anti-cheat be open source? I mean, other than the corporations making it believing in security by obscurity in 2020's. And the fact that existing anti-cheat implementations probably wouldn't be proud of what they do with user data, and what kinds of data they touch, and what access they allow.

But if it was anti-cheat rather than a trojan, making ot open source would be non-issue. Distro communities would probably contribute and it would be worth it.

3

u/AiwendilH Dec 21 '25

Maybe it could...this would need a lot deeper examining if an open-source anti-cheat can even work (and for sure far beyond my skillset and ring0 development knowledge). Would involve answering the question if you can make one kernel part assuredly be able to see everything another kernel part does even if that involves actively trying to hide what it does...and I am not sure you can guarantee that if both run at the same privilege level. So maybe we should start talking about hypervisor level anti-cheat! (sarcasm...not really wanting to give anyone ideas here ;))

What open-sourcing for sure does is making it a lot more complicated to even get started...no grace period until cheat developers discover some workarounds for the detection.

3

u/kansetsupanikku Dec 21 '25

How is this different from a "can kernel anti-cheat even work?" question, open source or not? And why would anti-cheat have to "hide what it does"?

But you might be on to something. Perhaps kernel level anti-cheat is never doing what it's supposed too, even on Windows - and compromising system integrity (in terms of managing user data and control) is the only point of that design.

1

u/AiwendilH Dec 21 '25

No difference at all. It's basically my point...I don't know if anti-cheat systems can be effective at all...or only delay/make it harder to cheat until someone figures out how the anti-cheat system works (Assuming cheats and anti-cheat have the same level of privileges). I haven't see anything that convinces me otherwise yet.

But if this is the case open-sourcing is no option as the secrecy is the only thing that makes creating cheats harder then.

1

u/Emotional-Energy6065 Dec 22 '25

Kernel Ac has to be above User space programs in order to work effectively - if it's in the same ring as a cheat the cheat can conceal itself.

2

u/Fulg3n Dec 21 '25

If you're making your anti cheat open source you're litteraly giving the key to the cheat providers. What's the point of your anti-cheat then ?

5

u/kansetsupanikku Dec 21 '25

Wdym "key"?

Anyway, wait till you learn that the primarily used and well tested solutions for secure connections, encryption, and administration of secure environments are open source...

If reverse-engineering of anti-cheat gave one instant answers om how to make it useless, cheaters would have access to that instantly anyway.

2

u/Emotional-Energy6065 Dec 22 '25

Game cheating is different to your open source comparison. Those ones get assigned CVEs and possibly payouts, but cheats make money because they don't disclose vulnerabilities to the publisher.

2

u/kansetsupanikku Dec 22 '25

It's not about payouts and not necessarily CVEs. Also, it's primarily not about hobbyists, but full time engineers who understand the model: if their fix goes upstream, the next version will have it, integrated with the updates, saving them work on porting it. And the original game studios could cooperate using the same model, probably joined by Valve/Canonical/RedHat/CodeWeavers folks too.

Security holes in key infrastructure security software can make money too. And yet having the source changes just a bit for attackers - and incomparably more for the contributors.

1

u/cylemons Dec 22 '25

The difference is that your senarios are black boxes, where you want to secure communication between 2 parties from a third adversary. But anti-cheat is white box because your adversary is also the owner of the machine your game runs on.

Whitebox cryptocraphy is a thing, but it is still in its infancy so the best solution we have now is making the game only run in locked down environments that the user cannot tamper with

1

u/spiralenator Dec 21 '25

Everything is open-source if you know assembly. ;-)

1

u/kansetsupanikku Dec 21 '25

Which is alright for hacking, which requires debugging anyway.

But this approach makes it impossible to contribute a fix upstream, even after you learn where exactly attack surfaces present themselves.