A source-cited reference library 399 modules · 19 subdomains · 5 domains
Research Library
Reconnaissance and Initial Access

Cybersecurity / Red Team

Reconnaissance and Initial Access

How a controlled adversarial operation studies a target from everything that is already public, and converts a weakness in identity, perimeter, or supply chain into one machine inside.

Executive brief

Reconnaissance is the gathering of target information from public and observable sources; initial access is the first execution of operator code on target infrastructure. Together they decide most of an operation's outcome before anything inside the network is touched.

Overview and context

An operation begins long before any exploit fires. The reconnaissance phase builds a working model of the target — what it owns, what it publishes, who its people are, and which of its systems advertise themselves to the internet — and every later phase inherits the quality of that model. In a red-team context this study is authorized and bounded by a scope document signed in advance; the reason the discipline rehearses it at all is the uncomfortable symmetry the field's incident data keeps showing: real intrusions overwhelmingly begin from this same cheap material, not from exotic techniques. The surveillance camera on the right is the honest metaphor — most targets are studied, at scale, from what they publicly expose, and the study is unglamorous, patient, and largely invisible to the target.

The phase splits by what it costs the target to notice. Passive reconnaissance touches only sources the target expects to be public: corporate sites, job postings (which name the technology stack), public records, certificate transparency logs, and archives of the network's historical structure. Active reconnaissance does touch the target — port scans, protocol probes, endpoint enumeration — and is therefore logged somewhere; in an authorized exercise, the scope document states when and from where it may happen, and in a real intrusion it is the point where defenders' first detections live. The two layers feed one another: active findings refresh the model, the model directs the next probes, and both sharpen the access step.

The tooling of this phase grew into an industry of its own, and the chart on the right dates part of it: the dedicated open-source intelligence platforms (Maltego in 2008, Shodan in 2009, Recon-ng and its successors through the 2010s) that industrialized what had been manual search. The reading from the chart's shape: the tooling arrived with the web's growth — target surfaces became large enough that a person with a browser could no longer hold the whole picture, so the collection became tool-managed, with each platform specializing in one slice of the surface (people, hostnames, services, certificates).

A CCTV surveillance camera mounted on a wall
The phase in one object — systematic, patient observation of what a target exposes. Photograph via Wikimedia Commons.

The table separates the two layers the section defines, because the difference that matters is not the tool but whether the target can notice the collection.

LayerWhat it touchesWhat it produces
Passive reconnaissanceCorporate sites, job postings, public records, certificate transparency, archivesA model built without touching the target
Active reconnaissancePort scans, protocol probes, endpoint enumerationLogged observations, and in an intrusion the first detections

Two layers — the passive layer is invisible to the target; the active layer is the point where defenders first see the operation.

Initial access

Access is where the reconnaissance pays out, and its documented classes are few. Identity paths deliver their code through a person: a phishing message with a payload, or — cheaper and steadier — legitimate credentials reused or leaked, entering through a VPN or mail portal without any exploit at all. Perimeter paths deliver through a machine: an unpatched service on an exposed host, and the exploit converts it to execution. Supply-chain paths deliver through trust: an update channel, a dependency, or a vendor connection already inside the perimeter, so the first machine compromised is a machine the target itself invited in. The initial-access table on the right summarizes the three classes with their MITRE ATT&CK anchors, because those identifiers are how the field keeps its evidence reconcilable across organizations.

The operational reading defenders should take from the three classes is that none of them requires sophisticated code: identity paths need a convincing lie, perimeter paths need one unpatched host, and supply-chain paths need one trusted position. That is why the analyst workflows at the end of this document are proportionate — monitoring identity anomalies, keeping an exposure inventory current, and validating vendor trust — rather than a hunt for advanced techniques that the documented incident record rarely shows.

The initial-access table the prose promises, with the three documented classes and their ATT&CK anchors, so the identifiers stay reconcilable across organizations.

Access classHow code arrivesATT&CK anchor
IdentityThrough a person: a phishing payload or reused credentials at a VPN or mail portalT1566, T1078
PerimeterThrough a machine: an unpatched exposed service converted to executionT1190
Supply chainThrough trust: an update channel, dependency, or vendor connection already insideT1195

Three classes — identity needs a lie, perimeter needs one unpatched host, supply chain needs one trusted position.

