Intro
L1
·
Quiz
·
Lab
L2
·
Quiz
·
Lab
L3
·
Quiz
·
Lab
L4
·
Quiz
·
Lab
Module Test
AI for Network Penetration Testing · Introduction

The Lockpick Has Always Been a Tool — What Changed Is Who Carries It

Why AI didn't invent offensive network security, but is radically redistributing who can practice it

In 1903, the Italian physicist Guglielmo Marconi staged a public demonstration of "secure" wireless telegraphy for the Royal Institution in London. Before he could transmit a single letter, the magician and inventor Nevil Maskelyne hijacked the frequency and broadcast the word "rats" in Morse code — followed by a ribald poem mocking Marconi. Maskelyne had built a competing wireless system and wanted to prove that Marconi's claims of secrecy were nonsense. The principles he exploited — unauthenticated broadcast, no encryption, implicit trust in the medium — would recur in nearly every major network attack for the next 120 years, from packet injection on early ARPANET to the 2020 SolarWinds supply-chain compromise that reached 18,000 organizations.

What AI is doing to network penetration testing in the mid-2020s closely mirrors what cheap computing did in the late 1980s: it is collapsing the skill threshold required to perform sophisticated reconnaissance, vulnerability chaining, and evasion. When Wietse Venema and Dan Farmer released SATAN — the Security Administrator Tool for Analyzing Networks — in April 1995, the New York Times called it "a potential electronic weapon of mass destruction." What it actually did was automate tasks that previously required expert manual effort, making good security auditing accessible to administrators who weren't full-time security researchers. Tools like Nmap (released 1997) and Metasploit (2003) continued that trajectory. AI-assisted pentesting is the current chapter of the same story.

This course covers the foundational knowledge you need to use AI tools responsibly and effectively in authorized network security assessments. You will review the classical pentest methodology, learn where AI accelerates or distorts each phase, practice with real tool categories, and develop judgment about when AI output should be trusted versus verified. The course assumes you already understand basic networking concepts — TCP/IP, DNS, HTTP — and have encountered terms like port scanning and vulnerability assessment. If any of that is unfamiliar, a networking fundamentals course belongs before this one.

If you finish every module, here's who you become:

  • You'll understand where AI accelerates and where it distorts each phase of classical pentest methodology, from scoping through reporting.
  • You will correlate version and configuration data against CVE and exploit databases using AI tools without outsourcing your judgment to them.
  • You'll reason over BloodHound output, ACL chains, and Kerberos relationships with AI assistance to surface Active Directory attack paths a manual review would miss.
  • You will plan lateral movement and persistence through hybrid environments the way a defender thinks — quietly, observably, and with closeout in mind.
  • You'll become a practitioner who can articulate AI tool involvement transparently in reports that survive procurement and legal scrutiny.
  • You will know how to pivot a network assessment into cloud environments — AWS, Azure, GCP — and recognize where IAM and identity bridges change the trust model.
  • You're becoming someone who hands blue teams better detections after every engagement, not just a findings list.
Module 1 · Lesson 1

The Pentest Methodology: A Map That Actually Holds

Reconnaissance through reporting — why the classic phases still define where AI plugs in
If AI can automate scanning and exploitation, why does methodology still matter?

On April 12, 2022, the US Department of Justice unsealed an indictment against four members of Sandworm, the Russian GRU unit responsible for attacking Ukrainian power infrastructure in December 2015. The indictment described their methodology in unusual technical detail: initial spear-phishing, lateral movement using VPN credentials, SCADA protocol reconnaissance, and finally manual manipulation of industrial control systems to cut power to 230,000 customers. What struck security researchers reading that document was not the sophistication of any individual tool — it was the discipline of the sequence. The attackers spent months in reconnaissance before touching anything destructive. Methodology, not any single exploit, was the decisive factor. The same principle governs every legitimate pentest engagement today.

The Five-Phase Pentest Framework

Professional network penetration testing follows a structured sequence that has remained stable since PTES (the Penetration Testing Execution Standard) was formalized in 2012, and was implicitly practiced well before that. The five phases are: Reconnaissance, Scanning and Enumeration, Exploitation, Post-Exploitation and Lateral Movement, and Reporting. Each phase feeds the next. Skipping or compressing any phase increases both the risk of missed findings and the risk of unintended damage to client systems.

Understanding these phases as a tester — and as someone deploying AI tools — matters because AI assistance is not uniformly distributed across them. It changes recon dramatically, helps enumeration measurably, contributes to exploitation in specific ways, and is almost useless for the judgment calls in post-exploitation and reporting. Knowing this distribution prevents the most common failure mode of AI-assisted pentesting: over-relying on AI in phases where it flatters itself but produces garbage.

Phase 1: Reconnaissance

Passive reconnaissance collects information about the target without directly touching its infrastructure. Sources include WHOIS records, DNS history (tools like SecurityTrails preserve historical records), certificate transparency logs (crt.sh indexes every publicly trusted TLS certificate), job postings (which leak technology stack information), LinkedIn (which reveals org structure and employee roles), and GitHub (where developers frequently commit credentials, internal hostnames, and API keys).

Active reconnaissance involves direct contact with target systems: DNS zone transfer attempts, SMTP VRFY/EXPN commands to enumerate email addresses, and light port probing. Scope agreements always define which active techniques are authorized and when they may begin — this is a legal and contractual boundary, not a technical one.

