All exams← All CompTIA Security+ Practice notes

Threats, vulnerabilities & mitigations: CompTIA Security+ Practice revision notes

Revision notes

Threats, vulnerabilities and mitigations

This domain covers threat actors, attack types, vulnerabilities and how to reduce risk. It is one of the heaviest-weighted areas in Security+ SY0-701, so know it cold.

Threat actor types

  • Nation-state: highest resources and sophistication, often APT (advanced persistent threat) level, motivated by espionage/disruption.
  • Organised crime: financially motivated, uses ransomware and fraud.
  • Hacktivist: ideologically motivated, favours defacement and DDoS.
  • Insider threat: has legitimate access already, hardest to detect by perimeter tools.
  • Unskilled attacker (formerly 'script kiddie'): low skill, uses off-the-shelf tools.
  • Shadow IT: not malicious but creates unmanaged, unpatched attack surface.

Common attack vectors

  • Phishing, vishing (voice), smishing (SMS) and pretexting are all social engineering.
  • Business email compromise (BEC) targets finance staff using spoofed executive emails.
  • Watering hole attacks compromise a site the victims already trust and visit.
  • Supply chain attacks compromise a trusted vendor or update mechanism to reach many victims at once.

Malware and vulnerability types

  • Ransomware encrypts data and demands payment; know the difference from a wiper, which destroys data with no recovery intent.
  • Zero-day: a vulnerability exploited before a patch exists — no CVE fix available yet.
  • Buffer overflow, SQL injection and cross-site scripting (XSS) remain classic application-layer weaknesses; injection flaws stem from unvalidated input.
  • Race conditions (e.g. time-of-check to time-of-use, TOCTOU) exploit timing gaps in code logic.

Mitigation techniques

  • Segmentation isolates critical systems on separate network zones to limit lateral movement.
  • Least privilege gives users/accounts only the access they need, nothing more.
  • Patch management closes known vulnerabilities — the number one defence against non-zero-day exploits.
  • Hardening: disabling unused services/ports, changing default credentials, applying secure baselines.
  • Compensating controls are used when the primary control cannot be applied (e.g. legacy systems that cannot be patched).

Common mistakes

  • Confusing a vulnerability (a weakness) with a threat (the actor/event that could exploit it) with risk (the likelihood x impact).
  • Assuming patching alone stops zero-days — it cannot, since no patch exists yet; mitigating controls (segmentation, monitoring) are needed instead.
  • Mixing up vishing/smishing/phishing — the exam tests you know which channel each uses.

Key facts

Flashcards

What is a zero-day vulnerability?
A vulnerability being exploited before a vendor patch exists.
tap to reveal
Define vulnerability, threat and risk.
Vulnerability = weakness; threat = potential exploiter/event; risk = likelihood x impact.
tap to reveal
What channel does vishing use?
Voice calls (phone-based social engineering).
tap to reveal
What channel does smishing use?
SMS text messages.
tap to reveal
What is an APT?
Advanced persistent threat — typically nation-state, stealthy, long-term access.
tap to reveal
Difference between ransomware and a wiper?
Ransomware encrypts data for payment; a wiper destroys data with no intent to restore.
tap to reveal
What is business email compromise (BEC)?
Spoofing a trusted executive's email to trick staff, usually finance, into fraudulent action such as a wire transfer.
tap to reveal
What is a watering hole attack?
Compromising a website the target group already trusts and visits, to infect them indirectly.
tap to reveal
What is a supply chain attack?
Compromising a trusted vendor or update mechanism to reach many downstream victims at once.
tap to reveal
What is TOCTOU?
Time-of-check to time-of-use — a race condition exploiting the timing gap between checking and using a resource.
tap to reveal
What does the principle of least privilege mean?
Granting users or accounts only the access needed to do their job, nothing more.
tap to reveal
When are compensating controls used?
When the primary security control cannot be applied, e.g. on unpatchable legacy systems.
tap to reveal
What is an insider threat and why is it hard to detect?
Someone with legitimate access who misuses it; hard to detect because perimeter tools assume trusted access is safe.
tap to reveal
What is shadow IT and why is it risky?
Unmanaged/unauthorised IT systems used without approval, creating unpatched, invisible attack surface.
tap to reveal
What replaced the term 'script kiddie' in current CompTIA terminology?
Unskilled attacker.
tap to reveal
Practice questions

Threats, vulnerabilities & mitigations: 5 practice questions

Q1. A user reports that a legitimate banking website's SSL certificate warning appeared, but they clicked through and later found unauthorised transactions. An attacker had positioned themselves between the user and the bank to intercept traffic. What type of attack is this?
  • A.  SQL injection
  • B.  Replay attack
  • C.  On-path (man-in-the-middle) attack
  • D.  Cross-site scripting
Show answer & explanation
✓ Answer: C. On-path (man-in-the-middle) attack
An on-path attack places the attacker between two communicating parties so they can intercept, read, or alter traffic, which explains both the certificate warning and the fraudulent transactions. A replay attack reuses captured data later rather than actively intercepting live traffic, and XSS/SQL injection target web application input rather than the communication channel.
Q2. Which type of malware disguises itself as legitimate software but does not self-replicate, instead relying on the user to install and execute it?
  • A.  Rootkit
  • B.  Worm
  • C.  Virus
  • D.  Trojan
Show answer & explanation
✓ Answer: D. Trojan
A Trojan appears to be legitimate or useful software but carries a hidden malicious payload, and it requires the user to run it rather than spreading on its own. A worm self-replicates across networks without user interaction, and a virus needs a host file and typically self-propagates once triggered.
Q3. An attacker sends a flood of TCP SYN packets with spoofed source addresses to a web server, never completing the handshake, until the server's connection table is exhausted. What is this attack called?
  • A.  DNS amplification
  • B.  SYN flood
  • C.  ARP poisoning
  • D.  Smurf attack
Show answer & explanation
✓ Answer: B. SYN flood
A SYN flood abuses the TCP three-way handshake by sending many SYN packets without completing the ACK, exhausting the server's half-open connection queue. A smurf attack instead abuses ICMP broadcast replies, and DNS amplification abuses open DNS resolvers to magnify traffic toward a victim.
Q4. A penetration tester discovers that an internal application constructs SQL queries by directly concatenating user input into the query string. What vulnerability class does this represent?
  • A.  Buffer overflow
  • B.  Injection vulnerability
  • C.  Insecure deserialization
  • D.  Race condition
Show answer & explanation
✓ Answer: B. Injection vulnerability
Concatenating untrusted input directly into a query string without parameterisation or sanitisation allows an attacker to alter the query's logic, which is the definition of an injection vulnerability. A buffer overflow instead involves writing data beyond allocated memory bounds, unrelated to how the query string is built.
Q5. Which vulnerability occurs when an application checks a file's permissions and then, before it accesses the file, an attacker swaps that file for a different one?
  • A.  Integer overflow
  • B.  Time-of-check to time-of-use (TOCTOU) race condition
  • C.  Directory traversal
  • D.  Buffer overflow
Show answer & explanation
✓ Answer: B. Time-of-check to time-of-use (TOCTOU) race condition
TOCTOU is a race condition where a security check and the subsequent action are separated in time, letting an attacker substitute the resource in between. Directory traversal instead involves manipulating file paths to escape an intended directory, not timing between check and use.
Test yourself
See the CompTIA Security+ Practice page

More CompTIA Security+ Practice topics