The trap does not block them
They simply attack into the void.
When a bot knocks on the port, the AGL daemon accepts the connection. It masquerades as a legitimate service and plunges the attacker into an endless waiting cycle. To ensure attackers reliably fall into the trap, the port is opened completely to all requests.
Viscous by design
The attacker's data stream is absorbed by a fictitious socket. For the attacker, this means a complete loss of resources: they waste their descriptors, RAM, and CPU time waiting for a response that will never come. At the OS kernel level, this process is held in an infinite loop, simulating a legitimate service.
Mathematically indistinguishable
Base interval — The primary time we hold the attacker (default 13 sec). Jitter variance — ±8 sec, range 1–300. The mathematics of rand.Intn() deprives advanced scanners of the ability to detect deception by timing, and also allows the identification of even more advanced scanners.
Measured, not promised
The MaxConn option serves to intentionally limit concurrent attacker connections. This protects file descriptors and RAM by pre-calculating memory consumption by attackers. Tests on 100 bots showed consumption: from 16 to 9 KB per connection, during cold and warm runs.
Victims carry labels
The complex analyzes and classifies attackers first by their primary actions:
PASSIVE_SCANNER — Scanner waited for the connection to end
AGGRESSIVE_SCANNER — Scanner decided to break out, or its waiting time expired.
It is also possible to determine the recorded reasons for the closure of any session:
FIN — Termination
RST — Refusal
TIMEOUT — Timeout
OUR_CLOSE — Our cancellation
Protection against self-lockout
SSH protection: If a live OpenSSH service is still listening on port 22, the trap simply does not start. This guarantees that the administrator will never be locked out during installation.
Every touch is recorded
Full dossier — 30 metrics across three echelons, see Forensics.