OSINTOpen Source Intelligence — information gathered from publicly accessible sources without direct interaction with target systems. Certificate transparency logs, Shodan, and LinkedIn are canonical OSINT sources in pentest work.
crt.shA publicly searchable index of certificates issued by publicly trusted Certificate Authorities, maintained by Sectigo. It reveals subdomains and historical infrastructure that is not DNS-resolvable, making it a high-value passive recon tool.

Phase 2: Scanning and Enumeration

Scanning identifies live hosts, open ports, and running services. Nmap, released by Gordon Lyon (Fyodor) in 1997, remains the reference implementation for TCP/UDP port scanning. Its scripting engine (NSE) supports hundreds of service-specific probes. Masscan, released by Robert Graham in 2013, sacrifices depth for speed — it can scan the entire IPv4 address space in under six minutes from a sufficiently provisioned host, making it useful for broad asset discovery in large-scope engagements.

Enumeration goes deeper: it extracts specific version strings, SMB share names, SNMP community strings, LDAP directory structure, and HTTP server headers. Version information is the direct bridge between scanning and exploitation — a host running Apache 2.4.49 in October 2021 was vulnerable to CVE-2021-41773, a path traversal and RCE bug that was actively exploited within 48 hours of disclosure. Without version enumeration, that finding is invisible.

Critical Distinction

Scanning without authorization is illegal under the Computer Fraud and Abuse Act (18 U.S.C. § 1030) in the US and equivalent statutes globally. A signed scope-of-work agreement specifying IP ranges, test windows, and permitted techniques is the non-negotiable prerequisite for every activity in this course when applied to real systems.

Phase 3: Exploitation

Exploitation converts identified vulnerabilities into access. The Metasploit Framework, created by H.D. Moore in 2003 and acquired by Rapid7 in 2009, provides a structured environment for selecting, configuring, and launching exploits against specific service/version combinations. It also manages payloads — the code that runs after successful exploitation — and sessions.

Legitimate pentest exploitation operates within strict constraints: exploit only authorized targets, maintain session logs for the report, avoid payloads that could cause data destruction or service disruption (except where explicitly tested), and document every action with timestamps. These constraints are not optional ethical preferences — they are contractual obligations and, in many jurisdictions, legal requirements under rules of engagement.

Phases 4 and 5: Post-Exploitation and Reporting

Post-exploitation establishes what an attacker could do with obtained access: credential dumping (Mimikatz demonstrated password extraction from Windows LSASS memory in 2007), lateral movement via pass-the-hash or Kerberoasting, persistence mechanisms, and data exfiltration simulation. The goal is not to cause harm but to demonstrate the realistic blast radius of a successful compromise.

Reporting translates technical findings into business risk language. A finding that "SMBv1 is enabled on 47 hosts" becomes actionable only when paired with the specific CVEs it enables (EternalBlue / MS17-010, the NSA exploit weaponized in WannaCry in May 2017), the compensating controls that reduce likelihood, and a CVSS-scored severity with remediation steps. Reports are the deliverable clients pay for; the technical work is the means.

AI Integration Preview

In subsequent modules, you will see AI tools applied specifically in recon (automated OSINT aggregation), scanning interpretation (NLP-assisted service fingerprinting), and report generation (structured finding summarization). The methodology taught in this lesson is the skeleton onto which those AI capabilities attach. Understanding it now means understanding later why AI succeeds in some phases and fails in others.

Lesson 1 Quiz

Five questions · The Pentest Methodology
Which phase of the pentest methodology involves examining certificate transparency logs and job postings without touching target systems?
Correct. Passive recon gathers intelligence from publicly accessible sources — CT logs, WHOIS, LinkedIn — without any direct interaction with target infrastructure.
Passive reconnaissance is the correct answer. It specifically means collecting data without directly touching target systems. CT logs and job postings are classic passive sources.
CVE-2021-41773 was a critical Apache path traversal/RCE bug exploited in the wild within 48 hours of disclosure. What pentest phase would surface the version information needed to identify this vulnerability?
Correct. Version enumeration — a scanning phase activity — exposes the specific Apache 2.4.49 version string that maps to CVE-2021-41773. Without it, the vulnerability is invisible.
Scanning and enumeration is correct. Service version strings are collected during this phase, forming the direct bridge between discovery and exploitation selection.
The Penetration Testing Execution Standard (PTES) was formalized in which year?
Correct. PTES was formalized in 2012, codifying phases that practitioners had followed informally for years before that.
PTES was formalized in 2012. It standardized what experienced practitioners had been doing informally for years.
Which of the following best describes the primary deliverable of a pentest engagement from the client's perspective?
Correct. The report is what clients pay for. Raw technical findings — open ports, CVE IDs — have no actionable value until they are translated into business risk language with prioritized remediation steps.
The report is the primary deliverable. Clients need business risk language and remediation guidance, not raw Metasploit logs or a list of ports.
The Sandworm GRU unit's 2015 Ukrainian power grid attack, described in the 2022 DOJ indictment, was notable primarily because it demonstrated what about pentesting methodology?
Correct. The attackers spent months in patient reconnaissance before touching anything destructive, demonstrating that disciplined methodology — not sophisticated tools — was the decisive factor.
The key lesson from the Sandworm indictment was methodological discipline: extensive, patient reconnaissance preceding destructive action. Individual tool sophistication was secondary.

