安全模块大规模重构:151文件从com.aluer.security分包到8个子包

新包结构:
- com.aluer.anticheat.combat (16) — KillAura/Reach/Criticals/CrystalAura/Totem等战斗反作弊
- com.aluer.anticheat.movement (18) — Fly/Speed/Jesus/NoFall/Timer/Phase等移动反作弊
- com.aluer.anticheat.world (14) — Nuker/Xray/AutoMine/VeinMiner等世界反作弊
- com.aluer.anticheat.player (8) — FakePlayer/AltAccount/NameSpoof等玩家反作弊
- com.aluer.network (32) — DDoS/Protocol/TokenBucket/Firewall等网络安全
- com.aluer.server (10) — ChunkLoad/EntityCount/Redstone/CrashExploit等服务器保护
- com.aluer.chat (5) — ChatFlood/Advertisement/Phishing/CommandAbuse等聊天安全
- com.aluer.defense (50) — WAF/IDS/IPS/Honeypot/EDR/Forensics等纵深防御

所有package声明+跨包import已更新,323测试全绿
This commit is contained in:
Peijun Zhao
2026-05-22 19:29:45 +08:00
parent 5adbbd9592
commit 055de65e88
181 changed files with 682 additions and 303 deletions
@@ -3,10 +3,10 @@ package com.aluer.ai;
import com.aluer.audit.SecurityAuditService;
import com.aluer.config.ServerGuardConfig;
import com.aluer.kernel.AluerKernelEngine;
import com.aluer.security.CommandExecutionGuardService;
import com.aluer.security.NetworkThreatFusionService;
import com.aluer.security.SecurityBaselineHardeningService;
import com.aluer.security.SecurityOrchestrationService;
import com.aluer.defense.CommandExecutionGuardService;
import com.aluer.network.NetworkThreatFusionService;
import com.aluer.defense.SecurityBaselineHardeningService;
import com.aluer.defense.SecurityOrchestrationService;
import com.aluer.service.RconClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.combat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.movement;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.player;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.anticheat.world;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.chat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.chat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.chat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.chat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.chat;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -5,14 +5,14 @@ import com.aluer.config.ServerGuardConfig;
import com.aluer.kernel.AluerKernelEngine;
import com.aluer.kernel.AluerKernelTaskBus;
import com.aluer.kernel.AluerSelfHealingOrchestrator;
import com.aluer.security.CloudflareIntegrationService;
import com.aluer.security.DDoSDefenseCoordinator;
import com.aluer.security.DistributedAttackMitigationService;
import com.aluer.security.HostEnforcementService;
import com.aluer.security.LoadBalancerService;
import com.aluer.security.NetworkThreatFusionService;
import com.aluer.security.SecurityBaselineHardeningService;
import com.aluer.security.CommandExecutionGuardService;
import com.aluer.network.CloudflareIntegrationService;
import com.aluer.defense.DDoSDefenseCoordinator;
import com.aluer.network.DistributedAttackMitigationService;
import com.aluer.defense.HostEnforcementService;
import com.aluer.network.LoadBalancerService;
import com.aluer.network.NetworkThreatFusionService;
import com.aluer.defense.SecurityBaselineHardeningService;
import com.aluer.defense.CommandExecutionGuardService;
import org.springframework.stereotype.Service;
import java.time.Instant;
@@ -11,14 +11,14 @@ import com.aluer.kernel.AluerSelfHealingOrchestrator;
import com.aluer.model.MetricsData;
import com.aluer.monitor.ProcessMonitor;
import com.aluer.monitor.ResourceMonitor;
import com.aluer.security.CloudflareIntegrationService;
import com.aluer.security.CommandExecutionGuardService;
import com.aluer.security.DDoSDefenseCoordinator;
import com.aluer.security.DistributedAttackMitigationService;
import com.aluer.security.HostEnforcementService;
import com.aluer.security.LoadBalancerService;
import com.aluer.security.NetworkThreatFusionService;
import com.aluer.security.SecurityBaselineHardeningService;
import com.aluer.network.CloudflareIntegrationService;
import com.aluer.defense.CommandExecutionGuardService;
import com.aluer.defense.DDoSDefenseCoordinator;
import com.aluer.network.DistributedAttackMitigationService;
import com.aluer.defense.HostEnforcementService;
import com.aluer.network.LoadBalancerService;
import com.aluer.network.NetworkThreatFusionService;
import com.aluer.defense.SecurityBaselineHardeningService;
import com.aluer.service.RconClient;
import org.springframework.stereotype.Service;
@@ -2,7 +2,7 @@ package com.aluer.console;
import com.aluer.audit.SecurityAuditService;
import com.aluer.config.ServerGuardConfig;
import com.aluer.security.CommandExecutionGuardService;
import com.aluer.defense.CommandExecutionGuardService;
import com.jcraft.jsch.ChannelExec;
import com.jcraft.jsch.HostKey;
import com.jcraft.jsch.JSch;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,6 +1,9 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import com.aluer.network.DDoSProtectionService;
import com.aluer.network.DistributedAttackMitigationService;
import com.aluer.network.MinecraftProtocolSecurityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.slf4j.Logger;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.springframework.stereotype.Service;
import java.util.*;
@@ -1,5 +1,6 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.network.CloudflareIntegrationService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.beans.factory.annotation.Autowired;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.springframework.stereotype.Service;
import java.util.*;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;
@@ -1,4 +1,4 @@
package com.aluer.security;
package com.aluer.defense;
import com.aluer.config.ServerGuardConfig;
import org.springframework.stereotype.Service;

Some files were not shown because too many files have changed in this diff Show More