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.

  • Gigatron@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    1
    arrow-down
    4
    ·
    edit-2
    5 hours ago

    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:

    1. How it looks
    2. What it means to cheat in a multiplayer games.
    3. Why is almost every multiplayer game implementing anti-cheats THE WRONG WAY
    4. What anti-cheats actually look like
    5. 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

    EDIT 1 SECTION A lot of game-dev-incapable people attacked me, ridiculed me and just wasted my time, explaining to me how this and this isn’t possible, but they didn’t even know what it was called. What most of them were referring to is wall-hacking. It’s easy to solve. I already code that does this, actually. I just use it for a sanity system.

    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.

    EDIT 2 SECTION I’m saying all of this with latency and such and such distance and roundtrip (to server and back or vice-versa) in mind. And packet-loss.

    • Fubarberry@sopuli.xyzOPM
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      6 hours ago

      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.

      • Gigatron@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        5 hours ago

        The game will be open source. Not a proprietary spyware, sorry to disappoint you. Nothing will be hidden. I have a few ideas on how to prevent aimbotting, but that and the contrast-cheating are the 2 things that might be hard if not impossible to prevent… everything else is.

    • TootSweet@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      19 hours ago

      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 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.)

      • Gigatron@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        1
        ·
        8 hours ago

        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).

        • TootSweet@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          45 minutes ago

          I wasn’t really talking about your game with my comments. Moreso about Fortnight (and games like it). Which is why I mentioned “reverse-engineering the client” and such.

          I’m “yes and”-ing your comment, really. Trying to help advocate to other readers for the idea that not only is “client-side anti-chat” evil, but also ineffective, while server-side anti-cheat is (all else being equal) fundamentally less evil and more effective. And presenting server-side options that make people go “oh, yeah, that could work” is part of that.

          I’m NOT going to respond to every sentence you wrote

          Also I’m sorry, but I SERIOUSLY don’t have time or patience to read everything you wrote

          All good. No worries at all. My response wasn’t solely for your benefit.

          regardless if you’re an actual programmer or not.

          Yup. I’m a programmer, and very interested in game dev as well. This is the main project I’m currently working on. More info here if you’re interested (but it’s also totally valid to defocus your eyes and skim that post. Lol.)

          Please join MY LIFE community

          Already subscribed, actually, and I’ll weigh in in threads I feel like I can contribute to.

      • TootSweet@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        19 hours ago

        (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.)