# Credentialed Pre-Port Discovery: Don't Probe the Host, Ask it

DevFeed: [Credentialed Pre-Port Discovery: Don't Probe the Host, Ask it](<https://devfeed.tech/articles/credentialed-pre-port-discovery-don-t-probe-the-host-ask-it-50719.md>)

Original publisher: [Read original article](<https://www.rapid7.com/blog/post/pt-credentialed-pre-port-discovery-asking-host>)

Author: Conor McCormick

Published: 2026-09-09T15:16:34Z

Content type: article

Language: en

Sources: [Rapid7 Cybersecurity](<https://devfeed.tech/sources/rapid7-cybersecurity-blog.md>)

Topics: [Firewall](<https://devfeed.tech/topics/firewall.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [rate-limiting](<https://devfeed.tech/topics/rate-limiting.md>)

Tags: [22](<https://devfeed.tech/tags/22.md>), [approach](<https://devfeed.tech/tags/approach.md>), [benefit](<https://devfeed.tech/tags/benefit.md>), [can](<https://devfeed.tech/tags/can.md>), [comes](<https://devfeed.tech/tags/comes.md>), [control](<https://devfeed.tech/tags/control.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [covers](<https://devfeed.tech/tags/covers.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cybersecurity-company](<https://devfeed.tech/tags/cybersecurity-company.md>), [discovery](<https://devfeed.tech/tags/discovery.md>), [engine](<https://devfeed.tech/tags/engine.md>), [exists](<https://devfeed.tech/tags/exists.md>), [exposure-assessment-platform](<https://devfeed.tech/tags/exposure-assessment-platform.md>), [exposure-management](<https://devfeed.tech/tags/exposure-management.md>), [falls](<https://devfeed.tech/tags/falls.md>), [fewer](<https://devfeed.tech/tags/fewer.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [industry](<https://devfeed.tech/tags/industry.md>), [inference](<https://devfeed.tech/tags/inference.md>), [instead](<https://devfeed.tech/tags/instead.md>), [intrusion-prevention](<https://devfeed.tech/tags/intrusion-prevention.md>), [managed-detection-and-response](<https://devfeed.tech/tags/managed-detection-and-response.md>), [managed-security-solutions](<https://devfeed.tech/tags/managed-security-solutions.md>), [port](<https://devfeed.tech/tags/port.md>), [vulnerability-management](<https://devfeed.tech/tags/vulnerability-management.md>)

## AI overview

Credentialed pre-port discovery uses existing host credentials to retrieve the operating system's listening TCP and UDP ports, avoiding network probing when authentication succeeds. Available from version 8.58, it is an opt-in, per-template setting; the engine prefers Scan Assistant, then SSH, then a direct Windows connection. Hosts without a matching credential or successful authentication fall back to a network port scan. Because host-reported ports may be blocked between the host and engine, the scan can spend extra time timing out on unreachable ports and miss services there. The method also ignores template port ranges and included or excluded port settings, so the source advises leaving it off when results must stay within a fixed port set or network access is tightly segmented. The source suggests trying it on one template and comparing results and scan times.

## Source excerpt

If your scan engine already holds credentials for a host, it can ask that host which ports are open instead of probing for them. Every scan begins with the same question: which ports on this host are open? Everything after it, from identifying services to checking for vulnerabilities to evaluating policy, depends on the answer being right. The traditional answer comes from the outside: the scan engine sends traffic to a range of ports and infers each port's state from how the host responds. That approach is the industry standard, and it works well when a clear network path exists between the engine and the host. Hardened hosts can stay silent rather than replying, which forces the engine to wait out timeouts. Rate limiting and intrusion prevention can throttle a burst of probes, and genuinely open ports go missing when they do. Large port ranges take time to cover thoroughly, and that time comes out of your scan window. There is a more direct route on any host where the scan engine already holds valid credentials: ask the host itself. This is credentialed discovery, so a credential that matches the host is the precondition for everything that follows. The engine connects to the port that credential uses, authenticates with a credential you already manage, and the host's operating system returns an authoritative list of the ports it is listening on. That list covers both TCP and UDP ports. There is no probing, no inference, and nothing to wait out. Three things to know before enabling pre-port discovery Pre-port discovery can report ports that a firewall or other network control stops your scan engine from reaching, and on those hosts you get fewer results and a longer scan. SSH and the Scan Assistant are tried on their standard ports, TCP 22 and TCP 21047, unless you set a different port on the credential's restriction. Credential coverage decides which hosts benefit, and a host with no matching credential falls back to a network port scan. Each of these is covered