[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7E6FGZHH043C5X2WKB3A0WE":3,"skill-same:01M7E6FGZHH043C5X2WKB3A0WE":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7E6FGZHH043C5X2WKB3A0WE","anti-cheat",null,"Use when players could cheat a Godot game's leaderboards, economy, ranked or competitive modes, when deciding on anti-cheat software, when player IPs must stay hidden, or when cheaters, speed hacks or impossible scores appear.","nick-vas\u002Fhyperdot","nick-vas","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F7181961?v=4","01M7E6F6F0BQ49V0JZHX9BXCBD","Nikolaos Vasilikiotis","01M7E6F6FZW8SW1AJ1S7ARFE89",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanti-cheat\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: anti-cheat\ndescription: Use when players could cheat a Godot game's leaderboards, economy, ranked or competitive modes, when deciding on anti-cheat software, when player IPs must stay hidden, or when cheaters, speed hacks or impossible scores appear.\n---\n\n# Anti-cheat basics for Godot games (C#)\n\nCheating matters where players meet: multiplayer, leaderboards, trading, ranked play. The defence that works is the\nserver deciding everything that matters; client-side software is a later, costly layer. Sources:\n`${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Fanti-cheat.md`.\n\n## 1. What to protect\n\n| Game | Do | Do not bother |\n|---|---|---|\n| Single-player | Validate saves so an edited one cannot crash the game | Encrypting or obfuscating saves; players only cheat themselves |\n| Co-op, listen server | Validate what the host accepts; accept that the host can cheat | Client anti-cheat |\n| Competitive, ranked, economy | A dedicated server that owns all state; Steam Game Bans | Trusting anything the client says |\n| Leaderboards | Server-written scores, checked by replay | Client-set scores or achievements |\n\n## 2. The server decides (Godot's \"secure multiplayer design\")\n\n- Clients send intentions (inputs), not results: never positions, damage, cooldowns, currency or scores from a client.\n- Validate every RPC argument: types, ranges, `NaN` and infinity, array and string sizes; check\n  `Multiplayer.GetRemoteSenderId()` owns what it acts on.\n- Speed and rate: the server grants one input per tick of real time. The C# example's `Server` does: a client that sends two\n  inputs a tick moved twice as fast before the fix (3997 px where real time allows 2000); now it does not, and the extra\n  inputs are counted in `InputsRejected`. Cooldowns and timers run on server time.\n- Progress lives with the authority. Destiny's raid boss had one critical step in client-side logic, and pulling the\n  host's network cable at the right moment beat it; it became the usual way to win (`multiplayer`, sessions.md).\n- Hits: check range and line of sight on the server, rewound to what the shooter saw (`multiplayer`), with a cap\n  on how far back.\n- Hide what players should not know: the server sends an enemy's position only when the client needs to draw it (Riot's\n  fog of war). A wallhack cannot show data that never arrived.\n- Settings: `SceneMultiplayer.AllowObjectDecoding` stays false (decoded objects run code); set an `AuthCallback` (empty\n  accepts everyone); turn `ServerRelay` off when clients need not talk to each other.\n\n## 3. Leaderboards and achievements\n\n- Steam: set a leaderboard's writes to \"Trusted\" so only the Web API (your server) sets scores, and stats and\n  achievements to \"GS\" so only a game server sets them. \"Official GS\" needs your official servers' IP range in App Admin\n  (Dedicated Servers), and the server calls `RequestUserStats` first; a failure shows only as `false`. Client-set values are trivial to fake.\n- Verify a score by replaying it: the client sends the seed and the inputs, the server re-simulates and accepts only a\n  matching score. That needs a deterministic simulation; nothing promises Godot's physics is deterministic across machines\n  (`determinism`, the C# example's `DeterminismCheck.Verify`).\n- Cheaper: plausibility bounds (score per second, items per minute), and a person looking at the top of the board.\n\n## 4. Client-side anti-cheat\n\n- **Easy Anti-Cheat** is free through Epic Online Services; game-specific detection is paid. No official Godot\n  integration (the community EOS plugin has the interfaces but no sample); it needs its Linux module for Steam Deck and\n  Proton, does not cover consoles, mobile or offline play, and must check the `.pck` and .NET files too.\n- **BattlEye**: pricing on request; Proton support opt-in per game.\n- **Steam**: Game Bans (`RequestPlayerGameBan`) are for multiplayer cheating only, and \"cheat detection is performed by\n  you\". Bans are public on the player's profile.\n- Costs: integration work, false positives, support load, Steam Deck rating (anti-cheat without Proton support is\n  Unsupported), and player distrust. Most small games need none of it.\n\n## 5. What does not work\n\n- Value obfuscation (XOR-ing health in memory) stops only casual memory scanners; server authority makes it moot.\n- PCK encryption needs a custom-built export template, and the key ships inside the game: tools recover encrypted\n  projects. It is not anti-cheat. C# assemblies decompile readily.\n- Signing requests with a key in the client stops casual tampering only.\n\n## 6. Denial of service and player IPs\n\nAn attacker who cannot beat you can knock you offline: flood the game server so a losing player's loss is not recorded,\nor flood a player directly. Streamers and tournament players are high-value targets whose IP rarely changes, so once it\nleaks they stay vulnerable (`${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Fgdc\u002Fdenial-of-service-mitigation.md`, Valve).\n\n- **Do not expose player IPs.** ENet peer-to-peer and listen servers hand every player's address to the others; a direct\n  connection does the same. Share an address only when both sides have agreed to connect, never just because one side\n  wants to. On Steam, relay the traffic so peers are identified by Steam ID, not address (the calls: `steam`\n  section 6). Keep peer addresses out of rich presence, spectator data and debug overlays.\n- **Let unauthenticated peers reach nothing.** Set `SceneMultiplayer.AuthCallback` and a short `AuthTimeout` (default 3 s):\n  a peer that does not complete `SendAuth`\u002F`CompleteAuth` in time is dropped before it can send gameplay RPCs. An empty\n  callback accepts everyone (section 2).\n- **Put the backend (login, matchmaking, economy) on HTTP,** so commodity web DoS protection applies; never a raw socket.\n- **Record a result when the server dies mid-match,** so knocking the server over does not erase a loss and remove the\n  incentive to attack it (a derived rule, not from the talk).\n- **A ban must cost something.** In free-to-play, detect attackers from match-failure analytics and require a barrier to\n  re-enter ranked play (e.g. a number of games played); otherwise a new account walks straight back in.\n- Flooding the server itself (what Godot's ENet survives, filtering, per-address limits, join tokens):\n  `servers` sections 3 and 4.\n\n## 7. Evidence and bans\n\nFrom DayZ's and Valve's GDC talks (Eugen Harton, as transcribed; John McDonald on CS:GO's VACnet):\n\n- **Evidence is recorded by the server** (a replay or a shot log, with the match's players and time), never sent by the\n  client, which can lie. Valve put the recording, storage and retrieval at 95% of the work of any automated detection.\n- **The server decides; the client at most collects.** Detection logic on the player's PC is detection logic the cheat\n  makers can read. Log server sanity checks on game logic (rates, distances, impossible sequences), within the\n  server's frame budget.\n- **Ban after a random delay, in waves** (DayZ: 1 to 3 or 1 to 7 days), never at the moment of detection: the cheat's\n  maker cannot tell which check fired, and the buyers of a new cheat are caught together.\n- **Plan for false positives**: a high bar, an appeal path and support ready for each case. A small game may prefer\n  soft measures: match flagged players with each other (Valve's Trust Score did not lower cheating, it limited who\n  met it). If players review cases, weight each reviewer by how often they agree with the consensus.\n- **Never taunt cheaters in public.** DayZ's producer did; the studio got personal harassment and attacks on its services.\n- **Why a few percent matters:** with n players in a match and a share p cheating, a clean player meets at least one in\n  1 - (1 - p)^(n - 1) of matches. With 10 players: 17% at p = 2%, 48% at 7%.\n\n## 8. Prove it\n\n- [ ] a test client that lies (sends results instead of inputs, too many inputs, out-of-range or NaN values, actions\n      for another player's units) changes nothing on the server, and each attempt is counted\n- [ ] cooldowns and timers hold when the client's clock runs fast\n- [ ] a replayed score is accepted; a score with a changed input is refused (`DeterminismCheck.Verify` finds the tick)\n- [ ] an edited single-player save loads or is refused cleanly, never crashes (`saves`)\n- [ ] no player address appears in rich presence, spectator data or a debug overlay; unauthenticated peers time out\n- [ ] every ban names a server-recorded replay or log as its evidence, and goes out after a random delay, not at detection\n","# Anti-cheat basics for Godot games (C#)\n\nCheating matters where players meet: multiplayer, leaderboards, trading, ranked play. The defence that works is the\nserver deciding everything that matters; client-side software is a later, costly layer. Sources:\n`${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Fanti-cheat.md`.\n\n## 1. What to protect\n\n| Game | Do | Do not bother |\n|---|---|---|\n| Single-player | Validate saves so an edited one cannot crash the game | Encrypting or obfuscating saves; players only cheat themselves |\n| Co-op, listen server | Validate what the host accepts; accept that the host can cheat | Client anti-cheat |\n| Competitive, ranked, economy | A dedicated server that owns all state; Steam Game Bans | Trusting anything the client says |\n| Leaderboards | Server-written scores, checked by replay | Client-set scores or achievements |\n\n## 2. The server decides (Godot's \"secure multiplayer design\")\n\n- Clients send intentions (inputs), not results: never positions, damage, cooldowns, currency or scores from a client.\n- Validate every RPC argument: types, ranges, `NaN` and infinity, array and string sizes; check\n  `Multiplayer.GetRemoteSenderId()` owns what it acts on.\n- Speed and rate: the server grants one input per tick of real time. The C# example's `Server` does: a client that sends two\n  inputs a tick moved twice as fast before the fix (3997 px where real time allows 2000); now it does not, and the extra\n  inputs are counted in `InputsRejected`. Cooldowns and timers run on server time.\n- Progress lives with the authority. Destiny's raid boss had one critical step in client-side logic, and pulling the\n  host's network cable at the right moment beat it; it became the usual way to win (`multiplayer`, sessions.md).\n- Hits: check range and line of sight on the server, rewound to what the shooter saw (`multiplayer`), with a cap\n  on how far back.\n- Hide what players should not know: the server sends an enemy's position only when the client needs to draw it (Riot's\n  fog of war). A wallhack cannot show data that never arrived.\n- Settings: `SceneMultiplayer.AllowObjectDecoding` stays false (decoded objects run code); set an `AuthCallback` (empty\n  accepts everyone); turn `ServerRelay` off when clients need not talk to each other.\n\n## 3. Leaderboards and achievements\n\n- Steam: set a leaderboard's writes to \"Trusted\" so only the Web API (your server) sets scores, and stats and\n  achievements to \"GS\" so only a game server sets them. \"Official GS\" needs your official servers' IP range in App Admin\n  (Dedicated Servers), and the server calls `RequestUserStats` first; a failure shows only as `false`. Client-set values are trivial to fake.\n- Verify a score by replaying it: the client sends the seed and the inputs, the server re-simulates and accepts only a\n  matching score. That needs a deterministic simulation; nothing promises Godot's physics is deterministic across machines\n  (`determinism`, the C# example's `DeterminismCheck.Verify`).\n- Cheaper: plausibility bounds (score per second, items per minute), and a person looking at the top of the board.\n\n## 4. Client-side anti-cheat\n\n- **Easy Anti-Cheat** is free through Epic Online Services; game-specific detection is paid. No official Godot\n  integration (the community EOS plugin has the interfaces but no sample); it needs its Linux module for Steam Deck and\n  Proton, does not cover consoles, mobile or offline play, and must check the `.pck` and .NET files too.\n- **BattlEye**: pricing on request; Proton support opt-in per game.\n- **Steam**: Game Bans (`RequestPlayerGameBan`) are for multiplayer cheating only, and \"cheat detection is performed by\n  you\". Bans are public on the player's profile.\n- Costs: integration work, false positives, support load, Steam Deck rating (anti-cheat without Proton support is\n  Unsupported), and player distrust. Most small games need none of it.\n\n## 5. What does not work\n\n- Value obfuscation (XOR-ing health in memory) stops only casual memory scanners; server authority makes it moot.\n- PCK encryption needs a custom-built export template, and the key ships inside the game: tools recover encrypted\n  projects. It is not anti-cheat. C# assemblies decompile readily.\n- Signing requests with a key in the client stops casual tampering only.\n\n## 6. Denial of service and player IPs\n\nAn attacker who cannot beat you can knock you offline: flood the game server so a losing player's loss is not recorded,\nor flood a player directly. Streamers and tournament players are high-value targets whose IP rarely changes, so once it\nleaks they stay vulnerable (`${CLAUDE_PLUGIN_ROOT}\u002Fdocs\u002Fgdc\u002Fdenial-of-service-mitigation.md`, Valve).\n\n- **Do not expose player IPs.** ENet peer-to-peer and listen servers hand every player's address to the others; a direct\n  connection does the same. Share an address only when both sides have agreed to connect, never just because one side\n  wants to. On Steam, relay the traffic so peers are identified by Steam ID, not address (the calls: `steam`\n  section 6). Keep peer addresses out of rich presence, spectator data and debug overlays.\n- **Let unauthenticated peers reach nothing.** Set `SceneMultiplayer.AuthCallback` and a short `AuthTimeout` (default 3 s):\n  a peer that does not complete `SendAuth`\u002F`CompleteAuth` in time is dropped before it can send gameplay RPCs. An empty\n  callback accepts everyone (section 2).\n- **Put the backend (login, matchmaking, economy) on HTTP,** so commodity web DoS protection applies; never a raw socket.\n- **Record a result when the server dies mid-match,** so knocking the server over does not erase a loss and remove the\n  incentive to attack it (a derived rule, not from the talk).\n- **A ban must cost something.** In free-to-play, detect attackers from match-failure analytics and require a barrier to\n  re-enter ranked play (e.g. a number of games played); otherwise a new account walks straight back in.\n- Flooding the server itself (what Godot's ENet survives, filtering, per-address limits, join tokens):\n  `servers` sections 3 and 4.\n\n## 7. Evidence and bans\n\nFrom DayZ's and Valve's GDC talks (Eugen Harton, as transcribed; John McDonald on CS:GO's VACnet):\n\n- **Evidence is recorded by the server** (a replay or a shot log, with the match's players and time), never sent by the\n  client, which can lie. Valve put the recording, storage and retrieval at 95% of the work of any automated detection.\n- **The server decides; the client at most collects.** Detection logic on the player's PC is detection logic the cheat\n  makers can read. Log server sanity checks on game logic (rates, distances, impossible sequences), within the\n  server's frame budget.\n- **Ban after a random delay, in waves** (DayZ: 1 to 3 or 1 to 7 days), never at the moment of detection: the cheat's\n  maker cannot tell which check fired, and the buyers of a new cheat are caught together.\n- **Plan for false positives**: a high bar, an appeal path and support ready for each case. A small game may prefer\n  soft measures: match flagged players with each other (Valve's Trust Score did not lower cheating, it limited who\n  met it). If players review cases, weight each reviewer by how often they agree with the consensus.\n- **Never taunt cheaters in public.** DayZ's producer did; the studio got personal harassment and attacks on its services.\n- **Why a few percent matters:** with n players in a match and a share p cheating, a clean player meets at least one in\n  1 - (1 - p)^(n - 1) of matches. With 10 players: 17% at p = 2%, 48% at 7%.\n\n## 8. Prove it\n\n- [ ] a test client that lies (sends results instead of inputs, too many inputs, out-of-range or NaN values, actions\n      for another player's units) changes nothing on the server, and each attempt is counted\n- [ ] cooldowns and timers hold when the client's clock runs fast\n- [ ] a replayed score is accepted; a score with a changed input is refused (`DeterminismCheck.Verify` finds the tick)\n- [ ] an edited single-player save loads or is refused cleanly, never crashes (`saves`)\n- [ ] no player address appears in rich presence, spectator data or a debug overlay; unauthenticated peers time out\n- [ ] every ban names a server-recorded replay or log as its evidence, and goes out after a random delay, not at detection\n",{"name":5,"description":7},"main","5fa4c2262d814d50f72198a95b8c483ff195f90f",".agents\u002Fskills\u002Fanti-cheat",0,"https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot","https:\u002F\u002Fnick-vas.github.io\u002Fhyperdot\u002F","https:\u002F\u002Fgithub.com\u002Fnick-vas","https:\u002F\u002Fcommon-beef.itch.io\u002F","2026-11-13 18:55:29",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add nick-vas\u002Fhyperdot --skill anti-cheat",{"tool":39,"command":40},"bunx","bunx skills add nick-vas\u002Fhyperdot --skill anti-cheat",{"tool":42,"command":43},"pnpm","pnpm dlx skills add nick-vas\u002Fhyperdot --skill anti-cheat","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fanti-cheat\u002FSKILL.md",true,[],[48,55,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7E6RF2S03S92PB9RZB4S4W0","over-budget","Use when a fixture exceeds the size budget.","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fover-budget\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7E6RBY8SDNMA3ZARE8MAH0G","bad-yaml","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fbad-yaml\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7E6R9S9YHTC552SR41RQAJ1","bad-workflow-description","Use when testing; runs the kit and then reads the JSON.","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fbad-workflow-description\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7E6R6CWSAN48C80130CM1AK","bad-version","Use when a fixture quotes a stale package version.","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fbad-version\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E6R2C0E24TC133ESHKZT9R","bad-value","Use when a fixture passes a value outside a parameter's set.","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fbad-value\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7E6QYM81V061X7DSQ94CZRP","bad-trigger","Helps with Godot tests.","https:\u002F\u002Fgithub.com\u002Fnick-vas\u002Fhyperdot\u002Fblob\u002Fmain\u002Ftests\u002Fskill-fixtures\u002Fbad-trigger\u002FSKILL.md",[],[]]