A security analyst reviews an intrusion in which attackers defaced the company's public website with political slogans and leaked internal emails to embarrass executives, demanding no payment. Which motivation best characterizes this threat actor?
Answer
Correct answerC · Philosophical or political beliefs driving an ideological protest
Defacing sites with slogans and leaking data to shame leadership while seeking no profit is the textbook hacktivist pattern motivated by ideology rather than money.
Why the other options are wrong
AThis misreads the incident as ransomware or extortion, but the attackers demanded no money and instead sought public embarrassment, contradicting a financial motive.
BEspionage relies on stealth to exfiltrate secrets undetected, yet here the attackers publicized data loudly, the opposite of covert intellectual-property theft.
DUnskilled thrill-seekers act for excitement without a cause, but the deliberate political messaging here signals a purposeful ideological agenda, not random recreational mischief.
Hacktivists are motivated by political or social ideology, not profit + SY0-701 Obj 2.1
2.2 Threat vectors & attack surfaces
An employee finds an unlabeled USB flash drive in the company parking lot, plugs it into a workstation out of curiosity, and the system is immediately infected with malware. Which threat vector was exploited?
Answer
Correct answerA · Removable media introduced directly into an internal workstation
Inserting an untrusted USB drive that auto-loads malware is the classic removable-media vector, bypassing perimeter defenses by relying on physical human curiosity.
Why the other options are wrong
BWatering-hole attacks infect users via a website they routinely visit, but no browsing occurred here; the infection came from a physical drive, not a site.
CBusiness email compromise abuses trusted email and fraudulent invoices, yet this scenario involved no message at all; the entry point was hardware, not email.
DSupply-chain attacks compromise legitimate vendor products before delivery, but a random drive found outside is not a trusted supplied component, so this label misfits.
Found/dropped USB devices are a removable-media threat vector + SY0-701 Obj 2.2
2.3 Types of vulnerabilities
Which vulnerability occurs when a program validates the state of a resource and then acts on that resource, but the resource's state is altered by another process in the interval between the check and the use?
Answer
Correct answerD · Time-of-check to time-of-use race condition between operations
A TOCTOU race condition exploits exactly this gap, where the verified state changes before the program acts, letting attackers substitute a different resource.
Why the other options are wrong
ABuffer overflows stem from writing past allocated memory boundaries, which concerns input size handling, not the timing gap between checking and using a resource.
BSQL injection results from concatenating untrusted input into queries, an input-validation flaw unrelated to a timing window between a resource check and subsequent use.
CCross-site scripting injects malicious scripts into web pages rendered by browsers, an output-encoding problem distinct from concurrent state changes between validation and action.
Race conditions (TOCTOU) exploit the check-then-use timing gap + SY0-701 Obj 2.3
2.4 Indicators of malicious activity
A security analyst notices a single internal host generating thousands of outbound DNS queries every hour to long, randomly generated domain names, most of which fail to resolve. Which malware behavior does this most strongly indicate?
Answer
Correct answerB · A domain generation algorithm locating command-and-control servers
Malware using a domain generation algorithm produces many pseudo-random domains to reach rotating command-and-control infrastructure, explaining the flood of failing algorithmic DNS queries observed.
Why the other options are wrong
AA logic bomb stays dormant until a condition fires and generates no steady network traffic, so constant DNS lookups do not match its silent dormant nature.
CA keylogger records typed input locally and exfiltrates sparingly, so it would not generate thousands of random domain lookups per hour as seen here.
DA rootkit hides files and processes to evade detection but does not inherently produce massive volumes of randomized DNS requests, making this behavioral indicator a poor fit.
High-volume random DNS queries indicate a DGA reaching C2 + SY0-701 Obj 2.4
2.4 Indicators of malicious activity
A security analyst observes authentication logs showing one single login attempt against hundreds of different user accounts, each attempt using the same common password 'Spring2026!'. Which attack is most likely occurring?
Answer
Correct answerA · Password spraying one common credential across many accounts
Trying a single popular password against many accounts while limiting attempts per account defines password spraying, designed to avoid lockout thresholds that detect repeated failures.
Why the other options are wrong
BBrute force exhaustively tries countless passwords against a single account, which would trigger lockouts; here only one password hits many accounts, contradicting that pattern.
CA dictionary attack runs many wordlist entries against one target, but the logs show one password spread across many accounts, the inverse of dictionary behavior.
DPass-the-hash replays captured password hashes to authenticate without plaintext, yet here a cleartext password is being tried, so no hash reuse is involved.
One password tried across many accounts is password spraying + SY0-701 Obj 2.4
2.5 Mitigation techniques
After a ransomware infection spread unchecked across a flat internal network and reached nearly every server, a security team wants to limit lateral movement during any future incident. Which mitigation most directly addresses this goal?
Answer
Correct answerC · Segmenting the network into isolated zones with controlled paths
Network segmentation divides the environment into separate zones with restricted inter-zone traffic, containing infections and directly limiting the lateral movement that caused widespread spread.
Why the other options are wrong
AFull-disk encryption protects data confidentiality on stolen or lost devices but does nothing to stop malware from spreading laterally between reachable hosts on a network.
BStrong password policies harden authentication against guessing, yet they do not restrict network reachability, so ransomware can still propagate freely across a flat segment.
DUpdated antivirus signatures improve detection of known malware but cannot reliably contain a novel ransomware strain already moving across an unsegmented, fully reachable network.
Segmentation contains threats and limits lateral movement + SY0-701 Obj 2.5
2.1 Threat actors & motivations
A database administrator who has just been told he will be laid off next week copies the entire customer list to a personal drive and quietly schedules a script to delete production records after his final day. Which threat actor best describes him?
An insider threat is a current or former trusted user who abuses authorized access, exactly matching a departing administrator copying sensitive data and planting a destructive deletion script.
Why the other options are wrong
AOrganized crime groups are external profit-driven gangs, but this trusted employee already holds legitimate internal access and acts from personal grievance rather than a coordinated criminal enterprise.
CNation-state actors are well-resourced government-sponsored teams pursuing strategic or political objectives, which does not fit one disgruntled employee acting alone for personal revenge before his layoff.
DHacktivists attack to advance a public ideological or political cause, yet this employee seeks private retaliation and data theft, showing no activist message or broader social agenda.
Several employees who mistype the company's online-banking address by a single letter land on a near-identical fraudulent page that captures their login credentials. Which threat vector did the attackers exploit?
Answer
Correct answerC · Typosquatting a misspelled lookalike domain
Typosquatting registers domains closely resembling a real one so users who mistype a single character reach an attacker-controlled lookalike site that harvests their entered credentials.
Why the other options are wrong
AA watering-hole attack compromises a legitimate site the target group already frequents, but here victims are diverted by their own typing mistake to a separate attacker-controlled domain.
BBusiness email compromise hijacks or spoofs trusted email accounts to push fraudulent payments, whereas this attack relies on a mistyped web address and involves no email message at all.
DSmishing delivers malicious lures through SMS text messages, but no text was involved here; the user simply fat-fingered a URL and arrived at a fake banking page.
During a penetration test, code running inside a guest virtual machine breaks out of the hypervisor's isolation and executes commands directly on the underlying host, exposing the other tenants' virtual machines. Which vulnerability was exploited?
Answer
Correct answerD · VM escape breaching hypervisor isolation
VM escape exploits a hypervisor flaw allowing code in a guest to break isolation and execute on the host, endangering every other tenant virtual machine on that server.
Why the other options are wrong
AVM sprawl is the unmanaged proliferation of forgotten virtual machines that wastes resources and widens the attack surface, but it does not describe breaking out of hypervisor isolation.
BCross-site scripting injects malicious scripts into web pages viewed by users, an application flaw entirely unrelated to escaping a guest virtual machine to reach the underlying host.
CPrivilege escalation inside one guest only elevates rights within that single operating system, while the tester crossed the virtualization boundary to control the shared host itself.
VM escape = guest code breaks hypervisor isolation to reach the host + SY0-701 Obj 2.3
2.4 Indicators of malicious activity (network)
An attacker on the same local network poisons ARP caches so that all traffic between a victim workstation and the default gateway is routed through the attacker's machine, which silently reads and alters it. Which attack is occurring?
An on-path attacker inserts itself between two parties, here through ARP poisoning, to silently read and modify the traffic flowing between the victim workstation and the gateway.
Why the other options are wrong
BA distributed denial-of-service attack floods a target with traffic to exhaust capacity, but this attacker stays quiet and intercepts traffic rather than overwhelming any service or host.
CDNS cache poisoning corrupts resolver records to redirect name lookups, yet here the attacker manipulates ARP on the local segment, not DNS responses, to seize the traffic path.
DCredential replay captures and reuses authentication material to log in later, which differs from actively relaying and altering live traffic between a victim and gateway in real time.
ARP poisoning to intercept and alter traffic is an on-path attack + SY0-701 Obj 2.4
2.4 Indicators of malicious activity (application)
A web server's access logs show repeated requests containing sequences such as ../../../../etc/passwd, apparently trying to read files stored outside the web root directory. Which attack do these requests indicate?
Answer
Correct answerC · Directory traversal escaping the web root
Directory traversal uses sequences like dot-dot-slash to escape the web root and read arbitrary files, such as the system password file, located outside the intended served folder.
Why the other options are wrong
ASQL injection inserts crafted input into database queries to manipulate data, but these requests target the file system with dot-dot-slash sequences, not any backend SQL statement.
BCross-site request forgery tricks an authenticated browser into submitting unwanted actions, which has nothing to do with traversing directories to read protected files on the server.
DCross-site scripting injects scripts that run in victims' browsers, but the logged payload reads server-side files instead of delivering any client-side executable script content at all.
dot-dot-slash sequences reading files outside the web root is directory traversal + SY0-701 Obj 2.4
2.5 Mitigation techniques
After repeated infections from users running unapproved downloads, a security team wants only an explicitly approved set of programs to run on endpoints while every other executable, including unknown malware, is blocked by default. Which mitigation achieves this?
Answer
Correct answerB · Application allow list of approved software
An application allow list permits only explicitly approved programs to execute and blocks everything else by default, stopping any unapproved or unknown executable from ever running.
Why the other options are wrong
ASignature-based antivirus only blocks malware matching known signatures, so a novel or unknown executable can still run, failing the goal of permitting solely pre-approved programs.
CLeast privilege restricts the rights granted to accounts, but a user with normal rights could still launch unapproved software, so it does not enforce approved-only program execution.
DRegular patching fixes known vulnerabilities in installed software, yet it does nothing to prevent a user from running a brand-new malicious executable that was never approved.
Application allow list permits only approved programs and blocks all else + SY0-701 Obj 2.5
2.1 Threat actor attributes & motivations
A security team attributes a breach to an actor that deployed several custom zero-day exploits, maintained covert persistence for more than a year, and operated strictly during a foreign government's working hours. Which threat actor attributes does this evidence most strongly indicate?
Answer
Correct answerB · A well-funded, highly sophisticated external nation-state actor
Custom zero-days, year-long covert persistence, and disciplined working-hours operations reflect the deep resources and advanced sophistication that distinguish well-funded external nation-state actors from lesser groups.
Why the other options are wrong
AScript kiddies rely on freely borrowed tools and lack the funding to develop multiple zero-day exploits or sustain a stealthy year-long intrusion campaign like the one described.
CAn insider already holds authorized access and would not need several custom zero-day exploits or external persistence techniques to operate within the targeted environment over time.
DHacktivists seek loud public attention for an ideology, but this actor stayed covert for over a year and displayed no protest messaging or social cause.
Custom zero-days, long persistence, and heavy funding indicate a sophisticated nation-state actor + SY0-701 Obj 2.1
2.2 Threat vectors & attack surfaces
A company's accounts-payable clerk receives an urgent email that appears to come from the CEO, written in his usual style, instructing an immediate wire transfer to a new vendor account; the message carries no attachment or link. Which threat vector is being used?
Answer
Correct answerA · Business email compromise impersonating a trusted executive
Business email compromise impersonates or hijacks a trusted executive to push fraudulent payments through email alone, exactly matching an urgent CEO wire request that carries no malware.
Why the other options are wrong
BA watering-hole attack infects a website the target routinely visits, but no browsing occurred here; the fraud arrived purely as a deceptive email message.
CSupply-chain compromise tampers with a vendor's product before delivery, yet this incident involves no software or hardware component, only a spoofed internal email request.
DUSB HID injection requires a malicious physical device emulating a keyboard, but the clerk received only an email and plugged in nothing, so this vector cannot apply.
A spoofed-executive urgent payment email with no malware is business email compromise + SY0-701 Obj 2.2
2.3 Types of vulnerabilities
An attacker submits a product review containing a script tag to an e-commerce site, which saves it; afterward every shopper who opens that product page unknowingly executes the script, sending their session cookies to the attacker. Which vulnerability is exploited?
Answer
Correct answerD · Stored cross-site scripting persisted on the server
Stored XSS saves malicious script on the server so it persistently runs in the browser of every user who views the affected page, stealing their session cookies.
Why the other options are wrong
AReflected XSS bounces script from a single crafted request back to that one victim, but here the payload was saved and served automatically to every later visitor.
BSQL injection manipulates database queries through crafted input, whereas this attack injects a browser-executed script into a stored page rather than any backend SQL statement.
CCross-site request forgery tricks a browser into submitting unwanted actions, but this attack runs attacker-supplied script inside victims' browsers to steal cookies, not forge requests.
A saved script that runs for every later visitor is stored cross-site scripting + SY0-701 Obj 2.3
2.4 Indicators of malicious activity
After a different company's breach dumped millions of username-and-password pairs online, an attacker automatically replays those exact pairs against your login portal, and accounts whose owners reused the same password are compromised. Which attack is occurring?
Credential stuffing automates replaying username-password pairs stolen from one breach against another site, succeeding wherever victims reused the same credentials, exactly as described in this scenario.
Why the other options are wrong
APassword spraying tries a single common password against many accounts, but this attacker replays specific leaked username-password pairs, relying on password reuse rather than one guessed password.
BBrute force exhaustively tries countless combinations against one account and triggers lockouts, whereas this attack reuses already-known credential pairs from a separate breach across many accounts.
DA dictionary attack runs many wordlist guesses against a single target, but here valid leaked pairs are replayed across many accounts rather than guessed from a wordlist.
Replaying breached username-password pairs that exploit password reuse is credential stuffing + SY0-701 Obj 2.4
2.4 Indicators of malicious activity
An on-path attacker intercepts a user's connection and manipulates it so the browser communicates over plaintext HTTP instead of the secured HTTPS the server originally offered, letting the attacker read the submitted credentials. Which attack does this describe?
Answer
Correct answerB · Downgrade attack stripping the connection to plaintext
A downgrade attack, such as SSL stripping, forces a connection onto a weaker or plaintext protocol so the attacker can read data the encryption was meant to protect.
Why the other options are wrong
ADNS poisoning corrupts name-resolution records to send users toward a fraudulent address, but here the destination is unchanged; only the protocol was forced down to plaintext.
CA birthday attack exploits probability to find a hash collision, which concerns cryptographic digests, not coercing a live session away from HTTPS down to plaintext HTTP.
DA replay attack resends previously captured authentication data, but this attack instead weakens the live connection's encryption in real time to read freshly submitted credentials.
Forcing a session from HTTPS to plaintext to read data is a downgrade/SSL-strip attack + SY0-701 Obj 2.4
2.5 Mitigation techniques
A review finds that every helpdesk technician has been granted domain administrator rights they almost never use, so any single compromised helpdesk account could control the entire domain. Which mitigation most directly reduces this risk?
Answer
Correct answerA · Applying least privilege to grant only needed rights
Least privilege grants each account only the permissions its role genuinely requires, so a compromised helpdesk account no longer carries the excessive domain administrator rights an attacker could abuse.
Why the other options are wrong
BEncrypting drives at rest protects data on stolen or powered-off disks, but it does nothing to reduce the excessive administrative rights assigned to active helpdesk accounts.
CA host-based firewall filters network traffic to and from a workstation, yet it cannot revoke the over-broad domain administrator permissions that make each helpdesk account so dangerous.
DNetwork segmentation limits lateral movement between zones, but the helpdesk accounts would still hold domain admin rights, so a single compromise could still control the domain.
Granting only the rights a role needs to limit account blast radius is least privilege + SY0-701 Obj 2.5
2.1 Compare and contrast common threat actors and motivations
Frustrated by slow IT approval queues, a marketing team signs up for an unsanctioned cloud file-sharing service and begins storing customer records there to speed up campaigns. Security only discovers the service months later during a vendor review. Which threat actor category best describes the marketing team's behavior?
Answer
Correct answerC · Shadow IT within the org
Correct because shadow IT is staff deploying unsanctioned hardware or services outside IT governance, exactly matching this team's unapproved cloud adoption for speed.
Why the other options are wrong
AWrong because a malicious insider deliberately abuses authorized access to cause harm, while these employees sought convenience and had no sabotage or theft intent.
BWrong because organized crime is an external, financially motivated group running coordinated operations, not internal staff informally adopting an unapproved productivity tool.
DWrong because an unskilled attacker runs prebuilt exploit tools against targets, which does not describe employees provisioning their own storage for legitimate work tasks.
CompTIA SY0-701 Obj 2.1 (Shadow IT threat actor); Microsoft Learn — Defender for Cloud Apps Shadow IT
2.2 Explain common threat vectors and attack surfaces
An attacker group wants to compromise engineers at several defense contractors but cannot get phishing emails past their filters. Instead, they compromise a niche industry-standards website those engineers visit daily and inject a drive-by exploit that infects visitors. Which technique are the attackers using?
Answer
Correct answerB · Watering hole attack
Correct because a watering hole compromises a site a target group frequents so members are infected when visiting, precisely matching this standards-website approach.
Why the other options are wrong
AWrong because spear phishing sends crafted messages directly to chosen targets, whereas here the attackers infect a trusted third-party site and wait for victims to arrive.
CWrong because typosquatting registers misspelled lookalike domains to catch mistyped URLs, but the engineers reached the real, legitimately addressed site that was compromised.
DWrong because pretexting builds a fabricated scenario to manipulate a person in conversation, while this attack relies on a poisoned website rather than human dialogue.
A legacy C network daemon copies attacker-supplied input into a fixed 256-byte stack array without checking the input length. By sending 400 bytes, the attacker overwrites the saved return address and redirects execution to injected shellcode. Which application vulnerability does this describe?
Answer
Correct answerD · Buffer overflow condition
Correct because writing more data than a fixed buffer holds overruns adjacent memory and the return address, enabling code execution exactly as described here.
Why the other options are wrong
AWrong because a race condition exploits timing between concurrent operations on a shared resource, not the writing of oversized input past a fixed memory boundary.
BWrong because SQL injection inserts crafted query syntax into a database call, while this attack overwrites process memory in a C program with no database involved.
CWrong because integer overflow wraps a numeric value past its maximum, whereas the root cause here is unbounded copying of input beyond an allocated buffer length.
Reviewing authentication logs, an analyst sees that across 2,000 different user accounts there is exactly one failed login each, all using the password 'Spring2026!', with attempts spread over several hours from rotating source IPs. Lockout thresholds were never tripped. Which attack does this pattern indicate?
Answer
Correct answerA · Password spraying attempt
Correct because password spraying tries one common password against many accounts slowly to dodge lockout, matching the single guess per account spread over hours.
Why the other options are wrong
BWrong because classic brute force hammers one account with many password guesses, but here each account received only a single attempt with the same password.
CWrong because credential stuffing replays many breached username-password pairs, while this pattern reuses one identical password across accounts rather than varied leaked combinations.
DWrong because privilege escalation abuses a flaw to gain higher rights after access, not a guessing pattern of one shared password against thousands of logins.
2.4 Analyze indicators of malicious activity (malware types)
After a breach, responders find a process that running tools cannot see and a driver loaded into the kernel that hooks system calls so infected files are hidden from the OS file listing and antivirus. Offline disk imaging reveals the files the live system denied existed. Which malware type is present?
Answer
Correct answerB · Kernel-mode rootkit
Correct because a rootkit operates at kernel level and hooks system calls to conceal processes and files from the OS and AV, exactly as observed here.
Why the other options are wrong
AWrong because a trojan disguises itself as legitimate software to trick installation, but it does not inherently hook the kernel to hide files from the operating system.
CWrong because a worm's defining trait is autonomous propagation across hosts, while the evidence here centers on stealth and kernel concealment, not network self-replication.
DWrong because a keylogger records typed input to steal credentials, which does not explain hidden kernel drivers cloaking files and processes from the system.
2.5 Mitigation techniques used to secure the enterprise
A quarterly vulnerability scan flags a production application server still running an operating system the vendor declared end-of-life two years ago. The report lists several critical CVEs for which no patches will ever be released because the platform is unsupported. The application has already been migrated to a modern replacement server, but the old host remains powered on and reachable. Which mitigation BEST eliminates the risk posed by the unpatchable system?
Answer
Correct answerC · Decommission the legacy server
Because the workload already moved and no patches exist, retiring the unsupported host removes the vulnerable asset entirely and is the definitive mitigation here.
Why the other options are wrong
AThis wrongly assumes fixes exist; an end-of-life platform receives no vendor patches, so a tighter patch cadence cannot remediate the unpatchable critical CVEs.
BConfiguration hardening reduces attack surface but cannot close code-level CVEs that require vendor patches, so the unsupported host stays exploitable despite a baseline.
DEncrypting data at rest protects confidentiality if disks are stolen but does nothing to address running-service CVEs on a still-online unsupported host.
Ad slot · in-content rectangle (336×280 / responsive)Below the quiz card, inside the article body — well clear of answer buttons
About this domain
Domain 2 of the CompTIA Security+ SY0-701 exam, Threats, Vulnerabilities & Mitigations, carries 22% of your score, making it the second-heaviest domain on the test. It asks you to think like both attacker and defender: who is coming after the organization, how they get in, what weaknesses they exploit, and what you do about it. Expect scenario questions that hand you a behavior and ask you to name it, then pick the right countermeasure.
The objectives start with threat actors and their motivations, from a hacktivist defacing a public website with political slogans to nation-states, organized crime, and insiders. You then map threat vectors and attack surfaces, such as an unlabeled USB drive found in a parking lot, phishing email, or an exposed cloud service. Vulnerability coverage spans application flaws like race conditions and time-of-check/time-of-use bugs, virtualization weaknesses such as VM escape, and misconfigurations.
The back half is detection and defense. You analyze indicators of malicious activity, including malware families, command-and-control traffic, domain generation algorithms, and password attacks like spraying. Then you apply mitigation techniques: segmentation, least privilege, patching, and access controls that limit lateral movement. Work the practice set below to build the pattern recognition this domain rewards.
What Domain 2 covers
Compare common threat actors and their motivations (hacktivism, financial, espionage, insider)