[MokoCBRegGuard] [FEATURE] Subnet burst detection #21
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Feature Description
Add subnet-level registration velocity checks to detect coordinated signup bursts from IP ranges.
Problem or Use Case
The current IP frequency check uses a fixed window per exact IP. Sophisticated spam operations rotate through IPs within the same subnet (e.g., a /24 block). Three signups from 192.168.1.10, .11, and .12 each pass the per-IP check but are clearly coordinated.
Proposed Solution
Add subnet-level burst detection:
enable_subnet_check,subnet_mask_ipv4(default: 24),subnet_mask_ipv6(default: 48),subnet_burst_window_minutes(default: 30),subnet_burst_max(default: 5)Generate
SUBNET_BURSTflag (weight: 2) when threshold exceeded.Alternative Solutions
Benefits
Implementation Details (Optional)
cbregguard.xmlRegGuardHelper::checkSubnetBurst()static method#__cbregguard_logfor matching subnetinet_pton()for IPv4/IPv6 binary conversion and bitwise maskingRelevant Standards
Checklist