CompTIA Security+ Threats Attacks and Vulnerabilities

By Jordan Blake · Updated May 25, 2026

Questions23
Passing Score75%
Format65% Multiple Choice
Sessions Logged652
Your progressLog in / Register to track times taken, best score, questions mastered, and coverage on this quiz.
Rating
Community rating 4.6 out of 5 from 21 ratings.
4.6 (21)

Topics covered

This quiz

Uncategorized23 (100%)

Uncategorized23 questions

Discussion

Log in to post a comment, reply, or expand a question.

Q-6047

Question Q-6047 What type of attack involves an attacker intercepting communication between…

2 comments · last active Jun 8, 2026

  • MEKAROID · Jun 7, 6:33 AM

    Mitigation: TLS, cert pinning, HSTS, VPN. DoS is availability, not interception.

  • ablogotrip9 · Jun 8, 2:46 PM

    MitM = attacker in the middle reads/alters traffic. ARP spoofing and rogue AP are local examples; SSL stripping is web-focused.

Q-6069

Question Q-6069 A penetration tester is hired by a company and given…

2 comments · last active Jun 8, 2026

  • _nine_ · Jun 6, 1:37 PM

    MFA and account lockout policies are the controls. Passphrases > complex rotation per NIST SP 800-63B guidance.

  • chensta111 · Jun 8, 1:41 AM

    Password attacks: brute force, dictionary, rainbow tables (salt defeats precomputed tables), credential stuffing.

Q-6048

Question Q-6048 Which type of malware encrypts victim files and demands payment…

2 comments · last active Jun 7, 2026

  • donkim1153 · Jun 6, 12:40 PM

    Ransomware encrypts + demands payment; modern strains exfiltrate first (double extortion). Offline backups are the recovery answer.

    +2 votes
  • mccord1000 · Jun 7, 4:40 AM

    Rootkit hides presence; spyware watches; trojan disguises as legit software — know the primary behavior each.

Q-6051

Question Q-6051 Which THREE techniques are commonly used in a password attack?

2 comments · last active Jun 6, 2026

  • SecretsOfTheUnknown · Jun 6, 7:29 AM

    Phishing = broad; spear = targeted; whaling = executives; vishing/smishing = voice/SMS channels.

  • wopmapo · Jun 6, 7:29 PM

    Pretexting sets up the story; baiting uses curiosity (USB drop). Exam scenarios usually spell out the channel.

Q-6054

Question Q-6054 What distinguishes a vulnerability from an exploit?

2 comments · last active Jun 3, 2026

  • Discomfitting_SOB · Jun 2, 6:55 AM

    DDoS = distributed botnet volume; DoS = single source. Amplification attacks abuse reflectors (DNS/NTP).

  • mfenergy · Jun 3, 3:55 AM

    Mitigation: rate limiting, scrubbing services, anycast, redundant bandwidth. Not 'patch the server' for volumetric floods.

Q-6057

Question Q-6057 An organization conducts a threat intelligence exercise and classifies a…

2 comments · last active May 30, 2026

  • ggggggforce · May 30, 6:36 AM

    Zero-day = no vendor patch yet. Virtual patch via IPS/WAF is compensating until code fix ships.

  • katajin31309 · May 30, 4:36 PM

    CVSS score describes severity, not exploitability in your environment — asset value and exposure matter for risk.

Q-6060

