Harden RP Spoofer detector: Stage A->B->C ordering, Corrupt pack.mcmeta honeypot, and Control-Bitmap sanitizer trap
This commit is contained in:
1 parent
80436bbb5a
commit
90523b050e
4 files changed
+160
-20
No files matched your search
@@ -29,12 +29,12 @@
|
||||
- **Phase 1**: 1.20.6 vanilla edge keys (`item.minecraft.mace`) + nested mod `translate`/`keybind` inside `chat.type.text` `with` arguments.
|
||||
- **Phase 2**: pushes a temporary server resource pack overriding mod keys (`key.meteor-client.open-gui`, `category.meteor-client`) and placing custom keys inside mod namespaces (`assets/meteor-client/lang/`, `assets/opsec/lang/`).
|
||||
- **Phase 3**: calls `removeResourcePack`, waits 80 ticks (4s) for clean client reload, and verifies cache eviction.
|
||||
- **4-Layer Resource-Pack Spoofer Detector (`ResourcePackSpoofDetector`)**:
|
||||
- Catches server resource-pack bypass/spoofer mods (Meteor `ServerSpoof`, Wurst/LiquidBounce `ResourcePackSpoof`, `NoServerPack`, fake-accept & download-and-discard mods):
|
||||
1. **Bad-SHA1 Honeypot Pack**: sends a tiny pack with inverted SHA-1 (Vanilla rejects with `FAILED_DOWNLOAD` and zero reload screen; spoofers blindly reply `SUCCESSFULLY_LOADED`).
|
||||
2. **Zero-Fetch HTTP Verification**: flags clients claiming `DOWNLOADED`/`SUCCESSFULLY_LOADED` on a `no-store` one-time URL without ever hitting `ProbeHttpServer`.
|
||||
3. **State-Machine & Timing Verification**: validates `ACCEPTED -> DOWNLOADED -> SUCCESSFULLY_LOADED` order (1.20.3+) and flags instantaneous `<15ms` reloads.
|
||||
4. **Cryptographic Proof-of-Apply Sign Probe**: verifies via one-time secret translation key embedded in the pack that the client actually loaded it into `LanguageManager`.
|
||||
- **Multi-Layer Resource-Pack Spoofer Detector (`ResourcePackSpoofDetector` & `AssetProbeListener`)**:
|
||||
- Catches both packet-only spoofers (Meteor `ServerSpoof`, Wurst/LiquidBounce `ResourcePackSpoof`, `NoServerPack`) and smart font/reload sanitizers:
|
||||
1. **Stage A — Bad-SHA1 Honeypot Pack**: inverted SHA-1 (Vanilla rejects with `FAILED_DOWNLOAD` and zero reload screen; spoofers blindly reply `SUCCESSFULLY_LOADED`).
|
||||
2. **Stage B — Zero-Fetch HTTP + State/Timing + Cryptographic Sign Proof-of-Apply**: `no-store` one-time URL, strict 1.20.3+ `ACCEPTED -> DOWNLOADED -> SUCCESSFULLY_LOADED` order, `<15ms` reload check, and one-time secret translation key verification (`RP_OK_<secret>`).
|
||||
3. **Stage C — Corrupt `pack.mcmeta` Honeypot**: valid-SHA1 ZIP with malformed `pack.mcmeta` JSON (Vanilla always returns `FAILED_RELOAD`; spoofers faking success get flagged).
|
||||
4. **Control-Bitmap Sanitizer Trap (`AssetProbeListener`)**: randomized missing bitmap `antispoof_missing_<nonce>:nope.png` in `font/default.json` — on 1.20.5+, returning `SUCCESSFULLY_LOADED` flags `RESOURCE_PACK_SPOOF` directly.
|
||||
- **Differential Bitmap Font Asset Probe (`AssetProbeListener` & `AssetProbeLabManager`)**:
|
||||
- Config-driven `TEXTURES`, `FONT`, and `CORRUPTION` resource-pack rules (`asset-probe.rules`) with automatic A/B control pack verification (`FAILED_RELOAD` on guaranteed missing asset vs `SUCCESSFULLY_LOADED` on real mod texture paths like `meteor-client:meteor.png`).
|
||||
- Works directly through `FontManager` / `ResourceManager`, detecting modded clients even when OpSec Key Spoof is active.
|
||||
|
||||
Reference in new issue
Block a user