35% of PT0-003 — the largest domain — the hands-on exploitation core of the exam
Practice — Domain 4
4.2 Authentication attacks (password spraying)
During an external assessment, a tester needs valid domain credentials but must avoid triggering account lockouts. They submit a single common password such as 'Spring2026!' against hundreds of different usernames, then pause before attempting a second password. Which authentication attack does this describe?
Answer
Correct answerB · Password spraying
Password spraying tries one common password across many accounts to stay under per-account lockout thresholds, exactly the low-and-slow technique the scenario describes.
Why the other options are wrong
ATargeting one account with many passwords is single-account brute forcing, which quickly trips the lockout the tester is deliberately trying to avoid, so it does not match.
CCredential stuffing replays username and password pairs stolen from prior breaches, not a single attacker-chosen password sprayed across many accounts, so the underlying mechanism differs.
DPass-the-hash authenticates with a captured NTLM hash and never submits password guesses, so it cannot explain attempts of a cleartext password against many usernames.
Spraying = one common password vs many accounts to dodge lockout (MITRE T1110.003; Microsoft Entra ID Protection)
4.2 Authentication attacks (credential stuffing)
A web team asks a tester to evaluate the risk from a recent third-party breach in which a large list of username and password pairs leaked. The tester automates submission of those leaked pairs against the application's login form, relying on users reusing passwords. Which attack is being simulated?
Answer
Correct answerC · Credential stuffing
Credential stuffing is the automated injection of breached username and password pairs to take over accounts where users reused the same password, matching the scenario precisely.
Why the other options are wrong
APassword spraying uses one or a few common passwords against many accounts; here the tester replays specific leaked pairs, so the defining mechanism is different.
BBrute force systematically generates or iterates candidate passwords, while the scenario reuses already-known credentials from a breach, which is the hallmark of a different attack.
DKerberoasting cracks encrypted Kerberos service tickets offline and is unrelated to replaying leaked web credentials against a login form, so it does not apply here.
A tester uses a tool to repeatedly submit thousands of candidate passwords from a wordlist against a single administrator account on an internet-exposed SSH service until one succeeds. Which control most directly limits the effectiveness of this online attack?
Answer
Correct answerA · Account lockout after repeated failed logons
Locking or throttling an account after a threshold of failed logons directly defeats online brute forcing by cutting off the high volume of guesses the attack depends on.
Why the other options are wrong
BFull-disk encryption protects data if hardware is stolen, yet it has no effect on an attacker guessing valid credentials against a running, network-exposed SSH service.
CVerifying the host key fingerprint defends against on-path interception of the session, but it does nothing to slow repeated password guesses aimed at the account.
DSegmenting the management VLAN limits who can reach the service, yet once reachable the brute-force guessing rate is unchanged, so it is not the most direct control.
On an internal Active Directory engagement, a tester holding a normal domain user account requests Kerberos service tickets for accounts that have service principal names set, then takes the returned tickets offline to crack the service accounts' passwords. Which attack is this?
Answer
Correct answerD · Kerberoasting
Kerberoasting requests TGS tickets for SPN-bound service accounts and cracks their RC4-encrypted portion offline to recover the service account password, exactly as described.
Why the other options are wrong
AAS-REP roasting abuses accounts that have Kerberos pre-authentication disabled and cracks AS-REP material; this scenario cracks TGS service tickets tied to SPNs, a distinct technique.
BPass-the-ticket reuses a stolen valid Kerberos ticket to authenticate directly and involves no offline password cracking of service accounts, so it does not fit the described workflow.
CA golden ticket forges a ticket-granting ticket using the KRBTGT account hash; the scenario instead requests legitimate service tickets to crack offline, a different objective entirely.
Kerberoasting = request SPN service tickets, crack offline for service-account password (MITRE T1558.003; Impacket GetUserSPNs)
4.2 Authentication attacks (pass-the-hash)
After dumping NTLM hashes from a compromised workstation, a tester authenticates to other systems as the captured user by supplying the hash directly to the authentication protocol, never recovering or typing the cleartext password. Which technique is this?
Answer
Correct answerB · Pass-the-hash
Pass-the-hash authenticates as a user by presenting the captured NTLM hash to the protocol, bypassing the step that needs the cleartext password, which matches the scenario.
Why the other options are wrong
AKerberoasting cracks service-ticket encryption offline to recover passwords; here the tester never cracks anything and instead reuses the hash itself, so the mechanism is different.
CCredential stuffing replays leaked cleartext username and password pairs against logins; it does not use a raw hash as the authenticator, so it does not describe this lateral movement.
DPassword spraying submits common cleartext passwords across many accounts, while the tester here submits a hash for one known user, so the spraying pattern does not apply.
PtH = authenticate with captured NTLM hash, no cleartext password (MITRE T1550.002; Microsoft PtH mitigation paper)
4.1 Network attacks (name-resolution poisoning)
On an internal network, a tester runs a tool that listens for LLMNR and NBT-NS broadcast name-resolution requests and answers them with the tester's own host, causing victims to send authentication material to the tester. Which attack is being performed?
Answer
Correct answerA · LLMNR/NBT-NS poisoning
By answering LLMNR and NBT-NS broadcasts as a spoofed authoritative responder, the tester forces victims to authenticate to their host and captures the credentials, which is name-resolution poisoning.
Why the other options are wrong
BARP cache poisoning forges MAC-to-IP mappings at layer 2 to intercept traffic; it does not rely on answering LLMNR or NBT-NS name queries, so it is a different on-path method.
CA DNS zone transfer is a reconnaissance request to copy DNS records from a server; it neither spoofs name resolution nor captures authentication material from victims as described.
DKerberoasting cracks service tickets offline within Active Directory; it has nothing to do with responding to broadcast name-resolution requests to harvest credentials on the LAN.
Responding to LLMNR/NBT-NS broadcasts to capture/relay auth = name-resolution poisoning (MITRE T1557.001; Responder docs)
4.1 Network attacks (ARP poisoning / on-path)
To intercept traffic between a target host and its default gateway, a tester sends crafted ARP replies that associate the tester's MAC address with the gateway's IP address, placing the tester's machine in the traffic path. Which technique enables this on-path position?
Answer
Correct answerC · ARP cache poisoning
ARP cache poisoning sends spoofed ARP replies binding the attacker's MAC to the gateway's IP, so victim traffic flows through the attacker, achieving the on-path position described.
Why the other options are wrong
AVLAN hopping moves frames between VLANs by abusing trunking or double tagging; it does not forge MAC-to-IP mappings to redirect traffic between a host and its gateway.
BDNS poisoning corrupts name-to-address resolution to misdirect connections, while the scenario manipulates layer-2 ARP entries, not DNS records, so it describes a different on-path technique.
DPass-the-hash is a credential-reuse technique for authentication; it provides no traffic-interception capability and cannot place a machine between a host and its gateway.
Spoofed ARP replies bind attacker MAC to gateway IP for on-path intercept (MITRE T1557.002; Cisco Dynamic ARP Inspection)
4.1 Network attacks (VLAN hopping)
A tester connects a host to an access port and configures it to emulate switch trunk-negotiation signaling. The port forms a trunk, and the tester gains visibility of traffic across multiple VLANs. Which network attack does this illustrate?
Answer
Correct answerD · VLAN hopping via switch spoofing
Emulating switch trunk negotiation tricks the port into forming a trunk, letting the host reach traffic on other VLANs; this switch-spoofing form of VLAN hopping matches the scenario.
Why the other options are wrong
AARP cache poisoning forges MAC-to-IP mappings to intercept traffic on one segment; it does not negotiate a trunk or expose traffic across multiple VLANs as described.
BMAC flooding overflows the switch CAM table to force fail-open flooding, whereas the scenario negotiates a trunk to reach other VLANs, which is a separate layer-2 attack.
CDNS spoofing falsifies name-resolution responses; it operates above layer 2 and cannot grant trunk-level access to multiple VLANs by emulating switch signaling.
Emulating trunk negotiation to form a trunk and reach other VLANs = switch-spoofing VLAN hopping (Cisco; CompTIA PT0-003 4.1)
4.1 Network attacks (SMB/NTLM relay; mitigation)
After capturing NTLM authentication from a host, a tester forwards (relays) that authentication to a third server to act as the victim, without ever cracking the hash. Which control most directly prevents this SMB relay attack?
Answer
Correct answerB · Requiring SMB signing
Requiring SMB signing makes relayed sessions fail an integrity check, so authentication captured from one host cannot be forwarded and replayed to another server, directly stopping SMB relay.
Why the other options are wrong
AEnabling LLMNR actually widens the name-resolution poisoning surface that feeds relay attacks, increasing exposure rather than preventing the relaying of captured authentication.
CEnforcing TLS 1.3 protects web transport confidentiality but does not sign or validate SMB sessions, so relayed NTLM authentication over SMB remains possible.
DRotating the krbtgt password invalidates forged golden tickets in Kerberos; it has no bearing on NTLM authentication being relayed over SMB between hosts.
SMB signing breaks relayed sessions via integrity check (MITRE T1557.001; Microsoft SMB signing overview)
4.3 Host-based attacks (credential dumping)
A tester runs a credential-extraction tool on a compromised Windows host to read the memory of the Local Security Authority Subsystem Service, harvesting hashes and tickets cached after users logged on. Which category of technique is this?
Answer
Correct answerA · OS credential dumping from LSASS memory
Reading LSASS process memory to extract cached hashes and tickets is OS credential dumping, since LSASS stores credential material generated after users authenticate to the host.
Why the other options are wrong
BKerberoasting requests and cracks service tickets offline; it does not read LSASS memory on a host, so it does not describe extracting cached credentials from process memory.
CPass-the-ticket reuses an already-obtained Kerberos ticket to authenticate; it consumes credential material rather than harvesting it from LSASS memory as the scenario states.
DProcess injection runs code inside another process to evade defenses or elevate; while sometimes paired with dumping, by itself it does not describe reading LSASS for credentials.
Reading LSASS memory for cached hashes/tickets = OS credential dumping (MITRE T1003.001; Microsoft Credential Guard)
4.3 Host-based attacks (process injection)
A tester wants their payload's execution to blend in with normal activity and bypass process-based defenses, so they write their code into the address space of a legitimate running process and execute it in that process's context. Which technique is this?
Answer
Correct answerC · Process injection
Process injection executes arbitrary code in the address space of a separate live process, masking activity under a legitimate process and evading process-based defenses, exactly as described.
Why the other options are wrong
ACredential dumping extracts stored authentication secrets; it does not describe executing code inside another process's memory to evade process-based detection as the scenario requires.
BAbusing a SUID binary is a Linux privilege-escalation path; it neither writes code into a running process's address space nor targets the process-based defenses described here.
DPass-the-hash reuses a captured hash to authenticate elsewhere; it is a credential-reuse technique and does not involve injecting code into a running process's memory.
Executing code in another live process to evade process-based defenses = process injection (MITRE T1055; Microsoft ASR rules)
During a domain compromise, a tester obtains a copy of the Active Directory database file on a domain controller to extract password hashes for every domain account at once. Which file and technique are involved?
Answer
Correct answerB · Extracting hashes from NTDS.dit
The NTDS.dit file on a domain controller stores the Active Directory database, so copying and parsing it exposes password hashes for all domain accounts, matching the scenario.
Why the other options are wrong
AThe SAM hive holds only local account hashes on a single machine; it cannot yield every domain account's hash, so it does not match copying the domain database.
CDumping LSASS memory reveals only credentials cached for users currently or recently logged on to that host, not the full set of domain account hashes the tester obtained.
DCracking service tickets is Kerberoasting, which targets individual SPN accounts offline; it does not provide a wholesale copy of every domain account hash from a database file.
NTDS.dit on a DC holds the AD database with all domain hashes (MITRE T1003.003; Microsoft NTDS/AD database docs)
4.3 Host-based attacks (local credential dumping)
On a standalone Windows server that is not domain-joined, a tester extracts local account password hashes from the registry-backed database that stores them. Which credential source is being targeted?
Answer
Correct answerA · The Security Account Manager (SAM)
The Security Account Manager database stores local user password hashes on a Windows host and can be extracted from the registry, which is exactly what a non-domain server exposes.
Why the other options are wrong
BNTDS.dit holds Active Directory domain account hashes and exists on domain controllers; a standalone, non-domain server has no NTDS.dit, so this source does not apply.
CThe Kerberos ticket cache holds tickets for authenticated sessions, not stored local password hashes; extracting it would not yield the local SAM account hashes described.
DThe /etc/shadow file stores password hashes on Linux systems; on a Windows server the local hashes live in the SAM, so referencing the shadow file is the wrong platform.
Local Windows hashes live in the SAM database (MITRE T1003.002; Microsoft SAM documentation)
4.2 Authentication attacks (AS-REP roasting)
A tester enumerates Active Directory and finds several accounts configured so that Kerberos pre-authentication is not required. The tester requests authentication data for those accounts and cracks it offline to recover their passwords. Which attack is this?
Answer
Correct answerD · AS-REP roasting
AS-REP roasting abuses accounts with Kerberos pre-authentication disabled, requesting AS-REP material encrypted with the user's password and cracking it offline, exactly as described.
Why the other options are wrong
AKerberoasting targets accounts with service principal names and cracks TGS service tickets; this scenario targets accounts lacking pre-authentication and cracks AS-REP data, a different requirement.
BPass-the-hash reuses a captured hash to authenticate and involves no offline cracking of Kerberos messages from preauth-disabled accounts, so it does not fit the described attack.
CA golden ticket forges a TGT using the KRBTGT hash; it neither depends on accounts lacking pre-authentication nor cracks returned authentication data offline as the scenario states.
Preauth-disabled accounts let AS-REP material be cracked offline = AS-REP roasting (MITRE T1558.004; Microsoft Kerberos preauth)
While reviewing a Windows host for local privilege escalation, a tester finds a service that runs as SYSTEM whose executable path contains spaces and is not enclosed in quotation marks, with a writable parent directory. Why is this a privilege-escalation opportunity?
Answer
Correct answerC · Because Windows can execute an attacker's binary placed in the unquoted path
With an unquoted path containing spaces, Windows tries each space-delimited fragment, so a binary planted in a writable parent directory can run as the service's SYSTEM account.
Why the other options are wrong
AThe authentication protocol the service uses is irrelevant to this flaw; the escalation comes from how Windows resolves an unquoted path with spaces, not from NTLM versus Kerberos.
BSYSTEM services are auditable like other services; the vulnerability arises from path resolution of an unquoted executable path, not from any inability to log or monitor the service.
DAddress space layout randomization concerns memory-corruption exploitation; this misconfiguration is about file-path resolution, so ASLR status does not create the escalation path.
Unquoted service path with spaces lets a planted binary run as SYSTEM (MITRE T1574.009; Microsoft service path guidance)
On a Linux host, a tester discovers a binary owned by root with the setuid bit enabled that can be coerced into running arbitrary commands. Executing it allows the tester to run commands as root. Which weakness is being exploited?
Answer
Correct answerB · A misconfigured setuid (SUID) root binary
A setuid binary owned by root runs with root privileges regardless of the caller, so coercing such a binary into executing arbitrary commands yields root, which is the abuse described.
Why the other options are wrong
AA world-writable passwd file is a different misconfiguration; here the escalation stems from a setuid binary running with its owner's privileges, not from editing the password file directly.
CUnquoted service paths are a Windows service-resolution flaw; this scenario is on Linux and centers on the SUID bit, so the Windows path issue is the wrong platform and mechanism.
DReusing an NTLM hash is a Windows authentication technique; it does not explain gaining root on Linux through a binary that carries the setuid bit.
A SUID root binary runs as root regardless of caller; abuse yields root (MITRE T1548.001; Linux credentials man page)
A tester reports that several Windows servers still expose SMBv1 and are missing the MS17-010 update, making them exploitable by a well-known wormable remote code-execution flaw. Which remediation most directly addresses the finding?
Answer
Correct answerA · Apply the MS17-010 patch and disable SMBv1
Installing the MS17-010 security update fixes the SMBv1 vulnerability, and disabling the legacy SMBv1 protocol removes the exposed attack surface, directly remediating the reported finding.
Why the other options are wrong
BA stronger password policy reduces credential-guessing risk but does nothing to fix a remote code-execution flaw in the SMBv1 protocol implementation, so it misses the actual issue.
CEnabling LLMNR adds a spoofable name-resolution service and increases risk; it neither patches the SMBv1 flaw nor reduces the exposed protocol surface described in the finding.
DMoving accounts to Kerberos changes the authentication protocol but leaves the vulnerable SMBv1 service unpatched and reachable, so the wormable code-execution flaw remains exploitable.
Patch MS17-010 and disable SMBv1 to remediate the wormable SMBv1 RCE (Microsoft MS17-010; NVD CVE-2017-0144)
After compromising a domain controller and obtaining the KRBTGT account's password hash, a tester forges Kerberos ticket-granting tickets that let them impersonate any user with near-unlimited domain access. Which attack is this?
Answer
Correct answerD · Golden ticket
Forging ticket-granting tickets with the stolen KRBTGT hash to impersonate any account is the golden ticket attack, granting persistent, near-unlimited Kerberos access across the domain.
Why the other options are wrong
AA silver ticket forges a service ticket using a specific service account's hash and is limited to that service; the scenario forges TGTs with the KRBTGT hash for domain-wide access.
BPass-the-hash reuses a user's NTLM hash to authenticate; it does not forge Kerberos ticket-granting tickets from the KRBTGT hash to impersonate arbitrary users domain-wide.
CKerberoasting cracks service tickets offline to recover service-account passwords; it neither requires the KRBTGT hash nor forges ticket-granting tickets as the scenario describes.
Forging TGTs with the KRBTGT hash for domain-wide impersonation = golden ticket (MITRE T1558.001; Microsoft krbtgt guidance)
A tester positions their system between two communicating hosts so that traffic flows through it, enabling them to sniff, capture credentials, or alter data in transit. Which general category describes this position?
Positioning between two devices so traffic passes through the attacker to be sniffed, captured, or modified is the defining behavior of an on-path, adversary-in-the-middle attack.
Why the other options are wrong
APrivilege escalation raises an attacker's permission level on a system; it does not describe inserting oneself into the communication path between two hosts to intercept traffic.
BA denial-of-service attack aims to disrupt availability, not to silently relay and read traffic between parties; the scenario is about interception, not service disruption.
DCredential dumping extracts stored secrets from a compromised host's memory or databases; it does not involve intercepting live traffic between two communicating systems.
Positioning between two parties to sniff/alter traffic = on-path / adversary-in-the-middle (MITRE T1557; NIST CSRC glossary MITM)
4.2 Authentication attacks (pass-the-ticket)
A tester extracts a valid Kerberos ticket from a compromised host's memory and injects it into their own session to access network resources as the ticket's owner, without knowing that user's password. Which technique is this?
Answer
Correct answerB · Pass-the-ticket
Pass-the-ticket reuses a stolen valid Kerberos ticket by injecting it into a session to authenticate as its owner without the password, exactly matching the described technique.
Why the other options are wrong
AKerberoasting requests and cracks service tickets offline to recover passwords; here the tester reuses an already-valid stolen ticket directly, so no cracking is involved.
CPassword spraying guesses common passwords across many accounts; the scenario uses a captured ticket rather than guessing any password, so the mechanisms are unrelated.
DA golden ticket is forged from the KRBTGT hash rather than stolen from memory; the tester here reuses an existing legitimate ticket, which distinguishes it from forging one.
Reusing a stolen valid Kerberos ticket to authenticate = pass-the-ticket (MITRE T1550.003; Microsoft Defender for Identity)
4.2 Authentication attacks (detection)
A blue team asks the tester which log evidence would most reliably reveal the password-spraying activity conducted during the engagement. Which artifact is the strongest indicator?
Answer
Correct answerA · Many failed logons across numerous accounts
Password spraying produces many authentication failures distributed across numerous accounts, so a spike in failed logon events spanning many usernames is the strongest, most direct indicator.
Why the other options are wrong
BA single successful logon during business hours is normal activity; it does not reveal the high volume of failures across many accounts that characterizes a spraying campaign.
CIncreased outbound DNS volume can indicate tunneling or exfiltration, but it is unrelated to authentication attempts, so it would not reliably reveal password-spraying behavior.
DA rise in encrypted SMB traffic reflects file or session activity, not authentication failures; it does not capture the failed-logon pattern that exposes spraying.
Spraying shows as many failed logons across many accounts (MITRE T1110 detection; Microsoft audit logon event 4625)
A client wants to reduce the risk of Kerberoasting against their domain. Which measure most directly hardens service accounts against this offline attack?
Answer
Correct answerD · Use long, random managed service-account passwords (gMSA)
Long, random, regularly rotated service-account passwords, such as group managed service accounts, make the offline cracking of captured service tickets infeasible, directly mitigating Kerberoasting.
Why the other options are wrong
AReducing ticket lifetime limits a ticket's reuse window but does not prevent an attacker from cracking the requested service ticket offline, so it poorly addresses Kerberoasting.
BDisabling SMBv1 removes a legacy file-sharing vulnerability; it is unrelated to the Kerberos service-ticket cracking that defines Kerberoasting, so it does not mitigate this attack.
CNetwork Level Authentication hardens RDP session establishment; it does nothing to protect service-account tickets from being requested and cracked offline in a Kerberoasting attack.
During an authorized web application assessment, a tester observes that submitting a single quote in the account-lookup parameter returns a database error revealing the underlying SQL statement, and altering the parameter changes which records are returned. Which application-based attack is this parameter vulnerable to?
Answer
Correct answerC · SQL injection (SQLi)
Injected input altering the query results and returning database errors is the signature of SQL injection, where client-supplied data is inserted into the application's SQL statement.
Why the other options are wrong
ACross-site scripting injects browser-executable script that runs in a victim's browser; it does not interfere with the back-end database query or surface SQL engine errors as described.
BCSRF abuses an authenticated user's session to force unwanted state-changing requests; it neither manipulates a database query nor produces SQL errors from injected input as seen here.
DSSRF coerces the server into fetching attacker-chosen URLs; it targets outbound requests to other systems, not the structure of a back-end SQL query as observed here.
Input altering a DB query and raising SQL errors = SQL injection (OWASP WSTG-INPV-05; OWASP Top 10 A03:2021)
A tester finds that a search page echoes the unsanitized query string directly back into the HTML of the results page, so a value supplied in a crafted link is reflected into the response and executes when a victim opens that link. Which attack is demonstrated?
Answer
Correct answerB · Reflected XSS
Input taken from the request and reflected straight into the immediate, non-persistent response so it executes via a crafted link is the defining behavior of reflected cross-site scripting.
Why the other options are wrong
AStored XSS requires the payload to be saved server-side and served to other users later; here the input is echoed immediately from the request and is not persisted in a data store.
CSQL injection manipulates a back-end database query, not browser rendering; the scenario shows script executing in the victim's browser, which is a client-side scripting flaw.
DInsecure deserialization abuses untrusted serialized objects to alter logic or run code server-side; it does not describe request input reflected into HTML and executed in a browser.
Request input reflected into the immediate response and executed = reflected XSS (OWASP WSTG-INPV-01; PortSwigger)
On a product-review feature, a tester submits a comment containing a script payload. Every user who later views the product page has the script execute in their browser without clicking any special link. Which attack does this persistent behavior indicate?
Answer
Correct answerD · Stored XSS
A payload saved by the application and later rendered to every viewer so it executes in their browsers is the defining characteristic of stored, or persistent, cross-site scripting.
Why the other options are wrong
AReflected XSS only fires for users who open a specially crafted request or link; here the payload affects every visitor to the page, indicating it was stored rather than reflected per request.
BCSRF tricks an authenticated user into submitting an unwanted request; it does not store an executable script that runs in the browsers of all subsequent page viewers.
CDirectory traversal manipulates file paths to read or write files outside the web root; it has nothing to do with executable script saved and re-rendered to other users.
Payload saved and served to later viewers = stored XSS (OWASP WSTG-INPV-02; PortSwigger)
4.3 Application-based attacks (path traversal)
A file-download endpoint accepts a filename parameter. A tester observes that supplying sequences such as ../ in that parameter returns the contents of files outside the intended download directory, including server configuration files. Which attack is being exploited?
Answer
Correct answerA · Directory (path) traversal
Using ../ sequences in a filename parameter to read files outside the intended directory is exactly the path traversal technique against poorly validated file access.
Why the other options are wrong
BSSRF makes the server issue requests to attacker-chosen URLs; the scenario reads local files through path manipulation, not by forcing outbound network requests.
CSQL injection targets database queries through crafted input; reading arbitrary files via ../ path sequences is a file-system access flaw, not a database query manipulation.
DXSS executes script in a victim's browser; retrieving server-side files outside the web root through traversal sequences is unrelated to client-side script execution.
Using ../ to read files outside the intended directory = path traversal (OWASP WSTG-ATHZ-01; PortSwigger)
4.3 Application-based attacks (SSRF)
A web application accepts a URL from the user to fetch and display a remote image. A tester supplies a URL pointing to an internal-only address, and the server returns content retrieved from that internal host. Which vulnerability does this confirm?
Answer
Correct answerC · Server-side request forgery
Coercing the server to fetch a user-supplied URL pointing at internal resources and returning their content is the defining behavior of server-side request forgery.
Why the other options are wrong
ACSRF causes a victim's browser to send authenticated requests the user did not intend; here the server itself is coerced to fetch an attacker-chosen URL, which is a different flaw.
BAn open redirect sends the user's browser to an attacker-controlled destination; the scenario shows the server fetching internal resources, not redirecting a client to an external site.
DXSS runs script in a victim's browser; the issue here is the server making unintended back-end requests to internal addresses, which is server-side rather than client-side.
Server fetching a user-supplied URL to an internal host = SSRF (OWASP Top 10 A10:2021; PortSwigger)
4.3 Application-based attacks (CSRF)
A banking application performs a fund transfer using an authenticated request that carries no per-request token tied to the user session. A tester crafts a page that, when visited by a logged-in victim, silently submits a transfer. Which weakness is being exploited?
Answer
Correct answerB · Cross-site request forgery
Forcing an authenticated user's browser to submit an unwanted state-changing request because the application lacks an anti-CSRF token is the textbook definition of CSRF.
Why the other options are wrong
ASSRF makes the server send requests to attacker-chosen destinations; this attack instead rides the victim's authenticated browser session to perform an action the user did not intend.
CSession fixation forces a victim to use a session identifier the attacker knows; here a valid session already exists and is abused to submit a forged request, which is different.
DInsecure deserialization manipulates serialized objects the server trusts; it does not describe a forged cross-site request executed in an authenticated victim's browser.
Forced authenticated state-change with no anti-CSRF token = CSRF (OWASP WSTG-SESS-05; PortSwigger)
4.3 Application-based attacks (injection)
An API endpoint parses user-supplied XML. A tester submits XML that defines an external entity referencing a local file, and the server's response includes the contents of that file. Which vulnerability class is demonstrated?
Answer
Correct answerD · XML external entity (XXE)
A weakly configured XML parser resolving an attacker-defined external entity to disclose a local file is precisely an XML external entity injection vulnerability.
Why the other options are wrong
ASQL injection manipulates database queries; the scenario abuses an XML parser resolving an external entity to read a local file, which is a parser weakness, not a query flaw.
BXSS executes script in a browser; here a server-side XML parser discloses local file contents through external entity resolution, which is unrelated to client-side scripting.
CSSTI abuses template engines that evaluate user input as template syntax; this scenario exploits XML external entity processing in a parser, a distinct mechanism.
XML parser resolving an external entity to read a local file = XXE (OWASP XXE; PortSwigger)
4.3 Application-based attacks (injection)
A network-diagnostics web page runs a ping against a hostname the user supplies. A tester appends a shell metacharacter followed by an operating-system command and observes that command's output in the response. Which application-based attack is this?
Answer
Correct answerA · OS command injection
Appending shell metacharacters so user input is executed as an operating-system command by the server through a system call is the defining behavior of OS command injection.
Why the other options are wrong
BSQL injection targets a database query; here the injected payload runs operating-system shell commands through a system call, not against a database engine.
CSSRF coerces the server to make network requests to chosen URLs; this scenario executes arbitrary OS commands via shell metacharacters, a different class of flaw.
DLocal file inclusion causes the app to include server files via a path parameter; here the app passes input to a shell and executes commands rather than including a file.
User input passed to a shell and executed as an OS command = command injection (OWASP Command Injection; PortSwigger)
4.3 Application-based attacks (injection)
A page personalizes output by embedding a user-supplied name directly into a server-side template. A tester enters a template expression containing a math operation in that field, and the rendered page returns the computed result. Which vulnerability does this indicate?
Answer
Correct answerC · Server-side template injection
User input evaluated as native template syntax by the server-side engine, returning a computed expression result, is the hallmark of server-side template injection.
Why the other options are wrong
AXSS executes in the browser; here a server-side template engine evaluates the injected expression and returns the computed result, indicating server-side execution rather than client-side scripting.
BSQL injection manipulates a database query; the scenario shows a template engine evaluating injected template syntax, which is a templating flaw, not a database one.
DCSRF forces an authenticated victim to submit an unwanted request; it has nothing to do with a template engine evaluating attacker-supplied expressions on the server.
User input evaluated as template syntax server-side = SSTI (OWASP WSTG-INPV-18; PortSwigger)
4.4 Wireless attacks
During a wireless assessment, a tester stands up an access point broadcasting the same SSID as the client's corporate Wi-Fi, with a stronger signal, so nearby devices associate to it and their traffic passes through the tester's AP. Which wireless attack is this?
Answer
Correct answerB · Evil twin attack
A rogue access point impersonating a legitimate SSID to lure clients into connecting so their traffic is manipulated or captured is the definition of an evil twin.
Why the other options are wrong
AA deauthentication flood forces clients to disconnect using spoofed management frames; it can assist this attack but does not itself impersonate the legitimate network to capture traffic.
CBrute forcing a captured handshake attacks the pre-shared key offline; it does not involve impersonating the SSID to get clients to associate to the tester's access point.
DBluejacking sends unsolicited messages over Bluetooth; it is unrelated to creating a malicious Wi-Fi access point that mimics a corporate SSID to intercept traffic.
Rogue AP impersonating a legitimate SSID to intercept clients = evil twin (MITRE ATT&CK T1557.004; Aircrack-ng)
4.4 Wireless attacks
To recover a WPA2-PSK passphrase, a tester first needs the cryptographic material exchanged when a client joins the network so the captured data can be tested against a wordlist offline. Which item must the tester capture to enable that offline attack?
Answer
Correct answerD · The WPA2 four-way handshake
The four-way handshake exchanged when a client authenticates contains the material needed to validate passphrase guesses offline against a wordlist for WPA2-PSK.
Why the other options are wrong
AThe broadcast SSID identifies the network by name but carries no cryptographic key material; it cannot be used to validate passphrase guesses offline against a wordlist.
BA deauthentication frame is a tool used to force a client to reconnect; the frame itself carries no key data and is not what gets tested against a wordlist.
CA captive portal is a web authentication page used on open networks; it is unrelated to the cryptographic material needed to crack a WPA2 pre-shared key offline.
While trying to capture a WPA2 handshake, a tester sends spoofed 802.11 management frames to an associated client so it disconnects and then re-authenticates to the access point. Which technique is the tester using to force that reconnection?
Answer
Correct answerA · Deauthentication attack
Sending spoofed management frames that disassociate a client so it must re-authenticate, often to capture the resulting handshake, is a deauthentication attack.
Why the other options are wrong
BAn evil twin impersonates a legitimate SSID to lure clients to a rogue AP; the scenario instead disconnects a client from its real AP using forged management frames.
CMAC spoofing changes a device's hardware address to impersonate another host; while frames are spoofed here, the described goal of forcing disassociation defines a deauth attack.
DKRACK exploits weaknesses in the four-way handshake to reinstall keys; it is a cryptographic protocol attack, not the act of flooding a client with disassociation frames.
Spoofed management frames forcing a client to reconnect = deauthentication attack (Aircrack-ng; MITRE ATT&CK T1557.004)
4.4 Wireless attacks
A tester discovers an unsanctioned wireless access point that an employee plugged into the corporate LAN to get better coverage, creating an unauthorized bridge into the internal network. How should this finding be classified?
Answer
Correct answerC · Rogue access point
An unauthorized access point attached to the corporate network without sanction, creating an uncontrolled entry point into the internal network, is by definition a rogue access point.
Why the other options are wrong
AAn evil twin is an attacker-controlled AP impersonating a known SSID to lure clients; this is an employee-installed, unauthorized AP bridged into the LAN, not SSID impersonation.
BA captive-portal bypass evades a web authentication gateway on a guest network; the finding here is an unauthorized AP connected to the internal network, a different issue.
DJamming floods the RF spectrum to deny wireless service; the scenario describes an unauthorized AP providing connectivity, which is the opposite of denying it.
Unauthorized AP attached to the network = rogue access point (NIST glossary; MITRE ATT&CK)
4.5 Cloud-based attacks
After gaining code execution inside a containerized microservice, a tester abuses an over-privileged container configuration to reach the underlying host operating system and other containers running on that node. Which technique describes this?
Answer
Correct answerB · Container escape
Breaking out of a container to access the underlying host and adjacent containers, typically via an over-privileged configuration, is a container escape, also called escape to host.
Why the other options are wrong
ASSRF makes an application send requests to unintended destinations; it does not describe breaking out of a container to reach the host operating system as shown here.
CSUID-based escalation elevates privileges within one host's file permissions; the scenario specifically crosses the container boundary to reach the host, which is broader than a SUID misconfiguration.
DPass-the-hash reuses captured password hashes to authenticate to other systems; it has nothing to do with escaping a container to the host through a privileged configuration.
Breaking out of a container to the host = escape to host (MITRE ATT&CK T1611; NIST SP 800-190)
4.5 Cloud-based attacks
On a cloud-hosted application vulnerable to SSRF, a tester coerces the server to request the instance metadata endpoint and retrieves the temporary IAM credentials attached to the virtual machine. Which cloud attack technique was used?
Answer
Correct answerD · Metadata service attack
Abusing SSRF to query the instance metadata endpoint and harvest the VM's temporary IAM credentials is a cloud instance metadata service attack.
Why the other options are wrong
AContainer escape breaks out of a container to the host; here the tester queries the cloud instance metadata service for credentials, which does not involve crossing a container boundary.
BBucket enumeration discovers and reads exposed object storage; the scenario instead abuses the instance metadata endpoint to obtain the virtual machine's attached IAM credentials.
CDNS rebinding manipulates name resolution to bypass same-origin restrictions; while it can aid SSRF, the described action is querying the metadata API to steal instance credentials.
Querying the instance metadata API to steal VM credentials = IMDS attack (MITRE ATT&CK T1552.005; AWS IMDS docs)
4.5 Cloud-based attacks
While reviewing a client's cloud environment, a tester finds an application service account whose IAM policy grants full administrative permissions across all resources, far beyond what the workload requires. Which weakness should the tester report?
Answer
Correct answerA · Over-permissive IAM policy
A service account granted broad administrative rights it does not need is an over-permissive IAM misconfiguration that violates the principle of least privilege.
Why the other options are wrong
BAbsent MFA concerns how identities authenticate; the finding here is the excessive scope of permissions granted, which is an authorization rather than an authentication problem.
CLack of encryption at rest protects stored-data confidentiality; it is unrelated to a service account being granted far more permissions than its workload requires.
DA public storage bucket is an access-control issue on object storage; the scenario concerns an identity's excessive IAM permissions, a distinct misconfiguration.
Service account with excessive rights violates least privilege (AWS IAM best practices; MITRE ATT&CK T1078.004)
4.5 Cloud-based attacks
A tester searching a public source-code repository belonging to the client discovers a long-term cloud access key and secret embedded directly in a committed configuration file. Which finding category and MITRE technique best describe this?
Answer
Correct answerC · Unsecured credentials in files
Long-term keys hard-coded into a committed file are unsecured credentials in files, an exposure where access keys are recoverable by anyone with repository access.
Why the other options are wrong
AInsecure deserialization abuses untrusted serialized objects; the finding here is hard-coded long-term credentials in a file, which is an unsecured-credentials issue, not deserialization.
BSSRF coerces a server to make requests; it does not describe credentials committed in plaintext to a repository, which is a credential-storage exposure problem.
DXSS executes script in a browser; it is unrelated to discovering plaintext cloud access keys embedded in a source-code repository's configuration file.
Hard-coded keys in committed files = unsecured credentials in files (MITRE ATT&CK T1552.001; AWS key best practices)
4.5 Cloud-based attacks
A tester enumerating a client's cloud storage finds an object-storage bucket whose access policy allows anonymous read access, exposing internal documents to anyone on the internet. Which misconfiguration has the tester found?
Answer
Correct answerB · Publicly exposed storage bucket
A bucket policy permitting anonymous public read exposes data and is mitigated by enabling block-public-access controls and applying restrictive bucket policies.
Why the other options are wrong
ASSRF concerns coercing a server to make requests; the issue here is a storage bucket policy granting public anonymous read, which is an access-control misconfiguration, not SSRF.
CWeak logging hampers detection of activity; it does not itself make a bucket world-readable, which is the access-control flaw the scenario describes.
DWeak transport encryption affects data in transit; the finding is unrestricted public read access to stored objects, an authorization misconfiguration rather than a TLS weakness.
Anonymous public-read bucket = exposed storage, fixed by blocking public access (AWS S3 docs; MITRE ATT&CK T1530)
4.5 Cloud and API attacks
Testing a REST API, a tester changes the numeric account identifier in a request path from their own to another customer's, and the API returns the other customer's records without any authorization check. Which OWASP API Security risk is this?
Returning another user's object because the API trusts a user-supplied identifier without verifying ownership is broken object level authorization, known as BOLA.
Why the other options are wrong
ASSRF coerces the server to fetch attacker-chosen URLs; here the API simply fails to verify that the caller is permitted to access the object referenced by the supplied identifier.
BSecurity misconfiguration covers insecure default or incomplete settings; the specific flaw shown is the missing per-object authorization check on a user-supplied identifier.
CInjection executes attacker-controlled commands or queries through unsanitized input; changing an object ID to read another user's data is an access-control failure, not injection.
Changing an object ID to read others' data without checks = BOLA (OWASP API Security Top 10 API1:2023; PortSwigger IDOR)
4.6 Social engineering attacks
As part of an authorized engagement, a tester crafts a personalized email referencing a target employee's recent project and role, impersonating a trusted vendor, to trick that specific individual into opening a malicious attachment. Which social-engineering technique is this?
Answer
Correct answerA · Spear phishing
A tailored email aimed at a specific individual using personal or role context to increase believability is spear phishing, a targeted variant of phishing.
Why the other options are wrong
BWhaling is a spear-phishing variant aimed specifically at high-level executives; here the target is a regular employee, so the precise technique is spear phishing.
CVishing is voice phishing conducted over the phone; the described attack uses a crafted email with an attachment, not a telephone call, so it is not vishing.
DTailgating is a physical attack where someone follows an authorized person through a secure door; it is unrelated to a targeted email with a malicious attachment.
Targeted, personalized email to a specific individual = spear phishing (MITRE ATT&CK T1566.001; NIST glossary)
4.6 Social engineering attacks
A tester telephones a help-desk agent while posing as a senior executive locked out before an important meeting, using a fabricated but believable backstory to pressure the agent into resetting the account password. Which social-engineering techniques are primarily in play?
Answer
Correct answerB · Vishing and pretexting
Phoning a target while impersonating someone and using a fabricated, believable scenario to extract an action is voice phishing (vishing) carried out through a pretext.
Why the other options are wrong
ATailgating and shoulder surfing are physical, in-person techniques; the scenario is a phone call using a fabricated story, which is voice phishing combined with pretexting.
CWatering-hole and typosquatting attacks compromise or mimic websites victims visit; neither matches a phone call using an invented identity and backstory against a help-desk agent.
DSmishing uses SMS text messages and baiting lures victims with something enticing; the described attack is a phone call with a pretext, not a text or a planted lure.
Phone impersonation with a fabricated backstory = vishing plus pretexting (MITRE ATT&CK T1566.004; CISA social engineering)
4.3 Application-based attacks (AI/LLM)
A client has deployed an LLM-backed support chatbot with access to internal tools. During testing, a tester submits input that overrides the model's original instructions, causing it to ignore its guardrails and reveal restricted information. Which AI attack is this?
Answer
Correct answerC · Prompt injection
Crafted input that overrides the model's original instructions and bypasses its guardrails to produce unintended output is the definition of prompt injection.
Why the other options are wrong
AA model denial-of-service overwhelms the LLM with resource-heavy input to degrade availability; here the input manipulates the model's behavior to bypass instructions, which is different.
BTraining-data poisoning corrupts the data used to train or fine-tune a model; the scenario manipulates a deployed model at inference time through crafted input, not its training set.
DInsecure deserialization abuses untrusted serialized objects in application code; it is unrelated to manipulating an LLM's behavior through adversarial natural-language input.
Crafted input overriding model instructions and guardrails = prompt injection (OWASP LLM Top 10 LLM01; PortSwigger)
Ad slot · in-content rectangle (336×280 / responsive)Below the quiz card, inside the article body — well clear of answer buttons
About this domain
Attacks and Exploits is the heart of PenTest+ and by far the largest domain at 35% of the exam — more than a third of your score. These are the hands-on questions: given a scenario, you pick the right attack, recognize its indicators, and know the mitigation.
The domain spans network attacks (ARP and name-resolution poisoning, on-path/adversary-in-the-middle, SMB/NTLM relay, VLAN hopping), authentication attacks (password spraying, credential stuffing, Kerberoasting and AS-REP roasting, pass-the-hash and pass-the-ticket, ticket forgery), and host- and application-based attacks (Windows and Linux privilege escalation, credential dumping, process injection, injection, XSS, CSRF, SSRF, path traversal, and AI/LLM abuse).
It also covers wireless attacks, cloud and API attacks, and social engineering. Because it is so heavily weighted, this is the domain to over-invest in. The questions below mirror the exam's scenario-and-mitigation style.
What Domain 4 covers
4.1 Given a scenario, perform network attacks
4.2 Given a scenario, perform authentication attacks
4.3 Given a scenario, perform host- and application-based attacks
4.4–4.6 Perform wireless, cloud/API, and social-engineering attacks
Domain 4 quick glossary
The terms that show up most on Domain 4 questions — one line each.
KerberoastingRequesting service tickets and cracking them offline to recover service-account passwords in Active Directory.
Pass-the-hashAuthenticating with a captured NTLM hash instead of the cleartext password to move laterally.
Password sprayingTrying one or a few common passwords across many accounts to avoid lockout while finding weak credentials.
SSRFServer-side request forgery — tricking a server into making attacker-controlled requests to internal resources.
Privilege escalationGaining higher rights on a host by abusing misconfigurations, vulnerable services, or weak permissions.
On-path attackIntercepting and possibly altering traffic between two parties (adversary-in-the-middle).
Credential dumpingExtracting password hashes or secrets from memory, the SAM, or LSASS for reuse.
Keep going
Practice the other domains, or go deeper with the full study materials.