Home / CompTIA CySA+ (CS0-003) / Mock exam
CompTIA CySA+ (CS0-003) Exam-style mock test

CompTIA CySA+ (CS0-003) Practice Exams|Practice test

Full explanations Exam format Pass line 75%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Security Operations
At Meridian Capital Partners, a SOC analyst reviews Zeek conn.log entries from a trading workstation: outbound TLS sessions to 185.220.101.47:443 fire every 60 seconds, each carrying 412 bytes up and 180 bytes down, with near-identical duration. The destination has no PTR record and rotates among several IPs sharing one ASN. Which conclusion does this pattern MOST strongly support?
・A software update agent is polling a vendor content delivery network for patch availability
Incorrect. CDN update polling varies in interval and payload size and resolves to named vendor hosts, not a PTR-less IP block.
・An internal backup job is streaming encrypted archives to cloud storage
Incorrect. Backup streaming produces large sustained upload volumes, not repeated 412-byte bursts on a fixed cadence.
✓The host is beaconing to a command-and-control server over an encrypted channel
Correct. Fixed-interval callbacks with tiny, symmetric, consistent payloads to a PTR-less rotating IP are classic C2 beaconing over TLS.
・A misconfigured NTP client is repeatedly syncing against an unreachable upstream time source somewhere
Incorrect. NTP uses UDP/123 with small datagrams, not persistent TLS sessions on port 443 every minute.
Explanation
Regular low-jitter intervals, small symmetric payloads, and a non-resolving rotating destination are hallmark beaconing indicators. Legitimate updaters, backups, and NTP each break at least one of those signatures.
Example2 · Vulnerability Management
At Meridian Capital Partners, an analyst runs an unauthenticated network scan against a Linux payments host and the report lists only version banners and open ports, flagging dozens of CVEs as "potential" with no confirmation of installed patch levels. The security lead wants the next scan to confirm which patches are actually applied and reduce the volume of unverifiable findings. Which scanning change directly achieves this?
・Raise the scan intensity to aggressive timing so that many more packets are sent to each open service port
Incorrect. Aggressive timing only speeds packet delivery; it still relies on external banner inference and cannot confirm applied patches.
✓Give the scanner valid SSH credentials so it can log in to the host and directly read the installed package and patch state
Correct. A credentialed scan authenticates to the host and reads actual package versions and patch state, confirming vulnerabilities instead of inferring them from banners.
・Switch the scan source to an external IP so the host is tested the way an attacker would see it
Incorrect. An external vantage point reduces visibility further and still cannot read installed patch levels on the host.
・Enable OS fingerprinting so the scanner can more precisely guess the running kernel from TCP responses
Incorrect. OS fingerprinting refines a guess of the kernel but does not enumerate installed packages or confirm patch application.
Explanation
Banner-only, unauthenticated scans produce many unconfirmed "potential" findings. Credentialed scanning logs in to inspect real package and patch data, confirming vulnerabilities and cutting noise.
Example3 · Incident Response and Management
At a global payments processor, a SOC analyst reviews EDR telemetry from a cardholder-data server: 'rundll32.exe loaded tmp_svc.dll; dll beaconed to 203.0.113.44:443 every 300s; 2.1 GB egress to the same host overnight'. The analyst must map the observed stage to the Cyber Kill Chain to brief the IR lead. Which phase does the repeated beaconing plus large outbound transfer MOST directly represent?
・Weaponization, because a crafted malicious DLL was coupled with a selected delivery mechanism well before it ever reached the cardholder server environment
Incorrect. Weaponization is the pre-intrusion coupling of an exploit with a payload and happens before the artifact ever reaches the victim, not during live beaconing.
✓Command and Control, because the host keeps an operator channel used to move data out
Correct. Persistent timed beaconing to an external operator plus bulk egress over that link is the hallmark of the Command and Control phase, with exfiltration riding the established channel.
・Delivery, because the weaponized DLL was transmitted to the target environment across the organization's network perimeter boundary during the intrusion
Incorrect. Delivery is the single act of transmitting the weapon to the target; the recurring callbacks and 2.1 GB transfer are post-delivery operator activity.
・Reconnaissance, since the attacker is apparently still gathering details about the cardholder server and the surrounding network segment
Incorrect. Reconnaissance is information gathering about the target before access; the evidence shows an already-compromised host actively communicating outbound.
Explanation
Regular interval callbacks to an external IP and large outbound transfers over the same link indicate an established Command and Control channel being abused for exfiltration. Weaponization, Delivery, and Reconnaissance all precede this live operator-controlled activity.
Example4 · Reporting and Communication
Meridian Health Networks runs a HIPAA-regulated patient portal. The vulnerability team's monthly compliance report shows 14 unpatched findings on systems that process ePHI, but legal counsel says one database cannot be patched this quarter because the EHR vendor has not validated the fix against the certified build. The CISO must still satisfy the auditor. Which entry best represents how this situation should appear in the compliance report?
・A closed finding, since the vendor's lack of validation shifts the patching obligation away from Meridian entirely
Incorrect. The vendor dependency is an inhibitor to remediation, not a transfer of the covered entity's compliance obligation, so the finding stays open and tracked.
・A false positive, since the scanner flagged a build the vendor has not certified
Incorrect. The scanner confirmed a genuine vulnerability on the running build; vendor validation of the fix is unrelated to whether the current finding is real.
・An accepted risk needing no further tracking once the CISO signs off on the vendor's stated position
Incorrect. Accepting risk still requires ongoing tracking and periodic review, and silently closing it would misrepresent the control state to the auditor.
✓A tracked, open risk exception that records the compensating controls mitigating the ePHI exposure together with a scheduled date to re-evaluate the deferral
Correct. An auditor expects an open, tracked risk exception recording the compensating controls that mitigate the ePHI exposure and a date to re-evaluate the deferral.
Explanation
Compliance reports must reflect reality: a finding blocked by a vendor-certification inhibitor remains open as a documented risk exception with compensating controls and a review date. Suppressing it as closed, accepted-without-tracking, or false positive would mislead the auditor about ePHI exposure.
Example5 · Security Operations
At Meridian Life Sciences, an EDR agent on a research workstation flags a PowerShell process whose command line decodes to: powershell -nop -w hidden -enc <base64>. The decoded payload reaches out to 185.142.x.x over TCP 443 every 60 seconds with jittered intervals and uploads small, uniformly sized packets. Which activity does this pattern most directly indicate?
✓Beaconing from a command-and-control implant using encoded PowerShell
Correct. Hidden, encoded PowerShell paired with regular jittered outbound HTTPS and small uniform packets is the signature of C2 beaconing.
・A scheduled backup job that compresses files before copying them offsite
Incorrect. Backup jobs transfer large, variable-sized data volumes rather than tiny uniform packets on a fixed jittered cadence.
・Normal signed Windows Update telemetry retrieving definitions
Incorrect. Update telemetry contacts Microsoft-owned signed endpoints, not an arbitrary raw IP reached via obfuscated encoded commands.
・A credential-stuffing attack replaying passwords against a login portal
Incorrect. Credential stuffing targets inbound authentication endpoints and does not rely on a local encoded PowerShell implant beaconing out.
Explanation
Beaconing is characterized by periodic, jittered callbacks of consistent small size to an external host, and obfuscated encoded PowerShell is a common loader. The combination points to an active C2 channel rather than any benign scheduled service.
Example6 · Security Operations
A streaming media provider stores subscriber payment tokens in a PostgreSQL cluster. During a review, an analyst finds that the column holding card tokens is readable in plaintext by any application service account that can query the table. The team wants the stored values to be useless if the database files are exfiltrated, while still allowing authorized reads. Which control best meets this requirement?
・Enable TLS 1.3 on every client connection reaching the database listener process
Incorrect. TLS protects data in transit on the wire but leaves the stored column plaintext if the files themselves are stolen.
✓Apply column-level encryption with its cryptographic keys held in a separate externally managed key store
Correct. Column-level encryption with an externally managed key renders exfiltrated database files unreadable while authorized services still decrypt.
・Rotate each service account password on a weekly automated schedule cycle
Incorrect. Rotating passwords limits credential reuse but does nothing to protect the at-rest plaintext token values.
・Turn on verbose query logging to audit who reads the token column
Incorrect. Query logging adds visibility after the fact and cannot stop stolen database files from revealing the tokens.
Explanation
The requirement is data-at-rest confidentiality that survives file theft, which column-level (or field-level) encryption with keys stored apart from the data provides. Transport security, logging, and credential rotation address different threats and leave the stored values exposed.
Example7 · Security Operations
A pallet-tracking gateway on the warehouse floor of a logistics firm shows this outbound flow every 300 seconds, around the clock: 10.40.6.11:51002 -> 185.203.44.9:443 len=612. The destination resolves to a newly registered domain, TLS SNI is a random string, and payload size barely varies. Which conclusion best fits these indicators?
・A misconfigured NTP client is drifting badly and syncing its clock with an external stratum server over the wrong port
Incorrect. NTP uses UDP/123 and exchanges tiny timestamp packets, not fixed 612-byte TLS sessions to a newly registered random-SNI domain.
・The device is performing scheduled firmware update polling against the vendor content delivery network endpoint
Incorrect. Firmware polling targets a known vendor CDN with stable certificates and variable download sizes, not a random-SNI newly registered host.
✓The gateway is beaconing to a command-and-control host, indicated by the fixed 300-second interval, the uniform payload, and the newly registered destination
Correct. A fixed 300-second interval, near-constant payload size, and a low-reputation newly registered destination with randomized SNI are classic C2 beaconing indicators.
・A chatty SNMP trap handler is forwarding interface counters to an upstream network monitoring collector
Incorrect. SNMP traps use UDP/162 to an internal collector and carry variable counter data, not uniform TLS payloads to an external IP.
Explanation
Beaconing is identified by periodicity and payload uniformity combined with destination reputation, not by any single attribute. The newly registered domain and randomized SNI strengthen the C2 interpretation over benign polling. Analysts should pivot to full packet capture and reputation lookups before isolating the device.
Example8 · Security Operations
On a CNC machine controller in a manufacturing plant, an analyst finds a scheduled task that runs: powershell -nop -w hidden -enc SQBFAFgAIAAoAE4A... The string decodes from Base64 UTF-16LE into an IEX download cradle. Which single property of this command most directly signals intentional obfuscation to evade detection?
・The task executes with full SYSTEM privileges, which grants very broad access to the underlying industrial controller operating system environment
Incorrect. Elevated privilege affects impact, not obfuscation; the encoding is what hides the command's intent from inspection.
✓The -enc switch runs a Base64 UTF-16LE payload, concealing the IEX cradle from plain-text inspection
Correct. The -enc flag passing a Base64 UTF-16LE blob deliberately hides the IEX download cradle so plain-text signatures and casual log review miss it.
・The script reaches out to an external host to retrieve additional code at runtime before executing it
Incorrect. A runtime download is a delivery and staging behavior, but it is the encoding that obscures the command itself from analysis.
・The window is hidden and no profile loads, which keeps the operator from noticing the console appearing on screen
Incorrect. A hidden window reduces user awareness but leaves the command string fully readable in process and event logs.
Explanation
Obfuscation specifically defeats inspection by concealing the true content of a command. Hidden windows and elevated context affect stealth and impact but do not encode the payload. Decoding the string reveals the IEX cradle and confirms malicious intent.
Example9 · Security Operations
A logistics company is deploying centralized logging for its yard-management servers and RFID reader fleet. The SOC lead wants log integrity and reliable correlation across devices. Which TWO controls most directly support those goals? (Choose TWO.)
・Store logs only on each device locally to reduce the network bandwidth used by continuous forwarding
Incorrect. Local-only storage leaves logs exposed to deletion by an attacker on the host and prevents centralized correlation.
・Rotate the syslog listening port weekly to make it harder for an attacker to locate the collector
Incorrect. Rotating the listener port is obscurity that breaks forwarding configuration and does nothing for integrity or correlation.
・Enable verbose debug logging on every single RFID reader in the fleet to capture the maximum amount of telemetry
Incorrect. Verbose debug logging inflates volume and noise without improving integrity or the ability to correlate events across devices.
✓Synchronize all devices to a common NTP source so that event timestamps align across the logs
Correct. Shared NTP time synchronization aligns timestamps so events from different devices can be correlated into an accurate timeline.
✓Forward logs to a write-once collector and hash each batch to detect post-ingestion tampering
Correct. A write-once collector plus per-batch hashing lets analysts detect post-ingestion tampering, directly protecting log integrity.
Explanation
Correlation depends on consistent time, which NTP synchronization provides across heterogeneous devices. Integrity depends on protecting logs from alteration, achieved by immutable storage and cryptographic hashing. Verbose logging, local-only retention, and port obscurity address none of these requirements.
Example10 · Security Operations
At the B2B SaaS firm Larkfield Analytics, an egress proxy logs repeated POSTs from a finance workstation: every 300 seconds a TLS session reaches cdn-sync.larkfield-metrics.io with a 512-byte body, and the destination resolves through a domain registered three days ago. The analyst sees no corresponding user browsing. Which assessment best fits this pattern?
✓Beaconing to a command-and-control channel, shown by the fixed interval, uniform payloads, and new lookalike domain
Correct. Regular fixed-interval callbacks with small uniform bodies to a newly registered lookalike domain are classic C2 beaconing indicators.
・Normal software update polling, since many agents routinely check a vendor for patches on a fixed interval using plain HTTPS requests
Incorrect. Legitimate update clients vary timing with jitter and contact vendor-owned domains, not a lookalike registered three days ago.
・A misconfigured backup job retrying at a steady cadence toward an off-site cloud storage endpoint it currently cannot reach at all
Incorrect. Backup traffic carries large variable payloads and targets known storage endpoints, not tiny fixed-size POSTs to a new domain.
・A DNS tunneling exfiltration attempt relying on oversized TXT record responses to carry its covert outbound data path
Incorrect. DNS tunneling abuses DNS query and response records, not periodic HTTPS POSTs over a TLS session.
Explanation
Beaconing is identified by behavioral regularity rather than payload content: a fixed cadence, small consistent request sizes, and an attacker-controlled lookalike domain. The absence of user activity driving the connection reinforces automated C2 rather than legitimate polling.
Example11 · Security Operations
During triage at the online gaming studio Vellichor Games, a host log shows: powershell.exe -nop -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC... launched as a child of winword.exe. Which single conclusion is most directly supported by this entry?
・The user intentionally opened an administrative console to run routine inventory scripts for the asset team
Incorrect. Routine admin scripting would not run hidden, encoded, and no-profile from a Word process as the parent.
・Windows Defender quarantined a script and logged the encoded payload purely for later retrospective forensic review
Incorrect. Defender quarantine events are recorded by the AV engine, not as a winword.exe parent-child process launch.
✓A macro-enabled Office document spawned an obfuscated, base64-encoded PowerShell command, a likely malicious execution chain against the host
Correct. winword.exe spawning encoded hidden PowerShell is a hallmark of a weaponized document executing an obfuscated payload.
・A routine scheduled task triggered PowerShell to apply a signed configuration baseline that was pushed earlier from the central patch server
Incorrect. A scheduled task runs under the Task Scheduler service as parent, and baselines are not delivered as hidden encoded one-liners.
Explanation
The parent-child relationship (Office app spawning a shell) combined with the -enc and -w hidden flags is a well-known malicious execution indicator. Encoding plus hidden window execution signals deliberate obfuscation rather than any administrative or signed workflow.
Example12 · Security Operations
A SOC analyst at a county water utility reviews an authenticated proxy log from a plant engineering workstation: 12:04:11 host=HMI-07 user=svc_scada GET http://185.22.9.14/jquery.min.js 200 14kb 12:04:41 host=HMI-07 user=svc_scada GET http://185.22.9.14/jquery.min.js 200 14kb 12:05:11 host=HMI-07 user=svc_scada GET http://185.22.9.14/jquery.min.js 200 14kb The requests repeat on an exact 30-second cadence to a raw IP with no referrer. Which conclusion best fits this indicator?
✓The host is beaconing to a remote command-and-control server using fixed-interval timed callbacks
Correct. A fixed 30-second interval to a raw IP with no referrer, fetching an unchanging small object, is classic C2 beaconing masked as a library request.
・A content delivery network node is caching a popular JavaScript library for the HMI web console
Incorrect. A CDN would resolve through a hostname and vary cache nodes, not a bare IP hit on a rigid timer with no referrer.
・A scheduled update job polls the vendor patch server over HTTP
Incorrect. Patch pollers target vendor FQDNs and back off; they do not hammer a numeric IP every 30 seconds for the same tiny file.
・The workstation browser is retrying a failed asset load because the page kept timing out
Incorrect. Retry logic would show jittered or exponential timing and eventually stop, not a perfectly periodic 30-second loop that persists.
Explanation
Periodic, low-jitter callbacks to a hard-coded IP for a static object are a hallmark of beaconing. The 'jquery.min.js' name is cover; legitimate libraries load from named CDNs with referrers and variable timing.
Example13 · Security Operations
During triage at a state university, an analyst decodes a PowerShell command captured in Sysmon event ID 1: powershell -nop -w hidden -enc SQBFAFgAIAAoAE4AZQB3AC0ATwBiAGoA... The -enc argument holds a long Base64 string that decodes to an IEX download-and-run one-liner. Which single property of this command is the strongest indicator of obfuscated malicious activity?
・The -w hidden switch, which suppresses the console window so the user never sees execution
Incorrect. A hidden window is suspicious context but is used by many benign scripts; alone it does not reveal concealed code.
✓The Base64 blob passed to the -enc argument, which conceals an IEX remote-download cradle
Correct. Base64 passed to the -enc argument that decodes to an IEX download-and-execute is deliberate obfuscation of remote code and is the strongest malicious indicator.
・The -nop flag, which tells PowerShell not to load the user's own startup profile scripts here
Incorrect. -nop only skips the profile for speed or isolation; it hides nothing and is common in legitimate automation.
・The overall length of the command line recorded by Sysmon at process creation
Incorrect. Command-line length is a weak heuristic; long lines occur in benign deployment scripts and reveal no intent by itself.
Explanation
Encoding a download-and-run cradle with -enc is a deliberate attempt to defeat log inspection and signatures. The other switches add suspicious context but are individually common in benign administration.
Example14 · Security Operations
At Meridian Travel Group, a SOC analyst reviews proxy logs after an alert on a booking-engine host. One entry stands out: GET /cgi/track?d=aHR0cDovLzE5Mi4xNjguOTQuNy9iZWFjb24=&id=9F2 made every 300 seconds to an unseen domain. Decoding the d parameter yields http://192.168.94.7/beacon. Which conclusion is best supported by this single log line?
・The host is downloading legitimate booking inventory feeds using cached query strings on a fixed interval
Incorrect. A legitimate inventory feed would not Base64-encode an internal URL into a tracking parameter on a strict fixed interval to an unseen domain.
・The traffic is a benign content-delivery heartbeat that refreshes the reservation cache page
Incorrect. Content-delivery heartbeats query known CDN endpoints and do not smuggle encoded internal addresses inside the request path.
✓The host shows beaconing with Base64-encoded data in the URL, consistent with C2 check-in traffic
Correct. Regular 300-second intervals plus a Base64-encoded parameter that decodes to a URL are classic obfuscated command-and-control beaconing indicators.
・The entry is a routine DNS prefetch that the browser issues before loading the booking page
Incorrect. A DNS prefetch resolves a name and issues no HTTP GET carrying an encoded payload parameter back to the server.
Explanation
Fixed-interval callbacks combined with encoded data in the request are hallmarks of C2 beaconing rather than normal application traffic. The Base64 string decoding to a URL confirms obfuscation intent, so the analyst should treat the host as likely compromised.
Example15 · Security Operations
SummitShield Insurance stores policyholder Social Security numbers in a claims database. The security architect must ensure that even if a DBA account is misused, the SSN column cannot be read in cleartext without a separate key authorization step. Which control most directly meets this requirement?
・Enabling full-disk encryption on the underlying claims database server storage volumes
Incorrect. Full-disk encryption protects data at rest from stolen media but presents plaintext to any authenticated DBA querying the live database.
・Forcing TLS 1.3 on all client connections to the claims database endpoint
Incorrect. TLS protects data in transit on the wire and does nothing to stop an authorized DBA from reading the stored column.
・Configuring verbose audit logging on every SELECT issued against the claims table
Incorrect. Audit logging records who queried the data after the fact but never prevents the DBA from retrieving cleartext SSN values.
✓Applying column-level encryption to the SSN field with decryption keys held in an external, independently managed KMS
Correct. Column-level encryption with externally managed keys keeps the SSN field ciphertext unless the separate KMS authorizes decryption, blocking a misused DBA account.
Explanation
Only encryption applied at the column level with keys separated from the database engine prevents a privileged operator from reading sensitive fields in cleartext. Disk encryption, TLS, and auditing address different threat surfaces and leave live queries exposed.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)