Question Q-6060 Place the following steps of the Cyber Kill Chain (Lockheed…

2 comments · last active May 28, 2026

  • Casualamathrowaway3 · May 28, 2:11 AM

    SQLi, XSS, CSRF — web app big three. Input validation + parameterized queries + CSRF tokens respectively.

  • Ben10do · May 28, 8:11 PM

    XSS steals sessions in browser; stored vs reflected vs DOM — know where payload lives.

Q-6066

Question Q-6066 Which TWO behaviors are indicators of a supply chain attack?

2 comments · last active May 25, 2026

  • boinklist · May 25, 5:08 AM

    Risk = threat × vulnerability × impact. Transfer = insurance; accept = documented sign-off; mitigate = controls.

  • greatwallcrushers · May 25, 12:08 PM

    Threat vs threat actor vs vulnerability — definitions show up in fill-in-blank form on this quiz.

Q-6063

Question Q-6063 Multi-factor authentication (MFA) requires users to provide two or more…

2 comments · last active May 25, 2026

  • yourejustsmarter1234 · May 24, 4:56 AM

    Supply chain: compromise upstream vendor (SolarWinds-style). Third-party libs and update channels are in scope for 701.

  • nodester101 · May 25, 5:56 AM

    Watering hole targets sites your org frequents. Different from drive-by — attacker picks where victims browse.

Question catalog for this preview

Catalog listing of the 5 preview questions for this quiz.

Question 1

Which THREE techniques are commonly used in a password attack?

Answer choices

  • A. Brute force (trying all possible combinations) (Correct)

  • B. Dictionary attack (using wordlists of common passwords) (Correct)

  • C. Credential stuffing (using breached username/password pairs on other sites) (Correct)

  • D. VLAN hopping (manipulating 802.1Q tags)

  • E. DNS poisoning (inserting fake DNS records)

Explanation

Password attack types: (A) Brute Force — systematically tries every possible combination; effective against short/simple passwords but computationally expensive; (B) Dictionary Attack — uses wordlists (common passwords, dictionary words, variations); extremely effective against common passwords; (C) Credential Stuffing — takes breached credentials from one site and automates login attempts on others; effective because ~65% of users reuse passwords. Mitigations: strong unique passwords, MFA, account lockout policies, password managers. VLAN hopping and DNS poisoning are network attacks, not password attacks.

Question 2

An attacker finds a web application that reflects user input directly back in the HTTP response without encoding. The attacker hosts a malicious link that embeds `<script>alert(document.cookie)</script>` in a URL parameter. Which XSS type is this?

Answer choices

  • A. Stored (Persistent) XSS

  • B. Reflected (Non-Persistent) XSS (Correct)

  • C. DOM-Based XSS

  • D. Blind XSS

Explanation

Reflected XSS occurs when malicious script is embedded in a request (typically URL parameter) and the server reflects it back in the HTML response without sanitizing — executing in the victim's browser. It requires tricking the victim into clicking a crafted URL (via phishing). The script is NOT stored server-side. Stored XSS: malicious script saved in the database (comments, forum posts) — affects all visitors. DOM-Based XSS: client-side JavaScript processes attacker-controlled data without server involvement. Blind XSS: payload executes in a context the attacker can't directly observe (admin panels). Mitigations: output encoding, Content Security Policy (CSP), input validation, HTTPOnly cookies.

Question 3

Which TWO techniques are used in a pass-the-hash (PtH) attack?

Answer choices

  • A. The attacker needs the plaintext password to conduct the attack

  • B. The attacker captures an NTLM password hash and uses it directly for authentication without cracking it (Correct)

  • C. PtH attacks exploit Windows NTLM authentication's ability to accept password hashes as authentication proof (Correct)

  • D. PtH is only effective against accounts with no password

  • E. PtH attacks require the attacker to be on a different network segment than the victim

Explanation

Pass-the-Hash exploits a fundamental weakness in Windows NTLM authentication: NTLM accepts the password hash as proof of identity, not just the plaintext password. Attack process: (1) Attacker obtains NTLM hash from memory (using Mimikatz, secretsdump.py), SAM database, or network capture; (2) Uses the hash directly in authentication protocols without ever knowing the plaintext password. This enables lateral movement across the network. Mitigations: Credential Guard (Windows 10+, protects LSA secrets in virtualized container), disable NTLM where possible (use Kerberos), Protected Users security group, privileged account separation. PtH does not require the plaintext password.

Question 4

A penetration tester is hired by a company and given no prior information about the target environment. What type of engagement is this?

Answer choices

  • A. White-box testing

  • B. Gray-box testing

  • C. Black-box testing (Correct)

  • D. Red team exercise

Explanation

Penetration testing knowledge levels: Black-box — tester has NO prior knowledge of the target environment (simulates an external attacker with no insider information); most realistic simulation of real-world attack. White-box — tester has full knowledge (network diagrams, source code, credentials); most thorough coverage, tests defenses with complete information. Gray-box — tester has partial knowledge (some network info, maybe a low-privilege account); balances realism with efficiency. Red team — extended adversarial simulation covering physical, social engineering, and technical attack vectors; tests detection and response capabilities, not just defenses. Scope is defined in the Rules of Engagement (ROE)/Statement of Work.

Question 5

An organization conducts a threat intelligence exercise and classifies a threat actor as having high sophistication, significant financial resources, and nation-state backing. Which threat actor category BEST describes this?

Answer choices

  • A. Script kiddie

  • B. Hacktivist

  • C. APT (Advanced Persistent Threat) (Correct)

  • D. Insider threat

Explanation

APT threat actors are highly sophisticated, well-funded organizations (often nation-states or state-sponsored groups) that conduct targeted, long-term cyberattacks. Characteristics: custom malware/exploits, patient multi-stage attacks, persistence mechanisms, espionage or sabotage goals, zero-day exploitation. Examples: APT28 (Fancy Bear/Russia), APT41 (China), Lazarus Group (North Korea). Script kiddies use existing tools without deep knowledge. Hacktivists are motivated by ideology (Anonymous). Insider threats involve current/former employees, contractors. APTs represent the most sophisticated and persistent threat category.