- cross-posted to:
- [email protected]
- cross-posted to:
- [email protected]
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.


A couple of nit-picks.
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.)
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 aiming movements 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 a combination of 1) a crowd-sourced reporting/ranking system for identifying cheaters (though be careful not to put too much weight on that and cause too many false positives) and b) adding 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. I guess in short, it does require a fair amount of engineering and game design to make solutions for things like this that actually work well.
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.)
(I hit the post length limit. Continuing here.)
In the end, the devs backed down and agreed to implement a watered-down version of client-side scripting that didn’t include any player movement or ability to change the client’s view to indicate locations of things the user couldn’t currently see otherwise or anything like that. I’m not sure if that’s what they ended up doing or not. I haven’t really played much since then. Not (only) because of the walkback of the client-side scripting features. I would rather they had delayed the client-side scripting until “anti-cheat” (a poor term for it, I think – whether any particular one of those actions counted as “cheating” really should have been up to the server owner, not up to a vague, poorly-considered consensus of a vocal plurality of the community) was available via mods than cancelled them all together.
I should probably check back on the status of client-side scripting in Luanti. I might be pleasantly surprised.
But I do think there are a lot of very passionate believers in anti-cheat who don’t care to think deeply enough about it to distinguish between dumbass rootkit “client-side anti-cheat” and actually effective means of preventing cheating. They argue more with their hearts than their brains. And man are they rabid when provoked even a tiny bit.
To be fair, I think a lot of Luanti players are 13-year-olds who wish they could get their parents to buy them Minecraft but can’t for one reason or another. Which… honestly is pretty awesome in a lot of ways. I’m thrilled to see Luanti out there in the software ecosystem empowering kids. Especially kids who would otherwise be more deprived. Such kids get to experience what it means to use software (including games) built for their benefit and not just in order to most efficiently exploit them. (Hey. What do you know. I brought the topic back around to Fortnight.) But also… and I hope this doesn’t come across as mean-spirited… it might possibly be that emotional maturity isn’t in the most abundant of supply in the Luanti community as a whole.
I’d love if games made a habit of encouraging botting in a way that was more positive. Yes, you want to keep “SɹƎʇ∀ǝHɔ” from “ruining” games for “manual” players. But… have official bot servers alongside the official human servers. Ask (and even incentivise) them to admit to botting. Reward the ones whose bots perform best in the botting server(s). When someone’s found to be cheating (via server-side methods), dump them out of the human-play server over into the botting server. Maybe even incentivise users to develop new methods of detecting “cheating”.
But of course, that’s mostly only a reasonable thing to hope for in FOSS game communities.
So, yeah. Yet another reason why all software should be Free/Open-Source Software. (And, IMO, copylefted. So if someone else ports your game to Android, you can demand the source code of the port and adopt the good parts into the upstream codebase. After proper auditing, testing, and review, of course.)