Lab 1 · Mapping the Methodology

Conversational exercise · Pentest phase identification and sequencing

Lab Objectives

In this lab you will use the AI assistant to practice applying the five-phase pentest methodology to realistic scenarios. The assistant will present situations and ask you to identify phases, justify sequencing decisions, and flag scope/authorization issues.

Complete at least three substantive exchanges to finish the lab.

Start by telling the assistant which pentest phase you find most conceptually difficult, or ask it to give you a scenario to classify.
AI Lab Assistant
Pentest Methodology
Welcome to Lab 1. We're focusing on the five-phase pentest methodology — recon, scanning/enumeration, exploitation, post-exploitation, and reporting. Tell me which phase feels fuzziest to you, or ask me to walk you through a scenario and you can identify what phase each action belongs to. Either way works.
Module 1 · Lesson 2

Network Architecture Fundamentals for Testers

Subnets, VLANs, DMZs, and trust zones — the terrain every pentest navigates
How does network segmentation change what a compromised host actually gives you?

When Target Corporation suffered its catastrophic 2013 breach — 40 million payment cards stolen between November 27 and December 15 — the initial entry point was not a Target system at all. Attackers compromised Fazio Mechanical Services, a Pennsylvania HVAC contractor with remote network access to Target's facility management systems. Because Target had not properly segmented its corporate network from its point-of-sale environment, the attackers pivoted from a vendor credential to the POS network in a series of lateral moves. The breach cost Target $162 million in direct expenses, the resignation of its CIO and CEO, and a fundamental restructuring of its security architecture. The lesson network testers have internalized since 2013: the first system you land on is almost never the one that matters — what matters is what you can reach from it.

IP Addressing and Subnetting

IPv4 addressing divides the 32-bit address space into network and host portions via a subnet mask. A /24 network (255.255.255.0) contains 254 usable host addresses; a /16 contains 65,534. For a pentester, subnet boundaries matter because they define broadcast domains and routing decisions. Traffic between subnets must pass through a router or layer-3 switch — a controlled chokepoint that may apply access control lists (ACLs) or firewall rules.

RFC 1918 defines the private IPv4 ranges: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16. Internal corporate networks almost universally use these ranges. When you gain access to an internal host, reading its routing table (ip route on Linux, route print on Windows) immediately reveals what network segments the host can reach — and therefore what pivoting paths exist.

CIDRClassless Inter-Domain Routing — the notation (e.g., 192.168.1.0/24) that specifies both a network address and its prefix length, replacing the older class-based A/B/C system. Essential for scoping port scans correctly.

VLANs and Segmentation

Virtual LANs (VLANs) segment layer-2 broadcast domains on managed switches, creating logical separation without physical cable separation. A properly configured VLAN prevents a host on the guest Wi-Fi VLAN from sending ARP requests to hosts on the corporate VLAN — they are isolated at layer 2, and inter-VLAN traffic must traverse a router with associated ACLs.

VLAN hopping attacks exploit misconfigured trunk ports. In a switch spoofing attack, an attacker configures their NIC to send 802.1Q-tagged frames, tricking a misconfigured switch into establishing a trunk link and forwarding all VLAN traffic to the attacker's port. This attack requires that the switch port be configured with DTP (Dynamic Trunking Protocol) in auto or desirable mode — a misconfiguration that remains disturbingly common in enterprise switches. The fix is to explicitly disable DTP on all access ports with the Cisco command switchport nonegotiate.

DMZ Architecture and Trust Zones

A demilitarized zone (DMZ) is a network segment that sits between the public internet and the internal corporate network, hosting services that must be publicly accessible — web servers, mail servers, DNS servers — while preventing direct internet access to internal hosts. The classic three-legged firewall design places the DMZ on a separate interface from both the internet-facing interface and the internal network interface.

From a pentest perspective, the DMZ is typically the most accessible attack surface. A successful compromise of a DMZ host then presents the question: can you pivot inward? Well-architected DMZs use strict firewall rules allowing DMZ hosts to initiate connections only to specific internal resources (e.g., a database server on port 1433) and blocking all other inbound connections from the DMZ to the internal network. Poorly architected DMZs allow DMZ hosts broad internal access — exactly the kind of flat network architecture that enabled the Target breach.

Trust ZoneA logical network segment defined by a consistent security policy. The internet is an untrusted zone; the DMZ is a semi-trusted zone; the internal network is a trusted zone. Firewall rules express permitted traffic flows between trust zones.
PivotUsing an already-compromised host as a relay to reach network segments that are not directly accessible from the attacker's position. Requires routing or proxying through the compromised host.

Protocols Testers Encounter Most

SMB (TCP 445): Microsoft's Server Message Block protocol for file and printer sharing. SMBv1 (disabled by Microsoft in 2017 following WannaCry) was the vector for EternalBlue. SMBv2/v3 have their own history of vulnerabilities; SMBGhost (CVE-2020-0796) allowed unauthenticated RCE against Windows 10 systems in 2020. SMB is the first thing experienced testers probe on a Windows-heavy network.

LDAP (TCP 389 / LDAPS 636): Lightweight Directory Access Protocol — the query interface to Active Directory. Anonymous LDAP binds (disabled by default since Windows Server 2003 SP1 but frequently re-enabled) allow unauthenticated enumeration of users, groups, computers, and GPOs. Even with authentication required, any valid domain credential allows extensive directory enumeration.

