security_ufw_check
UFW firewall rules audit — Offline audit of Ubuntu UFW firewall output (text= from sudo ufw status verbose or ufw status numbered). Parses status, default policies, logging and every rule (ports, ranges, app profiles like OpenSSH/Nginx Full, interfaces, IPv6, comments), then flags an inactive firewall, default allow incoming/routed, allow-all rules, databases/caches/admin ports open to anywhere (Redis, MongoDB, Elasticsearch, MySQL, PostgreSQL, Docker API, etcd, kubelet, RDP, SMB...), SSH without ufw limit, wide port ranges, TCP+UDP opened for TCP services, rules shadowed by first-match order (an ALLOW after a DENY that never applies, or the reverse), missing v6 rules and the Docker bypass. Returns EXPOSED/FIX REQUIRED/REVIEW/PASS, score, grade, parsed rules and exact ufw fix commands. 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_ufw_check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Status: active Logging: on (low) Default: deny (incoming), allow (outgoing), allow (routed) To Action From -- ------ ---- 22/tcp ALLOW IN Anywhere 6379 ALLOW IN Anywhere 3306/tcp DENY IN Anywhere 3306/tcp ALLOW IN 10.0.0.0/8 |