Exposure Findings
How risky services reachable from the Internet (SSH, RDP, databases, Docker and Kubelet APIs, admin panels) become exposure findings in the findings queue of the Security overview, even without a CVE.
Overview
An internet-exposed server that listens on SSH, RDP or a database is a risk even when no CVE affects it. Every hour, right after the compute_exposure task decides the internet exposure of the assets, the platform matches the ports reachable from the Internet against a list of exposure rules and keeps one finding per asset and port.
- finding_type = exposure, source = exposure_rules, source_identifier = "<rule>:<port>" (e.g. ssh:22)
- Severity comes from the rule; the finding gets a priority score like any other finding (the CVSS is assumed from the severity)
- Title: "<service> on port <port> reachable from the Internet", e.g. "RDP on port 3389 reachable from the Internet"
- Filter the queue with finding_type=exposure (GET /api/v1/security/findings/?finding_type=exposure)
- The compute_exposure summary reports exposure_findings_open (active after the run) and exposure_findings_resolved (auto-resolved by the run)
Condition
Only active assets with internet_exposed = yes are evaluated, whether the value was computed or locked by hand (exposure_locked). Assets with internet_exposed = no or unknown never get an exposure finding, and ports that are not in the rule list are ignored.
Default Rules
The default list (SECURITY_EXPOSURE_RULES in config/settings/base.py) is the following, as port: rule, service, severity.
- 22: ssh, SSH, medium
- 3389: rdp, RDP, high
- 3306: mysql, MySQL, high
- 5432: postgresql, PostgreSQL, high
- 1433: mssql, SQL Server, high
- 27017: mongodb, MongoDB, high
- 6379: redis, Redis, high
- 9200: elasticsearch, Elasticsearch, high
- 5601: kibana, Kibana, medium
- 2375: docker_api, Docker API (plain), critical
- 2376: docker_api_tls, Docker API (TLS), high
- 10250: kubelet, Kubelet API, critical
- 8080: admin_panel, Admin panel (HTTP 8080), medium
Reachable Ports
Being exposed does not make every socket reachable: a Redis bound to 127.0.0.1 is not an exposure. A port counts only when it is reachable from the outside.
- Hosts: a listening socket reported by the agent (network.connection_summary.listening_sockets) bound to all interfaces (0.0.0.0 or ::) or to a public IP
- Containers: also a port published on all interfaces (ports[].public). It is matched first as the published port, then as the container port: 15432 → 5432 gives the postgresql:5432 finding with port 15432 and container port 5432
- Loopback and private binds (127.0.0.1, 10.0.0.4, ...) never count
- One finding per asset and port, even with several binds: the evidence lists all the bind addresses
- Network filtering is not evaluated: cloud security groups, network ACLs and host firewalls are not read, so SSH on a cloud VM behind a security group still raises a finding. When a firewall blocks the port, mark the finding as false_positive: that is the expected triage
Evidence
The finding detail page shows the "Exposure evidence" card, from details: port, service, the listening process (— when the agent did not report it), the bind addresses, the container port when the port is published by a container, the matched rule and why the asset is exposed (the rules of its exposure evidence, e.g. Public IP, Listening on all interfaces).
{
"port": 3389,
"service": "RDP",
"rule": "rdp",
"process": "svchost.exe",
"bind_addresses": ["0.0.0.0"],
"container_port": null,
"exposure_rules": ["listening_all_interfaces", "public_ip"]
}
Auto-resolution
When a port is no longer reachable, the asset is no longer exposed or it becomes inactive, the open or acknowledged exposure finding is resolved by the system: status resolved, is_active false and details.auto_resolved true (the card shows an "Auto-resolved" badge). If the port comes back, the same finding is reopened.
- Findings marked as false positive or resolved by a person keep their status while the port stays open
- Removing or renaming a rule in SECURITY_EXPOSURE_RULES auto-resolves its findings at the next run
- Findings of other sources are never touched
- The priority and the asset risk score are recomputed for the assets touched by the run
Configuration
SECURITY_EXPOSURE_RULES replaces the whole default list: to add a port, copy the defaults and append it. Invalid entries (port outside 1–65535, unknown severity, empty rule, duplicate port) are dropped with a warning in the log. The severity is one of critical, high, medium, low, info; service defaults to the rule name.
SECURITY_EXPOSURE_RULES = [
{'rule': 'ssh', 'port': 22, 'service': 'SSH', 'severity': 'medium'},
{'rule': 'rdp', 'port': 3389, 'service': 'RDP', 'severity': 'high'},
{'rule': 'mysql', 'port': 3306, 'service': 'MySQL', 'severity': 'high'},
{'rule': 'postgresql', 'port': 5432, 'service': 'PostgreSQL', 'severity': 'high'},
{'rule': 'mssql', 'port': 1433, 'service': 'SQL Server', 'severity': 'high'},
{'rule': 'mongodb', 'port': 27017, 'service': 'MongoDB', 'severity': 'high'},
{'rule': 'redis', 'port': 6379, 'service': 'Redis', 'severity': 'high'},
{'rule': 'elasticsearch', 'port': 9200, 'service': 'Elasticsearch', 'severity': 'high'},
{'rule': 'kibana', 'port': 5601, 'service': 'Kibana', 'severity': 'medium'},
{'rule': 'docker_api', 'port': 2375, 'service': 'Docker API (plain)', 'severity': 'critical'},
{'rule': 'docker_api_tls', 'port': 2376, 'service': 'Docker API (TLS)', 'severity': 'high'},
{'rule': 'kubelet', 'port': 10250, 'service': 'Kubelet API', 'severity': 'critical'},
{'rule': 'admin_panel', 'port': 8080, 'service': 'Admin panel (HTTP 8080)', 'severity': 'medium'},
# A custom rule:
{'rule': 'vnc', 'port': 5900, 'service': 'VNC', 'severity': 'high'},
]