SNMP (UDP 161): Simple Network Management Protocol, present on nearly every managed network device. SNMP v1 and v2c use community strings (essentially passwords transmitted in cleartext) for authentication. The default community string "public" provides read access on a surprising fraction of production devices. SNMP can reveal full network topology, routing tables, and interface configurations.

For AI Tool Users

AI-assisted scanners can auto-interpret Nmap output and map discovered services to known vulnerabilities — but they cannot infer network architecture from a single host scan. Understanding subnets, VLANs, and DMZs manually is required to correctly interpret what AI-assisted pivot suggestions actually mean and whether they are feasible in the engagement's network topology.

Lesson 2 Quiz

Five questions · Network Architecture Fundamentals
The 2013 Target breach began with credentials stolen from which type of vendor?
Correct. Fazio Mechanical Services, an HVAC contractor, had remote access to Target's facility management systems. Insufficient network segmentation allowed attackers to pivot from there to the POS environment.
The breach started at Fazio Mechanical Services, an HVAC contractor. Their remote access credentials were stolen, and poor network segmentation enabled the pivot to Target's POS systems.
Which RFC defines the private IPv4 address ranges 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16?
Correct. RFC 1918 (published 1996) defines the three private IPv4 address blocks used by virtually all internal corporate networks today.
RFC 1918 defines the private IPv4 ranges. RFC 793 is TCP, RFC 2460 is IPv6, and RFC 4271 is BGP.
A VLAN hopping attack via switch spoofing requires what misconfiguration on the target switch port?
Correct. DTP (Dynamic Trunking Protocol) in auto or desirable mode allows an attacker's NIC sending 802.1Q-tagged frames to negotiate a trunk link, gaining access to all VLANs.
The required misconfiguration is DTP enabled in auto or desirable mode. The fix is to explicitly run `switchport nonegotiate` on all access ports.
SMBGhost (CVE-2020-0796) affected which version of SMB?
Correct. CVE-2020-0796 was a compression vulnerability in SMBv3.1.1 affecting Windows 10 and Server 2019, allowing unauthenticated remote code execution without any user interaction.
SMBGhost targeted SMBv3 (specifically version 3.1.1). It allowed unauthenticated RCE against Windows 10 and Server 2019 via a buffer overflow in SMBv3's compression handling.
After compromising an internal Linux host during a pentest, which command would immediately reveal what other network segments the host can reach?
Correct. `ip route` displays the host's routing table, immediately revealing what subnets the host can route to — which defines what pivot targets are accessible through it.
`ip route` is the right answer. It shows the routing table and reveals accessible subnets for pivoting. `ifconfig` shows interface addresses but not routes; `arp -a` shows recently contacted hosts; `netstat -an` shows active connections.

Lab 2 · Network Architecture Triage

Conversational exercise · Interpreting network topology for pivot decisions

Lab Objectives

Practice interpreting hypothetical network configurations to determine pivot feasibility and segmentation weaknesses. The assistant will present you with network snippets — routing tables, VLAN configs, firewall rule descriptions — and ask you to reason through what an attacker could and could not reach.

Complete at least three substantive exchanges to finish the lab.

Ask the assistant to give you a network topology scenario to analyze, or describe a network setup you want to reason through together.
AI Lab Assistant
Network Architecture
Lab 2 ready. I can give you a network topology to analyze — routing tables, VLAN configs, firewall rule summaries — and you reason through what pivot paths exist or don't. Alternatively, describe a network setup you're thinking through and we'll work it together. What would you like to start with?
Module 1 · Lesson 3

Vulnerability Classes and the CVE Ecosystem

CVSS scoring, NVD, exploit databases — reading the intelligence that drives pentest prioritization
When a CVE is published, what does a pentester actually need to know before deciding whether it matters for an engagement?

On March 2, 2021, Microsoft released emergency patches for four zero-day vulnerabilities in Exchange Server — CVE-2021-26855, 26857, 26858, and 27065 — later attributed to the Chinese state-sponsored group HAFNIUM. Within 72 hours of the patches appearing, automated scanning activity by at least ten distinct threat actors was detected against unpatched Exchange servers globally. By March 12, the FBI reported that approximately 30,000 US organizations had been compromised. The speed of that exploitation wave — from patch to mass compromise in days — illustrates a dynamic that defines modern pentesting: the window between CVE publication and reliable public exploit availability has collapsed. For both attackers and defenders, reading the CVE ecosystem accurately and quickly is now a core operational skill.

The CVE System

The Common Vulnerabilities and Exposures (CVE) system was created by MITRE in 1999. Each CVE identifier (e.g., CVE-2021-26855) uniquely names a publicly disclosed vulnerability. The National Vulnerability Database (NVD), maintained by NIST, enriches CVE records with CVSS scores, CWE classifications, CPE affected-product strings, and reference links. The NVD is the authoritative scoring source for most enterprise vulnerability management programs.

CVEs are assigned by CVE Numbering Authorities (CNAs) — vendors, research organizations, and bug bounty programs authorized to assign CVE IDs within their scope. MITRE serves as the root CNA and handles disclosures outside other CNAs' scope. As of 2024, over 240,000 CVEs have been published, with roughly 25,000 new CVEs added per year. Volume alone makes unfiltered CVE monitoring useless; pentesting requires learning to quickly triage which CVEs matter for a given engagement.

