CompTIA CS0-003 Exam Actual Questions
CompTIA CySA+ (CS0-003) (Page 10 )

Updated On: 13-Jun-2026

A security analyst is writing a shell script to identify IP addresses from the same country. Which of the following functions would help the analyst achieve the objective?

  1. function w() { info=$(ping -c 1 $1 | awk -F "/" `END{print $1}') && echo "$1 | $info" }
  2. function x() { info=$(geoiplookup $1) && echo "$1 | $info" }
  3. function y() { info=$(dig -x $1 | grep PTR | tail -n 1 ) && echo "$1 |
    $info" }
  4. function z() { info=$(traceroute -m 40 $1 | awk `END{print $1}') && echo "$1 | $info" }

Answer(s): B

Explanation:

Option B is correct because geoiplookup maps an IP address to geographic location data, enabling country-based identification. A) uses ping parsing which yields latency, not location. C) dig -x performs reverse DNS and PTR parsing, which provides domain names, not country information. D) traceroute shows hop addresses and path details, not country assignment. Incorrect explanations: A) only measures reachability; no geolocation. C) PTR data does not reliably indicate country. D) traceroute outputs network path, not country of origin. Correct — geoiplookup provides country inference from IP, aligning with objective to identify IPs from the same country.



A security analyst obtained the following table of results from a recent vulnerability assessment that was conducted against a single web server in the environment:



Which of the following should be completed first to remediate the findings?

  1. Ask the web development team to update the page contents
  2. Add the IP address allow listing for control panel access
  3. Purchase an appropriate certificate from a trusted root CA
  4. Perform proper sanitization on all fields

Answer(s): D

Explanation:

Option D is correct because performing proper sanitization on all fields directly mitigates common input handling vulnerabilities (e.g., XSS, SQL injection) identified by vulnerability assessments, addressing the root cause and reducing attack surface. Incorrect — A: Updating page contents may fix display issues but does not address input validation vulnerabilities. Incorrect — B: IP allow listing for control panels reduces exposure but does not remediate insecure input handling and can introduce access control risks. Incorrect — C: Acquiring a certificate affects TLS trust but does not fix input validation flaws or sanitize user-provided data.



While reviewing web server logs, an analyst notices several entries with the same time stamps, but all contain odd characters in the request line. Which of the following steps should be taken next?

  1. Shut the network down immediately and call the next person in the chain of command.
  2. Determine what attack the odd characters are indicative of.
  3. Utilize the correct attack framework and determine what the incident response will consist of.
  4. Notify the local law enforcement for incident response.

Answer(s): B

Explanation:

Option B is correct because identifying the specific attack indicated by unusual request line characters is a key proactive step in triage and incident classification, enabling appropriate containment, eradication, and recovery actions within an established IR plan.
A) Incorrect — Shutting the network down immediately is not appropriate for early triage; it could cause collateral damage and is not aligned with standard IR procedures for containment, which prioritize escalation based on severity.
C) Incorrect — While using an attack framework is important, the option states “determine what the incident response will consist of” before proper triage and incident classification; sequencing is critical.
D) Incorrect — Notifying law enforcement is premature; internal containment and IR coordination should occur first unless a legal or regulatory trigger is met.



A security team conducts a lessons-learned meeting after struggling to determine who should conduct the next steps following a security event. Which of the following should the team create to address this issue?

  1. Service-level agreement
  2. Change management plan
  3. Incident response plan
  4. Memorandum of understanding

Answer(s): C

Explanation:

Option C is correct because an incident response plan defines roles, responsibilities, and procedures for handling security events, clarifying who conducts next steps during an incident. A) Service-level agreement governs inter-organizational service expectations, not incident execution ownership. B) Change management plan focuses on documenting changes to systems and processes, not incident sequencing. D) Memorandum of understanding is a formal agreement between parties; it does not establish internal incident ownership or stepwise procedures. INSUFFICIENT_KNOWLEDGE



