HeezGuard 保护 Minecraft 服务器免受以下威胁:
机器人攻击和自动化连接
DDoS 尝试和连接激增
VPN/代理滥用及可疑 IP
漏洞利用尝试和崩溃攻击
聊天/命令中的垃圾信息和刷屏
会话劫持和未授权访问
?️ 架构
主要组件(7 个核心系统)
BotDetectionEngine - 具有评分系统的多层机器人检测
BehavioralAnalyzer - 实时行为画像和模式分析
RateLimiter - 连接和操作速率限制
IPProtectionSystem - IP 信誉、VPN/代理检测、GeoIP 过滤
VerificationManager - 4 种不同的验证方法
ServerSecurityManager - 中央安全协调
AlertSystem - 多通道通知系统
支持系统
ConfigManager - 100+ 配置选项,支持热重载
DataManager - 基于 JSON 的数据持久化和清理
GUIManager - 交互式基于 Web 的管理界面
DiscordLogger - 丰富的 Discord webhook 集成
? 高级机器人检测(15+ 种方法)
基于评分的检测系统
HeezGuard 使用复杂的评分系统(阈值:75 分),结合:客户端分析(15 分)
可疑客户端品牌(“unknown”、“vanilla”、空)
修改或伪造客户端检测
已知机器人客户端签名
Ping 分析(10-20 分)
异常低 Ping 检测(<10ms = 20 分)
极高 Ping 检测(>500ms = 10 分)
完美一致性检测(15 分)
名称模式识别(25 分)
随机字符序列
重复字符模式
机器人命名惯例
无效名称格式
连接分析(20 分)
同一 IP 下的多个账户
快速连接序列
连接时间模式
行为分析(实时)
移动模式检测
交互时间分析
聊天模式识别
命令模式监控
✅ 验证系统(4 种方法)
- SIMPLE
基本代码输入
针对受信任用户的快速验证
2. ADVANCED(推荐)
通过聊天输入代码
移动要求
超时系统(60 秒)
多次尝试跟踪
3. CAPTCHA
视觉代码展示
手动代码抄写
最高级别的人类验证安全性
4. BEHAVIORAL
需要自然移动模式
延长观察期
结合移动 + 代码验证
? 安全功能
速率限制
连接速率限制:每 30 秒每个 IP 最多 3 次连接
操作速率限制:命令(5 次/秒)、聊天(3 次/秒)、交互(10 次/秒)
自动封禁:超出限制时临时封禁 IP
连接激增检测
实时监控:每秒跟踪连接数
可配置阈值:每 5 秒 10 次连接
响应动作:阻止新连接、锁定模式或管理员警报
IP 保护系统
代理/VPN 检测:多方法检测,缓存 24 小时
GeoIP 过滤:按国家列入白名单/黑名单
IP 信誉系统:自动评分并随时间衰减
数据中心检测:识别并阻止数据中心 IP
漏洞利用保护
名称验证:长度限制、特殊字符过滤
崩溃数据包预防:阻止已知漏洞利用数据包
会话保护:会话期间检测 IP 变更
劫持检测:监控会话接管尝试
? 行为分析
移动模式分析
直线检测:识别机械化移动
时间一致性:检测异常一致的时间间隔
物理验证:检查是否符合真实移动物理规律
模式历史:追踪每位玩家最近 100 次移动
聊天模式分析
重复检测:识别重复消息
相似度分析:使用 Levenshtein 距离算法
垃圾信息检测:80% 相似度阈值
反刷屏:消息冷却系统
交互分析
时间窗口:跟踪交互间隔
速度检测:标记快于 2000ms 的交互
类型跟踪:监控不同类型的交互
历史:保留每位玩家最近 50 次交互
? 警报系统
多级警报
INFO:成功验证、正常事件
WARNING:机器人检测、速率限制违规、代理检测
CRITICAL:连接激增、锁定激活、漏洞利用尝试
警报通道
游戏内通知:向管理员发送实时消息
控制台日志:带时间戳的详细日志条目
Discord Webhooks:带有角色提及的丰富嵌入消息
⚙️ 配置(100+ 选项)
主要配置部分
常规设置:调试模式、语言、自动保存
反机器人保护:25+ 选项用于检测调优
IP 保护:15+ 选项用于 IP 管理
安全功能:20+ 选项用于保护级别
警报与通知:10+ 选项用于警报管理
动作与惩罚:8+ 选项用于响应动作
性能:5+ 选项用于优化
? 命令与管理
管理员命令
/heezguard - 打开 GUI 菜单(玩家)或显示帮助
/heezguard stats - 查看安全统计信息
/heezguard check <player> - 检查玩家信息
/heezguard whitelist <add|remove> <player> - 管理白名单
/heezguard blacklist <add|remove> <ip> - 管理 IP 黑名单
/heezguard lockdown - 启用锁定模式
/heezguard unlock - 禁用锁定模式
/heezguard reload - 重新加载配置
玩家命令
/verify - 完成验证过程
权限
heezguard.admin - 完全访问所有命令
heezguard.bypass - 绕过所有保护检查
heezguard.notify - 接收安全通知
heezguard.whitelist - 绕过验证(已列入白名单)
? 统计信息与监控
实时统计信息
追踪的总玩家数
监控的 IP 地址数
标记的可疑玩家数
被封禁的 IP 数量
锁定状态
在线玩家数量
每位玩家数据
UUID 跟踪
首次/最后出现时间戳
总加入次数
怀疑分数
验证状态
失败验证次数
已知 IP 地址
每个 IP 数据
首次/最后出现时间戳
总连接数
失败尝试次数
信誉分数
黑名单状态
代理/VPN 状态
国家代码
连接时间戳
? 独特功能
HeezGuard 的特殊之处
综合评分系统:不同于简单的“是/否”检查,使用加权评分以实现更精准的检测
行为 AI:实时分析玩家行为模式
多方法验证:四种不同的验证方式
智能速率限制:针对不同操作类型提供上下文感知的速率限制
声誉系统:长期追踪 IP 声誉并自动衰减
连接尖峰保护:在遭受攻击时自动保护服务器
模块化设计:易于扩展和自定义
性能优化:采用异步操作、缓存及高效算法
详尽日志记录:完整的安全事件审计追踪
管理员友好:提供全面的命令与统计数据
HeezGuard protects Minecraft servers from:
Bot attacks and automated connections
DDoS attempts and connection spikes
VPN/Proxy abuse and suspicious IPs
Exploit attempts and crash attacks
Spam and flooding in chat/commands
Session hijacking and unauthorized access
?️ Architecture
Main Components (7 Core Systems)
BotDetectionEngine - Multi-layered bot detection with scoring system
BehavioralAnalyzer - Real-time behavior profiling and pattern analysis
RateLimiter - Connection and action rate limiting
IPProtectionSystem - IP reputation, VPN/proxy detection, GeoIP filtering
VerificationManager - 4 different verification methods
ServerSecurityManager - Central security coordination
AlertSystem - Multi-channel notification system
Supporting Systems
ConfigManager - 100+ configuration options with hot reload
DataManager - JSON-based data persistence with cleanup
GUIManager - Interactive web-based management interface
DiscordLogger - Rich Discord webhook integration
? Advanced Bot Detection (15+ Methods)
Scoring-Based Detection System
HeezGuard uses a sophisticated scoring system (threshold: 75 points) that combines:Client Analysis (15 points)
Suspicious client brands ("unknown", "vanilla", empty)
Modified or fake client detection
Known bot client signatures
Ping Analysis (10-20 points)
Unnaturally low ping detection (<10ms = 20 points)
Very high ping detection (>500ms = 10 points)
Perfect consistency detection (15 points)
Name Pattern Recognition (25 points)
Random character sequences
Repeated character patterns
Bot naming conventions
Invalid name formats
Connection Analysis (20 points)
Multiple accounts from same IP
Rapid connection sequences
Connection timing patterns
Behavioral Analysis (Real-time)
Movement pattern detection
Interaction timing analysis
Chat pattern recognition
Command pattern monitoring
✅ Verification System (4 Methods)
- SIMPLE
Basic code entry
Fast verification for trusted users
2. ADVANCED (Recommended)
Code entry via chat
Movement requirement
Timeout system (60 seconds)
Multiple attempt tracking
3. CAPTCHA
Visual code presentation
Manual code transcription
Highest security for human verification
4. BEHAVIORAL
Natural movement patterns required
Extended observation period
Combines movement + code verification
? Security Features
Rate Limiting
Connection Rate Limiting: Max 3 connections per IP per 30 seconds
Action Rate Limiting: Commands (5/sec), Chat (3/sec), Interactions (10/sec)
Automatic Blocking: Temporary IP blocks when limits exceeded
Connection Spike Detection
Real-time Monitoring: Tracks connections per second
Configurable Threshold: 10 connections per 5 seconds
Response Actions: Block new connections, lockdown mode, or admin alerts
IP Protection System
Proxy/VPN Detection: Multi-method detection with 24-hour caching
GeoIP Filtering: Whitelist/blacklist by country
IP Reputation System: Automatic scoring with decay over time
Datacenter Detection: Identifies and blocks datacenter IPs
Exploit Protection
Name Validation: Length limits, special character filtering
Crash Packet Prevention: Blocks known exploit packets
Session Protection: IP change detection during sessions
Hijacking Detection: Session takeover attempt monitoring
? Behavioral Analysis
Movement Pattern Analysis
Straight Line Detection: Identifies robotic movement
Timing Consistency: Detects unnaturally consistent intervals
Physics Validation: Checks for realistic movement physics
Pattern History: Tracks last 100 movements per player
Chat Pattern Analysis
Repetition Detection: Identifies repeated messages
Similarity Analysis: Uses Levenshtein distance algorithm
Spam Detection: 80% similarity threshold
Anti-Flood: Message cooldown system
Interaction Analysis
Timing Windows: Tracks interaction intervals
Speed Detection: Flags interactions faster than 2000ms
Type Tracking: Different interaction types monitored
History: Keeps last 50 interactions per player
? Alert System
Multi-Level Alerts
INFO: Successful verifications, normal events
WARNING: Bot detection, rate limit violations, proxy detection
CRITICAL: Connection spikes, lockdown activations, exploit attempts
Alert Channels
In-Game Notifications: Real-time messages to admins
Console Logging: Detailed log entries with timestamps
Discord Webhooks: Rich embed messages with role mentions
⚙️ Configuration (100+ Options)
Major Configuration Sections
General Settings: Debug mode, language, auto-save
Anti-Bot Protection: 25+ options for detection tuning
IP Protection: 15+ options for IP management
Security Features: 20+ options for protection levels
Alerts & Notifications: 10+ options for alert management
Actions & Punishments: 8+ options for response actions
Performance: 5+ options for optimization
? Commands & Management
Admin Commands
/heezguard - Open GUI menu (players) or show help
/heezguard stats - View security statistics
/heezguard check <player> - Check player information
/heezguard whitelist <add|remove> <player> - Manage whitelist
/heezguard blacklist <add|remove> <ip> - Manage IP blacklist
/heezguard lockdown - Enable lockdown mode
/heezguard unlock - Disable lockdown mode
/heezguard reload - Reload configuration
Player Commands
/verify - Complete verification process
Permissions
heezguard.admin - Full access to all commands
heezguard.bypass - Bypass all protection checks
heezguard.notify - Receive security notifications
heezguard.whitelist - Bypass verification (whitelisted)
? Statistics & Monitoring
Real-Time Statistics
Total players tracked
IP addresses monitored
Suspicious players flagged
Blocked IPs count
Lockdown status
Online player count
Per-Player Data
UUID tracking
First/last seen timestamps
Total joins count
Suspicion score
Verification status
Failed verification count
Known IP addresses
Per-IP Data
First/last seen timestamps
Total connections
Failed attempts
Reputation score
Blacklist status
Proxy/VPN status
Country code
Connection timestamps
? Unique Features
What Makes HeezGuard Special
Comprehensive Scoring System: Unlike simple yes/no checks, uses weighted scoring for accurate detection
Behavioral AI: Real-time analysis of player behavior patterns
Multi-Method Verification: Four different verification methods
Intelligent Rate Limiting: Context-aware rate limiting for different action types
Reputation System: Long-term tracking of IP reputation with automatic decay
Connection Spike Protection: Automatic server protection during attacks
Modular Design: Easy to extend and customize
Performance Optimized: Async operations, caching, and efficient algorithms
Extensive Logging: Complete audit trail of all security events
Admin-Friendly: Comprehensive commands and statistics
评论 0
登录后参与评分
还没有评论,来抢沙发吧