Skip to content

Shared IP port ownership

6 min readRecon Atlas

TL;DR. You must decide whether port 8443 on origin address 203.0.113.10 belongs to example.com or to an unrelated tenant sharing the same server. Treating every open socket on an origin address as target attack surface produces false positives and scope violations. The decision hangs on ports/naabu.txt and requires cryptographic and host header proof before you touch the application.


This chapter deepens Phase 5: Port scanning. It resolves socket ambiguity on origin addresses before you pipe raw IP ports into HTTP collectors.

Heavy active

When Naabu reports port 8443 open on 203.0.113.10, does that service belong to example.com or an independent neighbor?

The tempting wrong answer assumes an origin IP belongs solely to one company and directs application attacks at raw sockets. On multi-tenant cloud servers, a single address often hosts unrelated organizations. Port 8443 can host a tenant application or a hosting provider control daemon.

You hold ports/naabu.txt in hand. You must divide records into two branches before launching active probes.

The target service branch requires cryptographic or virtual host proof. The TLS certificate on port 8443 must list example.com or api.example.com in its Subject Alternative Name list, or HTTP requests carrying Host: api.example.com must yield target application responses. Sockets meeting these criteria advance to HTTP probing.

The shared neighbor branch applies when attribution fails. The certificate lists an unrelated entity or hosting software, or the server returns HTTP 421 Misdirected Request or connection resets for Host: api.example.com. Sockets in this branch are dropped immediately.

Attributing sockets without validation produces out-of-scope findings and damages your reputation. Dropping open sockets without TLS validation misses secondary origin services.

Your rules permit scanning origin addresses at 50 packets per second. You must set -rate 50 in Naabu and use -exclude-cdn.

The data enters your pipeline through Naabu during origin network scanning. You supply origin addresses from dns/ips-origin.txt to Naabu.

Terminal window
# Scan origin addresses at 50 packets per second while excluding CDN blocks
naabu -list dns/ips-origin.txt -p 8443,8080,22 -rate 50 -exclude-cdn -silent -o ports/naabu.txt

Naabu produces ports/naabu.txt. Each record contains an IP address and an open TCP port separated by a colon, formatted as 203.0.113.10:8443.

Naabu transmits TCP SYN packets to target addresses. A returning SYN-ACK packet marks the port as open.

The output confirms a network socket accepted a TCP handshake. The source cannot contain TLS certificate names, virtual host routing, HTTP Host header mapping, or tenant identities. The network layer confirms only that an operating system process accepts connections on that socket. You must verify application ownership in user space.

Terminal window
# SAMPLE, invented
203.0.113.10:8443
203.0.113.10:22
203.0.113.10:8080

Record 1: 203.0.113.10:8443

This record asserts that a process on 203.0.113.10 accepts TCP connections on port 8443.

This record does not assert that the listener serves example.com. The IP address can host multiple tenants, and an unrelated organization on the host can own port 8443.

Next command: Probe the port with tlsx to inspect certificate names.

Terminal window
# Extract TLS certificate identity from port 8443
tlsx -u 203.0.113.10:8443 -san -cn -silent

Record 2: 203.0.113.10:22

This record asserts that an SSH daemon listens on port 22 at 203.0.113.10.

This record does not assert that the daemon belongs to example.com or that you hold authorization to authenticate. Cloud providers frequently maintain port 22 for host administration.

Next command or drop reason: Read the SSH banner to record system identity, then drop the port.

Terminal window
# Read SSH daemon banner for host inventory
nc -zv -w 3 203.0.113.10 22

Drop reason: Scope rules forbid credential attacks against infrastructure management services.

Record 3: 203.0.113.10:8080

This record asserts that a TCP listener responds on port 8080 at 203.0.113.10.

This record does not assert that the web server answers for api.example.com. Port 8080 often runs internal proxies that reject unrecognized Host headers.

Next command: Probe the endpoint with httpx using the target Host header.

Terminal window
# Test virtual host response on port 8080 with target Host header
httpx -u http://203.0.113.10:8080 -H "Host: api.example.com" -status-code -title -silent

