CompTIA Security+ · SY0-701 · Domain 2 (22% of the exam)

Security+ Threats, Vulnerabilities and Mitigations Practice Questions

Domain 2 asks you to recognize an attack from its symptoms and choose the mitigation that fits. These 15 original questions cover threat actors, social engineering, malware, application and network attacks, and indicators of malicious activity. Each answer explains why the closest wrong option does not fit.

What these 15 questions cover

  • Threat actors and their motivations
  • Social engineering: vishing and business email compromise
  • Malware types and indicators of malicious activity
  • Application attacks: SQL injection, XSS and race conditions
  • Network and password attacks
  • Zero-day and supply chain vulnerabilities, and segmentation
Question 1 of 15

Threat actors

A group replaces the home page of a government agency's website with a message protesting a new policy. The group makes no financial demand and publicly claims credit. Which type of threat actor is MOST likely responsible?

All 15 Security+ Threats, Vulnerabilities and Mitigations questions with answers

Try the set above first. Then open any question below to check the answer and read why it is correct.

  1. Threat actors

    1. A group replaces the home page of a government agency's website with a message protesting a new policy. The group makes no financial demand and publicly claims credit. Which type of threat actor is MOST likely responsible?

    • A. Organized crime
    • B. Insider threat
    • C. Hacktivist
    • D. Shadow IT
    Show the answer

    C. Hacktivist

    Hacktivists are motivated by political or philosophical beliefs and often deface sites to publicize a cause. Organized crime is driven by financial gain, and there was no ransom or theft here.

  2. Threat actors

    2. A marketing team pays for a cloud file-sharing service with a corporate credit card and starts storing customer lists there. The IT and security teams were never told and have not reviewed the service. What does this situation describe?

    • A. Shadow IT
    • B. Hacktivism
    • C. Nation-state activity
    • D. Organized crime
    Show the answer

    A. Shadow IT

    Shadow IT is technology that employees adopt without the knowledge or approval of the IT department. The team is not acting with malicious intent or on behalf of an outside group, so the other threat actor types do not apply.

  3. Password attacks

    3. Authentication logs show a single source trying the password "Welcome123!" once against each of 400 different user accounts, then trying a second common password against the same accounts an hour later. The passwords are common guesses, not pairs taken from a known breach. Which attack is this?

    • A. Rainbow table attack
    • B. Credential stuffing
    • C. Brute force against one account
    • D. Password spraying
    Show the answer

    D. Password spraying

    Password spraying tries a small number of common passwords across many accounts, staying under lockout thresholds. Credential stuffing replays specific username and password pairs stolen from another breach, which the scenario rules out.

  4. Social engineering

    4. A payroll clerk receives a phone call from someone claiming to be from the help desk. The caller says the clerk's account is locked and asks the clerk to read back the six-digit code that was just texted to them. Which technique is the caller using?

    • A. Smishing
    • B. Vishing
    • C. Watering hole
    • D. Typosquatting
    Show the answer

    B. Vishing

    Vishing is phishing carried out by voice call, and here the attacker is talking the victim into revealing an MFA code. Smishing uses text messages as the lure, but in this case the text is a genuine code and the deception happens over the phone.

  5. Social engineering

    5. An attacker gains access to the CFO's real mailbox and sends a message from it to accounts payable, asking that a supplier's bank details be changed before the next payment run. Which attack does this describe?

    • A. Business email compromise
    • B. Typosquatting
    • C. Watering hole attack
    • D. Smishing
    Show the answer

    A. Business email compromise

    Business email compromise uses a compromised or impersonated business mailbox to trick staff into redirecting payments or data. Typosquatting relies on a lookalike domain name, but this message came from the genuine account.

  6. Indicators of compromise

    6. A user account signs in from an office in Chicago at 9:00 a.m. and then signs in from an address in Singapore at 9:20 a.m. the same day. Which indicator of malicious activity does this show?

    • A. Resource consumption
    • B. Impossible travel
    • C. Account lockout
    • D. Missing logs
    Show the answer

    B. Impossible travel

    Impossible travel is flagged when two sign-ins occur from locations too far apart to reach in the time between them, which suggests stolen credentials. Account lockout would show repeated failed attempts, but both sign-ins here succeeded.

  7. Malware types

    7. During a review, an administrator finds a scheduled script planted by a former system administrator. Each day the script checks whether his user account still exists in the HR system, and it is written to delete the customer database once the account is gone. Which type of malware is this?

    • A. Worm
    • B. Rootkit
    • C. Logic bomb
    • D. Keylogger
    Show the answer

    C. Logic bomb

    A logic bomb stays dormant until a specific condition is met, in this case the removal of the account, and then runs its payload. A worm is defined by spreading itself to other systems, which this script does not do.

  8. Mitigation techniques

    8. Ransomware that started on one workstation spread to file servers in every department because the company runs a single flat network. Which mitigation would MOST directly limit this kind of lateral spread in the future?

    • A. Increasing the frequency of file server backups
    • B. Enabling full-disk encryption on every workstation
    • C. Requiring longer passwords for all user accounts
    • D. Segmenting the network into restricted zones
    Show the answer

    D. Segmenting the network into restricted zones

    Segmentation restricts which systems can talk to each other, so malware on one workstation cannot freely reach servers in other zones. More frequent backups improve recovery after an attack, but they do nothing to stop the malware from spreading.

  9. Application attacks

    9. A web application log shows the following value submitted in a login form's username field: ' OR '1'='1' --. Which attack was attempted?

    • A. Cross-site scripting
    • B. SQL injection
    • C. Directory traversal
    • D. Buffer overflow
    Show the answer

    B. SQL injection

    The input tries to change the logic of a database query so the condition is always true, which is SQL injection. Cross-site scripting would inject script code meant to run in a browser, not SQL syntax aimed at the database.

  10. Application attacks

    10. An attacker posts a comment on a public forum that contains a script tag. Each time another user views the thread, the script runs in that user's browser and sends their session cookie to the attacker. Which attack is this?

    • A. Cross-site scripting
    • B. Cross-site request forgery
    • C. SQL injection
    • D. Directory traversal
    Show the answer

    A. Cross-site scripting

    This is stored cross-site scripting: malicious script saved by the site executes in other users' browsers. Cross-site request forgery does not inject script into the site. It tricks a logged-in user's browser into sending an unwanted request.

  11. Application attacks

    11. A banking application checks an account balance and then deducts a withdrawal as two separate steps. An attacker sends two withdrawal requests at the same instant, and both pass the balance check before either deduction is recorded. Which vulnerability was exploited?

    • A. Buffer overflow
    • B. Memory injection
    • C. Race condition
    • D. Malicious update
    Show the answer

    C. Race condition

    This is a race condition of the time-of-check to time-of-use kind: the state changes between the check and the action that depends on it. A buffer overflow involves writing more data than a memory buffer can hold, which is not what happened.

  12. Network attacks

    12. Several workstations on the same subnet suddenly show the default gateway's IP address mapped to the MAC address of an ordinary user workstation. Traffic to the internet still works, but it now passes through that workstation. Which type of attack does this MOST likely indicate?

    • A. DNS poisoning
    • B. Credential replay
    • C. Amplified DDoS
    • D. On-path attack
    Show the answer

    D. On-path attack

    Forged ARP replies have made hosts associate the gateway's IP address with the attacker's MAC address, so traffic flows through the attacker's workstation, which is an on-path attack. DNS poisoning corrupts name-to-IP resolution and would not change the IP-to-MAC mappings in the hosts' ARP caches.

  13. Network attacks

    13. A company's public IP address is flooded with large DNS responses from thousands of open resolvers. The company's systems never sent the matching queries. Which attack is taking place?

    • A. DNS poisoning
    • B. Reflected and amplified DDoS
    • C. On-path attack
    • D. Credential replay
    Show the answer

    B. Reflected and amplified DDoS

    The attacker spoofs the victim's address in small queries to many resolvers, which reflect much larger responses at the victim. DNS poisoning inserts false records into a resolver's cache and does not generate a traffic flood.

  14. Vulnerability types

    14. Attackers are actively exploiting a flaw in a widely used VPN appliance. The vendor states that it was unaware of the flaw until the attacks began and that no patch exists yet. Which term describes this vulnerability?

    • A. Zero-day
    • B. Misconfiguration
    • C. End-of-life
    • D. Supply chain
    Show the answer

    A. Zero-day

    A zero-day is a vulnerability that is exploited before the vendor knows about it or has a fix available. It is not an end-of-life issue, because the product is still supported and the vendor is working on a patch.

  15. Vulnerability types

    15. Attackers break into a software vendor's build server and insert malicious code into a routine product update. The vendor signs and publishes the update, and hundreds of customers install it through the normal update process. Which type of attack is this?

    • A. Typosquatting
    • B. Watering hole attack
    • C. Supply chain attack
    • D. Shadow IT
    Show the answer

    C. Supply chain attack

    A supply chain attack compromises a trusted supplier so that its product delivers the attack to customers. A watering hole attack infects a website the targets are likely to visit, rather than tampering with software the vendor ships.

More Security+ practice questions by topic

Frequently asked questions

How much of the Security+ exam is Domain 2?
Threats, Vulnerabilities and Mitigations is weighted at 22% of SY0-701, the second largest domain. CompTIA publishes the weight for each domain but not an exact number of questions.
How do I tell similar attacks apart on the exam?
Look for the single deciding detail in the scenario. For example, one password tried against many accounts is spraying, stolen username and password pairs are credential stuffing, and a phone call is vishing while a text message is smishing.
Does Domain 2 only cover attacks?
No. The domain also covers threat actors and their motivations, attack surfaces, types of vulnerabilities, indicators of malicious activity, and mitigation techniques such as segmentation, patching, least privilege and hardening.

Practice Security+ PBQs

Performance-based questions (PBQs) are the hands-on simulations on the real exam. Practice them in our PBQ labs.

More Security+ resources

Want more Security+ Threats, Vulnerabilities and Mitigations questions?

Practice by domain in the full question bank, take timed mock exams and see exactly where to focus next.

Get started