On the Security+ · 24% of Security+ SY0-801 (Domain 2)
Scenario-based multiple-choice items identifying social engineering, malware behavior, network/application attacks, and threat actors.
What Threats, Attacks & Vulnerabilities tests
Aligned with SY0-801 Domain 2 (Threats, Vulnerabilities, and Attacks), this topic tests your ability to diagnose an attack from logs, symptoms, or user reports—distinguishing phishing variants, malware mechanisms, OWASP web vulnerabilities, and wireless or password-cracking techniques.
Where test-takers lose points
Confusing XSS, CSRF, and SQL Injection
SQL injection manipulates backend database queries; XSS injects malicious scripts executed in a victim's browser; CSRF tricks an already-authenticated user's browser into sending an unintended request.
Mixing up Password Spraying and Credential Stuffing
Password spraying tries one common password across many accounts to avoid account lockouts; credential stuffing replays leaked username/password pairs from another breach.
Overlooking living-off-the-land and fileless malware cues
When an incident involves malicious PowerShell or WMI execution residing only in memory with no dropped binary on disk, look for fileless / living-off-the-land techniques.
How to practise Threats, Attacks & Vulnerabilities
Read attack scenarios for the exact clue—who initiates the request, what layer is targeted (network, OS, web app, human), and what observable indicator of compromise appears.
Common questions about Security+ Threats, Attacks & Vulnerabilities
Does Security+ SY0-801 cover AI-related threats?
Yes. SY0-801 (launched November 2026) adds objective 2.6 covering threats and vulnerabilities associated with artificial intelligence alongside traditional network, app, and social-engineering threats.
How should I memorize attack types for Security+?
Group them by symptom and target layer rather than alphabetical lists: what does the attacker gain, and what evidence does the defender see?
10 example questions with full explanations. Use the interactive practice above to work through the complete set.
Question 1medium
An incident responder is analyzing a compromised workstation and finds that malicious code is executing entirely within PowerShell memory processes, with no executable files written to disk. EDR logs show that legitimate system binaries such as wmic.exe and certutil.exe are being used to download and run payloads. Select all that apply — which statements correctly describe this type of attack? (Choose THREE.)
- A.The use of legitimate system tools in this manner is known as living-off-the-land✓
- B.This attack is best categorized as a worm because it uses built-in OS tools to spread
- C.Memory forensics and behavioral analysis are appropriate detection techniques for this attack type✓
- D.This is consistent with fileless malware, which evades traditional signature-based AV that scans files on disk✓
- E.Because no files are written to disk, the malware cannot persist across reboots under any circumstances
Correct answer: D, A, C
Fileless malware executes in memory and avoids writing traditional executable files to disk, which defeats file-based antivirus signatures (D). The technique of abusing legitimate, pre-installed system tools like PowerShell, wmic.exe, and certutil.exe is called living-off-the-land (A). Memory forensics and behavioral/heuristic analysis are the appropriate detection methods since there are no files to scan (C). Option E is incorrect — fileless malware can persist through registry keys, scheduled tasks, or WMI subscriptions without storing a traditional binary on disk. Option B is incorrect — using OS tools does not define a worm; worms are defined by self-replication across systems, which is not described here.
Question 2medium
During a web application penetration test, a tester discovers that submitting the input ' OR '1'='1 into a login form bypasses authentication. The tester also finds that appending ../../../etc/passwd to a URL parameter returns file contents. Select all that apply — which vulnerability classes are present in this application? (Choose TWO.)
- A.Directory traversal✓
- B.SQL injection✓
- C.Cross-site request forgery (CSRF)
- D.Insecure direct object reference (IDOR)
- E.Cross-site scripting (XSS)
Correct answer: B, A
The input ' OR '1'='1 is a classic SQL injection payload that manipulates a SQL query to return true for all rows, bypassing authentication — confirming SQL injection (B). The use of ../../../etc/passwd to traverse the file system and read sensitive files outside the web root is a textbook directory traversal attack (A). CSRF (C) involves forging cross-site requests using a victim's authenticated session and is not demonstrated by either finding. XSS (E) involves injecting malicious scripts into web pages viewed by other users, which is also not shown. IDOR (D) involves accessing objects by manipulating a reference ID (e.g., changing user_id=1 to user_id=2), which is distinct from directory traversal.
Question 3medium
A network administrator notices that ARP tables on multiple hosts show the same MAC address mapped to both the default gateway IP and a workstation IP. Shortly after, a security tool alerts that TLS certificates presented to internal users do not match the expected certificates from the server. Select all that apply — which attacks are most likely occurring based on these indicators? (Choose TWO.)
- A.A deauthentication attack
- B.DNS poisoning
- C.A replay attack
- D.On-path (MITM) attack✓
- E.ARP poisoning✓
Correct answer: E, D
ARP poisoning involves sending forged ARP replies to associate the attacker's MAC address with a legitimate IP (such as the default gateway), causing traffic to be redirected through the attacker — which is exactly what the duplicate MAC address in the ARP table indicates (E). ARP poisoning is a common method to position an attacker as an on-path (MITM) interceptor, and the mismatched TLS certificates are a strong indicator that traffic is being intercepted and re-encrypted by an unauthorized party (D). DNS poisoning (B) would manifest as incorrect IP addresses returned for domain names, not ARP table anomalies. A replay attack (C) involves re-transmitting captured authentication tokens and does not produce these IoCs. A deauthentication attack (A) is a wireless attack that disconnects clients from a Wi-Fi network and is unrelated to ARP table manipulation.
Question 4medium
A security analyst notices that several employee accounts across different departments each had exactly one failed login attempt with a common password before successfully authenticating with their correct credentials — all within a 30-minute window. No single account triggered the lockout threshold of five failed attempts. What type of attack best describes this activity?
- A.Dictionary attack
- B.Credential stuffing
- C.Brute force
- D.Password spraying✓
Correct answer: D
Password spraying involves trying one or a few common passwords against many different accounts, deliberately staying below lockout thresholds. The key indicators here are: multiple accounts targeted, only one or few attempts per account, and a short time window — all hallmarks of spraying. Credential stuffing uses previously breached username/password pairs, not a common password tried across accounts. Brute force and dictionary attacks focus on exhausting many passwords against a single account, which would trigger lockout policies and does not match the observed pattern.
Question 5medium
An organization's network administrator observes that DNS responses for a popular internal application are returning an IP address that belongs to an external server the team does not recognize. Users who visit the application are unknowingly submitting their credentials to this rogue server. The administrator confirms that the organization's internal DNS server records have been altered. Which attack is most consistent with these findings?
- A.ARP poisoning
- B.DNS poisoning✓
- C.Replay attack
- D.DNS amplification attack
Correct answer: B
DNS poisoning (also called DNS cache poisoning or DNS spoofing) involves corrupting DNS records so that legitimate domain names resolve to malicious IP addresses, redirecting users to attacker-controlled servers. The scenario explicitly states that internal DNS server records were altered and users are being redirected — this is the defining characteristic of DNS poisoning. DNS amplification is a DDoS technique that exploits open resolvers to flood a victim with traffic, not to redirect users. ARP poisoning operates at Layer 2 to associate a rogue MAC address with a legitimate IP, a different mechanism. A replay attack involves capturing and retransmitting authentication tokens, which does not match the DNS record tampering described.
Question 6medium
A penetration tester on an authorized engagement sets up a wireless access point with the same SSID as the corporate network in the parking lot of the target organization. Employees' laptops automatically connect to it, allowing the tester to intercept their traffic. Which wireless attack technique is the tester employing?
- A.Deauthentication attack
- B.KRACK attack
- C.Evil twin✓
- D.WPS PIN brute force
Correct answer: C
An evil twin attack involves creating a rogue access point that mimics a legitimate network's SSID, causing devices configured to auto-connect to join the attacker's AP instead, enabling traffic interception. This precisely matches the described scenario. A deauthentication attack sends forged 802.11 disassociation frames to disconnect clients from a legitimate AP, often used as a precursor to evil twin but is not the attack itself. WPS PIN brute force targets the Wi-Fi Protected Setup feature to recover the WPA2 passphrase and does not involve a rogue AP. KRACK exploits a vulnerability in the WPA2 four-way handshake to reinstall cryptographic keys, which requires the attacker to be in proximity but is a cryptographic attack rather than an impersonation attack.
Question 7medium
A web developer reports that whenever a specific blog comment containing a script tag is loaded by any visitor, the visitor's session cookie is silently sent to an external server. The malicious comment has been stored in the site's database for two weeks and has affected hundreds of users. Which application attack technique does this describe?
- A.DOM-based cross-site scripting (XSS)
- B.Stored cross-site scripting (XSS)✓
- C.Reflected cross-site scripting (XSS)
- D.Cross-site request forgery (CSRF)
Correct answer: B
Stored (persistent) XSS occurs when malicious script is saved in the application's database and executed in the browser of every user who loads the affected page — exactly what is described with the malicious blog comment persisting and affecting hundreds of visitors over time. Reflected XSS requires the malicious payload to be embedded in a URL that the victim clicks; it is not stored server-side and affects only users who follow the crafted link. DOM-based XSS manipulates the Document Object Model in the client's browser without the payload necessarily passing through the server. CSRF tricks an authenticated user's browser into making an unintended request to another site, exploiting the user's existing session — it does not inject scripts into page content.
Question 8medium
A threat intelligence report indicates that attackers recently compromised a widely used open-source logging library and inserted malicious code into its official release package. Organizations that updated to the new version automatically deployed the backdoor. Which category of attack does this represent?
- A.Supply chain attack✓
- B.Baiting
- C.Insider threat
- D.Watering hole attack
Correct answer: A
A supply chain attack targets the software or hardware distribution pipeline — in this case, a trusted third-party library — to insert malicious code that is then distributed to downstream organizations as part of a legitimate update. The compromise of the open-source library and its official release package is the defining indicator. A watering hole attack compromises websites frequented by the intended victims, not the software supply chain itself. Baiting is a social engineering technique that lures victims with something enticing (e.g., a malicious USB drive), which does not apply here. An insider threat originates from a malicious or negligent person within the organization; external compromise of a third-party library does not qualify, even though the effect propagated internally.
Question 9hard
A security analyst reviewing SIEM logs notices that over the past 72 hours, a single external IP has attempted authentication against 847 different user accounts, using only the passwords 'Summer2024!', 'Welcome1!', and 'Company123' for each account. The attempts are spread across multiple hours to avoid lockout thresholds. Simultaneously, the analyst finds 12 accounts have successfully authenticated from this IP and are now accessing SharePoint. Which attack technique BEST describes what occurred, and what distinguishes it from a related but different attack?
- A.Password spraying, because the attacker tries only a few common passwords across many user accounts to stay below lockout thresholds✓
- B.Brute force, because the attacker is systematically testing multiple password combinations against user accounts until successful
- C.Credential stuffing, because the attacker is using a large set of previously breached username/password pairs harvested from breach data dumps
- D.Dictionary attack, because the attacker is selecting passwords from a precomputed wordlist and testing them against each individual account
Correct answer: A
Password spraying is characterized by trying a small number of commonly used passwords against a large number of accounts, deliberately staying below lockout thresholds to avoid detection — exactly what is described here. Unlike credential stuffing, which uses known username/password pairs from previous data breaches (implying each account gets its specific previously breached password), spraying uses the same few generic passwords across all accounts. A traditional brute force or dictionary attack exhausts many password combinations against one or a few accounts, which would quickly trigger lockout policies. The deliberate pacing across hours and the tiny password set confirm spraying as the correct classification.
Question 10hard
A penetration tester captures a valid Kerberos Ticket Granting Ticket (TGT) from memory on a compromised workstation using Mimikatz. The tester then uses that ticket to authenticate as the domain user without ever knowing the user's plaintext password, successfully accessing file shares. Which cryptographic or authentication attack technique is being demonstrated, and what is the critical characteristic that makes it distinct from pass-the-hash?
- A.Replay attack, because the tester is retransmitting a previously captured authentication packet to gain unauthorized access to domain file shares
- B.Pass-the-ticket, because the tester reuses a captured Kerberos ticket to authenticate, exploiting the Kerberos protocol rather than NTLM✓
- C.Golden Ticket attack, because the tester forged a TGT using the KRBTGT account hash to gain unlimited domain access
- D.Pass-the-hash, because the tester is reusing a captured credential material to authenticate without knowing the plaintext password
Correct answer: B
Pass-the-ticket involves stealing a valid Kerberos ticket from memory and reusing it to authenticate to services without knowing the plaintext password — exactly as described. The critical distinction from pass-the-hash is the protocol: pass-the-hash exploits NTLM authentication by reusing an NTLM password hash, while pass-the-ticket exploits Kerberos by reusing a TGT or service ticket. A Golden Ticket attack is related but distinct — it requires the KRBTGT account hash to forge tickets from scratch, granting unlimited persistence; here the tester only captured an existing TGT from memory without forging one. A generic replay attack is too broad a category and does not capture the Kerberos-specific mechanism involved.