An organization needs to monitor its users' activities to prevent insider threats. Which of the
following solutions would help the organization achieve this goal?
Correct answer:
A. Behavioral analytics
Explanation:
Behavioral analytics (also known as User and Entity Behavior Analytics - UEBA) is specifically designed to address the insider threat problem. It works by establishing a baseline of normal activity for each user and system (entity). It then uses advanced analytics, machine learning, and statistical algorithms to continuously monitor and analyze user behavior in real-time, looking for significant deviations from this established baseline
Examples of activities it can detect that may indicate an insider threat include:
A user accessing sensitive data they have never needed before.
A user downloading large volumes of data outside of business hours.
Logging in from an unusual geographic location in a short timeframe.
Multiple failed access attempts followed by a successful one.
By identifying these anomalous behaviors early, the organization can investigate and potentially stop a malicious insider or compromised account before significant damage is done. This makes it the most direct and effective tool among the choices for monitoring activities to prevent insider threats.
Why the other options are incorrect:
B. Access control lists (ACLs):
ACLs are a preventive control that dictates what a user is permitted to access (e.g., which files, systems, or network resources). They are fundamental to security but are a static permissions tool. They do not monitor or analyze user activity; they only enforce access rules. An insider threat would already have legitimate access that they could misuse, which an ACL would not prevent or detect.
C. Identity and access management (IAM):
IAM is a framework of policies and technologies for ensuring the right individuals have the appropriate access to technology resources. It is crucial for provisioning and de-provisioning access (a preventive control) but is not primarily focused on the continuous monitoring of user activity after access has been granted. It manages who has access, not how they are using it.
D. Network intrusion detection system (NIDS):
A NIDS monitors network traffic for known attack signatures and patterns of malicious activity. It is excellent for detecting threats originating from outside the network (e.g., hackers) or malware beaconing out. However, it is generally ineffective against most insider threats because the malicious activity is conducted using legitimate credentials and often does not generate the malicious network traffic patterns a NIDS is designed to look for.
Exam Objective Reference:
This question relates to Domain 1.0: Threats, Attacks, and Vulnerabilities, specifically the concept of insider threats, and Domain 4.0: Operations and Incident Response, covering security solutions like User Behavior Analysis (UBA) for monitoring and detection.
A systems administrator creates a script that validates OS version, patch levels, and
installed applications when users log in. Which of the following examples best describes
the purpose of this script?
Correct answer:
C. Baseline enforcement
Explanation:
The script described validates the OS version, patch levels, and installed applications during user logon. This is a classic example of baseline enforcement. A security baseline defines the minimum required configuration standards for systems (e.g., specific OS versions, approved patches, allowed applications). By running this script at logon, the organization ensures that devices comply with these standards before granting access, maintaining a secure and consistent environment.
Analysis of Incorrect Options:
A. Resource scaling:
This refers to dynamically allocating computing resources (e.g., CPU, memory) based on demand. The script checks configuration compliance, not resource usage.
B. Policy enumeration:
Enumeration involves listing or discovering policies, not enforcing them. The script actively validates and enforces compliance.
D. Guardrails implementation:
Guardrails are broader governance controls (often in cloud environments) that prevent deviations from best practices. The script is a specific technical control for endpoint compliance, not a overarching guardrail.
Reference:
This falls under Domain 3.0: Security Architecture, specifically configuration management and endpoint security. Baseline enforcement is a key practice in frameworks like NIST SP 800-53 (CM-2: Baseline Configuration) and CIS Benchmarks, ensuring systems meet security standards before accessing network resources.
Which of the following would a security administrator use to comply with a secure baseline
during a patch update?
Correct answer:
C. Standard operating procedure
Explanation:
The correct answer is C. Standard operating procedure (SOP).
A Standard Operating Procedure (SOP) is a detailed, step-by-step set of instructions compiled by an organization to help workers carry out complex routine operations. Its primary purpose is to ensure consistency, efficiency, and quality of output, while also ensuring compliance with industry regulations and internal policies, such as a secure baseline.
In the context of applying a patch update:
A secure baseline defines the required security state of a system (e.g., specific configuration settings, approved software versions).
An SOP for patch management would provide the exact, standardized steps to update a system without deviating from that baseline. This would include steps like:
Downloading patches only from approved vendor sources.
Verifying patch hashes for integrity.
Testing the patch in a staging environment first.
Applying the patch using specific commands or tools that do not alter other secure configurations.
Validating the system post-patch to confirm it still meets the baseline security requirements.
By following the SOP, the administrator ensures the patch is applied in a consistent, repeatable, and secure manner that maintains the system's compliance with its defined baseline.
Why the other options are incorrect:
A. Information security policy:
This is a high-level management document that outlines the organization's overall security goals, vision, and responsibilities. It defines what needs to be protected and why, but it does not provide the specific, step-by-step how-to instructions for a technical task like applying a patch. The policy might mandate that systems must adhere to a secure baseline, but the SOP is the document that operationalizes that mandate.
B. Service-level expectations (SLE) / Service-level agreement (SLA):
These are agreements between a service provider and a customer that define the expected level of service, often measured by metrics like uptime, performance, and response time. While an SLA might require the system to be kept patched and secure, it is a business agreement, not a technical guide for an administrator to follow during an update.
D. Test result report:
This is an output from a process, not a guide for performing the process. A test result report from a staging environment would be used to inform the decision of whether a patch is safe to deploy (i.e., it doesn't break applications or violate the baseline). However, the administrator uses the SOP to know how to conduct that test and how to proceed with the deployment based on the report's results.
Reference:
This distinction between policy, standard, procedure, and guideline is a core concept in security governance. It is often represented in a hierarchy:
Policy (High-level, "what" and "why")
Standard (Mandatory technical requirements, like the secure baseline itself)
Procedure (Step-by-step "how-to" instructions - this is the SOP)
Guideline (Non-mandatory best practices)
The CompTIA Security+ SY0-701 exam objectives explicitly cover these concepts under Domain 5.1: "Explain the importance of compliance with applicable laws, regulations, policies, and procedures." Using an SOP to ensure consistent and compliant operational work is a key part of this.
An employee fell for a phishing scam, which allowed an attacker to gain access to a
company PC. The attacker scraped the PC’s memory to find other credentials. Without
cracking these credentials, the attacker used them to move laterally through the corporate
network. Which of the following describes this type of attack?
Correct answer:
D. Pass-the-hash
Explanation
The scenario describes a multi-stage attack where the key detail is how the attacker reused credentials to move laterally without needing to know the plaintext passwords.
Why D. Pass-the-hash is the Correct Answer
Pass-the-hash (PtH) is a lateral movement technique that exploits the authentication process in Windows and other systems.
How it works:
Instead of cracking passwords to get the plaintext, attackers steal the hashed version of the password from memory (RAM) on a compromised machine. These hashes are stored to facilitate single sign-on (SSO) to other network resources.
"Without cracking these credentials":
This is the definitive clue. In a PtH attack, the attacker does not need to crack the hash to reveal the password. They can simply take the stolen hash and use it directly to authenticate to other systems (e.g., file shares, remote desktop, admin tools) as the user whose hash they stole. The system accepts the hash as proof of identity.
Matching the Scenario:
Initial Access:
Gained via phishing.
Credential Access:
The attacker "scraped the PC’s memory" to find hashed credentials.
Lateral Movement:
The attacker used the stolen hashes "without cracking" them to move to other systems.
This sequence of steps is a classic example of a Pass-the-hash attack.
Why the Other Options Are Incorrect
A. Privilege escalation
What it is:
Privilege escalation is the act of exploiting a bug, design flaw, or configuration oversight to gain elevated access to resources that are normally protected from an application or user.
Why it's incorrect:
While the attacker's ultimate goal might be to escalate privileges, the specific technique described for moving laterally is not privilege escalation. Lateral movement is about expanding access to other systems at the same privilege level. PtH is a method for achieving that movement.
B. Buffer overflow
What it is:
A buffer overflow is a software vulnerability that occurs when a program writes more data to a block of memory (a buffer) than it was allocated to hold. This can corrupt data, crash the program, or allow an attacker to execute malicious code.
Why it's incorrect:
The scenario describes a post-exploitation technique using stolen credentials. There is no mention of the attacker exploiting a software vulnerability to overwrite memory. The memory is being "scraped" or read, not overflowed.
C. SQL injection
What it is:
SQL injection (SQLi) is a web application vulnerability that allows an attacker to interfere with the queries an application makes to its database. This can be used to view, modify, or delete data they shouldn't have access to.
Why it's incorrect:
The initial compromise was via phishing, not attacking a web application. The lateral movement technique involves using stolen Windows authentication hashes from memory, not injecting SQL commands into a database query.
Reference to Exam Objectives
This question aligns with the CompTIA Security+ (SY0-701) Exam Objective 1.4: Given a scenario, analyze potential indicators to determine the type of attack.
Specifically, it tests knowledge of credential access and lateral movement techniques. Pass-the-hash is a critical attack method to understand, as it highlights why protecting credential stores in memory is essential and why simply having complex passwords is not enough if hashes can be stolen.
Which of the following types of vulnerabilities involves attacking a system to access
adjacent hosts?
Correct answer:
A. VM escape
Explanation
A Virtual Machine (VM) escape attack is a specific, severe type of vulnerability in a virtualized environment. In this attack, an attacker who has achieved code execution within a guest virtual machine (VM) breaks out of the isolation provided by the hypervisor. This allows the attacker to interact directly with the host operating system or, critically, with other guest VMs running on the same host.
"Attacking a system" refers to compromising the initial guest VM.
"To access adjacent hosts" refers to breaking out of the isolated VM environment to access the host machine or other VMs on that host, which are the "adjacent" systems in this architecture.
This is considered one of the most critical vulnerabilities in cloud and virtualized data centers because it breaches the fundamental security boundary (isolation) between tenants.
Why the Other Options Are Incorrect
B. Side loading:
This is an application-based attack, typically on mobile devices, where a user is tricked into installing an unverified application from a source outside the official app store. It does not involve breaking out of an isolated environment to access other systems on the same host; it's about bypassing distribution controls.
C. Remote code execution (RCE):
This is a very broad category of vulnerability where an attacker can execute arbitrary code or commands on a target system from a remote location. While an RCE vulnerability could be the initial vector used to gain access to a VM, it does not specifically describe the action of then breaking out of that environment to access adjacent hosts. RCE is the how, not the what of the final objective (which in this case is VM escape).
D. Resource exhaustion:
This is a type of denial-of-service (DoS) attack. The goal is to consume all available system resources (like CPU, memory, or bandwidth) to make a service or system unavailable for its intended users. It does not involve gaining access to or executing code on adjacent systems; its goal is to disrupt service, not to access data.
Reference
CompTIA Security+ (SY0-701) Exam Objectives: This question falls under Domain 1.2: Explain common threat vectors and attack surfaces. Virtualization-specific threats, like VM escape, are explicitly part of the modern threat landscape that the exam covers.
The severity of VM escape vulnerabilities is a key topic in cloud security discussions and is highlighted in security advisories from major hypervisor vendors like VMware, Microsoft (Hyper-V), and Citrix (Xen).
A forensic engineer determines that the root cause of a compromise is a SQL injection
attack. Which of the following should the engineer review to identify the command used by
the threat actor?
Correct answer:
B. Application log
Explanation
A SQL injection attack occurs when a threat actor inserts malicious SQL code into input fields of a web application (like a login form or search bar). The application, failing to properly validate or sanitize this input, forwards the malicious code to the underlying database server.
The application log is the most direct source to identify the exact command used because:
It typically records the specific queries and requests made to the application.
For a web application, this would include the raw HTTP requests, which contain the parameters and input values sent by the user (the threat actor).
The malicious SQL snippet is often visible within these request parameters (e.g., in a POST body or a GET query string).
Reviewing the application log allows the forensic engineer to see the precise malicious input that triggered the compromise.
Why the Other Options Are Incorrect
A. Metadata:
Metadata is "data about data," such as file creation dates, author, or modification timestamps. While crucial in other forensic investigations (e.g., determining when a file was exfiltrated), it does not contain the contents of user requests or database queries. It cannot reveal the specific SQL command used in the attack.
C. System log:
System logs (e.g., Windows Event Logs or Linux syslog) record operating system events, such as user logins, service failures, and driver issues. While they might show that a service like a database server crashed or had high CPU usage (an effect of the attack), they do not record the specific application-level SQL query that was executed.
D. Netflow log:
Netflow (or similar data like sFlow or IPFIX) provides metadata about network traffic. It records information like source/destination IP addresses, ports, protocols, and the volume of data transferred. It could show a connection from the threat actor to the application server, but it does not capture the actual content or payload of the communication. It can show that communication happened, but not what was said—it cannot reveal the specific SQL command.
Reference
CompTIA Security+ (SY0-701) Exam Objectives:
This question falls under Domain 4.4: Given a scenario, analyze potential indicators of malicious activity. A key part of analysis is reviewing the correct log source to find evidence of a specific attack.
Digital Forensics and Incident Response (DFIR):
A core principle in forensics is identifying the right source of evidence. For application-layer attacks like SQL injection, cross-site scripting (XSS), or command injection, the application server logs are always the primary source for the initial malicious payload. This is a standard practice outlined in guides from organizations like NIST (SP 800-86) and the SANS Institute.
A penetration tester was able to gain unauthorized access to a hypervisor platform. Which
of the following vulnerabilities was most likely exploited?
Correct answer:
D. VM escape
Explanation
The question states that the penetration tester gained unauthorized access to the hypervisor platform itself. The hypervisor is the underlying software, firmware, or hardware that creates and runs virtual machines (VMs). It is the host system that manages all guest VMs.
VM Escape (D) is a specific, severe vulnerability where an attacker breaks out of the isolated environment of a virtual machine (the guest) and gains unauthorized access to the hypervisor (the host) or other VMs on the same host. This directly aligns with the scenario described, as compromising the hypervisor gives an attacker control over all the resources and VMs it manages. This is a classic hypervisor-level compromise.
Why the other options are incorrect:
A. Cross-site scripting (XSS):
XSS is a vulnerability typically found in web applications. It allows an attacker to inject malicious scripts into content viewed by other users. It is not a vulnerability that would be used to compromise a hypervisor's core platform.
B. SQL injection (SQLi):
SQLi is a vulnerability that exploits improper input sanitization in applications that interact with a database. An attacker can manipulate SQL queries to view, modify, or delete database data. Like XSS, it is an application-layer attack and is not a typical vector for attacking a hypervisor's management system (unless that management system is itself a vulnerable web app, which is not the most likely exploit path for hypervisor access).
C. Race condition:
A race condition is a vulnerability where a system's output is dependent on the sequence or timing of uncontrollable events. Exploiting it (e.g., Time of Check to Time of Use - TOCTOU) can lead to privilege escalation or unauthorized actions. While a race condition could potentially exist in hypervisor software, it is a generic software flaw type and not the most specific or likely answer for a direct hypervisor compromise compared to VM escape.
Reference
CompTIA Security+ SY0-701 Objective 3.2: Explain concepts related to vulnerability management.
Understanding specific vulnerability types, like those associated with virtualization (VM escape), is key to vulnerability management.
CompTIA Security+ SY0-701 Objective 2.2: Explain the security implications of embedded and specialized systems.
Virtualization technologies are considered a type of specialized system. The hypervisor is a critical component, and VM escape is a paramount threat to its security model, which is based on isolating guest VMs from the host and from each other. A successful VM escape attack breaches this fundamental isolation.
Which of the following could potentially be introduced at the time of side loading?
Correct answer:
B. Rootkit
Explanation
Sideloading is the process of installing an application on a mobile device (or sometimes other systems) without using the official, sanctioned app store (like the Apple App Store or Google Play Store). This often involves enabling "Unknown Sources" or using developer tools.
The primary security risk of sideloading is that the application does not undergo the security vetting and code review typically performed by the official app store. This allows malicious code to be easily introduced onto the device.
Rootkit (B) is the most likely threat to be introduced via sideloading. A malicious actor can embed a rootkit within a seemingly legitimate application offered for download on a third-party website. Once the user sideloads and installs this app, the rootkit can gain privileged (root-level) access to the operating system, hide its presence, and create a persistent backdoor on the device. Sideloading is a common distribution vector for such deep-system malware.
Why the other options are incorrect:
A. User Impersonation:
User impersonation is a social engineering or identity theft technique where an attacker pretends to be another user. It is not a piece of malware or code that can be "introduced" or packaged inside an application. It is an action performed by an attacker, not a payload delivered via an app.
C. On-path Attack:
An on-path (or man-in-the-middle) attack is a network-based attack where an attacker intercepts or alters communication between two parties. It is not a software payload or malware that is contained within an application. It is an attack methodology that occurs during data transmission, not at the time of application installation.
D. Buffer Overflow:
A buffer overflow is a specific software vulnerability or coding error. While a malicious sideloaded app could exploit a buffer overflow vulnerability present on the device, the buffer overflow itself is not the thing being "introduced." The thing being introduced is the malicious app or its payload (e.g., a rootkit) that then takes advantage of the existing flaw.
Reference
CompTIA Security+ SY0-701 Objective 2.3: Explain the importance of secure development practices and controls.
This objective covers application security risks, including those from unvetted application sources. Sideloading bypasses the secure development and review controls enforced by official stores.
Mobile Device Management (MDM) / Application Management: A core security practice is to restrict sideloading on corporate devices precisely to prevent the introduction of malware like rootkits, spyware, and trojans that can compromise the entire device and corporate network.
That's the last free question in Threats, Vulnerabilities, and Mitigations
You've seen the free 30% of this topic (38 of 129 questions). Get complete access for every question, explanation and the timed mock exam.