COMP-222 · Lesson 1 of 12 · 23 min
From reconnaissance to vulnerabilities
▶ Video coming soon A video version of this lesson is on the way.
On the first Monday of October 2026, Tobias Rennick carried two things into the Ironwhistle Security Partners war room: the reconnaissance log he had kept since September, and a question. The log listed every Prairiefold Credit Union host the team had found, every open port, every banner and every service version. The question was what to do with it. Dario Feldspar, the senior tester leading the engagement, pulled a chair to the whiteboard and wrote a single line across the top: an open port is a fact; a vulnerability is a claim. The rest of the morning, he said, would be about the difference.
This course follows the next phase of the Prairiefold engagement, which maps to domain 3 of the CompTIA PenTest+ PT0-003 exam, Vulnerability Discovery and Analysis. Domain 3 carries 17 percent of the exam weight. Its three objectives ask you to conduct vulnerability discovery using various techniques (3.1), analyze output from the reconnaissance, scanning and enumeration phases (3.2), and explain physical security concepts (3.3). Two lessons near the end also reach into neighboring objectives: assessing social engineering exposure draws on information gathering (2.1) and social engineering attacks (4.8), and analyzing results for a client draws on analyzing findings and recommending remediation (1.5). This first lesson builds the frame for everything else: what a vulnerability is, how discovery grows out of reconnaissance, the vocabulary and public data sources the whole industry shares, and the rules that keep discovery safe on a client's production systems.
The exam in one paragraph
PenTest+ PT0-003 launched on December 17, 2024, replacing PT0-002, which retired in June 2025. CompTIA's exam page lists a maximum of 90 questions, a mix of multiple-choice and performance-based items, a 165-minute time limit and a passing score of 750 on a scale of 100 to 900. The five domains and their weights are engagement management (13 percent), reconnaissance and enumeration (21 percent), vulnerability discovery and analysis (17 percent), attacks and exploits (35 percent) and post-exploitation and lateral movement (14 percent). Earlier courses in the sequence, PenTest+: Engagement Management and PenTest+: Reconnaissance and Enumeration, cover the first two domains; PenTest+: Attacks and Exploits picks up where this course ends.
| Objective | What it asks | Where this course covers it |
|---|---|---|
| 3.1 | Conduct vulnerability discovery using various techniques: container, application, mobile, network, host-based, authenticated and unauthenticated, secrets and wireless scans; ICS vulnerability assessment; tools such as Nessus, Greenbone/OpenVAS, Nikto, TruffleHog, BloodHound, PowerSploit, Grype, Trivy and Kube-hunter | Lessons 2 to 6 |
| 3.2 | Analyze output from reconnaissance, scanning and enumeration: true and false positives, false negatives, scan completeness, troubleshooting scan configurations, selecting public exploits, using scripting to validate results | Lessons 7 to 9 and 12 |
| 3.3 | Explain physical security concepts: tailgating, site surveys, USB drops, badge cloning and lock picking | Lesson 10 |
| 2.1, 4.8, 1.5 | Information gathering, social engineering attacks, analyzing findings and recommending remediation | Lessons 11 and 12 |
Facts, weaknesses and vulnerabilities
Dario's line on the whiteboard captures a distinction the exam tests constantly. Reconnaissance and enumeration produce observations: host 203.0.113.20 answers on TCP 443; the web server's banner names a product and version; the certificate expires in March. None of those observations is, by itself, a vulnerability. A vulnerability is a weakness in a system, its configuration or the way it is used that a threat could exploit to harm confidentiality, integrity or availability. To call something a vulnerability, a tester needs a reason to believe the weakness exists on this specific system and could be used against it.
It helps to separate four related words. A weakness is a type of flaw, such as building database queries by joining strings, or storing passwords with a fast unsalted hash. A vulnerability is an instance of a weakness in a particular product or system, such as a specific version of a specific product that builds one particular query unsafely. An exploit is a method or piece of code that takes advantage of a vulnerability. Risk combines the likelihood that a vulnerability will be exploited with the impact if it is. Testers discover vulnerabilities, sometimes demonstrate exploits under the rules of engagement, and report risk in terms the client can act on.
The gap between an observation and a confirmed vulnerability is where most of the skill in this domain lives. A version banner suggests a product is vulnerable to a published flaw, but the vendor may have backported a fix without changing the version string. A scanner may report a missing patch because it could not log in to check. A web page may look injectable because of an error message that turns out to be cosmetic. Each of these is a claim that needs evidence before it becomes a finding.
How discovery grows out of reconnaissance
The reconnaissance phase gave Tobias three kinds of material. The first was an asset inventory: live hosts, their addresses and names, and which network zone each belonged to. The second was a service map: open ports, protocols, banners and versions from tools such as Nmap. The third was context: who owns each system, what it does for the business, which technologies the organization uses, and what the public internet can see. Vulnerability discovery takes all three as input.
Discovery itself has three broad techniques, and good testers use all of them. Automated scanning compares what a tool can observe against a database of known vulnerabilities and misconfigurations. It is fast, broad and repeatable, but it only finds what its checks describe and can be fooled by unusual configurations. Manual testing applies a tester's judgment: logging in to a web application and trying to reach another user's data, reading a configuration file, or noticing that an administrative interface is exposed when it should not be. Manual work finds logic flaws and context problems that scanners miss. Review of code, images and configuration examines the artifacts behind a system, such as source code, container images, infrastructure-as-code templates and cloud policies, often before they are deployed.
The reconnaissance results shape which techniques fit where. A host running an unusual industrial protocol calls for careful manual assessment, not an aggressive scan. A web application with dozens of authenticated workflows needs a dynamic scanner and a tester with a browser proxy. A cloud tenant with hundreds of resources is better served by reading configuration through an approved read-only role than by probing each resource from outside. Lesson 2 develops these choices in detail.
The shared vocabulary: CVE, CWE, CPE and CVSS
Scanners, advisories and reports all lean on a handful of public naming systems. Knowing what each one identifies, and what it does not, prevents a whole class of reporting mistakes.
| Name | What it identifies | Example of use |
|---|---|---|
| CVE (Common Vulnerabilities and Exposures) | A specific publicly disclosed vulnerability in a specific product, with an identifier in the form CVE-year-number | A scanner finding cites the CVE so the client can look up the vendor advisory |
| CWE (Common Weakness Enumeration) | A type of weakness, such as improper neutralization of input in an SQL command | A finding for a custom application with no CVE is classified by its CWE |
| CPE (Common Platform Enumeration) | A structured name for a product and version | A scanner maps a detected product to CPE names to look up which CVEs apply |
| CVSS (Common Vulnerability Scoring System) | A standard way to describe a vulnerability's characteristics and produce a severity score from 0 to 10 | An advisory lists a CVSS vector; the tester adjusts it for the client's environment |
| NVD (National Vulnerability Database) | A US government database that enriches CVE records with CVSS scores, CWE and CPE data | A tester checks the NVD entry alongside the vendor advisory |
| KEV (Known Exploited Vulnerabilities catalog) | A list maintained by the US Cybersecurity and Infrastructure Security Agency of vulnerabilities with evidence of exploitation in the wild | A finding on the KEV list moves up the priority order |
Two points about these systems come up repeatedly. First, a CVE identifies a vulnerability in a product, not in the client's environment. The same CVE may be critical on an internet-facing server and irrelevant on a host where the vulnerable feature is disabled. Second, custom applications built by the client rarely have CVEs at all. A flaw in Prairiefold's member portal staging environment would be described by its CWE, its behavior and its evidence, not by a CVE number. Lesson 9 returns to CVSS, the Exploit Prediction Scoring System (EPSS) and the KEV catalog in detail.
Sources of vulnerability intelligence
Scanners are only as current as their checks. Behind each scanner is a feed of plugins, tests or rules that the vendor or community updates as new vulnerabilities are disclosed. Testers supplement the feeds with direct sources: vendor security advisories and patch notes; national databases such as the NVD; CISA's KEV catalog and industrial control system advisories; the Canadian Center for Cyber Security's alerts and advisories; exploit databases that record public proof-of-concept code; and the release notes and issue trackers of open-source projects.
Tobias's first assignment was to take the service map and, for the ten externally visible services, record the product, version, any vendor advisories for that version, and whether the advisories mentioned active exploitation. Dario asked him to do this by hand, before any scanner ran. The point was not to replace the scanner. It was to give Tobias a baseline so that when the scanner's results arrived he could tell whether they made sense. A tester who has read the advisory for a product is far better placed to recognize a false positive than one who only reads the scanner's summary line.
Discovery inside the rules of engagement
Everything in this course happens inside a signed authorization. For Prairiefold, the authorization letter was signed on September 14, 2026 for the credit union, with Gwendolyn Tran, its chief information security officer, named as engagement sponsor, and by Marguerite Okonkwo-Lind, Ironwhistle's principal. The rules of engagement set the testing window from October 5 to November 13, 2026, named Felix Aberdeen in IT operations as the emergency contact, and defined stop conditions: any sign of service degradation on a production system, any discovery of evidence that a real attacker was already present, and any access to member financial data beyond what was needed to prove a finding.
Vulnerability discovery has particular risks that the rules address directly. Scanners generate a great deal of traffic and can crash fragile services. Some checks are intrusive by design: they try a default password, send a malformed packet or attempt an action to see whether it succeeds. Credentialed scans use real accounts that need to be created, protected and removed. Prairiefold's rules therefore included several discovery-specific clauses.
| Clause | Prairiefold rule | Why it matters |
|---|---|---|
| Scan windows | Active testing on weekdays between 07:00 and 19:00, none at month-end; heavier internal scans after branches close | Limits impact on branch staff and members |
| Intrusive checks | Denial-of-service and destructive checks disabled; default-credential checks allowed against named systems only | Prevents outages from checks designed to break things |
| Rate limits | No more than a set number of concurrent hosts per scanner; branch links scanned one branch at a time | Branch wide-area links are slow and shared |
| Scan accounts | Two dedicated accounts created by Prairiefold for credentialed scans, removed at the end of the window | Keeps credentials auditable and short-lived |
| Out of scope | The online banking platform hosted by the third-party processor | Ironwhistle has no permission from the processor |
| Notification | Prairiefold's managed security service provider (MSSP) told of the testing window and scanner source address in advance | Avoids a scan being treated as an attack |
The out-of-scope processor is worth dwelling on. During reconnaissance, the team had found that the member login page used a Prairiefold name but resolved to an address owned by the processor. A scanner pointed at the whole list of discovered names would have scanned it anyway. Tobias's scan target lists were therefore built from the scope workbook, not from the reconnaissance log, and every target was checked against the in-scope address blocks before a scan started. Ana Sokolova-Reyes, the reporting and quality lead, signed off each target list as part of evidence handling.
Scan target list: PF-EXT-01
Source of truth : Scope workbook v3 (signed 2026-09-14)
In scope : 203.0.113.0/26
Excluded : 198.51.100.0/25 (third-party processor)
Targets : 14 hosts after exclusion check
Checked by : A. Sokolova-Reyes, 2026-10-08 08:40The vulnerability management context
A penetration test is a point-in-time exercise, but clients usually run a continuous vulnerability management program: an ongoing cycle of discovering assets, scanning them, prioritizing findings, remediating, and verifying fixes. Prairiefold's IT operations team already scanned its servers monthly with a commercial scanner. That raised a fair question from Gwendolyn Tran during the kickoff: what would Ironwhistle find that her own scans did not?
Marguerite's answer described the difference in purpose. Prairiefold's internal program aimed for coverage and trend: are we patching faster this quarter than last? A penetration test aims for depth and proof: which of these weaknesses could an attacker actually chain together, and what would they reach? The tester uses scanners as a starting point, then validates, combines and demonstrates. A finding that the internal program rated medium might become critical in a test report because, combined with two other mediums, it led to domain administrator rights. The reverse also happens: a critical scanner finding that turns out to be unreachable or already mitigated deserves a lower rating, with the evidence to show why.
| Vulnerability scanning program | Penetration test discovery | |
|---|---|---|
| Goal | Coverage and trend over time | Depth, validation and demonstrated impact |
| Frequency | Continuous or scheduled | Point in time, within a window |
| Output | Lists of findings with scanner severity | Validated findings with evidence, context and attack paths |
| Who acts | Operations teams patch and track | Leadership and teams prioritize and fix root causes |
| False positives | Tolerated and tuned over time | Must be removed before reporting |
Thinking like the tester and the defender
Every attack-focused topic in this course pairs the tester's view with the defender's. For discovery, the pairing is natural. The same techniques a tester uses to find weaknesses are the ones a mature defender uses to find them first. Where this course explains what a scanner checks, it also explains how the client can detect the scan, tune its own scanning to catch the same issue, and fix the underlying cause.
Detection is part of the deliverable. Prairiefold's MSSP, which monitors its networks, had been told the scanner source address, but Gwendolyn asked Ironwhistle to note whether the alerts fired as expected. If an external scan of fourteen hosts produced no alert at all, that was itself a finding about monitoring, separate from anything the scan discovered. Tobias added a column to his scan log for the time each scan started and ended, so the team could later line up their activity against Prairiefold's alert timeline.
Worked problem
Separating facts from claims
Tobias's notes for host 203.0.113.20 read: TCP 443 open; web server banner shows version 2.4.49 of a common web server; certificate valid; login page for a remote-access portal; vendor advisory lists a path traversal flaw in that version; the host is therefore vulnerable. Which statements are observations and which is a claim that still needs evidence?
Show solution
- Observations: the port is open, the banner shows a version, the certificate is valid, and a login page is served.
- Background fact: the vendor advisory describes a flaw in that version.
- Claim: the host is vulnerable. It depends on the banner being accurate, the vulnerable module being enabled and no backported fix being present.
- Next step: confirm with an authenticated check or a safe, non-destructive test agreed in the rules of engagement, and record the evidence.
Answer: Everything except the last statement is an observation or background fact; is vulnerable is a claim to validate.
Tobias rewrote his notes that afternoon with two columns, observed and inferred, and found that about a third of what he had written as fact was really inference. Dario said that ratio was normal for a first pass and that the second column was exactly what the scanners and manual checks in the next three weeks were for.
Common mistakes
MistakeTreating an open port or a version banner as a confirmed vulnerability.
InsteadRecord it as an observation, then validate before calling it a finding.
MistakeBuilding scan target lists from everything reconnaissance discovered.
InsteadBuild them from the signed scope and check every target against it.
MistakeExpecting a CVE for every finding.
InsteadUse CWE and evidence for flaws in custom code, which rarely have CVEs.
MistakeAssuming a penetration test duplicates the client's routine scanning.
InsteadUse scans as a starting point, then validate, combine and show impact.
MistakeIgnoring whether the client's monitoring noticed the scans.
InsteadLog scan times so detection can be compared and reported.
Summary and key terms
- Domain 3 of PT0-003 carries 17 percent of the exam and covers vulnerability discovery (3.1), analysis of output (3.2) and physical security concepts (3.3).
- Reconnaissance produces observations; a vulnerability is a claim that a weakness exists and could be exploited on a specific system.
- Discovery combines automated scanning, manual testing and review of code, images and configuration.
- CVE names a vulnerability in a product, CWE a type of weakness, CPE a product and version, and CVSS a severity description.
- Rules of engagement for discovery cover scan windows, intrusive checks, rate limits, scan accounts, exclusions and notification.
- A penetration test validates and combines findings to show real impact, unlike a routine scanning program focused on coverage.
- Vulnerability
- A weakness in a system, configuration or practice that a threat could exploit.
- Weakness
- A type of flaw that can lead to vulnerabilities, cataloged by CWE.
- Exploit
- A method or piece of code that takes advantage of a vulnerability.
- CVE
- A public identifier for a specific disclosed vulnerability in a product.
- CWE
- A catalog of weakness types used to classify flaws, including those in custom code.
- CPE
- A structured naming scheme for products and versions.
- Vulnerability management
- The continuous cycle of finding, prioritizing, fixing and verifying vulnerabilities.
Practice problems
Work each problem on paper first, then reveal the answer to check.
A scanner reports a CVE on a host. Name two reasons the host might not actually be vulnerable.
Show answer
The vendor backported a fix without changing the version, or the vulnerable feature is disabled or unreachable.
Why should scan target lists come from the scope workbook rather than the reconnaissance log?
Show answer
Reconnaissance can discover assets that belong to third parties or are excluded; only the signed scope authorizes testing.
How would you classify a flaw in a client's custom web application that has no CVE?
Show answer
By its CWE weakness type, its behavior and the evidence collected.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.