What each class says about defenses — the section's proportionality argument, restated as the control that fits.

# Class -> proportionate control
identity: phishing-resistant authentication and sign-in anomaly checks
perimeter: exposure inventory and patching discipline
supply chain: provenance verification and segmentation
# None of these requires sophisticated code to defeat.

The working examples

The two command blocks on the right show the phase's characteristic texture: mostly read-only queries against public systems. The first is an open-source intelligence session — ownership records, name service, mail posture — the kind of sequence whose every line is checkable against a public service, and whose value is the questions rather than the commands. The second is an active probe session: the same network, asked directly, with service versions requested — the half that appears in logs, and therefore the half a defender's detection engineering is aimed at. Reading sessions like these is how an analyst learns what their own estate tells an observer; each line is a question any stranger can ask of their network.

Comparative data and specs

The table on the right is this document's data spine: the three documented access classes, one row each — how the adversary arrives, what material makes the path possible, the ATT&CK anchor for cross-referencing, and the control class that measurably reduces it.

Interpreted: the identity row is cheapest for the adversary and most sensitive to security-awareness and phishing-resistant authentication; the perimeter row is the classic patching and exposure-management problem, and its dominant modern variant is the internet-facing application rather than the VPN appliance; and the supply-chain row is the hardest — the compromise arrives pre-trusted — which is why its strongest available controls are provenance and signing verification rather than scanning. Nothing in the table requires exotic defenses; the difficulty is durability of the boring controls, not their subtlety.

Access classMade possible byATT&CKReducing control
IdentityReused/leaked credentials; phishingT1566, T1078Phishing-resistant auth; sign-in anomaly monitoring
PerimeterUnpatched exposed serviceT1190Patching; exposure inventory
Supply-chainTrusted update/dependency/vendorT1195Provenance/signing verification; segmentation

The three documented access classes.

First public release year of the dedicated collection platforms — the tooling industrialized as the target surface grew.

Maltego2008
Shodan2009
Recon-ng2012
Censys2015
Amass2017

Reading — bars scaled to the 2000–2017 range; compiled from each platform's documented first public release.

Actionable steps for analysts

  1. Exposure inventory

    Keep an inventory of what the organization advertises to the internet — hosts, services, certificates, and the cloud endpoints behind them — and reconcile it monthly against what actually answers. The inventory is the perimeter row of the access table made operational: an unpatched host cannot be reached by inventory discipline alone, but a host nobody listed is never patched at all. Certificate transparency logs, the same public archives the reconnaissance phase reads, are the cheapest reconciliation source an outsider already sees an estate through.

  2. Identity anomalies

    Monitor authentication telemetry for the identity class's signature: successful sign-ins from new geographies and device fingerprints, password sprays visible as many failures followed by one success, and mail accounts suddenly creating forwarding rules. Credential paths enter with the keys the owner already trusts, so the only tell available is the context of use — which is precisely what these telemetry checks read. Deploy phishing-resistant authentication where the organization can; the phishing path folds only when the lie stops being able to produce a usable token.

  3. Recon in the logs

    The organization's own perimeter is read the way the left pane's second example does, on a schedule: probing from outside and diffing against the inventory and the accepted baseline. An estate's active-recon answer set changes without ceremony — a marketing team stands up a server, a vendor port opens — and each unnoticed change is an unpatched question an adversary gets to ask first.

  4. Supply-chain posture

    Treat vendor and dependency trust as an inventory too: which third parties can reach inside, which update channels exist, and whether signing is verified at install time. The supply-chain row's documented incidents across the industry share one texture — the code arrived already trusted — so the controls that help are the ones that verify provenance rather than trust it, and the ones that segment so a single vendor compromise is not an estate-wide event.

The table sets the section's four steps beside the evidence each produces, so the workflow can be read as a program.

StepEvidence it produces
Exposure inventoryA reconciled list of hosts, services, certificates, and cloud endpoints
Identity anomaliesNew geographies, spray patterns, and forwarding rules
Recon in the logsA diff between external probes and the accepted baseline
Supply-chain postureAn inventory of third parties, update channels, and signing checks

Four steps — each turns the phase's technique into a scheduled check.

The order that keeps the inventory honest — the section's steps restated as recurring work.

