Epoch-Hopping Anti-Cheat Transport for Multiplayer Games
Transposing military AN/ARC-164 HAVEQUICK II frequency-hopping into stateless UDP game transport. CipherJump rotates 256-bit HKDF-SHA256 keys and AEAD cipher suites every 250ms while binding serialized gameplay state as Associated Authenticated Data (AAD)—neutralizing inline proxies, packet replay bots, and post-seal wire tampering.
codec.rs 28B Fixed Header + Cleartext AAD + 16B Appended Tag)
codec.rs::build_aad): net_id(0x0001) || epoch(104200) || GameState{pos:(50.0,50.0), hp:100, ammo:30}
KeyCache Hit (Zero Hot-Loop HKDF Overhead)Drop-In Mode B In-Memory & Mode A Socket APIs
Encrypt and authenticate replication buffers directly inside your game engine pipeline with zero heap allocations on hot tick paths.
// 1. Project DefaultEngine.ini configuration consuming the CipherJump module:
// [PacketHandlerComponents]
// +Components=CipherJump.CipherJumpPacketHandler
// 2. Configure the per-connection handler after out-of-band TLS join-ticket handshake:
#include "CipherJumpPacketHandler.h"
void UMyGameInstance::OnMatchTicketReceived(
FCipherJumpPacketHandler& Handler,
TArrayView<const uint8> JoinTicketWodSeed, // 32-byte WOD seed from TLS matchmaker
uint16 AssignedNetId,
uint64 ServerEpochOffset,
uint64 PersistentClientId)
{
Handler.SetClientId(PersistentClientId);
// Derives session keys and immediately wipes local JoinTicketWodSeed via FMemory::Memzero:
Handler.ConfigureSession(
JoinTicketWodSeed,
AssignedNetId,
ServerEpochOffset,
250, // 250ms HAVEQUICK epoch duration
3 // +/-3 epoch sliding acceptance window
);
}
using System;
using CipherJump;
// Initialize Mode B in-memory client session with 32-byte WOD seed from TLS join ticket:
using var client = CipherJumpClientSession.Create(
wodSeed: matchTicket.WodSeedSpan,
netId: 1,
epochOffset: matchTicket.EpochOffset,
epochDurationMs: 250,
windowSize: 3);
// Zero-allocation game-tick sealing (28B fixed header + cleartext attestation AAD + ciphertext + 16B tag):
Span<byte> outWireBuffer = stackalloc byte[CipherJumpSecurity.HeaderFixedSize + attestationSpan.Length + payloadSpan.Length + CipherJumpSecurity.GcmTagSize];
int wireBytesWritten = client.Encrypt(
payload: payloadSpan,
attestation: attestationSpan,
outWire: outWireBuffer);
transportSocket.SendTo(outWireBuffer.Slice(0, wireBytesWritten), serverEndpoint);
#include "cipher_jump.hpp"
// Server-side zero-copy decrypt, AAD state verification, and per-client replay check:
auto serverRes = cipherjump::ServerSession::create(wodSeedSpan, /*net_id=*/1, /*epoch_offset=*/1000);
if (serverRes) {
cipherjump::ServerSession& server = *serverRes;
std::array<uint8_t, 1200> payloadBuf{};
std::array<uint8_t, 128> attestBuf{};
auto dec = server.decrypt(clientId, incomingWireSpan, payloadBuf, attestBuf);
if (dec.is_ok()) {
// AEAD tag verified over (net_id || epoch_id || attestation) & replay check passed:
ProcessVerifiedClientTick(clientId, dec->epoch_id,
std::span{payloadBuf.data(), dec->payload_len},
std::span{attestBuf.data(), dec->attestation_len});
}
}
#define CIPHER_JUMP_FFI
#define CIPHER_JUMP_SERVER
#include "cipher_jump.h"
uint8_t wod_seed[32];
if (cipher_jump_generate_wod_seed(wod_seed) == CJ_OK) {
CipherJumpClientSession *session = cipher_jump_client_session_create(
wod_seed, /*net_id=*/1, /*epoch_offset=*/1000, /*epoch_duration_ms=*/250, /*window_size=*/3);
uint8_t wire_buf[1200];
uint32_t wire_len = 0;
int32_t rc = cipher_jump_client_session_encrypt(
session, payload, payload_len, attestation, attest_len,
wire_buf, sizeof(wire_buf), &wire_len);
cipher_jump_client_session_destroy(session);
}
Eliminating the Wire-Memory Blind Spot
CipherJump is a transport-layer cryptographic augment that sits between your game networking stack and the wire—securing the stateless datagram path that Ring-0 client drivers cannot observe.
250ms Epoch Key Hopping
Divides session time into 250ms micro-epochs. Both peers independently derive 256-bit keys via RFC 5869 HKDF-SHA256 (salt = net_id_be, info = epoch_id_be) from an out-of-band 32-byte WOD seed with a 7-entry (±3 epoch) zeroizing KeyCache.
AES-256-GCM ↔ ChaCha20-Poly1305
Selects the active AEAD cipher on every epoch boundary via HMAC-SHA256(key=WOD, msg=epoch_id_be)[0] & 1 without negotiation, forcing any network interceptor to track both cipher backends and the WOD hop schedule.
Cleartext GameState AAD Binding
Serializes gameplay state (position (x, y), health, ammo, tick, inventory) in cleartext inside the packet and binds AAD = net_id || epoch_id || attestation into the 16-byte AEAD tag. Any post-seal modification triggers CJ_ERR_AUTH_FAILED (-2).
Per-Client Replay & Rate Anomaly Guard
Tracks seen (epoch_id, counter) pairs in a per-client HashSet with automatic expired-epoch eviction (keyed by 64-bit client_id across NAT rebinds) and flags speed-hack bursts exceeding max(μ + 3.0σ, 10.0) packets/epoch.
58-Byte Signed Port & WOD Rotation
When proxy interference is detected, the server sends a 58-byte HMAC-SHA256 signed MigrationDirective. Both peers rebind sockets and derive WOD_new = HKDF-Expand(PRK(salt, WOD), "cipher-jump:chattermark:migration", 32), stranding middleboxes.
1-RTT Authenticated Clock Resync
If lag spikes push a client outside the ±3 epoch window, a 57-byte domain-separated HMAC-SHA256 ResyncChallenge / ResyncResponse exchange restores clock alignment in a single round-trip without tearing down the match session.
How CipherJump Complements Kernel Anti-Cheat
Ring-0 drivers police local OS processes; DTLS encrypts static pipes. CipherJump closes the architectural gap between game state and wire transport.
| Security Dimension | Ring-0 Kernel Anti-Cheat | Standard DTLS 1.2 / 1.3 | CipherJump ECCM Transport (v0.3.0) |
|---|---|---|---|
| Key & Cipher Schedule | N/A (Process monitor only) | Static session key & single negotiated cipher suite | 250ms HKDF-SHA256 key hop + Dual-AEAD agility |
| Post-Seal Wire / Proxy Tampering | Blind to external router/MITM boxes | Encrypts payload, but does not bind game state fields | Rejected immediately via 16B AEAD Tag over AAD |
| Application State Attestation | Periodic memory scans (bypassed by PCIe DMA reads) | None (transport is state-agnostic) | Per-packet AAD = net_id || epoch_id || attestation |
| Mid-Match Proxy Eviction | Cannot relocate network sockets | Requires full handshake renegotiation | 58B CHATTERMARK simultaneous port + WOD hop |
| Hot-Loop CPU & Wire Overhead | High OS kernel driver & hypervisor complexity | Multi-RTT handshake + record layer framing | 0.80 µs seal / 27.5 ns KeyCache hit / 44B min frame |
v0.3.0 Storefront Distribution Manifest (SHA256SUMS.txt)
Generated by scripts/package_storefront_distributions.ps1 / .py from agy2/cipher-jump (main @ 7e46566). CipherJump-Suite-v0.3.0.zip is the master all-in-one bundle containing all four individual engine and native SDK archives.
| Distribution Archive | Included Components & Verified Targets | SHA-256 Digest | Copy |
|---|---|---|---|
| CipherJump-Suite-v0.3.0.zip | Master All-in-One Suite (bundles all 4 archives below + canonical 15-page White Paper PDF) | 0a45deada4531152fada7c8fd34820ddd5d953091e49a80baf11ecae6adc44a5 | |
| CipherJump-UnrealEngine5-v0.3.0.zip | UE 5.8.3 Verified FCipherJumpPacketHandler Plugin (Win64 .dll/.lib + Linux libcipher_jump_core.so) |
291d64ba78d9ce8feefd63ecaaeb2e6160e5c894c759f8e2b9a0c7fb21b00c65 | |
| CipherJump-Unity-Package-v0.3.0.zip | UPM Package (com.failsafestudio.cipherjump) + C# Span<byte> SDK + Win64 & Linux x86_64 Plugins |
d39fbdd37afc4922222eaf2601540b95418940136481fc0b58583a374f5ae1ac | |
| CipherJump-Unity-v0.3.0.unitypackage | Direct Unity Asset Import Archive (Assets/Plugins/CipherJump) |
8bc66208edaad6b84a9de9ff12f6d7c07f787f767919d7ecac4aaa730b06fd92 | |
| CipherJump-NativeSDK-v0.3.0-win64.zip | C99 (cipher_jump.h), C++20 noexcept (cipher_jump.hpp), C# (CipherJump.cs), Win64 & Linux x86_64 binaries |
f9a3aa7528922952285a96dda982e07549cad8d0eda23367b1289671a4a5b086 |
Perpetual Studio & Enterprise Tiers
Checkout and instant archive delivery are hosted on foundry.failsafe.studio/product/cipherjump.
Indie Studio License
- Complete 5-Archive Multi-Engine Suite (
CipherJump-Suite-v0.3.0.zip) - UE 5.8.3 Verified
FCipherJumpPacketHandlerPlugin + C++20noexceptSDK - .NET / C#
Span<byte>SDK (netstandard2.1/net8.0/net9.0for Unity & Godot) - Windows x64 (
cipher_jump_core.dll) & Linux Dedicated Server (libcipher_jump_core.so) - Up to 10,000 Concurrent Player Connections (CCU) for 1 Commercial Title
AAA & Enterprise License
- Everything in Indie Studio License + Unlimited Commercial Titles & Unlimited CCU
- 25 Hardware Build-Node / Developer Workstation Activations
- Multi-Peer C++20 60 Hz Simulation & 10-Vector Attack Validation Harness
- Custom GameState Attestation Schema & Out-of-Band Matchmaker Integration Guidance
- Priority Engineering Support & 12 Months of Major Engine Updates via FailSafe Studio