SY0-801 · 24% of the exam
SY0-801: Threats, Vulnerabilities, and Attacks practice questions
10 free Threats, Vulnerabilities, and Attacks questions for the CompTIA Security+ (SY0-801) exam, each with the correct answer and an explanation for every option.
What this domain covers
Renamed in SY0-801 (it was Threats, Vulnerabilities, and Mitigations): who attacks and how, what makes attacks possible, how they show up, and two new objectives on threat and vulnerability characteristics (CVE, CVSS, threat feeds) and on the threats of AI use.
- Exam weight
- 24%
- On a real exam
- ≈ 22 questions
- In our bank
- 191 questions
Topics that come up most
- Threat feeds, likelihood and impact, CVE and CVSS prioritization
- Threat actors and motivations
- Threat vectors from RCS to supply chain
- Vulnerabilities and attack surfaces, including LLMs and identity providers
- Indicators of malicious activity
- AI threats: prompt injection, poisoning, jailbreaking, hallucinations
How to study it
Practise naming an attack from a two-line description, and do the same for the thirteen AI threats in objective 2.6. Distractors are always closely related attacks.
The 6 official objectives in this domain
- 2.1 Threats and vulnerabilities
- 2.2 Threat actors and motivations
- 2.3 Threat vectors and sources
- 2.4 Vulnerabilities and attack surfaces
- 2.5 Indicators of malicious activity
- 2.6 AI threats and vulnerabilities
Each one explained, with practice questions.
Sample Threats, Vulnerabilities, and Attacks questions
Try each one before opening the answer. Original questions written to the official exam objectives.
Question 1
Last month a vulnerability had no known public exploit. This week a reliable exploit kit for it is circulating among criminal groups, yet the published base score has not changed. Which CVSS input captures this change without altering the base score?
- AAttack vector
- BExploit maturity
- CPrivileges required
- DConfidentiality impact
Show answer and explanation
Answer: B) Exploit maturity
Base metrics are fixed properties of a flaw; exploit maturity can change over time and adjust urgency without changing the base score.
- AAttack vector is a base metric describing how the flaw is reached (for example, over the network). It did not change when the exploit kit appeared.
- BExploit maturity sits outside the base metrics and reflects the current state of exploit code. It can be updated as working exploits appear, raising urgency while the base score stays fixed.
- CPrivileges required is a base metric about the access an attacker needs. That is a fixed property of the flaw, not of exploit availability.
- DConfidentiality impact is a base metric describing what a successful exploit does to data. It does not track whether exploit code exists.
Question 2
A new threat intelligence program subscribes to a dozen feeds. Analysts are flooded with indicators, most about technologies the company doesn't run, and leadership says the reports don't answer its questions. Which life cycle phase should the program revisit FIRST?
- AProcessing
- BDissemination
- CRequirements
- DAnalysis
Show answer and explanation
Answer: C) Requirements
The intelligence life cycle starts with requirements; when output is irrelevant, fix what the program is trying to answer before tuning later phases.
- ABetter deduplication and formatting would reduce clutter, but it would still be processing data that answers the wrong questions.
- BChanging how reports are delivered won't help if their content doesn't address what leadership needs.
- CThe requirements (planning and direction) phase defines what decision makers need to know and therefore what to collect. Without it, collection is unfocused and reports miss the point.
- DEven skilled analysis cannot produce relevant answers from data gathered without knowing the questions.
Question 3
A web form passes user input straight into a database query string, and an attacker enters input that changes the query's logic to return all rows. What is the most effective mitigation?
- AUse parameterized queries / prepared statements (with input validation as defense in depth)
- BIncrease the database server's RAM
- CRename the database tables to non-obvious names
- DServe the site over HTTPS instead of HTTP
Show answer and explanation
Answer: A) Use parameterized queries / prepared statements (with input validation as defense in depth)
- AParameterized queries separate code from data so user input is always treated as a value, not executable SQL — the primary defense against SQL injection. Input validation and least-privilege DB accounts add further protection.
- BHardware capacity has no bearing on injection; the query is still constructed unsafely.
- CObscurity doesn't stop injection payloads that manipulate query logic (e.g. OR 1=1).
- DTLS protects data in transit but does nothing about how the server builds the SQL query from input.
Question 4
Attackers create a social media account using a bank's logo and name, posing as its support team, and ask customers who complain online to "verify" their account details. Which technique is this?
- ABrand impersonation
- BTyposquatting
- CA watering hole attack
- DDomain hijacking
Show answer and explanation
Answer: A) Brand impersonation
- AAttackers imitate a trusted brand to gain credibility and harvest information.
- BTyposquatting uses misspelled domains, not fake social accounts.
- CA watering hole compromises a site victims already visit.
- DDomain hijacking takes over the real domain registration.
Question 5
An attacker captures a valid "transfer funds" request from a banking app and sends it again later to repeat the transfer. Which application attack is this?
- AA replay attack
- BSQL injection
- CDirectory traversal
- DA buffer overflow
Show answer and explanation
Answer: A) A replay attack
- AA replay attack resends captured valid data; nonces and timestamps help prevent it.
- BSQL injection alters database queries with crafted input.
- CDirectory traversal reaches files outside the intended path.
- DA buffer overflow writes beyond memory bounds.
Question 6
A web app takes a user-supplied filename and concatenates it into a command string that the server runs to clean up temporary files. An attacker submits the value '; rm -rf /tmp/*' and the server deletes the whole directory. Which vulnerability class is this, and what is the core fix?
- AOS command injection; pass input as separate arguments to the program instead of a command string, and allow-list values
- BSQL injection; replace the concatenated string with parameterized queries and run the database account with least privilege
- CDirectory traversal; canonicalize the supplied path and reject any value that resolves outside the permitted folder
- DCross-site scripting; apply context-aware output encoding to the value before it is rendered back into the page
Show answer and explanation
Answer: A) OS command injection; pass input as separate arguments to the program instead of a command string, and allow-list values
Untrusted input that ends up in an operating-system command string allows OS command injection. To prevent it, pass arguments as an array instead of concatenating a command string, and validate input against an allow-list.
- AThe ';' ends the intended command and starts a new one, so the attacker's input is being run as an operating-system command. The fix is to stop building command strings from input: call the program with an argument array so the input is treated as data, and allow-list the values you accept.
- BSQL injection targets a database query interpreter. Here the payload is run by the operating system, and parameterized queries do nothing for OS commands.
- CDirectory traversal uses sequences like '../' to reach files the app didn't intend to expose. Here the attacker chains a new command with ';', and path canonicalization would not stop that.
- DXSS runs attacker script in a victim's browser. In this case the payload runs on the server, so output encoding does not address it.
Question 7
Attackers compromise a niche industry news site that employees of a target company are known to read, planting a browser exploit that runs only for visitors from the target's IP ranges. Which attack is this?
- AA watering-hole attack
- BA brute-force attack
- CA SQL injection attack
- DA denial-of-service attack
Show answer and explanation
Answer: A) A watering-hole attack
- AThe attacker poisons a third-party site the intended victims habitually visit, waiting for them to come to it — often with targeting so unrelated visitors don't trigger the exploit.
- BNo credential guessing is involved.
- CThe compromise is of a third-party site to serve exploits, not manipulation of the target's database queries.
- DThe goal is stealthy compromise of visitors, not disrupting availability.
Question 8
An intruder disables the cooling units in a server room, causing equipment to overheat and shut down. Which type of attack is this?
- AAn environmental attack
- BA brute-force attack
- CRFID cloning
- DA replay attack
Show answer and explanation
Answer: A) An environmental attack
- AEnvironmental attacks target power, heating, cooling or similar systems to disrupt the equipment they support.
- BA brute-force attack tries many passwords or keys; it doesn't target cooling systems.
- CRFID cloning copies access badges; it isn't about overheating equipment.
- DA replay attack resends captured network data; this attack is physical.
Question 9
In a coffee shop, an attacker sets up a wireless access point that broadcasts the same SSID as the shop's network at a stronger signal. Customers' devices associate with the attacker's AP, which lets the attacker intercept their traffic. Which attack is this?
- AEvil twin
- BBluejacking
- CDeauthentication
- DRF jamming
Show answer and explanation
Answer: A) Evil twin
An AP that copies a legitimate SSID to lure clients into associating with it is an evil twin, a specific kind of rogue access point used for interception.
- ACorrect. An evil twin is a rogue AP that imitates a legitimate network's SSID, often with a stronger signal, so clients connect to it and the attacker can intercept or alter their traffic. Mitigations include 802.1X/WPA3-Enterprise with server certificate validation, VPN use on public Wi-Fi, and wireless intrusion detection.
- BIncorrect. Bluejacking sends unsolicited messages to nearby devices over Bluetooth. It doesn't impersonate a Wi-Fi network or intercept traffic.
- CIncorrect. A deauthentication attack sends forged 802.11 management frames to disconnect clients. Attackers sometimes use it to push victims toward an evil twin, but it doesn't involve advertising a lookalike SSID that clients join.
- DIncorrect. Jamming floods the radio spectrum with interference to deny wireless service. It disrupts connections rather than luring clients to associate with an attacker's AP.
Question 10
A web page reflects user-supplied input back into its HTML without sanitization, which lets an attacker run script in other users' browsers. Which control most directly mitigates this vulnerability?
- AEncode untrusted data for the HTML or JavaScript context where the page outputs it
- BEnforce HTTPS with HSTS on every page so responses can't be altered in transit
- CUse parameterized queries for every database call that the page makes
- DSet the Secure flag on session cookies so they're sent only over encrypted connections
Show answer and explanation
Answer: A) Encode untrusted data for the HTML or JavaScript context where the page outputs it
Reflected XSS happens when untrusted input is written into a page without encoding. The most direct fix is context-aware output encoding at the point of output, with input validation as a supporting control.
- ACorrect. This is reflected cross-site scripting (XSS). Context-aware output encoding (HTML, attribute, JavaScript or URL encoding) turns characters such as < into safe forms, so the browser can't parse the input as markup or script. Input validation helps, but it shouldn't be relied on alone.
- BIncorrect. TLS and HSTS protect data in transit. The malicious script comes from the server's own response, so encrypting that response doesn't stop it from running.
- CIncorrect. Parameterized queries prevent SQL injection on the server. They don't control how user input is rendered in the HTML returned to the browser.
- DIncorrect. The Secure flag stops cookies from being sent over unencrypted connections. It doesn't stop injected script from running in the page.
More Threats, Vulnerabilities, and Attacks questions, one per page
- An attacker gains write access to a company's model registry. Without touching any training data, they replace the…
- A security team wants to make sure that only approved versions of its machine learning models are loaded in production…
- A spam filter retrains every week using messages that users mark as "not spam." Over a month, an attacker uses hundreds…
- An organization deploys an AI agent that browses web pages to research vendors and can send email on the user's behalf.
- A resume screening model trained on ten years of past hiring decisions consistently ranks applicants from certain…
- A user asks a public chatbot to role-play as a fictional AI "with no rules" and, while in character, gets it to give…
- A company runs a public chatbot. Each time the developers block one phrasing, users find a new way to talk the model…
- A malware author repeatedly changes a sample (adding padding, renaming functions, reordering code) and submits each…
Threats, Vulnerabilities, and Attacks: FAQs
How much of the SY0-801 exam is Threats, Vulnerabilities, and Attacks?
Threats, Vulnerabilities, and Attacks is 24% of the SY0-801 exam by the official exam guide's weighting, which on a 90-question form works out to roughly 22 questions. The real exam's exact split varies by form.
What does the Threats, Vulnerabilities, and Attacks domain cover?
Renamed in SY0-801 (it was Threats, Vulnerabilities, and Mitigations): who attacks and how, what makes attacks possible, how they show up, and two new objectives on threat and vulnerability characteristics (CVE, CVSS, threat feeds) and on the threats of AI use.
How should I study Threats, Vulnerabilities, and Attacks for SY0-801?
Practise naming an attack from a two-line description, and do the same for the thirteen AI threats in objective 2.6. Distractors are always closely related attacks.
Where can I practise more Threats, Vulnerabilities, and Attacks questions?
This page has 10 free Threats, Vulnerabilities, and Attacks questions with answers. CertRidge's SY0-801 question bank has 191 questions in this domain. Every practice exam result breaks your score down by domain, and Review Mode re-drills the questions you missed.
Get Threats, Vulnerabilities, and Attacks exam-ready
The full SY0-801 bank has 191 Threats, Vulnerabilities, and Attacks questions. Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.
Worth reading: Security+ passing score (750/900), 750 on a 100–900 scale for SY0-701, SY0-801 and the retired SY0-601, and why it isn't 83%.
Not affiliated with CompTIA; questions are original and never copied from the real exam.