CVSS: Reading Scores Correctly

The Common Vulnerability Scoring System (CVSS), currently at version 3.1 (with v4.0 published in 2023), produces a numeric severity score from 0 to 10 based on a vector string encoding eight base metrics: Attack Vector, Attack Complexity, Privileges Required, User Interaction, Scope, Confidentiality Impact, Integrity Impact, and Availability Impact.

A score of 9.8 (Critical) does not mean a vulnerability is actively exploitable against any given target. It means that if the vulnerable service is exposed and reachable, exploitation is likely low-complexity. Context matters enormously: a Critical-scored RCE in a service that is not installed on any target system is zero risk to that engagement. A Medium-scored SSRF vulnerability (say, a 6.5) in a cloud-hosted application that can reach instance metadata endpoints (as in the 2019 Capital One breach, where Paige Thompson used SSRF to query AWS metadata and obtain IAM credentials) may be the most consequential finding in the entire report.

CVSS Vector StringA compact encoding of all CVSS base metric values, e.g., CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. Reading vector strings directly is faster than reading score descriptions for experienced testers.
CWECommon Weakness Enumeration — a taxonomy of software and hardware weakness types. CWE-79 is Cross-Site Scripting; CWE-89 is SQL Injection; CWE-416 is Use After Free. CVEs are mapped to CWEs to classify root cause.

Exploit Databases and Intelligence Sources

Exploit-DB (exploit-db.com), maintained by Offensive Security, is the primary public repository of exploits and shellcodes correlated to CVEs. When evaluating whether an exploit exists for a discovered vulnerability, Exploit-DB is the first stop. Entries include proof-of-concept code, affected versions, and a verification status.

CISA KEV (Known Exploited Vulnerabilities catalog), launched in November 2021, lists CVEs for which CISA has evidence of active exploitation in the wild. US federal agencies are required to patch KEV-listed vulnerabilities within specified deadlines. For pentesters, the KEV is an authoritative shortcut: if a vulnerability found on a target is in the KEV catalog, it is being actively weaponized, and the finding warrants Critical priority in the report regardless of CVSS score.

Shodan (shodan.io), launched by John Matherly in 2009, indexes internet-connected devices by banner and response data. A Shodan search for vuln:CVE-2021-26855 returned results for tens of thousands of unpatched Exchange servers in the days following the March 2021 disclosure, giving both attackers and defenders real-time visibility into global exposure.

Vulnerability Classes Testers Encounter Most

Injection (CWE-89, CWE-78): SQL injection and OS command injection remain in the OWASP Top 10 for 2021 (as A03 Injection). SQLi is frequently encountered in legacy web applications and internal tools built without parameterized queries.

Authentication weaknesses: Default credentials, credential stuffing, password spraying, and broken session management. The 2016 Mirai botnet infected 600,000+ IoT devices almost entirely via default credentials — admin/admin, root/root — demonstrating that credential hygiene failures scale catastrophically.

Unpatched software: The most common critical finding in enterprise pentests. EternalBlue (MS17-010) exploits were still being detected on corporate networks four years after the WannaCry pandemic because patch deployment at enterprise scale is genuinely hard.

Misconfiguration: Overly permissive firewall rules, anonymous access to SMB shares, world-readable S3 buckets, weak SNMP community strings. The 2017 Equifax breach (affecting 147 million Americans) was initiated through CVE-2017-5638, an Apache Struts vulnerability for which a patch had been available for two months before Equifax's systems were compromised.

AI and Vulnerability Triage

AI tools can rapidly cross-reference discovered service versions against CVE databases and generate initial triage summaries. The limitation is that they cannot assess exploitability in context — whether a firewall blocks the affected port, whether compensating controls exist, whether the installed version actually matches the vulnerable range. That contextual judgment remains the tester's job.

Lesson 3 Quiz

Five questions · Vulnerability Classes and the CVE Ecosystem
The HAFNIUM Exchange Server compromises in March 2021 are significant for pentest practitioners primarily because they demonstrated what?
Correct. 30,000 US organizations were compromised within days of patch release, demonstrating that the exploitation window is now measured in days — not weeks — after CVE publication.
The key lesson is timeline collapse: from patch publication to mass exploitation took roughly 10 days, with multiple threat actors scanning within 72 hours. Pentesters need to triage CVE relevance fast.
The CISA Known Exploited Vulnerabilities (KEV) catalog was launched in which year?
Correct. The KEV catalog launched in November 2021. It requires US federal agencies to remediate listed vulnerabilities within specified deadlines and serves as an authoritative active-exploitation indicator for pentesters.
The CISA KEV catalog launched in November 2021. It is the authoritative list of vulnerabilities with confirmed active exploitation in the wild.
In the 2019 Capital One breach, Paige Thompson exploited a Server-Side Request Forgery (SSRF) vulnerability to reach which critical resource?
Correct. The SSRF vulnerability allowed Thompson to query the EC2 instance metadata service at 169.254.169.254, retrieving IAM role credentials that granted access to over 100 S3 buckets containing customer data.
The SSRF reached the AWS metadata endpoint (169.254.169.254), returning IAM credentials. This is a classic example of a medium-CVSS vulnerability having critical real-world impact due to cloud context.
The 2017 Equifax breach began with exploitation of CVE-2017-5638. What product did this CVE affect?
Correct. CVE-2017-5638 is a remote code execution vulnerability in Apache Struts 2's multipart request parser. A patch was available for two months before Equifax's systems were compromised, affecting 147 million Americans.
CVE-2017-5638 affected Apache Struts 2. The patch was available for two months before the breach — making Equifax's failure a patch management failure, not a zero-day scenario.
A CVSS 3.1 base score of 9.8 (Critical) on a CVE for a remote code execution vulnerability means which of the following?
Correct. CVSS base scores assume the vulnerable component is present and accessible. A Critical score does not mean the service is installed on the target or that the network permits access to it. Contextual assessment is required.
CVSS base scores describe severity under worst-case conditions — the service is present and reachable. Whether those conditions actually apply to a specific target requires the tester's contextual judgment.

