Curated

Threats, Vulnerabilities, and Mitigations 2 (2.3)

0 votes

Questions28

  1. Question 1

    Threats, Vulnerabilities, and Mitigations

    An EDR alert shows code inside a trusted process that another process wrote into its memory at runtime. No file changed on disk and no input overflowed a buffer. What is this?

    Show the answer

    Correct answerB. Memory injection

    AWhy not this: Requires input larger than the buffer; the stem says no input overflowed one.

    BWhy this is right: Code written into a running process's memory by another process is memory injection.

    CWhy not this: Concerns a state change between check and use of a resource, not code written into a process.

    DWhy not this: Involves a tampered update delivered to the system, but nothing here was installed or updated.

    Memory injection places attacker code into the address space of a running process so it executes under that process. A buffer overflow needs oversized input to overrun a buffer, and the stem rules that out.

    Open this question
  2. Question 2

    Threats, Vulnerabilities, and Mitigations

    A program copies 500 bytes of user input into a 64-byte buffer and overwrites adjacent memory. What vulnerability is this?

    Show the answer

    Correct answerB. Buffer overflow

    AWhy not this: Places code into a running process's memory; here the flaw is missing bounds on input.

    BWhy this is right: Data exceeding a buffer's allocated size overwrites adjacent memory.

    CWhy not this: Involves a tampered software update, not a program mishandling input size.

    DWhy not this: Depends on timing between a check and a use, not on oversized input.

    Writing more data than a buffer can hold, so it spills into adjacent memory, is a buffer overflow. Memory injection is a different attack, in which code is placed into another running process's memory.

    Open this question
  3. Question 3

    Threats, Vulnerabilities, and Mitigations

    A team must detect malware that runs only inside the memory of trusted processes and never writes a file to disk. Which control is BEST?

    Show the answer

    Correct answerA. EDR that monitors process memory behavior

    AWhy this is right: Inspects process memory and behavior, so it can spot code injected into trusted processes.

    BWhy not this: Prevents race conditions on shared resources; it does not detect injected code.

    CWhy not this: Watches files for changes, so it misses code that exists only in process memory.

    DWhy not this: Protects against tampered updates, not code injected into running processes.

    Memory injection leaves little or nothing on disk, so detection needs visibility into process memory and behavior, which EDR provides. File integrity monitoring only sees file changes and misses memory-only code.

    Open this question
  4. Question 4

    Threats, Vulnerabilities, and Mitigations

    A login page returns a database error when a tester enters a single quote in the username field, and ' OR '1'='1 bypasses authentication. Which fix addresses the root cause?

    Show the answer

    Correct answerA. Use parameterized queries

    AWhy this is right: Binding input as parameters stops it from being parsed as SQL, which removes the injection flaw at its source.

    BWhy not this: Output encoding blocks script injection in rendered pages; it does not change how the database parses the query.

    CWhy not this: TLS encrypts traffic in transit; the attacker's injected input still reaches the query unchanged.

    DWhy not this: CSP restricts which scripts a browser runs, so it is an XSS defense and has no effect on SQL statements.

    The error and the login bypass show that user input is concatenated into a SQL statement. Parameterized queries keep input as data, not code. Output encoding and CSP defend against script injection in browsers, not against altered database queries.

    Open this question
  5. Question 5

    Threats, Vulnerabilities, and Mitigations

    Which vulnerability lets an attacker inject script into a web page so that it runs in other users' browsers?

    Show the answer

    Correct answerC. Cross-site scripting

    AWhy not this: SQL injection alters database queries on the server; it does not run script in other users' browsers.

    BWhy not this: Directory traversal reads files outside the web root through path manipulation, not browser script.

    CWhy this is right: XSS places attacker script into a page that victims' browsers then execute in the site's context.

    DWhy not this: A buffer overflow overwrites memory by exceeding a buffer's size; it is not a web page script injection.

    Cross-site scripting occurs when an application includes untrusted input in a page without sanitizing it, so the injected script executes in a victim's browser. SQL injection targets the database query, not the user's browser.

    Open this question
  6. Question 6

    Threats, Vulnerabilities, and Mitigations

    A tenant's compromised guest VM sends malformed requests to the hypervisor's virtual device emulation. The attacker's code then runs on the host and reads other guests' memory. Which vulnerability was exploited?

    Show the answer

    Correct answerB. VM escape

    AWhy not this: Sprawl is unmanaged growth of VMs; it is not an exploit of the hypervisor.

    BWhy this is right: Code from a guest ran on the host through a hypervisor flaw, which is a break out of guest isolation.

    CWhy not this: Resource reuse leaks leftover data from reallocated resources; nothing here involves leftover data.

    DWhy not this: Guest privilege escalation raises rights inside the guest only; here code ran on the host.

    VM escape means code in a guest breaks isolation through a hypervisor flaw and executes on the host or reaches other guests. Privilege escalation inside the guest is tempting, but it stays within the guest and never reaches the host.

    Open this question
  7. Question 7

    Threats, Vulnerabilities, and Mitigations

    Which conditions can expose a previous tenant's data through resource reuse? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. Deleted VMs' virtual disk blocks are reallocated without being wipedB. Thin-provisioned storage returns the old contents of reclaimed blocksC. Decommissioned host disks are reassigned to another tenant without sanitizationF. Memory pages released by one VM are reassigned to another without being zeroed

    AWhy this is right: Unwiped virtual disk blocks keep the earlier tenant's data after reallocation.

    BWhy this is right: Reclaimed blocks that still return old contents expose residual data to the new user.

    CWhy this is right: Disks reassigned without sanitization carry the earlier tenant's data to the new tenant.

    DWhy not this: Idle, unpatched VMs are a sprawl problem and leave no residual data from a prior tenant.

    EWhy not this: Running code on the host is a VM escape, which breaks isolation instead of reading residual data.

    FWhy this is right: Unzeroed memory reassigned to another VM leaves the earlier tenant's data readable.

    Resource reuse occurs when memory or storage is reallocated to a new user with the previous contents still present. A hypervisor exploit is a VM escape, which attacks isolation rather than recovering residual data.

    Open this question
  8. Question 8

    Threats, Vulnerabilities, and Mitigations

    Which description matches a VM escape?

    Show the answer

    Correct answerC. An attacker breaks out of a guest VM to reach the hypervisor or host

    AWhy not this: Leftover data in reassigned memory describes resource reuse, not an escape from a guest.

    BWhy not this: Untracked, unpatched VMs describe VM sprawl, which is a management problem.

    CWhy this is right: Leaving the guest to reach the hypervisor or host is the definition of a VM escape.

    DWhy not this: Sniffing virtual switch traffic is a network attack and does not leave the guest boundary.

    A VM escape defeats the isolation the hypervisor enforces, letting an attacker move from a guest to the hypervisor or host. Leftover data in reallocated memory is resource reuse, which involves no break from the guest.

    Open this question
  9. Question 9

    Threats, Vulnerabilities, and Mitigations

    Malware persists on a server after its disk is replaced and the operating system is reinstalled. Analysis shows the code is stored on the motherboard. Which vulnerability type is MOST likely being exploited?

    Show the answer

    Correct answerC. Firmware vulnerability

    AWhy not this: A legacy application is old software on the disk, which the reinstall would have removed.

    BWhy not this: End-of-life describes missing vendor support, not where the malicious code is stored.

    CWhy this is right: Code in the motherboard's non-volatile storage persists regardless of disk or OS changes.

    DWhy not this: Injected code resides in volatile memory and would not survive a reboot, let alone a rebuild.

    Firmware is stored in non-volatile memory on the hardware, so malicious code there survives disk replacement and OS reinstalls. Memory injection lives in RAM and is lost on reboot, so it cannot explain persistence across a rebuild.

    Open this question
  10. Question 10

    Threats, Vulnerabilities, and Mitigations

    A vendor announces that a server model has reached end-of-life. What is the main security consequence?

    Show the answer

    Correct answerD. The vendor stops issuing security patches

    AWhy not this: End-of-life ends support; vendors do not normally disable products remotely.

    BWhy not this: No further updates are issued, so new flaws are never fixed.

    CWhy not this: That describes a legacy system; end-of-life is defined by the vendor ending support.

    DWhy this is right: Support ends, including security patches, so new vulnerabilities remain unpatched.

    End-of-life means the vendor stops providing support, including security patches, so newly found vulnerabilities stay open. Reliance on outdated technology describes a legacy system, which is a different concept.

    Open this question
  11. Question 11

    Threats, Vulnerabilities, and Mitigations

    Which action directly fixes a known vulnerability in a network switch's firmware?

    Show the answer

    Correct answerB. Applying a firmware update

    AWhy not this: Disk encryption protects stored data and does not change the firmware's flaw.

    BWhy this is right: A vendor firmware update replaces the vulnerable code on the device itself.

    CWhy not this: Stronger passwords limit access but the vulnerable firmware code remains.

    DWhy not this: Antivirus signatures do not patch code running on switch hardware.

    Firmware flaws are corrected by the vendor's firmware update, which replaces the vulnerable code. Rotating credentials may limit access but leaves the flawed code in place.

    Open this question
  12. Question 12

    Threats, Vulnerabilities, and Mitigations

    What is the term for installing a mobile app from a source other than the device's official app store?

    Show the answer

    Correct answerC. Side loading

    AWhy not this: Jailbreaking removes OS restrictions; it describes modifying the OS, not the app source.

    BWhy not this: Sandboxing isolates apps from each other; it is a protection, not an install source.

    CWhy this is right: Side loading is installing apps from outside the official store, bypassing its app vetting.

    DWhy not this: Memory injection writes code into a running process's memory; it is not an installation method.

    Side loading means installing apps from outside the official store, which bypasses the store's vetting. Jailbreaking is different because it modifies the OS to remove restrictions rather than just choosing an install source.

    Open this question
  13. Question 13

    Threats, Vulnerabilities, and Mitigations

    A user removes the iOS manufacturer's restrictions on an iPhone so they can install unapproved tweaks and gain deeper system access. Which security concern does this MOST directly create?

    Show the answer

    Correct answerA. The OS security model is bypassed, weakening app isolation and protections

    AWhy this is right: Jailbreaking circumvents OS restrictions, weakening sandboxing and code-signing protections.

    BWhy not this: Jailbreaking removes the store-only limit, so this is the opposite of its effect.

    CWhy not this: Resource reuse concerns unwiped memory or storage in shared environments, not OS restriction removal.

    DWhy not this: VM escape involves guest-to-host breakout via a hypervisor flaw, which is unrelated to a phone's OS modification.

    Jailbreaking bypasses the OS's built-in restrictions, undermining sandboxing, code-signing enforcement and security updates. The official-store limit is what jailbreaking removes, so that option describes the opposite outcome.

    Open this question
  14. Question 14

    Threats, Vulnerabilities, and Mitigations

    A cloud service's management API accepts requests without any authentication. Which vulnerability does this represent?

    Show the answer

    Correct answerB. Insecure cloud API

    AWhy not this: A zero-day is an undisclosed flaw with no patch; missing authentication is a plainly visible gap.

    BWhy this is right: An unauthenticated management API is a classic cloud-specific weakness that exposes tenant resources.

    CWhy not this: Cryptographic weakness concerns weak algorithms or keys; here no authentication exists at all.

    DWhy not this: An unsupported OS lacks vendor patches; the stem is about API access control, not OS support.

    Cloud services are managed through APIs, and one that does not require authentication exposes the service to anyone who can reach it. That is a cloud-specific API weakness. A zero-day is a flaw unknown to the vendor, not a known missing control.

    Open this question
  15. Question 15

    Threats, Vulnerabilities, and Mitigations

    A production server runs an operating system that the vendor retired two years ago. Newly discovered flaws in it will never receive vendor patches. Which vulnerability type does this most clearly represent?

    Show the answer

    Correct answerB. Operating system-based

    AWhy not this: A zero-day is a flaw the vendor does not yet know about; retirement is a support status, not an unknown flaw.

    BWhy this is right: An unsupported OS no longer gets security fixes, leaving its flaws permanently exploitable.

    CWhy not this: Misconfiguration is about insecure settings, not about the OS version having lost vendor support.

    DWhy not this: Cryptographic vulnerabilities involve weak algorithms, keys or protocols, which the stem does not describe.

    An end-of-life OS stops receiving security updates, so its flaws accumulate and stay open. That is an OS-based vulnerability. A zero-day is a flaw unknown to the vendor, whereas this OS is simply unsupported and its flaws will go unfixed.

    Open this question
  16. Question 16

    Threats, Vulnerabilities, and Mitigations

    A firm moved a server to an IaaS virtual machine, assuming the provider patches everything on it. A known flaw in the guest operating system is later exploited. What best explains the exposure?

    Show the answer

    Correct answerB. Misunderstood shared responsibility for the guest OS

    AWhy not this: A zero-day is unknown to the vendor and would be in the hypervisor; this was a known guest OS flaw.

    BWhy this is right: Under shared responsibility the IaaS customer patches the guest OS, so the wrong assumption left the flaw open.

    CWhy not this: The stem describes no API gateway issue; the exploit targeted the guest OS.

    DWhy not this: Disk encryption strength is unrelated to a known guest OS flaw being exploited.

    In IaaS the customer is responsible for patching the guest OS, while the provider secures the underlying infrastructure. Assuming otherwise is a shared responsibility gap. A hypervisor zero-day is wrong because the exploited flaw was known and sat in the guest OS.

    Open this question
  17. Question 17

    Threats, Vulnerabilities, and Mitigations

    What can an attacker do by exploiting a local privilege escalation flaw in an operating system?

    Show the answer

    Correct answerA. Gain administrator or root rights from a standard account

    AWhy this is right: Local privilege escalation raises a standard account to administrator or root, which is the core OS-based impact.

    BWhy not this: An overly permissive firewall rule is a misconfiguration, not an OS flaw being exploited.

    CWhy not this: Crossing into another customer's resources is a cloud multitenancy issue, not local OS escalation.

    DWhy not this: Reading data behind a deprecated cipher is a cryptographic weakness, not an OS privilege flaw.

    Privilege escalation flaws in an OS let a low-privileged user or process obtain administrator or root rights. The cipher option describes a cryptographic weakness, which is a different vulnerability type.

    Open this question
  18. Question 18

    Threats, Vulnerabilities, and Mitigations

    A company's new routers contain counterfeit chips with a hidden backdoor added during manufacturing. Which supply chain source is the vulnerability?

    Show the answer

    Correct answerB. Hardware provider

    AWhy not this: Legacy platforms are out-of-support systems; these routers are new and altered at manufacture.

    BWhy this is right: Tampered or counterfeit components from the manufacturer or reseller are a hardware provider risk.

    CWhy not this: The backdoor is in physical chips, not in an application or update from a software vendor.

    DWhy not this: No outside firm's access or services were abused; the flaw was built into the devices.

    Counterfeit or tampered components introduced before delivery are a hardware provider risk. A service provider risk involves contracted staff or access, not the physical devices bought.

    Open this question
  19. Question 19

    Threats, Vulnerabilities, and Mitigations

    An application bundles a third-party library that contains hidden malicious code. Which supply chain source introduced the risk?

    Show the answer

    Correct answerC. Software provider

    AWhy not this: No physical device or component is involved; the malicious code is in a library.

    BWhy not this: No contracted service or outside access was used; the code was bundled in the application.

    CWhy this is right: The library comes from an outside software source, so a software provider introduced the risk.

    DWhy not this: Password policy governs credentials and does not explain malicious code in a library.

    Code supplied by an outside party, such as a bundled library, makes that party a software provider in the supply chain. A service provider risk comes from contracted services or access, not from code included in the application.

    Open this question
  20. Question 20

    Threats, Vulnerabilities, and Mitigations

    A retailer's HVAC contractor has a VPN account into the retailer's network. Attackers steal the contractor's credentials and reach the point-of-sale systems. Which supply chain weakness was exploited?

    Show the answer

    Correct answerB. Service provider

    AWhy not this: No vendor software or update was compromised; the entry point was a contractor account.

    BWhy this is right: The contractor is a service provider whose trusted access was abused to reach the retailer's network.

    CWhy not this: The stolen credentials were valid contractor accounts, not vendor-set defaults left unchanged.

    DWhy not this: No purchased device or component was tampered with; the attacker used a contractor's access.

    A third-party service provider with trusted network access extends the attack surface, and its compromise gives attackers a path in. Default credentials are a separate weakness, because the attack here used the contractor's stolen valid credentials.

    Open this question
  21. Question 21

    Threats, Vulnerabilities, and Mitigations

    A new database server goes live with the vendor's default administrator password unchanged. Which vulnerability type is this?

    Show the answer

    Correct answerB. Misconfiguration

    AWhy not this: Cryptographic weaknesses involve flawed algorithms or key handling, not an unchanged password.

    BWhy this is right: A default password left in place is an insecure configuration choice made at deployment.

    CWhy not this: A zero-day is an unpatched flaw unknown to the vendor; this is a known default setting.

    DWhy not this: An OS-based flaw lives in the operating system code; this is a setting on the database.

    Leaving a default credential in place is an insecure setting chosen at deployment, which is a misconfiguration. A zero-day would be an unknown flaw in the code itself, not a setting left unchanged.

    Open this question
  22. Question 22

    Threats, Vulnerabilities, and Mitigations

    Attackers who stole a database recover most user passwords within hours, because the passwords were stored as unsalted MD5 hashes. Which weakness best explains this?

    Show the answer

    Correct answerB. A weak hash algorithm with no salting

    AWhy not this: A zero-day concerns an unknown flaw in software; nothing here suggests an unpatched vendor flaw.

    BWhy this is right: MD5 is fast and obsolete, and without salts precomputed tables and brute force crack the hashes quickly.

    CWhy not this: An OS flaw might have helped the theft, but it does not make stolen hashes easy to reverse.

    DWhy not this: A cloud storage exposure explains how data leaks, not why the hashes were cracked so fast.

    MD5 is a fast, deprecated hash, and without a unique salt identical passwords hash alike, so precomputed tables and brute force recover them quickly. This is a cryptographic vulnerability. An OS flaw could enable the breach but does not explain why the hashes were easy to reverse.

    Open this question
  23. Question 23

    Threats, Vulnerabilities, and Mitigations

    Which characteristics apply to a zero-day vulnerability? (Choose four.)

    Choose 4 answers

    Show the answer

    Correct answersA. The vendor is unaware of the flaw or has not yet fixed itD. Signature-based tools are unlikely to detect its exploitationE. No vendor patch exists when the flaw is exploitedF. Attackers can exploit it before a fix is available

    AWhy this is right: A zero-day is a flaw the vendor does not know about or has not yet fixed.

    BWhy not this: An insecure default setting is a misconfiguration, not an unknown software flaw.

    CWhy not this: Unsupported products describe end-of-life, not zero-day; zero-days can affect fully supported software.

    DWhy this is right: With no known exploit pattern, signature-based detection usually misses it.

    EWhy this is right: Because the flaw is new to the vendor, no patch exists yet.

    FWhy this is right: The window of exposure comes from attackers acting before any fix is released.

    A zero-day is a flaw unknown to the vendor or not yet patched, so attackers can exploit it with no fix and no known signature. End-of-life status and default settings are different issues: the first has no future patches and the second is a configuration problem.

    Open this question
  24. Question 24

    Threats, Vulnerabilities, and Mitigations

    A privileged script verifies that a temporary file is not a symbolic link, then opens it. An attacker swaps in a link to a protected file between the two steps. What should the developer change?

    Show the answer

    Correct answerC. Make the check and the open a single atomic operation

    AWhy not this: Update signatures protect the script's delivery, not the gap between its check and its use of a file.

    BWhy not this: EDR can spot memory injection, but nothing is injected here; the attacker only swaps the file in the gap.

    CWhy this is right: An atomic check-and-open leaves no window in which the file can be swapped after the check.

    DWhy not this: Filename length limits guard against buffer overflows, but the problem here is a timing gap, not oversized input.

    The flaw is a time-of-check race: the file's state changes after the check but before it is opened. Performing the check and open as one atomic operation leaves no gap. Limiting filename length addresses buffer overflows, which are not involved here.

    Open this question
  25. Question 25

    Threats, Vulnerabilities, and Mitigations

    What does time-of-use (TOU) refer to in a race condition?

    Show the answer

    Correct answerD. The moment the program acts on the checked resource

    AWhy not this: The verification step is the time-of-check, the first half of the pair, not the time-of-use.

    BWhy not this: Overrunning a buffer with oversized input is a buffer overflow, not a race condition timing point.

    CWhy not this: Replacing a program through an update is update installation, unrelated to the timing of a check and use.

    DWhy this is right: Time-of-use is the later step in which the program relies on the resource after its earlier check.

    In a TOC/TOU race condition, time-of-use is when the program acts on a resource after having checked it. The verification itself is the time-of-check, which is the other half of the pair.

    Open this question
  26. Question 26

    Threats, Vulnerabilities, and Mitigations

    Which statements describe a time-of-check (TOC) race condition? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersC. Combining the check and the use into one atomic step helps prevent itD. A security check, such as a permission test, runs before the resource is usedE. The resource's state can change after the check but before it is used

    AWhy not this: Overwriting adjacent memory with oversized input is a buffer overflow, not a timing flaw.

    BWhy not this: Hidden code delivered in a signed update is a malicious update, a supply-side problem unrelated to timing.

    CWhy this is right: Atomic operations or locking leave no gap between check and use, which removes the race.

    DWhy this is right: The check, such as a permission or existence test, is the time-of-check step that the later action trusts.

    EWhy this is right: The gap between check and use lets an attacker alter the resource, so the earlier check is no longer valid.

    FWhy not this: Code written into a trusted process's memory at runtime is memory injection, not a check-then-use gap.

    A TOC race condition arises when a program checks a resource's state and the state changes before the program acts on it. Making the check and use atomic closes that gap. Overwriting adjacent memory is a buffer overflow, a different flaw.

    Open this question
  27. Question 27

    Threats, Vulnerabilities, and Mitigations

    A plant still runs a 20-year-old control system that the vendor still supports but cannot use modern authentication or encryption. Which approach BEST reduces risk while the system stays in service?

    Show the answer

    Correct answerC. Isolate it on a segmented network with restricted access

    AWhy not this: Disabling logging removes visibility and does nothing to fix weak authentication or encryption.

    BWhy not this: The vendor still supports it, and waiting for end-of-life only removes patches and adds no protection.

    CWhy this is right: Segmentation and access limits compensate for missing authentication and encryption without replacing the system.

    DWhy not this: Firmware patches fix flaws but usually cannot add modern protocols to a legacy design.

    Legacy systems often cannot support modern security features, so compensating controls such as network segmentation and access restrictions limit exposure. Firmware updates cannot add capabilities the hardware and software design lack, and the system is supported, so end-of-life is not the issue.

    Open this question
  28. Question 28

    Threats, Vulnerabilities, and Mitigations

    A vendor patch passed signature and hash checks, installed from the vendor's official update server, then opened a reverse shell. Attackers had altered the code in the vendor's build pipeline before it was signed. Which vulnerability was exploited?

    Show the answer

    Correct answerB. Malicious update delivered through a trusted vendor channel

    AWhy not this: No file was swapped after verification; the checked package was already malicious, so no check-to-use gap was exploited.

    BWhy this is right: Code altered before signing still validates, so trust in the vendor's channel carried the backdoor onto the host.

    CWhy not this: Nothing shows malformed input overrunning a buffer; the payload arrived as intended, signed update content.

    DWhy not this: Injection writes code into a running process's memory; here the vendor's own installer delivered the payload.

    The code was tampered with before signing, so the signature and hash validated it. The trust placed in the vendor's update channel was abused, which is a malicious update. A TOC race would need a gap between the check and the install, but the check itself passed on altered code.

    Open this question