Skip to content
kxdrsrtPublic

About

Open-source, modular anti-cheat for Ragnarok Online servers (rAthena): guard DLL, server module, Studio (Rust/Tauri) for signed per-server releases

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

OdinGuard Anti Cheat

OdinGuard Anti Cheat

OdinGuard Studio app icon

Open-source, modular anti-cheat for Ragnarok Online servers, with its own Studio to configure and build it.

Windows client (C11) · rAthena module (C++) · OdinGuard Studio (Rust + Tauri 2) · MIT or Apache-2.0 · v1.1.0

License rAthena pre-renewal

GitHub Sponsors Ko-fi Open Collective Patreon Liberapay

Pre-renewal first. OdinGuard was built and tested for pre-renewal servers (rAthena pre-re, PACKETVER 20180620, client 2018-06-20). The lite ground skills (LGP) and the competitive-pack map lists are pre-renewal only. Every other feature (handshake, integrity, signatures, server rules, bans, challenges, GRF check, Studio) does not depend on the renewal switch and is expected to work on renewal servers too, but has not been tested there.

OdinGuard and its Studio belong together: the Studio builds the signed release of the guard for your profile, so they are versioned and released together (one tag, one release, both tools).

Deutsch: README.de.md


Lite ground skills: Storm Gust as blue triangles, rings around the own character   All LGP tile symbols in four colours, square and triangle

OdinGuard Studio: choose the modules of the guard   OdinGuard Studio: cheat signatures by tool group, one reaction per group


Open-source, modular anti-cheat for Ragnarok Online servers running rAthena (or a fork). Server owners pick the protection modules, challenges, commands and signatures in OdinGuard Studio and get a signed, reproducible release for client and server – their own keys, their own build.

Why

Ragnarok Online servers fight packet editors, bots, macro and autopot tools, memory readers, no-delay GRFs and modified clients. Closed anti-cheats are hard to audit, cause start-up hangs and false "illegal files" alarms, and tie every server to one vendor. OdinGuard is:

  • Server-authoritative. The server decides. Client checks raise the cost of cheating and produce evidence; the real security comes from server-side rules (rate limits, delay checks, honeypots, captchas, mandatory handshake).
  • Open code, secret keys. Security comes from per-server keys and per-server build variation, not from hiding the code.
  • Modular. Unselected modules are not compiled into the client DLL (checked against the linker map).
  • Careful with players. Every rule has severity, confidence and an action (log, flag, flag-then-ban, kick, ban); bans come in delayed waves; rollout starts in warn mode; legitimate add-ons are allowlisted.

Features

Area
Network X25519 handshake with a pinned server key, XChaCha20-Poly1305 for the whole game stream, replay protection, key rotation, per-server profile tag, downgrade protection, fuzzed parsers
Integrity exe and guard code hashes in every heartbeat, canonical code image, anti-debug, hardware breakpoints, API-hook checks (speed hacks), GRF check with patch-rollout support; outdated guards are refused at login with a message to update
Detection signed, updatable signature package (300 signatures: processes, modules, windows, files, drivers, mutexes, registry, GRF hashes), allowlist, per-group actions
Server rules packet rate limit (WPE/RPE loops), no-delay detection, autopot/macro timing, honeypot unit, captcha, multi-client limit, hardware bans (exact and fuzzy), account lock to machines, flags and ban waves (warn-mode flags never ban)
Challenges nonce (build secret), random code ranges, clock rate, random file ranges, captcha, honeypot
Features !ping, !vsync, !crash (crash reports with the last packets, optional upload to your web panel after the player agreed), @pf packet filter for mass WoE, optional start only through the patcher (launcher, OpenThor launch ticket), every player text in English and German (more languages in the config), @spb party buffs, colour names and items, lite ground skills (@lgp, @square, @circle, @lgpsound: every ground skill as a flat tile in its colour, shape and symbol, guide), competitive pack per mode (flat WoE / battleground / PvP maps, optionally required on those maps, guide)
AI assistants og-mcp, an MCP server with 18 tools: ask your assistant to create a profile, enable modules, validate, scan a GRF and build the signed release
Tooling Studio GUI (Tauri 2) and og CLI: profiles, validation, reproducible signed releases, signature packages, GRF scan and public GRF manifest (used by OpenThor Patcher), rollout gate, signed self-update

LGP at a glance

Lite ground skills replace the busy ground effects (Storm Gust, Pneuma, Safety Wall, songs, traps, ...) with flat, coloured tiles: square = protective, triangle = hostile, a small symbol says what kind (+ buffing field, − harmful zone, shield, note, ...). Everything is a player choice:

Command What it does
@lgp Master switch: LGP on/off. Every skill keeps its own colour.
@square 2-18 Colour set: one single colour for every skill (@square 1 = per-skill colours, @square off = off).
@aoes Tiles only for Storm Gust, Lord of Vermilion and Meteor Storm; all other skills show their normal effect.
@circle 1-5 Rings around your own character.
@lgpsound Keep or mute the skill sounds while tiles are shown.
!dark [on|off] Competitive pack (flat maps, dark floor) on/off; restart the game to apply.
@pf on|off|c i g Packet filter on WoE/BG maps: no chat (c), item use (i) or emotions (g) of other players.
@spb Support buffs of every party member with the seconds left (in the chat).