Lab 3 · CVE Triage Practice

Conversational exercise · Reading and contextualizing CVE data for engagements

Lab Objectives

Practice the triage process: given a CVE identifier and an engagement context, determine whether the vulnerability is relevant, exploitable as discovered, and how it should be prioritized in a report. The assistant will provide CVE details and engagement snippets for you to analyze.

Complete at least three substantive exchanges to finish the lab.

Ask the assistant for a CVE triage scenario, or name a real CVE you'd like to walk through together.
AI Lab Assistant
CVE Triage
Lab 3 ready. I'll give you CVE details alongside a snippet of engagement context — service versions found, network position, observed controls — and you work through whether the finding is relevant, how exploitable it is in context, and what priority it deserves in the report. Ready when you are. Ask for a scenario or name a CVE you want to practice with.
Module 1 · Lesson 4

Scope, Authorization, and Legal Frameworks

Rules of engagement, the CFAA, and why the line between pentest and crime is a document — not intent
If a pentester discovers they have inadvertently accessed a system outside the agreed scope, what must happen next — and why?

In August 2019, security researcher Chris Vickery reported that he had discovered an exposed MongoDB database containing personal data on 198 million American voters. He found it while conducting what he described as routine research into misconfigured cloud storage — not as part of any authorized engagement. The data belonged to Deep Root Analytics, a contractor for the Republican National Committee. Vickery faced no charges, in part because he did not download or use the data, immediately reported it, and the database was publicly accessible without authentication. But his situation illustrates the fragility of the legal position for researchers who operate without explicit authorization: the Computer Fraud and Abuse Act's language about "exceeding authorized access" and "unauthorized access to protected computers" is broad enough that a prosecutor's decision, not technical behavior, is often the deciding factor. Authorization documents are not bureaucratic paperwork. They are the legal firewall that separates a pentester from a criminal.

Scope of Work and Rules of Engagement

Every legitimate penetration test engagement is governed by two core documents: the Statement of Work (SoW) and the Rules of Engagement (RoE). Together they define what is permitted, what is prohibited, who has the authority to authorize testing, and what happens when something goes wrong.

The SoW specifies: the IP ranges or domain names in scope, any explicitly out-of-scope systems (often including production databases, medical devices, OT/ICS networks), the test window (dates and hours during which testing is permitted), and the names of personnel authorized to grant expanded scope or pause testing. The SoE specifies: permitted attack techniques (black-box vs. gray-box vs. white-box), whether social engineering is in scope, whether physical testing is included, and the emergency halt procedure.

Critical Practice Rule

If during a test you discover you have accessed a system or data that is outside the agreed scope — whether through a misconfigured pivot, an unexpected trust relationship, or a miscounted IP range — you must stop immediately, document the access with timestamps, and notify the client's designated point of contact. Continuing is both a contractual violation and potentially a criminal act.

The Computer Fraud and Abuse Act (CFAA)

The Computer Fraud and Abuse Act (18 U.S.C. § 1030), originally passed in 1986 and amended most significantly in 1994, 1996, 2001 (USA PATRIOT Act), and 2008, criminalizes unauthorized access to protected computers — a category that covers essentially all computers connected to the internet. The statute's intentional ambiguity ("exceeds authorized access") means that authorization from the owner of target systems is the non-negotiable legal prerequisite for any active testing.

In June 2021, the Supreme Court's ruling in Van Buren v. United States narrowed the CFAA's "exceeds authorized access" provision: it does not cover accessing information for improper purposes from a system you are already authorized to access. But it provides no protection for accessing systems for which you have no authorization at all. For pentesters, the practical implication is unchanged: explicit written authorization from the system owner remains legally essential.

Get-Out-of-Jail LetterIndustry slang for the authorization letter signed by the client's C-suite or legal counsel, carried by pentesters during on-site engagements. If law enforcement is called, this document demonstrates authorized testing — it does not guarantee immunity but establishes the factual record that authorization existed.

International Legal Considerations

The CFAA governs activity touching US systems. Equivalent statutes include the UK's Computer Misuse Act 1990 (amended 2015), Germany's § 202a–202d StGB (Ausspähen von Daten), and the EU's Directive on Attacks Against Information Systems (2013/40/EU). Testing a system hosted in one country from a tester located in another country creates potential jurisdiction overlap — both countries' laws may apply simultaneously.