A cybersecurity analyst notices unusual network scanning activity coming from a country that the company best mitigation technique?
does not do business with. Which of the following is the

  1. Geoblock the offending source country.
  2. Block the IP range of the scans at the network firewall.
  3. Perform a historical trend analysis and look for similar scanning activity.
  4. Block the specific IP address of the scans at the network firewall.

Answer(s): A

Explanation:

Option A is correct because geoblocking the offending source country directly mitigates unsolicited scans from that region, aligning with an immediate, perimeter-based defense step when the country is not a business partner.
A) Correct — Geoblock the offending source country to stop traffic from that region at the edge, reducing noise and potential threats without needing to enumerate individual IPs.
B) Incorrect — Blocking an IP range may be too broad or dynamic if scanning originates from multiple ranges; not as targeted as geoblocking a whole country.
C) Incorrect — Historical trend analysis is passive; it does not stop current scans or reduce exposure.
D) Incorrect — Blocking a single IP may miss related sources; a country-wide block is more effective for pervasive scans.



An analyst has received an IPS event notification from the SIEM stating an IP address, which is known to be malicious, has attempted to exploit a zero-day vulnerability on several web servers. The exploit contained the following snippet:

/wp-json/trx_addons/V2/get/sc_layout?sc=wp_insert_user&role=administrator

Which of the following controls would work best to mitigate the attack represented by this snippet?

  1. Limit user creation to administrators only.
  2. Limit layout creation to administrators only.
  3. Set the directory trx_addons to read only for all users.
  4. Set the directory V2 to read only for all users.

Answer(s): A

Explanation:

Option A is correct because restricting user creation to administrators prevents an attacker from elevating privileges via the exposed WP REST endpoint sc_layout?sc=wp_insert_user&role=administrator, blocking the targeted abuse of user provisioning during the exploit.
B is incorrect because limiting layout creation does not address user provisioning or privilege escalation via the vulnerable endpoint.
C is incorrect because making trx_addons read-only may mitigate some modification risks but does not prevent creation of new administrator accounts through the exploit path.
D is incorrect because making V2 read-only blocks read access, not the write-capability exploited by wp_insert_user; the attack leverages user creation functionality, not mere read access.



A penetration tester submitted data to a form in a web application, which enabled the penetration tester to retrieve user credentials. Which of the following should be recommended for remediation of this application vulnerability?

  1. Implementing multifactor authentication on the server OS
  2. Hashing user passwords on the web application
  3. Performing input validation before allowing submission
  4. Segmenting the network between the users and the web server

Answer(s): C

Explanation:

Option C is correct because input validation before submission mitigates injection and other parameter tampering vulnerabilities that allow retrieval of credentials exposed through improper handling of user input. Incorrect — A: Multifactor authentication on the server OS does not address insecure input handling or credential exposure caused by form submission. Incorrect — B: Hashing passwords on the web app addresses at-rest storage, not the vulnerability that allows credential access via the form submission. Incorrect — D: Network segmentation does not fix insecure input processing or credential leakage from the application layer.



A cybersecurity team lead is developing metrics to present in the weekly executive briefs. Executives are interested in knowing how long it takes to stop the spread of malware that enters the network. Which of the following metrics should the team lead include in the briefs?

  1. Mean time between failures
  2. Mean time to detect
  3. Mean time to remediate
  4. Mean time to contain

Answer(s): C

Explanation:

Option C is correct because Mean Time to Remediate measures the duration from detection to full remediation, aligning with stopping malware spread. A) Mean time between failures relates to reliability of hardware/software failures, not incident containment. B) Mean time to detect focuses on how quickly threats are identified, not how fast containment/remediation occurs. D) Mean time to contain measures time to limit spread after detection, but remediation encompasses complete removal and restoration, which directly ties to stopping spread. Hence, C best communicates the full remediation duration.



Viewing page 10 of 73
Viewing questions 73 - 80 out of 571 questions


CS0-003 Exam Discussions & Posts (Share your experience with others)

AI Tutor AI Tutor 👋 I’m here to help!