- cross-posted to:
- linux_gaming@lemmy.world
- cross-posted to:
- linux_gaming@lemmy.world
EAC v2 is promising as a way for games to run on linux with more secure anticheat, but without the full kernel access that they get on windows. Giving full kernel access to anticheat in order to play games is risky for several reasons, so this is a better alternative.
This does require secure boot, a TPM module, and a pre-approved signed kernel. As of right now, this means it’s not possible on SteamOS, although it might be possible by enabling secure boot and changing to a different linux distro (be careful though, enabling secure boot yourself can lead to soft bricking your device if something goes wrong).
Epic actually addressed this in the annoucement:
Can I play on Steam Deck or Steam Machine?
Steam Deck and Steam Machine do not currently support the Secure Boot features that Easy Anti-Cheat v2 relies on. Fortnite will support Steam’s devices if they support Secure Boot in their BIOS settings and sign SteamOS, or help deliver an alternate solution to Linux anticheat. The ball is in Valve’s court.
Anti-cheats are a lie, they don’t belong on your computer, and I’ll prove it in this 10min read
I have gathered from many sources and many game developers, including myself, what the supposed purpose of anti-cheats, how it’s implemented, and how it should actually be implemented. This is regarding the client-server networking model for multiplayer games.
The following will be discussed:
- How it looks
- What it means to cheat in a multiplayer games.
- Why is almost every multiplayer game implementing anti-cheats THE WRONG WAY
- What anti-cheats actually look like
- The solution and examples
CLIENT = the player, on their own computer, using their own copy of the player-side of the game SERVER = hardware game server used to host some parts of the multiplayer side, depends on the implementation of multiplayer CHEATER = the CLIENT who manipulates or otherwise exploits their own side of things, their own computer, on which the game and anti-cheat reside. HACKER = the person, who used many skills to illegally infultrate the SERVER, and therefor have (probably UNLIMITED) access to everything that’s on that SERVER, including everything game-related.
1. How an anti-cheat looks like in most games In most multiplayer games, an anti-cheat looks like this: an entirely separate software on the CLIENT’s computer, that checks the computer, the game for any changes in number of sophisticated ways, but this is a very bullet-prone vest, and it’s proprietary, it can’t even, really be open source.
2. What it means to cheat in a multiplayer games. This means bypassing the anti-cheat (if any) and editing variables or functions in memory to whatever the CHEATER wants to. How can a CHEATER - a player, in a multiplayer game even influence the entire game that is hosted on another computer (SERVER)? The simple answer is - they can’t. They don’t affect their abbilities and entire multiplayer game on/from the SERVER, they do it ON THE CLIENT, on their own computer!! How can that even be possible?
3. Why is almost every multiplayer game implementing anti-cheats THE WRONG WAY I don’t know, they dumb? Perhaps they don’t how programming works? Or they just think that’s how it works and they don’t question it or they’re ordered to do it the way everyone else does?
4. What anti-cheats actually look like Anti-cheats should just be what they’re meant to do: prevent any CLIENT from exploiting the game, in other words: stop the CLIENT from changing the values which they shouldn’t have power over in the 1st place! The actual anti-cheat isn’t some separate proprietary piece of shit program, it’s the way the entire game is implemented and logic that checks I/O.
A multiplayer game in a CLIENT-SERVER networking model (not peer-to-peer, for example) which is what most games are using - should be doing this: Since the SERVER wants the game to be fair and for all CLIENTs to play according to SERVER’s rules (think of walking speed, the weapons you have, your health, etc.), the SERVER in this networking model HAS TO be authoritive. The SERVER HAS TO dictate to every CLIENT what they should do, not the other way around.
5. The solution and examples In the past and sometimes even today - without a game engine, the developer had to implement their own networking for the game to get maximum performance out of it, have it customized the way they want to, or game engines simply didn’t exist yet. This was done by serialization and deserialization of data received by CLIENT/SERVER, the 1st variable extracted was usually the number, which was then correlated with a list of functions - each function was assigned a number.
None of that is necessary today, really, because some game engines have good implementations of networking (such as Godot, I think).
Okay, how about we make a few examples which will be the solution: So let’s take movement and rotation of the player for example: var position: Vector3(x, y, z) and var rotation: Vector3(x, y z)
The way CLIENTs walk around a map isn’t by telling the SERVER where they’re at, it’s by spamming the SERVER with inputs from the user (WSAD, mouse). Then the SERVER decides many things actually, before doing anything with that information:
- is the CLIENT a legit connection and stuff?
- is the CLIENT sending a number that correlates with any function (if custom networking implementation)?
- is the CLIENT sending data that’s of valid type and value?
- is the CLIENT alive?
- is the CLIENT allowed to move? ( the following can be implemented in various ways, this is one of them )
- okay, then move CLIENT that’s a copy on the SERVER, in that direction at the speed and velocity the SERVER dictates *this already eliminates possibility to teleport, speedwalk and clipping trough walls and the entire map
- anything that the CLIENT collides with, run corresponding collision logic, triggers, signals, etc.
- send the new position and rotation and exact time to ALL CLIENTs
- the CLIENTs interpret this new message at that exact time, then CLIENTs can use interpolation and extrapolation to smoothly move and rotate to the new position and rotation directed by the SERVER (not the CLIENT)
This is uncheatable if done correctly. You know some of world biggest and most expensive games such as Battlefield 6 still don’t understand this. This, what you read, is worth more than the entire worth of Battlefield which is probably many millions of $$$. Why instead not create a better game?
Even AAA games such as Battlefield 6 don’t do this, they have anti-cheat spyware they put on your computer, just like most games do.
You can follow a game I’m creating, it will not be some slop put together under a overlord boss at a evil slave corporation, here: https://blorpblorp.xyz/home/c/my_life_game@lemmy.dbzer0.com
In general I agree, the core of any anticheat should be server side, because you can’t ever full block a client from cheating when they have physical access to the hardware. Valve developers have actually given talks on this, about why VAC is server side focused.
The most common client side cheat is aim-botting, which VAC attempts to detect by looking at player inputs. However cheaters do sometimes find a way to mask aim botting by messing with the input info sent to the servers. CS2 does have cheat waves where cheats will find a successful way to mask their inputs and make it hard to detect server side. Overall CS2 does have more cheaters it seems than rival kernel anticheat games, but it’s not a massive difference and works pretty well without compromising the user’s hardware.
While kernel anticheat blocks most client side cheating attempts, it can’t block external device cheating (such as a second computer monitoring the display and controlling the mouse input to aimbot, and it can be tricked by kernel level cheats (which usually require cheat developers to find old/unsecured kernel drivers). So even for kernel anticheat programs, they can’t block everything, and need systems similar to VAC to block cheating on the server side.
A couple of nit-picks.
it’s by spamming the SERVER with inputs from the user (WSAD, mouse). Then the SERVER decides many things actually, before doing anything with that information
If the server was the only part that did the calculations and the updated position of the user had to be transmitted back to the client before the client could update the user’s position, that would probably feel unresponsive on the client. Done right, the client would take the user’s input, do the calculations, reposition the character (or fire the weapon or whatever) on the client, and then transmit the new condition of the world calculated on the client and the raw user inputs (with very precise timestamps on the inputs). The server would then take those inputs, check that the timestamps weren’t set in the future or too far in the past at the time the client sent them, replay the same exact calculations to update the state of the character and otherwise affect the game world, and check the result against what the client sent it. If they match, booyah. No cheating there. If they don’t that’s suspicious at best.
So, I don’t think it’s quite right to say that the server is governing the location of the character/avatar. It’s more like the server checks to make sure its calculations match the clients. The server does govern the character location that is transmitted to other clients. But your client doesn’t have to wait for the server to make its ruling before changing direction or updating location or firing the weapon or whatever.
If you’re cheating and your client shows something happening that the server kiboshes milliseconds later, well, that’s kinda on you. No real problems caused by that.
It might be that you intended to say the above, but I’ve reread your post like three times now and it wasn’t super clear if you did.
Also, this technique isn’t limited to games. A lot of web applications will make a mouse click go ahead and do the thing on the client without waiting for the server to weigh in on whether it succeeded or not. Just to make it feel more responsive. If the server kiboshes it, the client undoes the change and puts up an error message when it gets the message back from the server. (Mind you, in those cases, the webapp doesn’t have to send all the user’s inputs. But still, it’s a similar principle.)
This is uncheatable if done correctly.
It does defeat a lot of particular kinds of cheats. But consider an aimbot. If I reverse-engineered the client enough, I could figure out how to back-calculate what valid inputs would correspond to moving the crosshairs to the exact location necessary to headshot the other character from across the map, thereby fabricating “valid-looking” inputs for the movement in question.
I suppose the server could enforce that mice can only move so fast, so any aiming that moves the crosshair too far in a single frame worth of time sets off the cheating alarm bells (and kicks the cheater or whatever). But even with such a limitation, the maximum mount you could move the mouse in a single frame is pretty great and that could be factored into the aimbot to still give a significant advantage in aiming accuracy over playing the intended way.
That said, “client-side anti-cheat” doesn’t really work and doesn’t do a very good job of preventing aimbots either. Let alone all the other cheats like teleports and clipping and such. One could just define aimbotting as “not cheating” and insist that the game mechanics must be altered to mitigate such issues. (Maybe don’t include a sniper rifle with bullets that travel instantaneously. That would make aimbotting a lot less effective.) If you’re not willing to make such concessions, then probably your best option is just to add some heuristics to your server-side logic. Things like keeping track of the acceleration of the mouse based on mouse inputs and check that against the maximum acceleration you’d expect a human hand to be able to make. Test real-world players to see how fast the fastest players can possibly react and make your server check your players against that.
X-ray mods are another good example. My solutions: either don’t send the positions of avatars not visible to the client until they are visible (though some work would have to go into making it performant and not laggy) or just make X-ray a feature of the game all the time for all players.
So, yeah. I think it requires more than just what you outlined to prevent cheating, but I very much agree that client-side anti-cheat isn’t as effective as server-side.
A related side-story. I’ve been an avid player of Luanti in the past. (It recently renamed from “Minetest”.) It’s important to know for this story that Luanti is a FOSS game. Voxel-based sandbox kind of game. They’d bristle at being called a “Minecraft clone”, but… they’re a Minecraft clone. Though they prioritize modding/customizeability as a tier-one kind of feature.
Back before Luanti (actually Minetest) supported Android, there were people who took the code, ported it to Android, and sold the result as a proprietary app. (It’s not under a copyleft license, so that’s allowed. Though I’m not sure whether using the Luanti/Minetest trademark would have been an issue and if so, whether any of these clients infringed that way. But just copyright-wise and code-wise, that was expressly allowed by the license.) It was kindof looked down on and resented by the Luanti community. And it resulted in a few waves of noobs joining with no understanding that they were playing a FOSS game, which was definitely annoying. And there might be some spyware or other malware included in such ports, but probably it was no worse than running any particular proprietary spyware Android app. And it was legal AFAIK.
What the community absolutely detested with the fire of a trillion suns, though, was when ports and custom clients were made with “cheating” built in. (I put “cheating” in quotes here on purpose, but I’ll come back to that.) X-ray capabilities where players could see where valuable ores were in particular. Cheaters would join a server and have a mansion built of diamond blocks in mere hours while others struggled to eek out the meager supplies of valuable ores that they could. Displays of lots of valuable stuff was a sign of status, you see.
Now, when I played, I liked to do a lot of engineering. At one point, I made a massive mathematically-correct spherical snow-globe-like dome for my whole house out of glass I smelted with my own two
handspixelated stubs. I put another spherical dome inside and filled the intervening space with water. Great fun. I wrote code to help me calculate exactly the perfect locations of the blocks to make it actually perfectly mathematically correct and everything. Then meticulously constructed it based on my calculations block by block. The result, while lost to time now, was pretty cool if I do say so myself.So I was quite excited when the dev team announced a new feature: client-side scripting. They’d add an interface by which you could mod the client without the server having to cooperate in the process. Until then, the only mods were server-side. (Well, technically the mods would run on both the server and client for performance reasons outlined above, but there was no way for clients to run mods except those that the server sent to them.) I was thrilled. I could write code to calculate spheres or approximate complex mathematical shapes with voxels and then script my avatar to go assemble those shapes for me so I didn’t have to do so much hand-counting. “One, two, three blocks up and then one, two, three, four blocks over and click there’s one. Click whoops made a mistake, gotta pick that block back up.”
The community†.
Was.
Furious.
(†Most of the community. Some folks with more sense pushed back.)
As far as they were concerned, putting such extra functionality on the client was “encouraging cheating”. It would let people make bots that would mine enough diamonds to recreate the whole Great Wall of China to scale in a matter of hours, leaving “legitimate” players to spend weeks and mothns toiling for a fraction of a fraction of the same results.
Some of the users (like me) pushed back, arguing that there were better ways to handle such things on the server side. Don’t send the locations of ores or caverns to the client until they become visible to the user. Do things that require human intelligence frequently to make them prove there’s a human present at the computer. Kick and temporarily ban users (with an increasing ban duration scheme on multiple offenses) after they’ve been on continuously for, say, 18 hours straight. Check for teleports and clips on the server. Luanti didn’t really have a mechanism for sending raw inputs to the server, but mostly what the community cared about was probably relatively easy to account for without that.
One point against the argument of the excited-about-client-side-scripting camp was that the mods that implemented the server-side “protections” in question pretty much didn’t yet exist. The most “official” modpack (like the one that implemented the most “vanilla” version of the Luanti game called “Minetest-Game” at the time – probably called “Luanti-Game” now… not sure) didn’t have such protections built in. And when users opposed client-side scripting, the devs responded with “the official modpack was made only to be a reference game implementation, not a fully-featured game ready for deployment on servers”. (Despite the fact that it was widely used on existing servers.)
It might be that you intended to say the above, but I’ve reread your post like three times now and it wasn’t super clear if you did.
Dude… I’m not sure 100% either, maybe like 90%. I was writing the text for 3-4 hours, pausing a lot and doing like 10 other things. You could probably do that, there’s usually a few ways to do 1 thing in game dev, each with its pros and cons.
that would probably feel unresponsive on the client
well… maybe maybe not but that’s where extrapolation and interpolation come in.
You could also allow the client to do some movement for like up to 1 second, without server intervening - like the server could still calculate the position and rotation, but it could also calculate THE RADIUS of where the player could be, based on the movement speed and the time (1 second), for example.
In game dev, the possibilities are ENDLESS!
If I reverse-engineered the client enough
My game will be open source, I will release source once it’s playable, I’m not sure I want other people’s contributions code-related IDK I feel I could ruin the game if I did… someone could steal it make it better in 1 month and release, then my entire game would look like a cheaper copy… I don’t want that. I am anonymous, so I can’t sure, and fuck copyright! sequences of words aren’t anyone’s property!
But consider an aimbot
I’m considering everything you can ever imagine. At least that’s the end goal. I am and will use mindmaps and other tools to draft all possible cheating scenarios, and all the possible solutions, weigh pros/cons, pick the best ones and then the most performant one(s).
Modern programmers (especially game devs) are a joke, that’s why I get so many dislikes and hate and spam in the last 24h.
I’m NOT going to respond to every sentence you wrote, because you get the point, and I see that you self-improve, which is cruical. You’re not like “this is a joke” or “this is impossible”. I’m not saying I’d use everything you mentioned, but a lot of stuff is planned… for now I plan to solo-dev this in a 5-year timeframe. I already have a roadmap The main thing is to enjoy doing it, do it slowly, do it carefully and pull the execution perfectly! Not to mention all the details in the game I’m planning (cough cough GTA 6 and better, think maybe Project Zomboid)
X-ray mods are another good example. My solutions: either don’t send the positions of avatars not visible to the client until they are visible (though some work would have to go into making it performant and not laggy) or just make X-ray a feature of the game all the time for all players.
I’m going to post my reply to someone else here:
For instance, in Blazium(Godot) I have a system for sanity, and when you look towards a enemy that is from horror you can calculate the distance (pitch/yaw) and the depth, and your sanity decreases, for example.
There is some complicated math involved, but you can easily convert that part of code to C++.
The only thing we need to change (ON THE SERVER) in here is make this for all players, and if the pitch/yaw and/or distance depth, see if there’s any players nearby… AND ONLY THEN transmit the other player’s position to the player.
Then add a raycast towards that player, and if it hits anything else before the player - there’s a wall or something blocking the view - DO NOT SEND enemy location.
Wall-hacking solved.
Okay, so. I’m interested in having you as a valuable member of the community. I could use your deduction skills, regardless if you’re an actual programmer or not.
Also I’m sorry, but I SERIOUSLY don’t have time or patience to read everything you wrote, especially Luanti-related. I appreciate the effort you put, but I just don’t have the resources. The little time I have I’ll try to work on the game. Also I spent like 2 hours responding to my comment/post (this) which I put on multiple places. I’m not even done… Please join MY LIFE community, you can see the link above. We have Matrix and soon SimpleX (when I feel like it, maybe this weekend).
I hope Valve simply ignore this, I don’t want this shit on my steamOS out of the box.
They think Linux users are going to buy a new pc with TPM, enable secure boot, and install a new kernel for fortnite???
Most mainstream distributions work fine with TPM and secure boot, so there is little reason to disable it for those users in the first place.
Steam Decks and Machines already support TPM and secure boot but currently SteamOS does not. For Steam hardware specifically (which this community is about), Valve can achieve this by a firmware and a SteamOS update that does not involve rocket science on their part.
Whether Valve are interested in that is a completely different question.
a pre-approved signed kernel
Do not comply with this shit. If enough PC gamers do, they will make it a requirement, and use it to combat modding, piracy, etc.
Microsoft tried to do this with the windows store, ‘windows s’, etc. We only avoided games being locked into it because Steam was just about popular enough that publishers wouldn’t get on board.
Google is doing it with android. Think of the banking apps that only work on their OS. That’s what happens when a big enough chunk of the user base accepts not having control of their computer.
If enough PC gamers do, they will make it a requirement, and use it to combat modding, piracy, etc.
THANK YOU! This is the point everyone is missing, we’re not just “gatekeeping” Linux because Ewww Fortnite bad.
Online games you can currently play on Linux will start requiring this, Then other proprietary software will require it for “security reasons”, and so on.
Google is doing it with android. Think of the banking apps that only work on their OS.
I’m grateful to Huawei for existing. The sizeable user base for their devices prevents banks in many regions from restricting access to devices without Google services. Typically, banks either release a separate app for AppGallery or don’t use the Play Integrity API at all.
Funny thing is at this point it is better to hope Windows users just stay with Windows if that is a concern, since adoption for the sake of adoption could just end up with the situation Android is in if this gains traction. Best if EACv2 is just used by a small niche group of linux users and doesn’t get much traction.

I sincerely hope Valve does nothing about this.
Linux not supporting anticheat in games is the biggest game incompatibility issue left. There are a lot of people who won’t ever consider leaving windows unless they can play their favorite game. This style of anticheat is also a lot less terrible than kernel anticheat, so this would let people use a less invasive/compromising anticheat and swap to linux as well.
I generally don’t have an interest in any of the games that this will bring to linux, but this seems to be a good overall change for the platform.
I am willing to sacrifice all those that must remain in windows so that our Linux distros keep being 100% owned and controlled by US.
That’s how much of a superhero I am.
Kernel level anticheat is a fucking malware. I don’t want this shit on linux :/
This isn’t kernel level. It restricts read/write access to the game files, and relies on a known kernel + secure boot to make sure that the kernel hasn’t been tampered with to bypass that restricted access.
oh, right. I missed that part. D:
"This does require secure boot, a TPM module, and a pre-approved signed kernel. "
And
“The ball is in Valve’s court”
Lol.
The ball is in Valve’s court
Please notice me senpai
Secure Boot is a fucking cancer designed to limit ownership and control of your own property. Fuck any company that abuses it like this, including the fascist scum at Epic.
No. Not at all. Secure Boot is a great security feature. Most likely reason you think that way is that Microsoft managed to convince pretty much every hardware manufacturer to pre-install their signing public keys in the BIOS, and enable Secure Boot by default so only Windows (and some select Linux distros, though sometimes even that doesn’t work out of the box) can boot.
I use
sbctlon CachyOS. It lets me generate my own signing keys, enroll them in the BIOS and sign my own kernel & bootloader.Except from what I’ve read, EACv2 requires you only have OEM keys installed, so you can’t sign your own kernel and you can’t even have the option to dual boot a kernel you own and a kernel they own. If they at least allowed you to have dual booting it wouldn’t be that bad, but preventing you from even having an alternate kernel you own is insane and anticonsumer cancer. I was excited for Fortnite on Linux but at this point dual booting Windows with MOK and rEFInd is actually less restrictive, which is the worst possible scenario.
The keys have to be approved by Epic. It does include Microsoft as that’s the most common one, but they did say CachyOS will be allowed, and most likely more is to come.
I agree with you on that my own keys will not be allowed. I made my initial comment regarding just Secure Boot. But the point is that Epic needs to trust you to not have tampered with your kernel. Your own keys can never guarantee that, as nothing blocks you from signing a kernel you patched.
I am actually quite excited for EAC v2 on Linux (even though I don’t play any online game), as it is actually not a kernel-level thing running constantly, like it is on Windows. It only leverages existing Linux kernel functionality to make sure it is not tampered with, unlike some people on other threads who don’t bother to read linked articles may claim. This might even be better in the long run for playing online games without running a kernel-level anti cheat.
They need a way to verify an individual kernel was signed by an approved key without requiring your entire PC not have your own keys. Restricting me from booting a second OS of my own choosing is totally unacceptable. Either that or we need PC BIOS vendors to add secure boot on/off hotkeys so that you don’t have to go flip a setting in the BIOS every time you want to play a game. The alternative is total loss of ownership over your hardware. If it can’t have your keys on it, it’s not your PC.
You can dual boot kernels. For example CachyOS’s tool for setting this up just installs a signed kernel alongside your usual one, and then they have a different command that will reboot into it automatically (or just select the eac kernel at boot).
EACv2 requires the approved kernels to be signed with OEM keys, but it doesn’t care what kernel you run (or who signed it) except when the game is running. And they also said that launching an EACv2 game with a non-approved kernel won’t result in a ban or anything, just that it wouldn’t let you play.
If you can’t have an MOK registered then any kernel you dual boot with, along with any bootloader you use to boot it, has to also be signed with OEM keys, so you can’t not have an MOK and still own your kernel.
How terrible. The early version that allowed games like Dead By Daylight to run already gave filesystem access via Symlinks which, although not kernel level, could monitor your running processes among other nefarious deeds.
That was literally just wine/proton providing symlinks to your files by default, and didn’t actually have anything to do with the anticheat. It happens for all windows games run through Steam unless you disable it, whether they have anticheat or not.
If I had prepared it myself then that would be fine, but I have to trust the Dead by Daylight and Valve Employees to handle it via the Proton EasyAntiCheat Runtime which I have absolutely no idea who maintains.
If you know how to disable symlinks for steam games please inform me and I will spread the word.
You generally have to do it on a per-game basis. You can delete the z: symlink from the games proton prefix or disable it through protontricks/winetricks.
If you’re on a different linux distro, you can install flatpak steam and limit file access that way, which will work for all Steam games. An alternative for steamOS is to use a bwrap command in launch options, which can isolate the game and restrict access. There are decky plugins that allow applying launch options to multiple/all games, so that could probably be used to apply this to a lot of games at once.
How do you open winetricks for a specific steam game? I’ve got other wine and bottles apps.
I mentioned both, but I’d recommend Protontricks for this. Basically when you run it, it will ask what steam app you wish to edit, and then (if I remember right) you’ll select that you want to edit the default prefix (for that game).











