V5.0 安全模块大扩展:Meteor Client 全功能反作弊 + AI行为分析 + 服务器保护

新增 45 个安全模块,覆盖 Meteor Client 全部 hack 类别:

【反作弊基础扩展 6 模块】
- AntiTimerService: 游戏加速检测(移动tick间隔分析)
- AntiVelocityService: 击退修改检测(伤害后速度分析)
- AntiPhaseService: 穿墙检测(固体方块射线追踪)
- AntiBlinkService: 闪烁检测(伤害-断连-重连时序)
- AntiFastBreakService: 快速破坏检测(方块标准破坏时间对比)
- AntiElytraFlyService: 鞘翅飞行检测(速度/高度操控分析)

【Meteor Combat 10 模块】
- AntiCriticalsService: 自动暴击检测(跳跃/地面状态验证)
- AntiAutoCrystalService: 水晶Aura检测(放置/爆炸时序分析)
- AntiAutoTotemService: 自动图腾检测(副手装备速度分析)
- AntiSurroundService: 自动包围检测(脚下方块精确放置模式)
- AntiAutoTrapService: 自动陷阱检测(目标周围方块网格分析)
- AntiAutoArmorService: 自动装备检测(多槽位同tick交换)
- AntiChestSwapService: 自动胸甲交换检测(鞘翅-胸甲乒乓切换)
- AntiAutoLogService: 自动断线检测(伤害-断连500ms时序)
- AntiHitboxesService: 扩展碰撞箱检测(射线-边界边缘命中率)
- AntiBowAimBotService: 弓箭自瞄检测(移动目标精度分析)

【Meteor Movement 10 模块】
- AntiNoSlowService: 无减速检测(物品使用+移动速度组合)
- AntiSpiderService: 爬墙检测(无攀爬方块垂直上升)
- AntiStepService: 自动跨步检测(非跳跃1格上升)
- AntiPacketFlyService: 数据包飞行检测(连续悬浮/弹跳模式)
- AntiAirJumpService: 空中跳跃检测(离地跳跃包)
- AntiLongJumpService: 远跳检测(跳跃后水平速度衰减分析)
- AntiAntiHungerService: 免饥饿检测(活动量vs饥饿消耗率)
- AntiFastFallService: 快速下落检测(超终端速度持续下落)
- AntiVClipService: 垂直穿墙检测(固体方块间瞬移)
- AntiNoFallService 增强: 新增GroundSpoof/数据包地面/坠落累积/瞬移坠落检测

【Meteor World+Player 10 模块】
- AntiSpeedMineService: 加速挖掘检测(方块标准破坏时间对比)
- AntiFastUseService: 快速使用检测(物品冷却时间分析)
- AntiNoInteractService: 交互绕过检测(持剑开箱等异常操作)
- AntiAutoMineService: 自动挖掘检测(挖掘间隔方差/视角追踪)
- AntiVeinMinerService: 连锁挖矿检测(相邻矿石快速序列)
- AntiAutoToolService: 自动工具检测(同tick切工具+开挖)
- AntiFakePlayerService: 假人检测(心跳响应/交互缺失/移动模式)
- AntiPistonAuraService: 活塞光环检测(战斗上下文活塞激活率)
- AntiAnchorService: 锚定检测(受击零位移+封闭空间)
- AntiStashFinderService: 仓库扫描检测(网格区块加载+零交互)

【网络协议安全 5 模块】
- ProtocolStateValidator: 协议状态机验证(四态转换违规检测)
- TokenBucketRateLimiter: 令牌桶速率限制器(可复用速率控制基元)
- BotFingerprintDetector: 机器人指纹检测(五维行为指纹分析)
- NBTExploitPrevention: NBT漏洞防护(深度/大小/书页/告示牌验证)
- ConnectionHandshakeValidator: 握手完整性验证(协议版本/状态/主机名)

【服务器保护 4 模块】
- ChunkLoadRateLimiter: 区块加载限制器(WARN/LIMIT/BLOCK三级响应)
- EntityCountEnforcer: 实体数量执行器(分块限制+优先级清理)
- RedstoneUpdateLimiter: 红石更新限制器(三级渐进+观察者钟检测)
- CrashExploitSignatureDB: 崩溃漏洞签名库(12种已知漏洞+4级自动响应)

【AI/ML 行为分析 4 模块】
- BehavioralProfilingEngine: 行为分析引擎(5维特征+香农熵+Z分数)
- ThreatScoreAggregator: 威胁分数聚合器(指数衰减+4级上报)
- MovementPatternAnalyzer: 移动模式分析器(FFT频谱+旋转分析)
- CombatPatternRecognizer: 战斗模式识别器(CPS方差+多目标熵+扫视分析)