Bug bounty programs (HackerOne, Bugcrowd) publish explicit safe harbor terms that define the legal protections their programs extend to researchers. Reading the safe harbor before submitting any report is essential: some programs do not extend safe harbor to automated scanning, others exclude specific asset types. The 2016 case of security researcher Justin Shafer, prosecuted under the CFAA for accessing dental X-ray software he believed was in the scope of his authorized research, illustrates how the boundaries of safe harbor are contested in practice.

Data Handling During Engagements

During a pentest, testers frequently encounter real sensitive data: database dumps containing PII, email archives, credential files, medical records. The standard practice is to document the finding (capture sufficient evidence to demonstrate access — a screenshot showing column headers, a partial record count) without retaining the actual sensitive data. Most SoWs explicitly prohibit exfiltrating real customer data even as proof-of-concept.

Pentest reports that include real customer PII, credentials, or health information create legal exposure for both the testing firm and the client. Evidence of vulnerability can always be demonstrated without retaining the actual sensitive content — a screenshot of a database table structure is sufficient evidence of SQL injection without copying the rows.

AI Tools and Legal Scope

AI-assisted recon tools — including automated OSINT aggregators and AI-driven scanners — are subject to the same authorization requirements as manual techniques. An AI tool that autonomously expands its scanning scope beyond the agreed IP range does not transfer legal liability to the AI. The tester who deployed it is responsible for every packet sent. Configure scope restrictions in AI tools before deployment, not after.

Lesson 4 Quiz

Five questions · Scope, Authorization, and Legal Frameworks
During a pentest, you realize that a pivot you executed has given you access to a database server that is explicitly listed as out-of-scope in the SoW. What is the correct immediate action?
Correct. Stopping immediately, documenting the access, and notifying the client is both the contractual obligation and the action that protects you legally. Continuing — or covering it up — converts an accident into a deliberate violation.
You must stop, document, and notify immediately. Continuing constitutes a deliberate violation. Saying nothing exposes you to both contractual and criminal liability.
The Supreme Court's 2021 ruling in Van Buren v. United States clarified the CFAA's "exceeds authorized access" provision. What did it hold?
Correct. Van Buren narrowed the "exceeds authorized access" clause — it cannot be used to prosecute people who access systems they are permitted to use but for unauthorized purposes. It provides zero protection against accessing systems for which no authorization exists.
Van Buren v. United States narrowed "exceeds authorized access" to exclude misuse of permitted access — but accessing systems you have no authorization to access remains fully prohibited under the CFAA.
What is the practical evidentiary standard for documenting a SQL injection finding that exposes real customer PII in a production database?
Correct. Table structure and row counts demonstrate the vulnerability without retaining actual sensitive data. Most SoWs explicitly prohibit exfiltrating real customer data even as proof-of-concept evidence.
The correct approach is to show table structure and row counts — sufficient proof without retaining actual PII. Exfiltrating real customer records creates liability for both the firm and the client.
The UK's Computer Misuse Act was originally passed in which year?
Correct. The UK Computer Misuse Act was passed in 1990, four years after the US CFAA (1986). It was most recently amended in 2015 to address more severe sentences for attacks on national infrastructure.
The UK Computer Misuse Act was passed in 1990. The US CFAA came first in 1986. Most other comparable national statutes followed in the 1990s–2000s.
An AI-assisted recon tool automatically expands its scanning scope beyond the IP ranges in the agreed SoW. Who bears legal responsibility?
Correct. The tester who deploys an AI tool is responsible for every action it takes. "The AI did it" is not a legal defense. Scope restrictions must be configured before deployment.
The deploying tester bears responsibility. Autonomous AI behavior does not constitute a legal defense. Scope must be configured before the tool runs, not corrected after unauthorized scanning has already occurred.

Lab 4 · Rules of Engagement Drafting

Conversational exercise · Scoping decisions and authorization document analysis

Lab Objectives

Practice the scoping and authorization thinking that precedes every real engagement. The assistant will present engagement scenarios with incomplete or problematic scope definitions, and you will identify gaps, propose corrections, and reason through edge cases involving out-of-scope access and data handling.

Complete at least three substantive exchanges to finish the lab.

Ask the assistant for a scoping scenario to analyze, or describe an authorization edge case you want to think through.
AI Lab Assistant
Scope & Authorization
Lab 4 — scope and authorization. I can give you a scenario with a flawed or incomplete SoW/RoE and you identify the problems, or we can walk through an authorization edge case together. These judgment calls are what separate professional pentesters from people who cause expensive incidents. What scenario would you like to start with?

Module 1 Test

