Add 4-layer ResourcePackSpoofDetector (Bad-SHA1 honeypot, HTTP fetch, state/timing, Sign proof-of-apply)
This commit is contained in:
1 parent
ca21fe1a5d
commit
80436bbb5a
9 files changed
+739
-16
No files matched your search
@@ -29,6 +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`.
|
||||
- **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.
|
||||
@@ -60,7 +66,7 @@ AntiSpoofPlugin.flagPlayer(player, violationType, reason)
|
||||
```
|
||||
|
||||
### 5. Commands, GUI & Placeholders
|
||||
- **Commands** (`AntiSpoofCommand`, 29 subcommands): `/antispoof <gui|alerts|guard|channels|brand|host|os|mods|translate|keybind|keyspoof|assetlab|check|proxy|runcheck|runmods|runbook|stopmods|verify|search|client|logs|listchannels|listbrands|reload|config|help>`.
|
||||
- **Commands** (`AntiSpoofCommand`, 30 subcommands): `/antispoof <gui|alerts|guard|channels|brand|host|os|mods|translate|keybind|keyspoof|assetlab|rpspoof|check|proxy|runcheck|runmods|runbook|stopmods|verify|search|client|logs|listchannels|listbrands|reload|config|help>`.
|
||||
- **Staff GUI**: `MainMenuGui`, `ConfigGui`, `ClientBrandsGui`, `PlayerListGui`, `PlayerInfoGui`, and `LogSnapshotGui` for live inspection and live config toggling.
|
||||
- **PlaceholderAPI** (`AntiSpoofPlaceholderExpansion`): `%antispoof_brand%`, `%antispoof_version%`, `%antispoof_locale%`, `%antispoof_os%`, `%antispoof_proxy%`, `%antispoof_threat%`, `%antispoof_mods%`, `%antispoof_channels%`, `%antispoof_bedrock%`, `%antispoof_flagged%`.
|
||||
|
||||
|
||||
Reference in new issue
Block a user