# Working order
1. reconcile the exposure inventory monthly
2. monitor authentication for the identity signature
3. probe from outside and diff against the inventory
4. review vendor trust and update channels
# An unlisted host is never patched at all.

What to retain from each step — the section's workflow as an evidence trail.

# Records per step
inventory: host, service, certificate, owner, last reconciled
identity: sign-in source, device, failure-to-success pattern
recon: probe source, destination set, timing
supply chain: vendor, access path, signing verified or not
# Each record makes the next review cheaper.

The tooling in practice

It is worth describing how the layers of the surface are actually walked, because the phase's craft is sequenced questions, not a single powerful scan. A working pass in an authorized exercise typically proceeds in this order. First, organizational identity: the legal entities behind the operation, read from corporate registries and press — because a network is only one of the target's surfaces, and contracts, partnerships, and people bridge them. Second, names: the domain inventory, assembled from passive DNS collections, certificate-transparency logs, and search-engine footprints; the certificate log in particular is a public ledger of every certificate issued for every domain, which makes a silent subdomain nearly impossible to maintain in practice.

Third, services: the network asked directly — the active session of the example block — producing the versions and banners that the patching calendar then prices. Fourth, people: the published workforce, from professional-network profiles and conference talks to press releases, because the identity layer of the access table is ultimately pointed at people, not IP addresses. Fifth, history: archives and breach corpora, which answer what the estate looked like before it hardened and which credentials have already been exposed anywhere on the internet. Only at the end of that sequence does the access decision get made, and by then it is usually cheap — which is the phase's whole point.

The same sequence read from inside is the defender's early-warning map: each layer of surface-walking produces a signature, and the detections that make real intrusions expensive are rarely about the final exploit — they are about the probes before it. A scanning session has an arithmetic no normal visitor has (port and version requests in sequence, unusual timing, single-source breadth); a certificate-reconnaissance footprint has an observable shape (certificates requested for names the infrastructure inventory doesn't explain); a people-reconnaissance phase leaves traces in exactly the public profiles it reads. The workflows at the end of this document are the working shape of turning that map into scheduled queries.

The table sets the five layers the section walks in order, with the public source that answers each and the signature it leaves behind.

LayerSourceSignature
Organizational identityCorporate registries and pressResearch interest in contracts and people
NamesPassive DNS, certificate transparency, search footprintsCertificates requested for unexplained names
ServicesDirect probingScan-shaped traffic and version requests
PeopleProfessional profiles, talks, press releasesTraces in the profiles that were read
HistoryArchives and breach corporaQueries against old exposure data

Five layers — each produces a signature the blue side can learn to read.

Why the sequence matters — the section's point that the access decision comes last and is usually cheap.

# Surface-walking order
1. identity: what legal entities exist?
2. names: what do they publish in DNS and certificates?
3. services: what answers, and with which versions?
4. people: who works there, and in what roles?
5. history: what was exposed before the estate hardened?
# Only after all five does the access choice get made.

The same sequence from inside — the section's five layers restated as the defender's early-warning map.

# What each layer looks like to the defender
identity: unusual interest in registries and press
names: certificates requested for unexplained names
services: scan-shaped traffic and version enumeration
people: profile views and conference-material queries
history: queries against old exposure data
# Watch the probing, not only the exploit.

What the observer logs — reading recon from the blue side

The second example block's session ends with the analyst reading for versions and unexplained banners; the same session, run against the organization's own estate from outside, is the scheduled probe that keeps an inventory honest. Operationally the practice decomposes into a small set of standing checks, and the incident record consistently rewards the boring version of them. Diff monthly: what answers on the internet versus what the inventory says should answer — every unmatched responder is an unpatched question. Rate-pattern alerts: scan-shaped traffic (breadth without depth, single-source breadth across many destinations) is cheap to fingerprint and expensive for the adversary to disguise, because reconnaissance tooling is trying to be complete, and completeness has a shape.

Certificate watch: new certificates for unknown names in the estate's name-space are the outsider's map being drawn in public; watching that map costs nothing and was the earliest signal in several documented perimeter campaigns. Mail posture as a probe target: mail infrastructure is the perimeter's most-queried doorbell, and misconfigurations (open relay paths, published internal hostnames in mail headers) are exactly the kind of small leak the passive layer lives on. None of these are sophisticated; the reason they matter is durability — an estate whose observer logs are watched is an estate whose probes get noticed, and noticed probes are the cheapest incident response there is.

