port_leak_detector
[Non-invasive bounded TCP probe with SSRF protection. Read-only, side-effect free]. Probes target host for exposed critical infrastructure ports (MySQL 3306, Postgres 5432, Redis 6379, MongoDB 27017, Elasticsearch 9200, unauthenticated Docker 2375). Strictly non-destructive, with private IP / localhost SSRF protection. Usage: Use this tool to audit perimeter firewall configuration and identify exposed database ports. Does NOT exploit vulnerabilities or alter server configuration. Returns: JSON object with { target: string, scannedPortsCount: number, exposedPorts: Array<{ port: number, service: string, riskLevel: 'HIGH' | 'CRITICAL' }>, perimeterSecurityStatus: 'SECURE' | 'EXPOSED', recommendations: string[] }.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"hostname": "<hostname>"
},
"name": "port_leak_detector"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hostname | Yes | Target domain or public IP address to inspect | |
| timeoutMs | No | Per-port socket connect timeout in milliseconds (500-3000ms) | |
| customPorts | No | Optional list of specific custom ports to probe (max 10) |