Security · Reconnaissance

Scanning & Enumeration

Building an accurate picture of what you actually expose — the first phase of both an assessment and an attack.

Security
01

Authorisation First

Scanning systems you do not own or have written permission to test is unlawful in most jurisdictions, regardless of intent. Every technique on this page belongs inside a defined engagement: named scope, named systems, a start and end date, and a signed authorisation.

The professional framing is simple. A defender scans their own estate to find what an attacker would find first. A tester scans a client's estate under a contract that says exactly which addresses are in scope. Everything outside that is not security work.

Scope creep is the practical risk: a shared hosting range, a cloud service you do not own, or a supplier's address that happens to answer. Confirm ownership of every target before touching it.

02

Asset Discovery

You cannot defend what you do not know you run. Most organisations are surprised by their own attack surface — a forgotten staging box, an expired subdomain still pointing at a cloud bucket, an admin panel exposed during a migration two years ago.

SourceReveals
DNS records and subdomain enumerationHosts that were never decommissioned
Certificate transparency logsEvery subdomain a certificate was issued for
Cloud account inventoryResources created outside the main pipeline
Public code and package registriesLeaked internal hostnames and keys
Search engines and archivesPages indexed before someone added auth
The finding that matters most from discovery is usually not a vulnerability — it is an asset nobody knew existed, because nothing unknown is being patched, monitored or backed up.
03

Port & Service Scanning

Once you know the hosts, the question is what each one is listening on and what software answers. A scanner sends probes and interprets the responses: which ports are open, which service and version is behind them, and what the operating system looks like.

Scan typeWhat it tells youCost
Host discoveryWhich addresses are aliveFast, quiet
Common-port scanThe obvious servicesFast
Full port scanThe service on an unusual portSlow, noisy
Service and version detectionExact software and version — the CVE lookupModerate
Script or plugin checksKnown weak configurationsSlower, more intrusive
Nmap is the reference tool and worth knowing by name in an interview. What matters conceptually is the distinction between a port being open, a service being identified and a vulnerability being confirmed — they are three different claims, and only the third justifies an incident.

Scanning is noisy by nature, and that cuts both ways. As a defender, a scan of your own range is also a test of whether your monitoring notices — if nothing alerts, that is a finding in itself.

04

Vulnerability Scanning

A vulnerability scanner compares what it observes — versions, banners, configurations, responses — against a database of known issues. It is breadth, not depth: excellent at finding the unpatched and the misconfigured, and incapable of finding a logic flaw in your checkout.

StrengthLimit
Covers thousands of known issues quicklyOnly finds what is already in the database
Repeatable and schedulableCannot chain findings into an attack path
Good at patch and configuration driftBlind to business-logic flaws
Cheap to run continuouslyProduces false positives that need triage
A scan report is raw material, not a result. Findings need verification, deduplication and prioritisation against real exposure — an unauthenticated critical on an internet-facing host is a different problem from the same CVE on an isolated internal build server.

The valuable metric is not how many findings a scan produced but time to remediation for the ones that matter. A programme that generates 4,000 unread findings a month is theatre.

05

Reporting What You Found

Recon output is only useful when it changes something. A finding needs enough detail for someone else to reproduce it, an honest severity, and a concrete remediation.

FieldPurpose
Asset and locationExactly which host, service and endpoint
EvidenceThe request and response, or the scanner output
Severity with reasoningImpact and exploitability, not just a CVSS number
ExposureInternet-facing, internal, or requires an account
RemediationThe specific change, not "apply best practice"
OwnerThe team that can act on it
Severity is contextual. The same CVE can be critical on a public API gateway and negligible on a decommissioned host inside a private subnet — reporting both as critical is how a security team teaches everyone to ignore it.
06

Interview Questions

What has to be true before any scanning begins?

Written authorisation with a defined scope: named systems, an agreed window and a point of contact. Scanning outside that is unlawful in most jurisdictions regardless of intent.

Why is asset discovery the highest-value phase?

Unknown assets are not patched, monitored or backed up. Most organisations find their worst exposure is a host nobody knew was still running.

Open port, identified service, confirmed vulnerability — the difference?

Three separate claims of increasing strength. A port answering says little; a version banner suggests a CVE; only verification confirms exploitability, and only that justifies escalation.

What can a vulnerability scanner not find?

Business-logic flaws, broken access control specific to your model, and anything not already in its database. It gives breadth, not the depth of a manual test.

How should findings be prioritised?

By real exposure and impact rather than raw severity — an unauthenticated critical on an internet-facing service outranks the same CVE on an isolated internal host.

What does it mean if your own scan triggers no alerts?

The monitoring is a finding. Scanning your estate is also a test of detection, and silence means an attacker doing the same would go unnoticed.

Quick Quiz

1. Scanning without written authorisation is…
2. The most valuable discovery output is usually…
3. A vulnerability scanner is weakest at…
4. Severity should be judged with…
5. A scan of your own range that raises no alerts means…