The table turns the section's four standing checks into the record each one watches and the signal it looks for.

CheckRecordSignal
Diff monthlyWhat answers versus what the inventory listsAn unmatched responder
Rate-pattern alertsFlow and scan telemetryBreadth without depth from one source
Certificate watchCertificate transparency logsNew certificates for unknown names
Mail postureMail configuration and headersOpen relay paths or internal hostnames

Four checks — none is sophisticated; durability is the point.

Why these checks are cheap — the section's argument restated as a short chain.

# The observer-log argument
recon tooling tries to be complete
completeness has a shape
the shape is cheap to fingerprint
noticed probes are the cheapest incident response
# Watch the map being drawn, not only the attack.

Additional context — a documented practice case

The relationship between the phase and its findings is easiest to see in a published, deliberately vulnerable practice environment, and one such published exercise deserves its own section because its results summarize this whole document in numbers. The project (a publicly documented training exercise against an intentionally vulnerable lab machine) ran the reconnaissance pass first, identified the exposed services, and then demonstrated thirteen distinct service-level attack paths against what the scan had surfaced — nearly all rated critical, several producing root-level access from default credentials, a code backdoor, or a well-named historical vulnerability. The table on the right reproduces a representative slice of that exercise's findings.

Read the slice for its lessons rather than its drama. Every row is a service that advertises itself — so every row is exactly what the exposure inventory step would have listed, priced, and prioritized; the historical CVEs involved (vsftpd's 2011 backdoor, SSH and telnet credential weakness, Samba's 2007 username-map script execution, the 2012 PHP-CGI argument-injection flaw, the 2010 UnrealIRCd source-code backdoor) are old, documented, and utterly representative of what perimeter paths look like when exposure is unmanaged. The exercise's own summary — that reconnaissance identified the attack surface and the surface carried the intrusion — is the phase's value proposition stated as arithmetic, and the same arithmetic works in the defender's favor: inventory first, then the patch and credential decisions become ordinary.

The so-what for any reader building an estate's defenses: the practice case is any environment in miniature whenever the exposure inventory lapses. Nothing in it required an exotic technique — the credentials were default, the backdoors were public, the vulnerabilities had years-old advisories. The control set of the workflow above (inventory, patching, credential hygiene, verification) is precisely what turns a table like this one from thirteen criticals into thirteen already-patched rows.

The table the prose promises: a representative slice of the practice case's service paths, each paired with the defect and the outcome the section reports.

ServiceFindingOutcome class
21 / FTPvsftpd backdoorRoot shell
22 / SSHDefault credentialsUser shell
445 / SambaUsername-map script executionRoot shell
80 / HTTPPHP-CGI argument injectionFull code execution
5900 / VNCWeak passwordDesktop access
6667 / IRCUnrealIRCd source-code backdoorRoot shell

Six rows of thirteen — every finding is a self-advertised service with a public defect.

The case in one lesson — the section's arithmetic, restated as the control that changes the table.

# Exposure arithmetic
reconnaissance identifies the surface
the surface carries the intrusion
inventory first -> patch and credential decisions become ordinary
# Thirteen criticals become thirteen already-patched rows.

What the practice case maps to — each defect class beside the routine control that would have removed it.

# Defect class -> routine control
public backdoor      -> version inventory and patching
default credentials  -> credential hygiene and forced rotation
script execution     -> configuration review and least privilege
argument injection   -> dependency scanning and WAF rules
weak remote access   -> MFA and exposure inventory
# Nothing exotic; the controls are the workflow above.

Web App Entry

Web applications present a common initial access vector where attackers exploit flaws in internet-facing applications to gain execution inside the target environment. Unlike network-layer attacks that require open ports, web app entry occurs through standard HTTP/S ports (80, 443) that are typically allowed by perimeter controls, making it a stealthy path that blends with legitimate traffic. The OWASP Top 10 consistently identifies injection flaws, broken authentication, and security misconfigurations as leading web application risks that operators can leverage for initial access.

