Which of the following is used to protect a computer from viruses, malware, and Trojans being installed and moving laterally across the network?
Correct answer:
C. EDR
Explanation:
EDR (Endpoint Detection and Response) is a security solution that continuously monitors and collects endpoint data (e.g., workstations, servers), uses behavioral analysis to identify suspicious activities, and provides capabilities to investigate and respond to threats. It is specifically designed to detect and prevent the installation and execution of malware (like viruses and Trojans) and is highly effective at identifying and stopping lateral movement across a network by isolating compromised endpoints.
Why the others are incorrect:
A) IDS (Intrusion Detection System):
An IDS is a network-based (NIDS) or host-based (HIDS) monitoring system that detects and alerts on suspicious activity but typically lacks the integrated response capabilities to actively prevent the initial installation or stop lateral movement on its own.
B) ACL (Access Control List):
An ACL is a fundamental network security feature (on routers, switches, or firewalls) that filters traffic based on rules (e.g., allow/deny by IP address/port). While it can be used to segment a network and inhibit lateral movement, it is not specifically designed to protect an individual computer from malware installation. It operates at the network level, not the endpoint level.
D) NAC (Network Access Control):
NAC is a solution that enforces security policies on devices attempting to access the network. It checks for compliance (e.g., updated antivirus, OS patches) before granting access. Its primary role is to prevent initial network access by unauthorized or non-compliant devices, but it is not focused on continuous monitoring and response to threats after a device is already on the network, which is when lateral movement occurs.
Reference:
This aligns with SY0-701 Objective 3.2 ("Given a scenario, implement host or application security solutions") which specifically lists Endpoint Detection and Response (EDR) as a key security solution. EDR's role in containing threats and preventing lateral movement is a core concept in modern security architecture.
A security team is reviewing the findings in a report that was delivered after a third party performed a penetration test. One of the findings indicated that a web application form field is vulnerable to cross-site scripting. Which of the following application security techniques should the security analyst recommend the developer implement to prevent this vulnerability?
Correct answer:
C. Input validation
Explanation:
Cross-site scripting (XSS) is a vulnerability that allows an attacker to inject malicious scripts into web pages viewed by other users. This often occurs when a web application takes input from a user (like a form field) and displays it back on a page without properly checking or sanitizing it.
C. Input validation is correct.
This is the primary defense against XSS attacks. Input validation involves checking and sanitizing all user-supplied input before it is processed by the application. Techniques include:
Allow-listing:
Only accepting characters that are known to be safe for a specific field (e.g., only numbers in a zip code field).
By validating input, the application prevents the malicious script from being injected in the first place.
A. Secure cookies is incorrect.
The Secure cookie attribute ensures cookies are only sent over encrypted HTTPS connections. This protects against cookie theft via eavesdropping but does nothing to prevent the injection of a malicious script that could steal cookies via other means.
B. Version control is incorrect.
Version control systems (like Git) manage changes to source code over time. While they are a critical development best practice for tracking changes and collaborating, they do not directly prevent code-level vulnerabilities like XSS from being introduced.
D. Code signing is incorrect.
Code signing uses digital certificates to verify the author of a software program and ensure the code has not been altered after it was signed. It is used to establish trust and integrity for distributed software (like executables or scripts). It does not prevent vulnerabilities within the application's own logic, such as a lack of input validation.
Reference:
CompTIA Security+ SY0-701 Objective 3.2: "Given a scenario, implement secure coding practices." Input validation is a fundamental secure coding practice explicitly listed to mitigate common web application vulnerabilities, including cross-site scripting (XSS).
Which of the following is a type of vulnerability that refers to the unauthorized installation of applications on a device through means other than the official application store?
Correct answer:
D. Side loading
Explanation:
The question describes the specific act of installing applications from sources other than the official, sanctioned application store.
D. Side loading is correct.
Sideloading is the process of installing an application (an APK on Android or an IPA on iOS) on a mobile device without using the device's official app store (like the Google Play Store or Apple App Store). This can be a significant security vulnerability because these apps bypass the security reviews and sandboxing typically enforced by the official stores, potentially allowing malware to be installed.
A. Cross-site scripting (XSS) is incorrect.
XSS is a web application vulnerability where an attacker injects malicious scripts into content viewed by other users. It targets web browsers and applications, not the method of installing apps on a device.
B. Buffer overflow is incorrect.
A buffer overflow is a software vulnerability that occurs when a program writes more data to a block of memory than it was allocated to hold. This can lead to crashes or arbitrary code execution but is not related to the installation method of applications.
C. Jailbreaking is incorrect.
Jailbreaking (on iOS) or rooting (on Android) is the process of removing software restrictions imposed by the operating system. While this often enables sideloading by bypassing OS protections, it is not the term for the installation method itself. Sideloading is the specific vulnerability described.
Reference:
CompTIA Security+ SY0-701 Objective 2.4: "Explain the importance of resilience and recovery in security architecture." Mobile device security is a key topic, and understanding the risks associated with non-secure installation methods like sideloading is part of maintaining a secure mobile environment.
A hacker gained access to a system via a phishing attempt that was a direct result of a user clicking a suspicious link. The link laterally deployed ransomware, which laid dormant for multiple weeks, across the network. Which of the following would have mitigated the spread?
Correct answer:
A. IPS
Explanation:
A: is correct because an Intrusion Prevention System (IPS) is designed to not only detect but also actively block malicious network activity in real-time. In this scenario, an IPS could have potentially identified the ransomware's lateral movement (e.g., by detecting and blocking suspicious SMB, RDP, or other network protocols used for spreading) and stopped its propagation across the network. This active blocking function is the key to mitigating the spread.
B: is incorrect because an Intrusion Detection System (IDS) is a passive monitoring technology that only alerts on suspicious activity. While it might have generated an alert about the lateral movement, it would not have taken any action to block the traffic, allowing the ransomware to continue spreading unimpeded.
C: is incorrect because a Web Application Firewall (WAF) is specifically designed to protect web applications (like web servers) from attacks such as SQL injection, cross-site scripting (XSS), and other application-layer threats. It is not designed to monitor or block lateral movement of malware across an internal network, which is a network-layer concern.
D: is incorrect because User Acceptance Testing (UAT) is a phase in the software development lifecycle where end-users test software to ensure it meets their requirements and works correctly in their environment. It is a procedural control, not a technical security control, and has no capability to detect or prevent network-based attacks like ransomware propagation.
Reference:
This question falls under Domain 4.0: Security Operations, specifically covering the implementation and use of security tools and technologies like IPS/IDS for threat detection and prevention. It also touches on the cyber kill chain, where lateral movement is a key phase that security controls aim to disrupt.
A company decided to reduce the cost of its annual cyber insurance policy by removing the coverage for ransomware attacks. Which of the following analysis elements did the company most likely use in making this decision?
Correct answer:
C. ARO
Explanation:
The company is making a financial decision about insurance based on the risk and cost of a specific type of attack (ransomware).
C. ARO (Annualized Rate of Occurrence) is correct.
The ARO is an estimate of how often a specific threat or risk is expected to occur within a single year. If the company's historical data and risk analysis show that the frequency of ransomware attacks is very low (e.g., an ARO of 0.1, meaning one attack every ten years), they might decide that the cost of the insurance premium outweighs the potential loss. By calculating a low ARO, they justified removing the coverage to reduce costs.
A. MTTR (Mean Time to Repair) is incorrect.
MTTR is a metric that measures the average time it takes to repair a system or component and restore it to full functionality after a failure. It is used for reliability engineering and operational efficiency, not for making financial decisions about insurance coverage based on risk frequency.
B. RTO (Recovery Time Objective) is incorrect.
RTO is the maximum acceptable amount of time a system can be down after a failure or disaster. It is a goal set during business impact analysis for disaster recovery planning. It does not measure how often an event occurs, which is the key factor in the insurance decision.
D. MTBF (Mean Time Between Failures) is incorrect.
MTBF is a reliability metric that predicts the average time between inherent failures of a system or component. It is used for measuring the lifespan and reliability of hardware, not for estimating the frequency of cyber attacks like ransomware.
Reference:
CompTIA Security+ SY0-701 Objective 5.2: "Explain the importance of applicable regulations, standards, or frameworks that impact organizational security posture." Risk analysis is a key part of this objective. Understanding quantitative risk assessment factors like ARO (Annualized Rate of Occurrence) is essential for making informed decisions about risk treatment, such as accepting or transferring risk through insurance. The formula for calculating the Annualized Loss Expectancy (ALE) is ALE = SLE (Single Loss Expectancy) × ARO, which is directly used to justify insurance and mitigation costs.
A cybersecurity incident response team at a large company receives notification that malware is present on several corporate desktops No known Indicators of compromise have been found on the network. Which of the following should the team do first to secure the environment?
Correct answer:
A. Contain the Impacted hosts
Explanation:
The correct answer is A. Contain the impacted hosts.
Following the NIST Incident Response Lifecycle (Preparation, Detection & Analysis, Containment, Eradication, Recovery, Post-Incident Activity), the immediate priority after confirming an incident is to prevent further damage or spread. This is the goal of the Containment phase.
Containment is the first strategic action. The team has identified specific compromised assets ("several corporate desktops"). The most direct and effective way to secure the environment is to immediately isolate these known-threats.
This can be done by:
Disconnecting them from the n
etwork (logically or physically).
Isolating them in a VLAN.
Using endpoint detection and response (EDR) tools to quarantine the devices.
This action directly stops the malware from communicating with a command-and-control (C2) server, spreading to other systems, or exfiltrating data. It contains the known problem before addressing potential downstream effects.
Why the other options are incorrect:
B. Add the malware to the application blocklist.
This is an important eradication and preparation step, but it is not the first thing to do. The malware is already active on the endpoints. A blocklist prevents future execution but does nothing to stop the currently running malicious processes on the infected machines. Containment must come first.
C. Segment the core database server.
This is a valuable long-term preventative control (part of the Preparation and Recovery phases), but it is not the most direct incident response action. It is based on an assumption that the database is the next target, but there is no evidence yet that the malware has spread or what its objective is. The immediate priority is to contain the known compromised systems, not to reconfigure the network around potential targets.
D. Implement firewall rules to block outbound beaconing.
While this seems logical, it is a less precise and potentially disruptive action than direct containment.
It may not be effective:
The malware could be using encrypted channels (e.g., HTTPS, DNS tunneling) that are difficult to distinguish from legitimate traffic with simple firewall rules.
It could cause collateral damage:
Blocking outbound traffic could accidentally disrupt legitimate business operations.
It's a secondary action:
The most precise and guaranteed method to stop beaconing from the known infected hosts is to contain those hosts themselves. Once they are contained, the team can analyze the malware to determine its call-home signatures and then implement more precise network-level blocks.
Reference:
This aligns directly with the Containment, Eradication, and Recovery phase of the incident response lifecycle as defined in NIST Special Publication 800-61, Revision 2. The guide emphasizes that the immediate goal of containment is "stopping the incident before it can cause further damage." The strategy is to choose containment measures that "provide the most time for response while minimizing damage." Isolating the known compromised hosts is the most direct application of this principle.
Which of the following security concepts is being followed when implementing a product that offers protection against DDoS attacks?
Correct answer:
A. Availability
Explanation:
Availability is the security principle that ensures systems and data are accessible and operational when needed by authorized users. A Distributed Denial-of-Service (DDoS) attack is specifically designed to overwhelm a system's resources (like bandwidth, CPU, or memory) to make it unavailable to its intended users. Therefore, implementing a product to protect against DDoS attacks is a direct measure to defend and uphold the availability of a service or resource.
Why the other options are incorrect:
B. Non-repudiation:
This concept prevents an individual from denying having taken a specific action (e.g., sending a message or approving a transaction). It is typically achieved through digital signatures and auditing. DDoS protection does not relate to proving someone's actions.
C. Integrity:
This principle ensures that data is accurate, trustworthy, and has not been altered in an unauthorized way. While some attacks might combine DDoS with other threats, the core goal of a DDoS attack is to make a service unavailable, not to corrupt its data. Therefore, the primary concept being protected is availability, not integrity.
D. Confidentiality:
This principle ensures that information is not disclosed to unauthorized individuals, devices, or processes. DDoS attacks do not typically aim to steal or expose data; their goal is to disrupt service. Protection against DDoS does not directly safeguard confidentiality.
Reference:
This question tests the understanding of the CIA triad (Confidentiality, Integrity, Availability) in the context of common threats.
This falls under Domain 2.1: Explain the importance of security concepts in an enterprise environment of the CompTIA Security+ SY0-701 exam objectives.
DDoS attacks are a quintessential threat to availability, and mitigating them is a core function of maintaining business continuity, as outlined in various security frameworks.
A new vulnerability enables a type of malware that allows the unauthorized movement of data from a system. Which of the following would detect this behavior?
Correct answer:
B. Monitoring outbound traffic
Explanation:
The scenario describes malware that exfiltrates data, meaning it moves data out of the system without authorization. The most direct way to detect this behavior is by monitoring outbound traffic. Security tools like a firewall, intrusion detection system (IDS), or data loss prevention (DLP) system can analyze network traffic leaving the organization. They can detect anomalies such as:
Unusually large data transfers.
Data being sent to suspicious or unauthorized external IP addresses.
Traffic using non-standard ports or protocols for exfiltration.
Why not A? Implementing encryption: Encryption protects the confidentiality of data by making it unreadable if intercepted. However, it does not detect the movement of data; encrypted data can still be exfiltrated without triggering an alert.
Why not C? Using default settings: Default settings on systems and applications are often insecure and well-known to attackers. Using them might make a system more vulnerable to infection but does not help detect data exfiltration after the malware is already present.
Why not D? Closing all open ports: While this is a good hardening practice to reduce the attack surface, it is often impractical (e.g., web servers need port 80/443 open). More importantly, sophisticated malware can use allowed ports (like HTTPS on port 443) to blend in with normal traffic. Closing ports is a preventive measure, not a detective one.
Reference:
Domain 4.3: "Given an incident, utilize appropriate data sources to support an investigation." Monitoring network traffic (especially outbound) is a primary data source for detecting indicators of compromise (IOCs), such as data exfiltration. This aligns with the Security+ objective of using continuous monitoring to identify malicious activity.
An analyst is reviewing an incident in which a user clicked on a link in a phishing email. Which of the following log sources would the analyst utilize to determine whether the connection was successful?
Correct answer:
A. Network
Explanation:
To determine whether the connection to the link in the phishing email was successful, the analyst should review network logs. These logs capture details about network connections, such as:
Outbound HTTP/HTTPS requests from the user's device.
DNS queries resolving the phishing domain.
Successful establishment of TCP/IP connections to the external server.
Data transfers (e.g., indicating a payload was downloaded).
Network logs (e.g., from firewalls, proxies, or IDS/IPS) provide direct evidence of whether the user's device communicated with the malicious server.
Why not the others?
B. System logs:
Focus on OS-level events (e.g., logons, process creation) but may not explicitly show successful external connections.
C. Application logs:
Record application-specific actions (e.g., browser activity) but might not be as comprehensive for network-level verification.
D. Authentication logs:
Track login attempts and access controls, unrelated to outbound connections.
Reference:
Domain 4.3: "Given an incident, utilize appropriate data sources to support an investigation." Network logs are critical for tracing communication with external entities, a key step in phishing incident analysis. The SY0-701 objectives emphasize using diverse log sources for forensic investigations.
An organization’s internet-facing website was compromised when an attacker exploited a buffer overflow. Which of the following should the organization deploy to best protect against similar attacks in the future?
Correct answer:
B. WAF
Explanation:
A Web Application Firewall (WAF) is specifically designed to protect web applications by filtering and monitoring HTTP traffic between a web application and the internet. It can detect and block common web-based attacks, including buffer overflows, SQL injection, cross-site scripting (XSS), and other OWASP Top 10 vulnerabilities. By deploying a WAF, the organization can add a layer of defense that inspects incoming requests for malicious patterns and prevents exploits from reaching the web application, thus protecting against similar attacks in the future.
Analysis of Incorrect Options:
A. NGFW (Next-Generation Firewall):
An NGFW provides advanced network-level security (e.g., stateful inspection, intrusion prevention, application awareness). While it can offer some protection, it is not as specialized as a WAF for detecting and mitigating application-layer attacks like buffer overflows in web applications.
C. TLS (Transport Layer Security):
TLS encrypts data in transit between the client and server, ensuring confidentiality and integrity. However, it does not protect against buffer overflow exploits; it only secures the communication channel. An attacker can still exploit a buffer overflow over an encrypted TLS connection.
D. SD-WAN (Software-Defined Wide Area Network):
SD-WAN optimizes and manages wide area network connectivity, improving performance and reliability. It is not a security tool and provides no protection against web application attacks like buffer overflows.
Reference:
This question falls under Domain 3.0: Security Architecture, specifically web application security. Buffer overflows are a common application-layer vulnerability, and the WAF is the recommended control for mitigating such threats, as highlighted in the OWASP Top 10 and frameworks like NIST SP 800-44 (Guidelines on Securing Public Web Servers).
Practice Like It's Exam Day
Get exam-ready with a timed SY0 701 CompTIA Security+ mock exam designed to match the official exam's question format, question count, and time limit.