Free CySA+ practice

20 free CompTIA CySA+ practice questions

Twenty original analyst scenarios for CompTIA CySA+ CS0-004, split across the four domains in proportion to CompTIA's published weights. It is a short original preview that cannot match the real exam's length, topic mix, or difficulty, and a percentage here is not a scaled score on the 100–900 scale.

Start question 1
Quick PracticeQuestion 1 of 20
Your progress through this set
Security OperationsStep 1 · Choose one answer

A SIEM alert shows two successful sign-ins to the same employee account 18 minutes apart: one from an office IP address in Denver and one from an IP address geolocated to Singapore. The company uses no VPN or proxy that could explain the second location, and the employee says they made only the Denver sign-in. Which indicator does this pattern match?

Question review

All 20 CySA+ questions with explanations

Try the set above first, then use this list to review. Each answer and explanation stays closed until you open it.

  1. Question 1 · Security Operations

    A SIEM alert shows two successful sign-ins to the same employee account 18 minutes apart: one from an office IP address in Denver and one from an IP address geolocated to Singapore. The company uses no VPN or proxy that could explain the second location, and the employee says they made only the Denver sign-in. Which indicator does this pattern match?

    1. Beaconing, a network indicator of regular check-ins
    2. Typosquatting, a social engineering indicator built on look-alike domains
    3. Impossible travel, an identity-based indicator of shared credentials
    4. Resource consumption, a host indicator of unusual CPU or memory use
    Show answer and explanation for question 1

    Correct answer: C · Impossible travel, an identity-based indicator of shared credentials

    Two sign-ins from places too far apart to travel between in the time that separates them match impossible travel, which CompTIA lists among identity-based indicators. Microsoft's description of this detection says it suggests that a different user is using the same credentials, and the stem rules out a VPN or proxy that could explain the second location. Beaconing is a host calling out to a server on a regular schedule, which a pair of sign-ins does not show. Typosquatting relies on look-alike domain names to trick users. Resource consumption is a host symptom such as unusual CPU or memory use, not a sign-in pattern.

    Look for this next time: Sign-ins from distant places in less time than travel would take point to impossible travel, a sign that someone else holds the credentials.

  2. Question 2 · Security Operations

    EDR flags a process tree on a finance workstation: WINWORD.EXE started cmd.exe, which ran certutil.exe -urlcache -split -f with a URL on an unknown external site and saved the result as update.exe in the user's temp folder. No malware signature matched. What does this activity most likely show?

    1. A built-in Windows utility used to download a file, a living-off-the-land technique
    2. A routine certificate renewal that Windows starts when Word opens a signed document
    3. A false positive, because no malware signature matched any file in the process tree
    4. A vulnerability scanner agent using certutil to check the certificate store
    Show answer and explanation for question 2

    Correct answer: A · A built-in Windows utility used to download a file, a living-off-the-land technique

    certutil.exe is a legitimate Windows tool, and MITRE ATT&CK lists it among the utilities adversaries use to download tools under Ingress Tool Transfer. A Word process that spawns a command shell, which then fetches an executable from an unknown site, is the pattern CompTIA's objectives call Living Off the Land Binaries (LOLBins): trusted system binaries doing an attacker's work. Certificate renewal does not run from Word through cmd.exe or save an executable to the temp folder. The missing signature match does not make the activity benign, because built-in tools are signed and expected on the host, so signature checks alone often miss it. A scanner agent would not be launched by a Word process.

    Look for this next time: When a trusted system binary downloads files on behalf of an Office process, treat it as possible living-off-the-land activity, even with no signature hit.

  3. Question 3 · Security Operations

    A detection captures a command line on a server: powershell.exe -NoProfile -EncodedCommand followed by a long string of letters, digits, and equals signs. The analyst wants to read the script as plain text without running it on any system. Which tool fits this task best?

    1. Wireshark, to open the command line as a packet capture
    2. YARA, to match the string against known malware rules
    3. WHOIS, to look up who registered the string's domain
    4. CyberChef, to decode the Base64 text so it can be read
    Show answer and explanation for question 3

    Correct answer: D · CyberChef, to decode the Base64 text so it can be read

    Microsoft's PowerShell documentation says -EncodedCommand accepts a base-64-encoded string version of a command, formatted as UTF-16LE text, so the string is encoded, not encrypted. CyberChef, which GCHQ publishes as a browser-based tool for encoding, decoding, and data analysis, can reverse both steps so the analyst reads the script without executing it. Wireshark analyzes captured network traffic, and there is no capture here. YARA matches patterns in files or memory and would not turn the string back into a script. WHOIS returns domain registration data, and the encoded string is not a domain.

    Look for this next time: -EncodedCommand text is Base64, so decode it with a tool such as CyberChef instead of running it.

  4. Question 4 · Security Operations

    A threat intelligence team blocks the file hashes, IP addresses, and domains from every report on a ransomware group, yet the group returns within days using new ones. The team wants detections that cost the attackers the most effort to evade. Based on the Pyramid of Pain, what should it focus on?

    1. Newer file hashes, shared faster through the threat intelligence platform
    2. The group's behaviors, such as how it dumps and reuses credentials
    3. Fresh IP blocklists, pulled from a commercial reputation feed every hour
    4. Domain names, sinkholed as soon as they appear in a new report
    Show answer and explanation for question 4

    Correct answer: B · The group's behaviors, such as how it dumps and reuses credentials

    David Bianco's Pyramid of Pain ranks indicators by how much pain detecting them causes an adversary. Hash values, IP addresses, and domain names sit near the bottom because attackers can change them quickly, which is what the team keeps seeing. Tactics, techniques, and procedures (TTPs) sit at the top: detecting a behavior such as credential dumping and reuse forces the group to learn new behaviors, not just swap tools or infrastructure. Faster hash sharing, hourly IP feeds, and domain sinkholing are still useful, but they stay at the levels the group already changes easily.

    Look for this next time: In the Pyramid of Pain, TTPs are the hardest indicators for an attacker to change, while hashes, IPs, and domains are the easiest.

  5. Question 5 · Security Operations

    During threat modeling of an expense-approval app, the team finds that approvals are stored with no record of which manager approved them, so a manager could later deny approving a payment and no one could prove otherwise. Which STRIDE category does this threat belong to?

    1. Tampering, because stored approval data could be changed
    2. Repudiation, because users can deny actions that left no proof
    3. Spoofing, because an attacker could pose as a manager
    4. Information disclosure, because approval data could be read
    Show answer and explanation for question 5

    Correct answer: B · Repudiation, because users can deny actions that left no proof

    Microsoft's STRIDE guidance describes repudiation as users denying an action when other parties have no way to prove otherwise, often in a system that cannot trace the action. That matches approvals stored with no record of who approved them, and the fix is non-repudiation, such as signed or audited approval records. Tampering is unauthorized modification of data, which the stem does not describe. Spoofing is impersonating another user, and information disclosure is exposure of data to people who should not see it. Neither is the problem of an action that cannot be tied to the person who took it.

    Look for this next time: If someone can deny an action and the system cannot prove they took it, the STRIDE threat is repudiation.

  6. Question 6 · Security Operations

    A SOC handles about 200 reported phishing emails a week. For each one, an analyst copies the sender's domain into a reputation site, submits the attachments to a sandbox, and opens a ticket with the results, always in the same order. Managers want to cut this manual work without lowering the quality of each review. Which improvement fits best?

    1. More SIEM correlation rules, so each phishing report raises extra alerts
    2. A longer log retention period, so analysts can search older emails
    3. A honeypot mailbox, so attackers send their phishing to a decoy address
    4. A SOAR playbook that runs the enrichment steps and opens the ticket
    Show answer and explanation for question 6

    Correct answer: D · A SOAR playbook that runs the enrichment steps and opens the ticket

    CompTIA's objectives place automation and orchestration, including security orchestration, automation, and response (SOAR), under streamlining operations. A repeatable sequence of reputation lookups, sandbox submission, and ticket creation is what a SOAR playbook automates, which leaves analysts to judge the enriched results. More correlation rules add alerts but do none of the enrichment work. Longer retention helps later searches but does not speed up each review. A honeypot mailbox is a deception control that gathers intelligence, and it does not process the emails employees have already reported.

    Look for this next time: Repeated, ordered enrichment steps are the classic case for a SOAR playbook.

  7. Question 7 · Security Operations

    An analyst asks the company's approved AI assistant to summarize a 4,000-line authentication log. The summary says the attack came from host FIN-WS22, but that host name does not appear anywhere in the log. Which AI risk does this show?

    1. Hallucination, confident output that the source data does not support
    2. Model poisoning, training data altered so the model learns bad behavior
    3. A malicious prompt, input crafted to override the assistant's instructions
    4. Data exposure, sensitive log content leaving the organization's control
    Show answer and explanation for question 7

    Correct answer: A · Hallucination, confident output that the source data does not support

    NIST's Generative AI Profile (NIST AI 600-1) calls this confabulation, confidently stated but false content, and notes that it is known colloquially as hallucination. A host name that exists nowhere in the log is invented output, so the analyst must check AI summaries against the source data. Model poisoning means the model's training data was manipulated, which nothing in the stem suggests. A malicious prompt is input designed to subvert the assistant, and the analyst wrote an ordinary request. Data exposure concerns sensitive data leaving approved control, but the assistant is approved and the problem is a false detail, not a leak.

    Look for this next time: Treat AI output as a lead to verify: a detail that is missing from the source data is a hallucination.

  8. Question 8 · Vulnerability Management

    A network vulnerability scan run without host credentials reports only a few open ports on 40 Windows servers. The security team needs to find missing patches and insecure local settings on those servers, and the server team has approved a dedicated scan account. What should the team run?

    1. An external scan from the internet, to see what attackers see
    2. A passive scan, to watch the servers' traffic on a span port
    3. A credentialed scan, logging in with the approved scan account
    4. A discovery scan, to map which hosts and ports are reachable
    Show answer and explanation for question 8

    Correct answer: C · A credentialed scan, logging in with the approved scan account

    NIST SP 800-115 explains that some network-based scanners use administrator-level credentials to extract vulnerability information from hosts, while scanners without credentials rely mostly on discovering hosts, open ports, and related vulnerabilities. Missing patches and local settings sit inside the operating system, so a credentialed scan with the approved account is the way to see them. An external scan is also uncredentialed, and perimeter devices limit it further. A passive scan only observes existing traffic. A discovery scan maps reachable hosts and ports, which the first scan already did.

    Look for this next time: To see patch levels and local configuration, use a credentialed scan; uncredentialed scans mostly see the network surface.

  9. Question 9 · Vulnerability Management

    A water utility needs an inventory of the programmable logic controllers on its plant network, which runs around the clock with no outage planned for months. The vendor warns that some older controllers have locked up when probed. Which scanning approach should the analyst choose?

    1. Passive scanning of mirrored traffic, which sends nothing to the devices
    2. An active, credentialed scan, run during the busiest production shift
    3. A full-port active scan of every controller address, run overnight
    4. An external scan from the internet, to avoid touching the plant network
    Show answer and explanation for question 9

    Correct answer: A · Passive scanning of mirrored traffic, which sends nothing to the devices

    NIST SP 800-82r3 says passive scans inspect existing traffic without adding any, which suits sensitive OT devices that may behave unexpectedly when probed. It also says active scans may cause device instability, call for extreme caution, and are best scheduled during planned OT outages, and none is planned here. An active scan overnight or during the busiest shift still probes the controllers directly. An external scan would not inventory devices on an internal plant network. The trade-off is that a passive scan misses devices that are not communicating and can take days.

    Look for this next time: On fragile OT networks with no planned outage, start with passive discovery, because active scans can disrupt controllers.

  10. Question 10 · Vulnerability Management

    Two findings arrive on the same day. Finding 1 has a CVSS base score of 9.8 on a lab server with no network connection. Finding 2 has a base score of 7.5 on the internet-facing VPN appliance, and its CVE was just added to CISA's Known Exploited Vulnerabilities catalog. Patches exist for both. Which should the team remediate first?

    1. Finding 1, because a base score of 9.8 is in the critical range
    2. Both at once, because each has a published patch ready to install
    3. Finding 1, because lab servers are rarely watched by monitoring
    4. Finding 2, because it is exposed and known to be exploited now
    Show answer and explanation for question 10

    Correct answer: D · Finding 2, because it is exposed and known to be exploited now

    FIRST's CVSS v4.0 specification says the base score reflects a vulnerability's intrinsic severity and that consumers should add threat and environmental context before making remediation decisions. CISA describes its KEV catalog as the authoritative source of vulnerabilities exploited in the wild and recommends prioritizing them. Finding 2 combines active exploitation with internet exposure on a remote-access device, so it goes first. The higher base score of Finding 1 does not outweigh its isolation. Patch availability does not make two findings equally urgent, and the stem gives no evidence that weak monitoring makes the lab server a bigger risk.

    Look for this next time: Rank findings by exploitation and exposure as well as CVSS: a KEV-listed flaw on an internet-facing system usually comes first.

  11. Question 11 · Vulnerability Management

    From the guest Wi-Fi VLAN, an analyst runs an Nmap SYN scan against a file server. The output lists TCP 445 as filtered. What does that port state tell the analyst?

    1. The port is open, and SMB accepted the scanner's connection request
    2. Something blocked the probes, so Nmap cannot tell whether it is open
    3. The port is closed, and the host replied that no service is listening
    4. The host is down, because none of the probes received any answer
    Show answer and explanation for question 11

    Correct answer: B · Something blocked the probes, so Nmap cannot tell whether it is open

    Nmap's reference guide says a port is filtered when packet filtering, from a firewall, router rules, or host-based firewall software, keeps the probes from reaching it, so Nmap cannot determine whether it is open. From a guest VLAN, that is usually the intended result. An open port would be listed as open. A closed port is reachable and answers, but has no application listening, which is a different state. Filtered describes one port and does not show that the host is down; Nmap reports host status separately.

    Look for this next time: In Nmap, filtered means something blocked the probes, not that the port is closed or the host is down.

  12. Question 12 · Vulnerability Management

    An infusion pump controller on a hospital network runs an operating system that its vendor no longer patches, and its replacement is budgeted for next year. Clinical staff must keep using it until then. What is the most appropriate way to handle its vulnerability findings now?

    1. Remove the device from the asset inventory, so its findings stop appearing
    2. Install a patch built for a newer OS version and test it on the live device
    3. Record an exception and add compensating controls, such as isolating it
    4. Accept the risk informally, with no record and no change to the network
    Show answer and explanation for question 12

    Correct answer: C · Record an exception and add compensating controls, such as isolating it

    CompTIA's objectives list exceptions and compensating controls among mitigation strategies, and NIST defines a compensating control as one used in place of a recommended control that provides equivalent or comparable protection. A documented exception with compensating controls, such as placing the device on a restricted segment, reduces risk until the planned replacement. Dropping the device from the inventory hides the risk instead of managing it. Forcing a patch built for another OS version onto a clinical device in use risks breaking it. Informal acceptance with no record leaves no owner, no review date, and no added protection.

    Look for this next time: When a system cannot be patched, document the exception and add compensating controls such as segmentation.

  13. Question 13 · Incident Response and Management

    After a user opened a malicious attachment, malware set itself to run at startup. The host now sends HTTPS requests every 60 seconds to an unfamiliar domain and receives short encoded replies that change what the malware does. Which Cyber Kill Chain phase does this beaconing represent?

    1. Delivery, when the weapon is sent to the target
    2. Exploitation, when code runs on the victim
    3. Actions on objectives, when the attacker reaches the goal
    4. Command and control, a channel for remote instructions
    Show answer and explanation for question 13

    Correct answer: D · Command and control, a channel for remote instructions

    Lockheed Martin's guide to the Cyber Kill Chain describes command and control (C2) as malware opening a channel that lets the adversary manipulate the victim remotely, most commonly over web, DNS, or email protocols. Regular HTTPS check-ins that return instructions are that channel, and the guide calls blocking it the defender's last best chance to stop the operation. Delivery was the email attachment, and exploitation and installation came before the beaconing. Actions on objectives is the attacker pursuing the mission's goal, such as stealing data, which the stem does not yet show.

    Look for this next time: Regular check-ins that bring back instructions mark the Kill Chain's command-and-control phase.

  14. Question 14 · Incident Response and Management

    An analyst maps an incident to MITRE ATT&CK. At one stage, the attacker's goal was to steal account passwords, and the method was reading credential material from the memory of the Windows LSASS process. How do these two observations map in ATT&CK?

    1. The goal is the Credential Access tactic, and the method is a technique
    2. The goal is a technique, and the method is the Credential Access tactic
    3. Both are procedures, because ATT&CK records only what was observed
    4. Both are tactics, because each one describes a stage of the attack
    Show answer and explanation for question 14

    Correct answer: A · The goal is the Credential Access tactic, and the method is a technique

    MITRE says tactics represent the 'why' of an ATT&CK technique, the adversary's tactical goal, and Credential Access is the tactic for an adversary trying to steal account names and passwords. The method, dumping credentials from LSASS memory, is the 'how', which ATT&CK records as a technique, OS Credential Dumping, with LSASS Memory as a sub-technique. Swapping the two reverses the model. ATT&CK lists procedures as examples of how specific groups or software carried out a technique, not as labels for goals. A method is a technique, so the two observations cannot both be tactics.

    Look for this next time: In ATT&CK, the tactic is the attacker's goal and the technique is how the attacker reaches it.

  15. Question 15 · Incident Response and Management

    An analyst confirms that one workstation is encrypting files on a shared drive, and new encrypted files keep appearing. The EDR console can cut the host off from the network while leaving it powered on. What should the analyst do next?

    1. Reimage the workstation at once, so the ransomware is fully removed
    2. Restore the shared drive from backup while the workstation stays online
    3. Isolate the workstation with EDR, so the encryption stops spreading
    4. Email all staff a full incident report before taking any other step
    Show answer and explanation for question 15

    Correct answer: C · Isolate the workstation with EDR, so the encryption stops spreading

    Detection and analysis are done, so containment comes next in the incident response process. NIST SP 800-61r3 describes containment as preventing the expansion of an incident and gives moving a compromised endpoint to an isolated network as an example. Isolating the host with EDR stops further encryption and keeps it powered on, which preserves volatile evidence. Reimaging belongs to eradication and recovery, and doing it now destroys evidence before the incident is scoped. Restoring the share while the host is still online lets the files be encrypted again. A report to all staff can wait and goes through the communication plan.

    Look for this next time: After confirming an active incident, contain it first: isolate the host before eradication or restoration.

  16. Question 16 · Incident Response and Management

    An analyst creates a bit-for-bit image of a laptop drive that may be needed in court. Before any analysis, the analyst computes a SHA-256 hash of the original drive and of the image and records both values. Why?

    1. To encrypt the image, so no one can read it without the key
    2. To prove the image matches the original and was not altered
    3. To compress the image, so it fits on the evidence storage drive
    4. To find malware in the image by comparing it to known samples
    Show answer and explanation for question 16

    Correct answer: B · To prove the image matches the original and was not altered

    NIST SP 800-86 says acquired data should have its integrity verified, typically by computing the message digest of the original and copied data and comparing them to make sure they are the same, which matters most when the data may be needed for legal reasons. Matching SHA-256 values show the image is an exact copy, and the recorded values let anyone check later that it was not changed. Hashing does not encrypt or compress data. Comparing file hashes with known samples can find known malware, but that is not why the analyst hashed the whole drive and its image.

    Look for this next time: Hash the original and the image and compare the values to validate evidence integrity.

  17. Question 17 · Incident Response and Management

    Building an incident timeline, an analyst sees a firewall entry for a large outbound transfer at 14:05 and a Windows logon for the suspect account at 18:59 the same day, so the transfer seems to come first. The firewall logs in UTC. The Windows server logs in local time, which is five hours ahead of UTC. What should the analyst do before drawing conclusions?

    1. Rely on the firewall times, since network devices keep the most accurate clocks
    2. Set aside the Windows events, since logs from mixed time zones cannot be correlated
    3. Keep the events in recorded order, since each source used its own steady clock
    4. Convert every timestamp to UTC, which puts the logon at 13:59, before the transfer
    Show answer and explanation for question 17

    Correct answer: D · Convert every timestamp to UTC, which puts the logon at 13:59, before the transfer

    NIST SP 800-92 notes that organizations with systems in several time zones often need to convert all logged times to a single time zone, and that inconsistent timestamps can make one event look earlier than another. Converting the Windows entry to UTC gives 13:59, six minutes before the 14:05 transfer, so the logon came first. Trusting one device's clock over the other ignores the time-zone difference itself. Logs from mixed time zones can be correlated once they are normalized, so the Windows events are still useful evidence. Keeping the recorded order mixes two clocks and produces the wrong sequence.

    Look for this next time: Normalize every log source to one time zone, usually UTC, before you build a timeline.

  18. Question 18 · Reporting and Communication

    A SOC defines time to detect as the time from the first malicious activity to the first alert, and time to respond as the time from the first alert to containment. In one incident, the intrusion began Monday at 02:00, the first alert fired Wednesday at 10:00, and the host was contained Wednesday at 16:00. What should the incident report record?

    1. Time to detect of 62 hours and time to respond of 6 hours
    2. Time to detect of 6 hours and time to respond of 56 hours
    3. Time to detect of 56 hours and time to respond of 6 hours
    4. Time to detect of 56 hours and time to respond of 62 hours
    Show answer and explanation for question 18

    Correct answer: C · Time to detect of 56 hours and time to respond of 6 hours

    Under the SOC's own definitions, time to detect runs from Monday 02:00 to Wednesday 10:00, which is 48 hours plus 8 hours, or 56 hours. Time to respond runs from the Wednesday 10:00 alert to containment at 16:00, which is 6 hours. Swapping the two values reverses the definitions. The 62-hour figure is the whole span from first activity to containment, which belongs to neither metric as defined here. Averaging these values across incidents gives the mean time to detect and mean time to respond that CompTIA lists among SOC metrics.

    Look for this next time: Apply your organization's definitions: detection runs from first activity to alert, and response runs from alert to containment.

  19. Question 19 · Reporting and Communication

    A critical vulnerability affects the server that runs a vendor-managed ERP application. A patch is available, the operating system is a supported version, and the change board has approved the work. However, the vendor's support agreement voids support if any patch the vendor has not certified is installed. Which inhibitor to remediation should the vulnerability report name?

    1. A contractual agreement, because the vendor contract limits patching
    2. Patch availability, because no fix exists for the vulnerability yet
    3. A legacy system, because the server can no longer receive patches
    4. Organizational governance, since the change board blocked it
    Show answer and explanation for question 19

    Correct answer: A · A contractual agreement, because the vendor contract limits patching

    CompTIA's objectives list contractual agreements among the inhibitors to remediation, along with legacy systems, patch availability, and organizational governance. Here the only obstacle is the vendor's support agreement, so the report should name it and plan around it, for example by asking the vendor to certify the patch or adding compensating controls in the meantime. The stem rules out the other three: the operating system is supported, so this is not a legacy system; a patch exists; and the change board approved the work.

    Look for this next time: Name the real blocker in the report: when a vendor contract restricts patching, the inhibitor is contractual.

  20. Question 20 · Reporting and Communication

    After a phishing-led breach has been contained, the CISO asks for an executive summary for the board, which meets tomorrow and will decide whether to fund an email-security upgrade. What should the summary lead with?

    1. The full list of indicators of compromise, with hashes and IP addresses
    2. Business impact, current status, and the decision the board must make
    3. A minute-by-minute log of every command the responders ran on each host
    4. The raw vulnerability scan output for every affected system
    Show answer and explanation for question 20

    Correct answer: B · Business impact, current status, and the decision the board must make

    CompTIA's objectives list the executive summary as its own item, apart from post-incident reports such as the after action report. Its readers are decision-makers rather than analysts, so leading with what the incident cost or put at risk, where things stand now, and the funding decision gives the board what it needs in plain language. A full list of indicators belongs in technical reporting and threat intelligence sharing. A command-by-command log supports the timeline and lessons learned. Raw scan output serves the vulnerability team. Each can sit in an appendix, but none of them should open a board summary.

    Look for this next time: An executive summary leads with impact, status, and the decision needed; technical detail goes in appendices.

Use the sample well

The rationale matters more than the score.

A short set can show you what deserves another look. A strong run shows you can read an alert, a scan result, or an incident detail and pick the analyst's next sound step. Twenty questions are a small sample, so the result does not predict a 750 on the 100–900 scale.

01

Answer before reviewing

Pick the one answer that fits every condition in the scenario. Then read why each other option falls short.

02

Read every rationale

Confirm why the best option fits, even when you were right.

03

Follow the pattern

Use recurring misses—not one score—to choose your next focus.