Common web app entry techniques include exploiting SQL or NoSQL injection in login forms or search boxes to bypass authentication, uploading malicious files through unrestricted file upload features to achieve remote code execution, and leveraging server-side template injection in frameworks like Jinja2 or Freemarker to execute arbitrary commands. Attackers may also exploit deserialization vulnerabilities in web applications that process user-supplied data without proper validation, or use cross-site scripting (XSS) chains to steal administrator sessions and pivot internally. Each of these methods relies on finding a publicly accessible web application with a specific vulnerability that translates user input into server-side execution.

Defenders monitor for web app entry by analyzing web application logs for anomalous patterns such as repeated authentication failures with varying payloads, unexpected file uploads to unusual directories, or parser errors indicating injection attempts. Web application firewalls (WAFs) provide runtime protection by inspecting HTTP requests for known attack signatures, while regular dependency scanning and penetration testing help identify vulnerabilities before they can be exploited. The key defensive insight is that web app entry requires visibility into application-layer traffic, not just network-layer flows, because the malicious activity hides within seemingly normal web requests.

The table pairs the web-application entry techniques the section lists with the detection each one leaves in application-layer logs.

TechniqueWhat the section says to watch
SQL or NoSQL injectionParser errors and repeated authentication failures with varying payloads
Unrestricted file uploadUnexpected uploads to unusual directories
Server-side template injectionParser errors indicating injection attempts
Insecure deserializationAnomalous request patterns in application logs
Cross-site scripting chainsSession anomalies in application telemetry

Five techniques — each is visible only if application-layer traffic is inspected.

Why the network layer is not enough — the section's key insight, restated as a comparison.

# Where web-app entry hides
network flow: 80/443 looks like ordinary web traffic
application log: payload shape and parser errors reveal intent
therefore: inspect the application layer, not only the flow
control set: WAF, dependency scanning, and penetration testing
# The malicious request is a normal-looking HTTP request.

What the defender needs visible — the section's control set restated as the data it depends on.

# Visibility checklist for web-app entry
- application logs retain request bodies and parser errors
- WAF rules cover injection and upload paths
- dependencies are scanned against known vulnerabilities
- authentication failures are correlated by source and payload
# Network flow alone cannot see the intent.

Credential Attacks

Credential attacks represent a class of initial access techniques that leverage reused, leaked, or weak passwords to gain entry through legitimate authentication channels. Unlike exploits that require software vulnerabilities, credential attacks succeed when users recycle passwords across services or choose easily guessable combinations, allowing attackers to validate stolen credential lists against target services. These attacks are particularly effective against single-sign-on (SSO) portals, virtual private network (VPN) gateways, and cloud-based services that authenticate users via username and password without additional factors.

Credential spraying involves attempting a small set of common passwords (such as "Spring2024!" or "Password123") across many accounts to avoid account lockout thresholds, while credential stuffing uses large datasets of leaked username-password pairs from other breaches to test against target login endpoints. Attackers may also exploit session tokens or cookies captured through man-in-the-middle attacks or cross-site scripting to replay authenticated sessions without needing credentials—a technique sometimes referred to as log replay or session theft. Each method depends on the target's lack of multi-factor authentication and poor password hygiene practices among users.

Defenders detect credential attacks by monitoring authentication logs for high volumes of failed login attempts from single sources, attempts using known breached password dictionaries, or successful logins from unusual geographic locations immediately following failed attempts. Implementing rate limiting on authentication endpoints, blocking known malicious IP ranges, and requiring multi-factor authentication for external access significantly reduce the success rate of credential attacks. Passwordless authentication methods and behavioral biometrics further strengthen defenses by removing the password as a single point of failure.

The table separates the credential-attack methods the section describes from the telemetry and control attached to each.

MethodWhat the section says to monitorControl
Password sprayingMany failures followed by a success from one sourceRate limiting and MFA
Credential stuffingAttempts using known breached password dictionariesBlock known malicious ranges
Session replaySuccessful logins from unusual geographies after failuresPasswordless authentication and device binding

Three methods — each succeeds only where MFA or password hygiene is missing.

The common precondition — the section's explanation of why credential attacks work, restated as the defense.

# Why credential attacks succeed
reused passwords across services
weak, guessable combinations
no additional factor at the login
therefore: rate-limit, screen breached lists, require MFA
# Remove the password as a single point of failure.

