Common attacks and weaknesses
- Instances without authentication exposing metrics and accepting writes.
InfluxDB HTTP API.
The application sends a SQL query to the InfluxDB server on port 8086, which returns rows from its tables. It travels in clear text: anyone on the path can read it.
Unofficial use. The IANA assignment below differs from what is usually found on this port in practice.
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| d-s-n | 8086 | TCP, UDP | Distributed SCADA Networking Rendezvous Port | - | 2008-02-27 |
// source: IANA service name and port number registry
Linux
sudo ss -ltnup 'sport = :8086' # process listening on 8086
sudo lsof -nP -i :8086macOS
sudo lsof -nP -i :8086
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 8086 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 8086 netstat -ano | findstr :8086
From another machine
nmap -p 8086 -sV <host> sudo nmap -sU -p 8086 <host> nc -zv <host> 8086
Block it in the firewall
sudo ufw deny 8086/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 8086" -Direction Inbound -LocalPort 8086 -Protocol TCP -Action Block # Windows
InfluxDB HTTP API.
Port 8086 is registered for TCP and UDP. In practice the service mostly uses TCP.
It is rated 7/10 (high) when exposed to the Internet. Instances without authentication exposing metrics and accepting writes. Enable authentication and TLS.
On Linux run "ss -ltnup 'sport = :8086'", on macOS "lsof -nP -i :8086", and on Windows "netstat -ano | findstr :8086" to see the local process. From another machine, "nmap -p 8086 <host>" shows whether it is reachable.