15 questions · Pass at 80% (12/15) · Network Pentesting Foundations
1. Which pentest phase involves using crt.sh to discover subdomains without touching target infrastructure?
Correct. crt.sh is a certificate transparency log search tool — a passive OSINT source that requires no direct target interaction.
crt.sh is a passive OSINT source (certificate transparency logs). Querying it is passive reconnaissance — no target systems are contacted.
2. Masscan was released by Robert Graham primarily to solve which limitation of Nmap?
Correct. Masscan trades depth for speed — it can scan the entire IPv4 space in under six minutes, making it the tool of choice for broad asset discovery across large IP ranges.
Masscan addresses Nmap's speed limitation at scale. It sacrifices service depth for the ability to scan massive IP ranges in minutes rather than days.
3. The 2013 Target breach's pivoting path from HVAC vendor to POS network illustrates what fundamental security failure?
Correct. The absence of proper segmentation between the facility management VLAN and the POS VLAN allowed attackers to pivot from a low-value contractor credential to 40 million payment cards.
The core failure was network segmentation — the POS network should have been isolated from vendor access systems. Any valid credential reaching the facility management system should not have been able to reach POS.
4. Which SNMP version transmits community strings in cleartext, making network sniffing a viable credential-harvesting technique against it?
Correct. SNMPv1 and v2c use community strings transmitted as cleartext. SNMPv3 introduced proper authentication and encryption, but v1/v2c remain widely deployed on managed network devices.
SNMPv1 and v2c use cleartext community strings. SNMPv3 is the only version with actual authentication and encryption support.
5. EternalBlue (MS17-010) was the NSA exploit weaponized in WannaCry. What protocol and port does it target?
Correct. EternalBlue exploits a buffer overflow in Windows SMBv1 (TCP 445). WannaCry in May 2017 used it to spread to 200,000+ systems across 150 countries in 24 hours.
EternalBlue targets SMBv1 on TCP 445. Blocking port 445 at network boundaries and disabling SMBv1 were the immediate mitigations after WannaCry.
6. The CVE system was created by MITRE in which year?
Correct. The CVE system was created by MITRE in 1999 to provide a standardized naming convention for publicly disclosed vulnerabilities.
MITRE created the CVE system in 1999. It now contains over 240,000 entries with roughly 25,000 new CVEs added per year.
7. A classic three-legged DMZ firewall places the DMZ on a separate interface to achieve what?
Correct. The three-legged DMZ places internet-facing services in a controlled middle zone while firewall rules govern what DMZ hosts can reach internally — limiting blast radius from a compromised DMZ host.
The DMZ isolates public-facing services and enforces strict firewall rules between all three segments (internet, DMZ, internal). A compromised DMZ host should not be able to reach the internal network freely.
8. The Mirai botnet (2016) primarily compromised IoT devices through what vulnerability class?
Correct. Mirai used a dictionary of 62 default username/password combinations to compromise ~600,000 IoT devices. The attack required no novel exploitation — just automated credential stuffing against internet-exposed management interfaces.
Mirai used default credentials. Its credential list of 62 combinations compromised ~600,000 devices, demonstrating the catastrophic scale of credential hygiene failures.
9. In the context of CVSS 3.1, which Attack Vector value represents a vulnerability exploitable only from the same physical or logical network segment as the target?
Correct. Adjacent (AV:A) means the attacker must be on the same network segment — the same VLAN, broadcast domain, or subnet. It's more restricted than Network (remotely exploitable) but less restricted than Local (requires a local account).
Adjacent (AV:A) requires the attacker to be on the same network segment. Network (AV:N) means remotely exploitable; Local (AV:L) requires local access; Physical (AV:P) requires hands-on hardware access.
10. Shodan was launched by John Matherly in which year?
Correct. Shodan launched in 2009. It indexes internet-connected devices by banner and response data, enabling searches for specific services, versions, and — since its vuln search feature was added — specific CVEs.
Shodan was launched in 2009 by John Matherly. It became the standard external attack surface visibility tool for both offensive and defensive security work.
11. The PTES (Penetration Testing Execution Standard) defines how many primary pentest phases?
Correct. PTES defines five phases: Reconnaissance, Scanning and Enumeration, Exploitation, Post-Exploitation/Lateral Movement, and Reporting.
PTES defines five phases: Reconnaissance, Scanning and Enumeration, Exploitation, Post-Exploitation, and Reporting. OWASP Testing Guide uses a similar five-phase structure.
12. Which of the following best describes the purpose of an LDAP anonymous bind in the context of Active Directory enumeration?
Correct. An anonymous LDAP bind (when permitted) allows any host on the network to query the directory without credentials — exposing the full AD schema including user accounts, group memberships, computer objects, and GPO names.
Anonymous LDAP binds allow unauthenticated directory queries — users, groups, computers, and GPO names — without any credentials. Disabled by default since Server 2003 SP1 but frequently re-enabled by administrators for legacy application compatibility.
13. The Computer Fraud and Abuse Act was originally passed in which year?
Correct. The CFAA was originally passed in 1986, amended significantly in 1994, 1996, 2001, and 2008. It predates the public internet, which is why its language ("protected computer" and "exceeds authorized access") has required repeated judicial interpretation.
The CFAA was passed in 1986 — the same year as the UK's Data Protection Act. The UK Computer Misuse Act came four years later in 1990.
14. VLAN hopping via switch spoofing can be prevented on Cisco switches by running which command on all access ports?
Correct. `switchport nonegotiate` disables DTP on the port, preventing it from responding to trunk negotiation frames from a connected attacker. `switchport mode access` helps but does not fully prevent DTP-based attacks without also disabling negotiation.
`switchport nonegotiate` disables DTP trunk negotiation entirely. Best practice is to combine it with `switchport mode access` to explicitly set the port type and disable negotiation.
15. From a pentester's perspective, what is the most significant limitation of AI tools that auto-generate vulnerability triage summaries from scan results?
Correct. AI triage tools summarize what the data says, not what the network actually permits. Contextual judgment — firewall rules, compensating controls, confirmed version ranges, network reachability — remains the tester's responsibility.
The fundamental limitation is contextual: AI tools cannot assess whether a discovered vulnerability is actually exploitable given real network constraints. That judgment requires the tester's direct knowledge of the environment.