Primary sources and media links

Passive reconnaissance is research before it is an operation. Most of the target picture — names, filings, infrastructure, history — is already in the public record. Study begins where research does: in the reading room, not at the perimeter.

The New York Public Library research room with reading tables and books
Passive reconnaissance — most of the target picture is already in the public record; study begins where research does. Photograph via Wikimedia Commons.

An open-source session — read-only questions of public systems: ownership, name service, mail posture. Illustrative session.

# Illustrative session: public-record questions
$ whois example.org
#   Registrar, registrant org, creation date, abuse contact
$ dig +short example.org A
$ dig +short example.org MX
#   Mail posture: where mail is accepted, and by whom
$ curl -s https://example.org/.well-known/security.txt
#   Disclosure endpoint and contact
$ curl -sI https://example.org | head
#   Server header and security-response headers

An active probe session — the same network asked directly; note that each line lands in the target's logs by design.

# Illustrative session: direct enumeration
$ nmap -sV -p 443,80,22 --top-ports 100 example.org
#   PORT    STATE  SERVICE VERSION
#   22/tcp  open   ssh     OpenSSH 8.4
#   80/tcp  open   http    nginx 1.22
#   443/tcp open   ssl/... nginx 1.22 (cert: example.org)
# Read for: versions, banners, and anything the
# estate inventory cannot explain.

The practice case, in numbers — a representative slice of the documented training exercise's thirteen demonstrated service paths.

ServiceFindingReferenceOutcome class
21 / FTP (vsftpd 2.3.4)Code backdoorCVE-2011-2523Root shell
22 / SSHDefault credentialsConfigUser shell
445 / SambaUsername-map script executionCVE-2007-2447Root shell
80 / HTTP (PHP-CGI)Argument injectionCVE-2012-1823Full code execution
5900 / VNCWeak passwordConfigDesktop access
6667 / UnrealIRCdSource-code backdoorCVE-2010-2075Root shell

Reading — six of the exercise's thirteen rows; every finding is a self-advertised service with a public defect.

Quick reference — the rules at a glance

The page's rules follow one uncomfortable symmetry: real intrusions begin from cheap public material, not from exotic techniques. Reconnaissance builds a working model from sources the target expects to be public, and active probing is the point where defenders first see the operation. Initial access then lands in one of three classes: identity, through a person; perimeter, through an unpatched exposed service; supply chain, through a trusted update, dependency, or vendor. None of them requires sophisticated code, which is why the analyst workflows are proportionate: keep an exposure inventory, monitor identity anomalies, probe the organization's own perimeter and compare, and treat vendor trust as an inventory too.

Two habits hold the program together. First, reconcile monthly: what answers on the internet versus what the inventory says should answer. Second, the organization's own logs are read the way an outsider reads the estate, because scanning, certificate reconnaissance, and people research all leave a shape. The table collects the page's rules with their documented basis; the code block restates the order of work.

The table gathers the page's rules, the documented basis for each, and the failure it prevents.

RuleBasis on this pageFailure it prevents
Keep an exposure inventoryThe access table's perimeter rowAn unlisted host that is never patched
Monitor identity anomaliesThe identity row and its telemetry checksCredential entry through a trusted channel
Probe the organization's own perimeterThe active probe session in the examplesAn unnoticed change in the answer set
Inventory vendor trustThe supply-chain row and its controlsCode arriving already trusted
Read the logs as the blue sideThe observer-log checksMissing the probes before the exploit

Five rules, five documented bases — the page's defense in one view.

Working order — the page's rules as a sequence from inventory to detection.

# Working order
1. reconcile the internet-facing inventory monthly
2. watch authentication for geography and spray patterns
3. probe from outside and diff against the inventory
4. review vendor access, update channels, and signing
5. read the probes in the organization's own logs on a schedule
# Inventory first; the patch and credential decisions follow.

A second view sets the three access classes beside the proportion of defense each one rewards, which is the page's argument for boring controls.

Access classWhat a defender should prioritize
IdentityPhishing-resistant authentication and sign-in monitoring
PerimeterPatching and an honest exposure inventory
Supply chainProvenance verification and segmentation

Reading — none of the three classes requires an exotic defense; durability of the boring controls is the difficulty.