配置更新:AlertType新增39个枚举值,SuperEvolutionConfig新增39个开关,
application.yml新增39个配置项。323项全量测试通过,0失败。
This commit is contained in:
Peijun Zhao
2026-05-16 18:02:49 +08:00
parent 67e873525b
commit 1b66197804
54 changed files with 23497 additions and 1 deletions
+49
View File
@@ -195,6 +195,33 @@ serverguard:
anti-jesus: true # 水上行走检测(水面/岩浆面移动验证)
anti-no-fall: true # 无摔落伤害检测(落地检测/伤害验证)
anti-scaffold: true # 自动搭路检测(方块放置频率/角度/速度)
anti-timer: true # 游戏加速检测(Timer hack/移动tick间隔异常)
anti-velocity: true # 击退修改检测(抗击退/击退幅度异常)
anti-phase: true # 穿墙检测(Phase hack/方块剪切/固体穿越)
anti-blink: true # 闪烁检测(Blink hack/快速断连躲避伤害)
anti-fast-break: true # 快速破坏检测(加速挖掘/方块破坏速度异常)
anti-elytra-fly: true # 鞘翅飞行检测(ElytraFly/鞘翅速度/高度操控)
# === V5.1 反作弊战斗模块(Meteor Client 对抗) ===
anti-criticals: true # 自动暴击检测(零速度暴击/暴击率异常/无跳跃暴击)
anti-auto-totem: true # 自动不死图腾检测(图腾换装速度/连续图腾使用)
anti-surround: true # 自动包围检测(四向方块放置速度/防御方块模式)
anti-auto-trap: true # 自动困笼检测(目标玩家围笼/活塞陷阱构建速度)
anti-auto-crystal: true # 自动末影水晶检测(水晶放置/引爆速度/最优位置计算)
anti-auto-armor: true # 自动盔甲检测(多槽位装甲切换速度/背包扫描模式)
anti-chest-swap: true # 快速胸甲切换检测(胸甲/鞘翅互换tick检测)
anti-auto-log: true # 自动断线检测(受伤后立即断开/低血量脱战模式)
anti-hitboxes: true # 扩大碰撞箱检测(边缘命中率/射线追踪距离分析)
anti-bow-aimbot: true # 弓自瞄检测(移动目标命中率/弹道一致性/瞬发精准)
# === V5.2 反作弊移动模块(Meteor Client 移动类对抗) ===
anti-no-slow: true # 无减速检测(使用物品时移速不减/吃食物/拉弓/举盾速度检测)
anti-spider: true # 爬墙检测(无攀爬方块贴墙上升/固体方块攀爬/垂直墙面移动)
anti-step: true # 自动跨步检测(无跳跃跨越完整方块/上升1方块无跳跃冲量)
anti-packet-fly: true # 数据包飞行检测(数据包操控飞行/上下震荡模式/永不落地)
anti-air-jump: true # 空中跳跃检测(半空发送跳跃数据包/连续空中跳跃)
anti-long-jump: true # 远跳检测(极端水平跳跃距离/跳跃后水平速度持续不减)
anti-anti-hunger: true # 反饥饿检测(饥饿值消耗绕过/高活动量零饥饿消耗)
anti-fast-fall: true # 快速坠落检测(超终端速度下落/持续超速坠落/瞬间坠落)
anti-vclip: true # 垂直穿墙检测(瞬间垂直穿透方块/排除合法传送方式)
# === V4.0 玩家行为安全模块 ===
anti-nuker: true # 快速破坏检测(挖矿速度/范围/模式识别)
anti-auto-clicker: true # 自动点击检测(CPS统计/点击间隔熵值分析)
@@ -222,6 +249,28 @@ serverguard:
anti-phishing-link: true # 钓鱼链接检测(可疑域名/短链接/SSL证书校验)
anti-command-abuse: true # 命令滥用检测(频率限制/敏感命令拦截/权限校验)
player-privacy: true # 玩家隐私保护(IP脱敏/坐标隐藏/日志匿名化)
# === V5.0 服务器保护扩展模块 ===
chunk-load-rate-limiter: true # 区块加载速率限制(WARN/LIMIT/BLOCK三级响应/ChunkBan检测)
entity-count-enforcer: true # 实体数量强制执行(按区块/玩家/类型优先级自动移除)
redstone-update-limiter: true # 红石更新频率限制(逐tick检测/降频/冻结/指数退避)
crash-exploit-signature-db: true # 崩溃漏洞签名数据库(12种已知签名/PacketSize/NBT/Item四级响应)
# === V4.0 网络协议安全模块 ===
protocol-validator: true # 协议状态机验证(HANDSHAKE→STATUS→LOGIN→PLAY状态转换检测)
token-bucket-rate-limiter: true # 令牌桶速率限制(可复用限速原语/可配置速率与突发容量)
bot-fingerprint: true # 机器人行为指纹检测(登录时序/命名模式/移动熵值/聊天/延迟)
nbt-exploit-prevention: true # NBT漏洞防护(深度检测/尺寸限制/BookBan/SignExploit/ChunkBan)
handshake-validator: true # 连接握手验证(协议版本/nextState/主机名/Ping洪水/端口扫描)
# === V5.3 反作弊世界/玩家/杂物模块(Meteor Client 对抗) ===
anti-speed-mine: true # 加速挖掘检测(SpeedMine/InstaMine/PacketMine hack)
anti-fast-use: true # 加速物品使用检测(FastUse hack)
anti-no-interact: true # 交互绕过检测(NoInteract hack)
anti-auto-mine: true # 自动挖矿检测(AutoMine hack)
anti-vein-miner: true # 矿脉自动挖掘检测(VeinMiner hack)
anti-auto-tool: true # 自动工具切换检测(AutoTool hack)
anti-fake-player: true # 假人实体检测(FakePlayer hack)
anti-piston-aura: true # 活塞陷阱自动化检测(PistonAura hack)
anti-anchor: true # 洞穴锚点检测(Anchor hack)
anti-stash-finder: true # 自动储藏箱探测(StashFinder hack)
dashboard:
enabled: true