A port scan shows port 8443 open on 203.0.113.10. Opening https://203.0.113.10:8443/ displays an administrative login console for server configuration. A researcher notes that 203.0.113.10 resolved from origin mapping for example.com, assumes the console belongs to the target organization, and reports an exposed administrative interface.

The check that kills this finding evaluates the TLS certificate and virtual host response. You run tlsx against the socket and observe that the certificate common name lists a generic cloud management software package. You then send an HTTP request specifying Host: api.example.com. The server returns HTTP status 421 Misdirected Request. Reverse IP lookups confirm thirty separate domains on 203.0.113.10. The administrative console belongs to the infrastructure hosting provider.

The sentence you write in your assessment notes: Port 8443 on 203.0.113.10 runs a multi-tenant hosting management daemon that rejects the example.com Host header and belongs to the shared infrastructure provider.

The bad read occurs when you treat an IP address as a single target application. Origin discovery identifies candidate addresses. It does not establish dedicated server tenancy. A single IP address in a public subnet often routes traffic to many independent organizations through virtual hosting.

Direct port scanning cannot see origin services protected by strict ingress firewall rules. Cloud security groups often restrict port 8443 to accept traffic only from designated CDN edge blocks. When you scan 203.0.113.10 directly at 50 packets per second, the origin firewall silently drops SYN packets. Naabu marks port 8443 as filtered or closed, even though the application runs actively behind the reverse proxy.

Historical passive scanning repositories and TLS certificate archives catch this gap. Historical datasets in Censys or Shodan indexed the origin before the engineering team applied firewall rules.

This check belongs to passive certificate analysis. Active port scanning measures reachability from your scanner address. Discovering firewalled origin services requires querying third-party telemetry databases, which involves zero direct packet transmission against the target network.

When a port confirms target ownership through TLS certificate validation or HTTP Host header alignment, you pass it to expensive follow-up probes such as directory discovery and endpoint mapping. When a port fails ownership verification, you drop the host and port combination immediately. If an origin IP shows zero open ports or only third-party infrastructure daemons across the top 1000 ports, you leave the host and archive the address.

Program rules limit origin IP scans to 50 packets per second and forbid scanning CDN ranges. You stop scanning once your tool covers the specified port list for confirmed origin addresses.

At 50 packets per second, scanning the top 1000 ports on one origin IP takes twenty seconds. Scanning fifteen candidate origin addresses takes five minutes. Once five minutes elapse, stop network probing and transition to service analysis.

In an automated pipeline, the validation module must fail closed. If a probe against 203.0.113.10:8443 times out, returns an untrusted certificate, or yields an ambiguous response, the pipeline suppresses the record. It writes the candidate to a quarantine log and halts automated testing against that address.

You hand off verified services in ports/origin-attributed.tsv. This file isolates ports that passed ownership verification from raw scanner noise.

The file contains six tab-separated columns: host, ip, port, service, tls_subject, and attribution_status.

A sample record appears as follows: api.example.com 203.0.113.10 8443 https api.example.com verified

The next step asks: Does this verified origin endpoint expose application routes or API endpoints that the public CDN edge blocks or filters?

You pass this file directly into Phase 6: Live host probing.

Where Claim Why it is uncertain
ports/naabu.txt An open port 8443 on 203.0.113.10 serves application traffic for example.com. TCP handshakes confirm only an active socket listener. Multi-tenant web servers route traffic based on HTTP Host headers and can serve independent organizations.
ports/origin-attributed.tsv Testing the origin IP directly bypasses the production Web Application Firewall without altering application behavior. Origin servers often run secondary local firewalls, reverse proxy modules, or internal authentication filters that reject direct IP traffic.
dns/ips-origin.txt The IP address 203.0.113.10 remains permanently dedicated to example.com in ASN 64496. Cloud providers and hosting facilities reassign IP addresses over time. Historical records can reflect previous tenant infrastructure.
Connections0 backlinks · 2 outgoingFull graph →
Open local graph around this page
Open full graph →
Click a node to open · Drag to reposition · Scroll to zoom

Linked from here

No other pages link here yet.

Recon AtlasFor authorized testing only. Your scope is the map edge.