# block-leaderboard-cheating

Reject forged, replayed, out-of-range and burst score submissions and flag statistical outliers for review

- **Space:** leaderboards-public (https://github.com/Tech-Realm/space-leaderboards-public/tree/main/block-leaderboard-cheating)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** LB_HMAC_SECRET
- **Tools:** python3
- **Routes:** stdlib-sqlite; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use leaderboards-public/block-leaderboard-cheating` or MCP `get_pack leaderboards-public/block-leaderboard-cheating`
- **Files:** CHANGELOG.md, code/leaderboard.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

Reject forged, replayed, out-of-range and burst score submissions and flag statistical outliers for review

## Goal
Cheated scores never reach the board; suspicious ones are flagged for a human, not silently banned.

## Steps
1. Server-side HMAC signature per submission (secret in LB_HMAC_SECRET).
2. Unique nonce per submission (replay guard).
3. Max plausible score per board.
4. Per-player rate limit (default 10/min).
5. z-score > 4 vs the player's own history -> flagged (hidden from board until reviewed).

## Edge cases
- New players have no history: outlier check starts after 5 scores.
- Legit spikes (events, double-XP) -> raise max_score per season.

## Don'ts
- Don't auto-ban on statistics alone.
- Don't expose rejection reasons to the client in detail (helps cheaters tune).



---

Canonical URL: https://logicpacks.io/packs/leaderboards-public/block-leaderboard-cheating

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