Full guide with every option, flag and ! command: docs/08-lgp-guide.md. Pre-renewal only for now; the rest of OdinGuard also works on renewal clients.

Quick start

brew install mingw-w64            # or: apt install mingw-w64
cd studio && cargo build --release && cd ..
studio/target/release/og new myserver.profile.toml --id myserver --operator "My Ragnarok"
studio/target/release/og build myserver.profile.toml

Prefer to talk to it? studio/target/release/og-mcp is an MCP server for AI assistants, see docs/10-mcp.md.

Then follow docs/INTEGRATION.md (server hooks, client loader, GRF check with your patcher, staged rollout).

Repository

Path
client/ guard DLL and loader (C11, 32-bit, mingw-w64 or llvm-mingw with CFG), tests (selftest, nettest, dettest, fuzzer)
server/ rAthena module and hook list
proto/ wire protocol shared by client and server
studio/ Rust workspace: og-core, og CLI, og-mcp (MCP server), Tauri app
modules/ module and command registry (single source for Studio, builds and docs)
signatures/ cheat signatures and allowlist (static analysis results only, no cheat binaries)
assets/ own assets for odin.grf (LGP tiles) and the competitive-pack recipe
profiles/ example profiles: default, minimal, e2e
tests/e2e/ end-to-end suite (rAthena in Docker + Windows VM)
docs/ integration guide, LGP guide, competitive pack, MCP server for AI assistants (English); architecture, tests, analyses (German)

Your client exe: diff first, then OdinGuard

OdinGuard never changes the exe file: it ships ijl15.dll (loader), odinguard.dll and odin.grf next to it (exe → ijl15.dll → ijl15r.dll [→ dxwrapper/ROExt]). But at run time it does hook code inside the exe, so the bytes of your exe matter:

Feature What it touches
LGP colours and shapes patches the exe's code in memory at fixed places (checked against bytes first)
Coloured nicks hooks UIWindow::TextOutWithOutline
Window title SetWindowText from outside; a title set by your diff stays, OdinGuard appends its name
!ping, !lang, @pf, network, handshake kernel32/ws2_32, not the exe: independent of the exe's bytes
  • Every exe hook is bound to a byte signature. If the bytes differ (another client build, or a diff that changes these functions) the hook is skipped and logged (odinguard.log: ui hook …: signature not found). OdinGuard never patches unknown code; the rest of the guard keeps working, but LGP colours and coloured nicks silently do not. The signatures match the 2018-06-20 client.
  • Order: diff the exe first (NEMO, WARP, …), then ship OdinGuard. Technically the order does not matter (the guard hooks in memory, after the diff), but this way you test exactly the exe your players get. After every new diff set: start the client, look into odinguard.log for "signature not found", and try an LGP skill.
  • An exe that is already diffed and patched earlier is fine; a later diff does not break OdinGuard unless it replaces or renames ijl15.dll (the loader sits there).
  • Updating OdinGuard needs no clean client and no new exe. The patcher only replaces the changed guard files (odinguard.dll, odin.grf, ...); ijl15r.dll and the player's settings (!dark, !lang) stay. Only if you diff the exe again do its bytes change, and then the signatures have to match again.
  • If you turn on og_exe_reference (server-side check of random code ranges of the exe), create the reference dump from the final exe and renew it whenever the exe changes.

Status

1.1.0. Tested end to end with a 2018-06-20 client and an rAthena fork (PACKETVER 20180620): see docs/05-tests.md. Not yet tested on real hardware: input filter, RCX, Warsaw (Brazilian banking module), VM detection on VMware/VirtualBox/Hyper-V.

Honest limits

Anyone who controls the machine (kernel drivers, VM introspection, a reimplemented client) can defeat any client-side check. OdinGuard aims to stop public tools and bots and to make manual cheating expensive and traceable; the server-side rules work regardless of the client. See the "hurdle vs. real security" table in docs/02-architecture.md.

Support

OdinGuard is free. If it helps your server, you can support its development through the links at the top (GitHub Sponsors, Ko-fi, Open Collective, Patreon, Liberapay).

Credits and attribution

OdinGuard is made by Chuu (kxdrsrt).

Attribution policy of this project: keep the credit in every fork, rebuild and redistribution: the author credit and the link to https://github.com/kxdrsrt in the README and in the documentation you ship with your build, and the copyright notice with the author's name in LICENSE-MIT and NOTICE. Please do not remove, hide or rewrite them. Operators may use OdinGuard for their own server; the credit stays.

What the licence itself requires: under MIT you must keep the copyright and licence notice (the author's name is in it); under Apache-2.0 you must keep the notices of the NOTICE file as well. A visible credit in the user interface is not a condition of either licence. It is this project's policy and request, so a fork that removes it is still within the licence but is not what the author asks for. If you want the credit to be a binding condition for future versions, the licence has to change (for example AGPL-3.0 with an attribution term under its section 7(b)); the versions already published stay under MIT OR Apache-2.0.

Licence

MIT OR Apache-2.0 (your choice): LICENSE-MIT, LICENSE-APACHE. Third-party: Monocypher (CC0/BSD-2), MinHook (BSD-2), fonts (OFL). Security reports: SECURITY.md.

About

Open-source, modular anti-cheat for Ragnarok Online servers (rAthena): guard DLL, server module, Studio (Rust/Tauri) for signed per-server releases

Topics

Resources

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages