security_fail2ban_check
Fail2ban Jail Config Audit — Audit a fail2ban jail.local / jail.d config, offline. text= is the INI file. Resolves effective values per jail (jail key, else [DEFAULT], else fail2ban defaults) and flags: no enabled jails, missing or disabled SSH jail, bantime 0 or under 10 minutes, permanent bans, maxretry too high or too low, findtime too short for slow brute force, ignoreip that whitelists everything or huge public ranges, hostnames in ignoreip, usedns = yes, dummy or hostsdeny actions, action_mwl log mailing, polling backend, SSH jail without backend = systemd on journald-only systems, no recidive jail or a weak one, bantime.increment off, duplicate sections and an edited jail.conf. Returns OK / REVIEW / WEAK, score, grade, a per-jail table (bantime, findtime, maxretry, port, backend, banaction) and findings with fixes. Price: $0.005 USDC (Base, via x402).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "security_fail2ban_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | [DEFAULT] bantime = 5m findtime = 10m maxretry = 12 ignoreip = 127.0.0.1/8 8.0.0.0/8 [sshd] enabled = true port = ssh |