Threat vectors

25 free practice questions for the CompTIA® Security+® (SY0-801) exam, from the threats and attacks domain. Pick an answer, then open the explanation to check it.

Every question is original and written for Gapwise with AI. Two separate AI reviewers answered each one without seeing the answer key and checked it against the cited public sources. These are not real exam questions.

Question 1

A defense manufacturer evicts an intruder that had quietly copied engineering files for eight months. The team rebuilt the affected servers, reset credentials, and blocked the known command-and-control addresses. Threat intelligence links the activity to an advanced persistent threat (APT). Which planning assumption BEST fits this threat source?
  1. A. The adversary will likely switch to an easier target now that it has been detected
  2. B. The incident can be closed once the exploited vulnerability has been patched
  3. C. The adversary will likely try new vectors to get back in, so keep hunting
  4. D. Any return will likely reuse the blocked addresses and the same tools
Show the answer and explanation

Answer: C. The adversary will likely try new vectors to get back in, so keep hunting

An APT's defining traits are persistence and adaptation: it pursues its objectives repeatedly over a long period and changes tactics when defenders resist. Eviction is therefore a milestone, not the end. Plan for attempts to get back in through other vectors and new infrastructure, and keep threat hunting and monitoring in place. Blocking known indicators and closing the incident after a patch both assume a one-time attacker.

Why each option is right or wrong

  • A. Incorrect. Wrong. Detection doesn't end an APT campaign. An APT is determined to maintain the interaction it needs to reach its objectives, so it tends to stay focused on a chosen target.
  • B. Incorrect. Wrong. Patching closes one path in, but an APT uses multiple attack vectors. Closing the incident early leaves the organization unprepared for the next attempt.
  • C. Correct. An APT pursues its objectives repeatedly and adapts to defenders' efforts. Expect attempts to get back in through new vectors, and keep hunting and monitoring after the eviction.
  • D. Incorrect. Wrong. Because an APT adapts to defenders' efforts, blocked infrastructure and tools are likely to be replaced. Watching only for known indicators would miss the return.

References

Question 2 Multiple answers

A company's email gateway detonates every attachment in a sandbox before delivering the message. Which two techniques help an attacker keep a malicious payload away from that inspection? (Select two.)
  1. A. Use an urgent subject line, such as 'Final notice', to rush the reader
  2. B. Zip the payload with a password and give the password in the message
  3. C. Attach the payload as an executable with its real .exe name
  4. D. Link to the file on a cloud storage site instead of attaching it
  5. E. Greet the recipient by name and job title to build trust
  6. F. Send the message from a newly registered look-alike domain
Show the answer and explanation

Answers: B. Zip the payload with a password and give the password in the message; D. Link to the file on a cloud storage site instead of attaching it

Attachment sandboxing helps only when it can see and run the payload. Attackers work around it in two common ways. They encrypt the attachment, such as a password-protected archive with the password in the email, or they replace the attachment with a link so the file is fetched after delivery. Urgency, personal details, and look-alike domains target the human reader rather than the inspection system.

Why each option is right or wrong

  • A. Incorrect. Wrong. Urgency pressures the person reading the message, but the gateway still detonates whatever is attached.
  • B. Correct. The gateway can't open an encrypted archive to inspect the payload inside. Giving the password in the message body lets the victim open it after delivery.
  • C. Incorrect. Wrong. A plain executable attachment is exactly what attachment sandboxing is built to detonate and block.
  • D. Correct. When the message carries only a link, there is no attachment for the sandbox to inspect. The payload is fetched later, when the user clicks.
  • E. Incorrect. Wrong. Personal details make the lure more convincing to the reader. They don't hide an attachment from the sandbox.
  • F. Incorrect. Wrong. A look-alike domain may fool the reader, but a newly registered domain tends to lower the message's reputation, and any attachment is still inspected.

References

Question 3

Staff at a regional clinic receive text messages that appear to come from the payroll provider. Each message asks them to confirm direct deposit details through a shortened link. When the same lure arrived by email, staff spotted it easily by checking the link. Which characteristic of the Short Message Service (SMS) vector BEST explains why the texted version is more dangerous?
  1. A. Text messages are end-to-end encrypted, so security tools on the network can't read them
  2. B. The phone's small, simple message view makes the true destination hard to check
  3. C. Text messages can run scripts automatically when the message is displayed
  4. D. Carriers verify every sender's identity before delivering a text message
Show the answer and explanation

Answer: B. The phone's small, simple message view makes the true destination hard to check

SMS lures move the attack to a small screen with a constrained interface. Recipients can't hover over a link, shortened URLs hide the destination, and the authenticity of a text is hard to judge. Federal mobile and phishing guidance calls out text messages as a common phishing channel for mobile users. The safe habit is to ignore links in unexpected texts and go to the provider's site or app directly.

Why each option is right or wrong

  • A. Incorrect. Wrong. SMS is not end-to-end encrypted. The extra danger here comes from how the message is shown and checked on the phone, not from encryption.
  • B. Correct. Phones show messages in a constrained interface with no hover preview, and a shortened link hides the destination. Federal phishing guidance notes that malicious uniform resource locators (URLs) are hard to detect on these small platforms.
  • C. Incorrect. Wrong. A text message doesn't run scripts on its own. The user still has to open the link, which is why the lure relies on persuasion.
  • D. Incorrect. Wrong. Texts carry no reliable proof of who sent them, and federal mobile security guidance notes that the authenticity of texts can be hard to determine. That makes a payroll lure easier to fake, not harder.

References

Question 4

A software engineer is contacted on a professional networking site by someone posing as a recruiter. After a week of friendly chat, the recruiter moves the conversation to a personal instant messaging app and sends a 'take-home coding test' archive. The engineer opens it on a work laptop. Why did the attacker MOST likely switch to the messaging app?
  1. A. Messaging apps verify each sender's identity, which made the recruiter more credible
  2. B. The app sits outside the company's email filtering, so the file skipped those checks
  3. C. The app's end-to-end encryption removes malware from files in transit
  4. D. Files sent by instant message can't be scanned by endpoint antivirus software
Show the answer and explanation

Answer: B. The app sits outside the company's email filtering, so the file skipped those checks

Instant messaging is a message-based vector that often sits outside enterprise controls. Attackers build rapport on social media, then move to personal messaging, where content isn't filtered the way corporate email is. The target is also more likely to open the file because they are expecting it. Policies that keep work files on managed channels, plus endpoint protection, reduce this risk.

Why each option is right or wrong

  • A. Incorrect. Wrong. Consumer messaging apps generally don't verify who is behind an account, and the 'recruiter' is a fake persona. The rapport built over a week did the persuading.
  • B. Correct. Personal messaging and social media services are outside enterprise control and tend to have weaker security policies. Moving the chat there lets the attacker bypass the company's email restrictions, and the target expects the file.
  • C. Incorrect. Wrong. Encryption protects a file's confidentiality in transit; it doesn't inspect or clean the contents. The archive arrives exactly as the attacker sent it.
  • D. Incorrect. Wrong. Endpoint protection can still scan the file once it lands on the laptop. The channel switch avoids the email gateway, not the endpoint.

References

Question 5

Employees receive an email saying their multifactor authentication (MFA) enrollment expires today. The only content is an image of a quick response (QR) code and the text 'Scan with your phone to stay enrolled.' The company's email security rewrites and checks every link in inbound messages. Why is this lure format effective against the company's defenses?
  1. A. Reading the code with the camera installs software on the phone automatically
  2. B. The code is encrypted, so only the intended recipient can decode the link
  3. C. A QR image proves that the message really came from the company's identity provider
  4. D. The link exists only as pixels and opens on a phone outside desktop protections
Show the answer and explanation

Answer: D. The link exists only as pixels and opens on a phone outside desktop protections

QR codes are an image-based vector. Putting the URL in an image hides it from email link scanning. Asking the user to scan with a phone moves the attack off the managed desktop to a device with fewer controls and a small screen. Treat QR codes in unexpected messages like any other link, and use mail tools that can decode QR images.

Why each option is right or wrong

  • A. Incorrect. Wrong. Scanning only decodes the text stored in the code. The user still has to open the link, so the attack depends on persuasion and the phishing page that follows.
  • B. Incorrect. Wrong. A QR code is an encoding, not encryption. Anyone, including a security tool that can read images, can decode it.
  • C. Incorrect. Wrong. Anyone can generate a QR code, so it proves nothing about the sender. Making the lure look legitimate is part of the trick.
  • D. Correct. Link scanners look for uniform resource locators (URLs) in the message text, but this one exists only as pixels. Scanning it moves the user from the protected desktop to a phone, which attackers use to evade URL inspection.

Reference

Question 6

While browsing, a user reaches a page with a 'Verify you are human' check box. After the click, the page tells the user to press Windows+R, paste the copied text, and press Enter to finish verification. What is the attacker's goal?
  1. A. To collect the user's mouse movements for a bot-detection score
  2. B. To prove to the site's owner that the visitor is not a bot
  3. C. To store a session cookie that lets the user skip future human checks
  4. D. To trick the user into running a malicious command on the computer
Show the answer and explanation

Answer: D. To trick the user into running a malicious command on the computer

CAPTCHAs are familiar, so attackers imitate them. In the 'ClickFix' pattern, a fake CAPTCHA copies a command to the clipboard and tells the user to paste it into the Run dialog or a terminal. Because the user runs the command, it can slip past download protections and email filtering. A real CAPTCHA never asks you to run anything on your computer.

Why each option is right or wrong

  • A. Incorrect. Wrong. Real human-verification services do analyze behavior, but none asks you to open the Run dialog and paste text. That step exists only to run the attacker's command.
  • B. Incorrect. Wrong. A legitimate check proves you're human inside the browser. Asking the user to run something on the operating system serves no verification purpose.
  • C. Incorrect. Wrong. A site can set cookies without any user action. Pasting text into the Run dialog has nothing to do with storing a cookie.
  • D. Correct. This is a fake Completely Automated Public Turing test to tell Computers and Humans Apart (CAPTCHA), known as a 'ClickFix' lure. The page copies a malicious command to the clipboard, and the instructions get the user to run it, typically installing malware.

Reference

Question 7

A user lets the browser's built-in password manager save sign-ins for dozens of websites. Later, malware runs under that user's account on the workstation and targets those saved sign-ins. What does the malware MOST likely obtain?
  1. A. Usernames with salted password hashes that must be cracked before use
  2. B. Usernames with recoverable passwords it can reuse on other sites and systems
  3. C. Only the sign-ins for sites that happen to be open in browser tabs at that moment
  4. D. Nothing usable, because each website holds the key that decrypts its saved entry
Show the answer and explanation

Answer: B. Usernames with recoverable passwords it can reuse on other sites and systems

A browser password manager must fill in real passwords, so it stores them in reversible encrypted form rather than as hashes. Methods exist to extract those passwords in plaintext, which is why infostealer malware targets browser password stores. Stolen passwords are then reused on other sites and systems, which does the most harm when a saved password also opens a privileged account. Keep the contrast in mind: a website's server should store only salted hashes.

Why each option is right or wrong

  • A. Incorrect. Wrong. A password manager has to fill in the real password, so it can't keep one-way hashes. It stores passwords in reversible encrypted form. Salted hashes are what a website's server should keep.
  • B. Correct. Browsers keep saved credentials encrypted, but methods exist to extract them in plaintext, and infostealer malware is built to do so. Attackers then reuse the passwords on other sites and systems.
  • C. Incorrect. Wrong. The password store keeps every saved entry on disk, whether or not the site is open. Malware can read the whole store at any time.
  • D. Incorrect. Wrong. Websites play no part in protecting the browser's local store. The browser itself must decrypt entries to fill in forms, so the means to decrypt them sits on the user's device.

Reference

Question 8

An infostealer on an employee's home laptop copies the browser's session cookie for the company's software as a service (SaaS) portal. The employee had signed in that morning with a password and a multifactor authentication (MFA) code. An hour later, the attacker loads the cookie into another browser and uses the portal with no password or MFA prompt. Why didn't MFA stop the attacker?
  1. A. The token stands in for the completed sign-in, so the portal treats its holder as that user
  2. B. The infostealer also copied the MFA seed, so the attacker's browser made a fresh code
  3. C. The cookie holds the user's password in encrypted form, which the portal accepts as a sign-in
  4. D. The attacker's browser replayed the user's morning MFA code along with the cookie
Show the answer and explanation

Answer: A. The token stands in for the completed sign-in, so the portal treats its holder as that user

Once a user authenticates, the session token stands in for that whole sign-in, MFA included. A stolen token therefore skips both factors until the session expires or is revoked, which is why stolen session cookies can bypass some MFA. Infostealers and adversary-in-the-middle phishing kits target tokens for this reason. Short session lifetimes, re-authentication for sensitive actions, and session revocation on risk signals limit the damage.

Why each option is right or wrong

  • A. Correct. After authentication, the session token is temporarily equivalent to the strongest method used to sign in, MFA included. Whoever presents it is treated as the signed-in user until the session ends.
  • B. Incorrect. Wrong. Nothing suggests the seed was taken, and no code was needed: the portal never asked for one. The cookie alone carried the authenticated state.
  • C. Incorrect. Wrong. Session cookies normally carry a random session identifier that points to state on the server, not the password. A password alone would still have faced the MFA prompt.
  • D. Incorrect. Wrong. One-time codes are single-use and expire quickly, and no MFA prompt appeared to replay one into. The session token made a code unnecessary.

References

Question 9

An attacker gains SYSTEM-level control of a Windows jump server. A domain administrator's Remote Desktop Protocol (RDP) session on that server is still open but disconnected. The attacker doesn't know the administrator's password or password hash. Which action would MOST directly let the attacker act with the administrator's privileges?
  1. A. Request a Kerberos ticket for the administrator from a domain controller
  2. B. Attach to the disconnected session with the built-in session-connect tool
  3. C. Dump the server's local SAM database to recover the administrator's password
  4. D. Reset the administrator's password through the server's local user manager
Show the answer and explanation

Answer: B. Attach to the disconnected session with the built-in session-connect tool

RDP session hijacking lets an attacker who already holds SYSTEM rights on a server attach to another user's session, active or disconnected, without credentials. No password or hash is used, so credential-based detections stay quiet while the attacker inherits the victim's privileges, here a domain administrator's. The other routes need the administrator's credentials or domain rights the attacker lacks. Log off disconnected sessions promptly, limit privileged sessions on shared hosts, and watch for session-connect tools run as SYSTEM.

Why each option is right or wrong

  • A. Incorrect. Wrong. A domain controller issues a ticket only after the requester proves the administrator's identity with a password, hash, or key, which the attacker doesn't have.
  • B. Correct. This is RDP session hijacking. With SYSTEM permissions, an attacker can connect to another user's active or disconnected session without credentials or prompts and inherits its privileges.
  • C. Incorrect. Wrong. The SAM database holds the server's local accounts. A domain administrator's account lives in the domain's directory on the domain controllers, so the member server's SAM doesn't hold it.
  • D. Incorrect. Wrong. Local user management on a member server changes only that server's local accounts. A domain account's password can be reset only through the domain, by an account with rights to do so.

Reference

Question 10

A distributor's remote access virtual private network (VPN) accepts a username and password with no second factor. An attacker buys a valid employee login for it on a criminal marketplace. What does this login MOST directly give the attacker?
  1. A. Internal network access from anywhere, with that employee's level of access
  2. B. Administrative control over the VPN gateway's configuration and stored keys
  3. C. The ability to decrypt other employees' tunnels that pass through the same gateway
  4. D. Access only to the public website, since VPN sign-ins end at the perimeter
Show the answer and explanation

Answer: A. Internal network access from anywhere, with that employee's level of access

Remote access VPNs connect users in external locations to internal enterprise resources, so a valid login is effectively a seat on the internal network. That's why ransomware guidance lists exploited VPNs and compromised credentials among common initial access routes and calls for multifactor authentication (MFA) on every VPN connection. The login carries the employee's access, not gateway administration, and it can't decrypt other users' tunnels. Internal segmentation limits how far that seat reaches.

Why each option is right or wrong

  • A. Correct. A remote access VPN exists to connect outside users to internal resources. A valid login puts the attacker inside, limited only by the employee's permissions and any internal segmentation.
  • B. Incorrect. Wrong. An ordinary user login authenticates a tunnel; it doesn't grant rights to manage the gateway. Taking over the gateway would need an admin account or an exploit.
  • C. Incorrect. Wrong. Each tunnel negotiates its own session keys. One user's credentials reveal nothing about other users' encrypted sessions.
  • D. Incorrect. Wrong. A remote access VPN carries users past the perimeter to internal systems; that is its purpose. The public website needs no VPN at all.

References

Question 11 Multiple answers

A small accounting firm moves its client files from an on-premises file server to a software as a service (SaaS) document platform. Which two statements accurately describe how this changes the firm's exposure? (Select two.)
  1. A. Responsibility for managing the risk to the files passes to the provider
  2. B. Attackers must now breach the firm's office network before they can get to the files
  3. C. The firm has no direct control over the security controls in the provider's platform
  4. D. The provider's version history replaces the firm's need for its own backup plan
  5. E. A flaw in the provider's multi-tenant platform can expose many customers at once
Show the answer and explanation

Answers: C. The firm has no direct control over the security controls in the provider's platform; E. A flaw in the provider's multi-tenant platform can expose many customers at once

Moving data to a SaaS provider makes the provider part of the firm's supply chain. The firm no longer manages the application or its infrastructure, so it depends on controls it can't directly see or change. Because the provider serves many customers from pooled resources, one flaw at the provider can expose many of them at once. Accountability for the risk stays with the firm.

Why each option is right or wrong

  • A. Incorrect. Wrong. Using an external service doesn't transfer accountability. The firm still owns the risk decision and must oversee how the provider protects its clients' files.
  • B. Incorrect. Wrong. A SaaS platform is reached over the internet with staff credentials, not through the office network. Phishing or reusing those credentials can reach the files directly.
  • C. Correct. The provider builds and runs the platform's controls. The firm can adjust only limited settings, such as its own users' options, and relies on the provider for the rest.
  • D. Incorrect. Wrong. Provider version history doesn't replace the firm's own backup planning. Retention limits, account takeover, or a provider outage can still leave the firm without its files.
  • E. Correct. SaaS providers pool resources to serve many customers. A flaw or breach in the shared platform can reach every affected tenant's data without touching any customer's own network.

References

Question 12 Multiple answers

An executive gets a message inside an end-to-end encrypted messaging app. It claims to come from the app's security team, says the account has been compromised, and asks the executive to scan a quick response (QR) code to secure it. Which two responses are BEST? (Select two.)
  1. A. Scan the code, since alerts inside an encrypted app come from the app itself
  2. B. Report the message through the app's reporting feature instead of acting on it
  3. C. Turn on disappearing messages, which cuts off any attacker already linked
  4. D. Move sensitive conversations to Short Message Service (SMS) texts until the account is checked
  5. E. Review the app's linked devices and remove any the executive doesn't recognize
Show the answer and explanation

Answers: B. Report the message through the app's reporting feature instead of acting on it; E. Review the app's linked devices and remove any the executive doesn't recognize

Instant messaging apps are targets in their own right. Attackers pose as support staff, claim an account is compromised, and trick the victim into actions that hand over control, such as linking the attacker's device. A linked device receives messages like any other endpoint, so end-to-end encryption doesn't help. CISA's guidance is to distrust unexpected in-app security alerts, report them, and keep the linked-device list clean.

Why each option is right or wrong

  • A. Incorrect. Wrong. Anyone can message a user inside the app, and encryption protects messages in transit, not the honesty of the sender. Guidance warns to stay suspicious of unexpected security alerts even within the app and to avoid QR codes from unknown sources.
  • B. Correct. Guidance says to report suspicious activity through the app's own reporting mechanism. Not acting on the message avoids the step that would hand over the account.
  • C. Incorrect. Wrong. Message expiration deletes messages after a set period. It doesn't remove a device that's already linked to the account, so an attacker's device would keep receiving new messages.
  • D. Incorrect. Wrong. Text messages aren't encrypted and can be read by anyone with access to the provider's network. That trades a possible account problem for certain exposure.
  • E. Correct. Guidance says to check the linked devices list, keep only the necessary ones, and immediately remove any unintended device. That cuts off an attacker who may already have linked a device to the account.

Reference

Question 13 Multiple answers

A small accounting firm forwards Transmission Control Protocol (TCP) port 3389 from its internet firewall to an office server so staff can use Remote Desktop Protocol (RDP) from home. Logs show thousands of failed sign-ins a day from unknown addresses. Which two changes MOST directly reduce this exposure? (Select two.)
  1. A. Stop publishing RDP to the internet and reach it only over a virtual private network (VPN)
  2. B. Raise the failed sign-in limit so remote staff aren't locked out by typos
  3. C. Stop logging failed RDP sign-ins, since they're only internet background noise
  4. D. Move the server to another internal subnet but keep the port forward in place
  5. E. Lock accounts after repeated failures and require multifactor authentication (MFA)
Show the answer and explanation

Answers: A. Stop publishing RDP to the internet and reach it only over a virtual private network (VPN); E. Lock accounts after repeated failures and require multifactor authentication (MFA)

Exposed and poorly secured remote services are a common way for ransomware actors to get in. CISA's #StopRansomware Guide says not to expose services such as RDP on the web. Where RDP is needed, it says to close unused RDP ports, enforce lockouts, apply MFA, and log attempts. Reaching RDP through a VPN shrinks the exposed surface, and lockouts plus MFA blunt password guessing.

Why each option is right or wrong

  • A. Correct. Ransomware guidance says not to expose services such as RDP on the web. Behind a VPN, the RDP service is no longer open to anyone scanning the internet.
  • B. Incorrect. Wrong. Guidance calls for account lockouts after a set number of attempts. Raising the limit gives password guessers more tries.
  • C. Incorrect. Wrong. Guidance says to log RDP login attempts. Those records show guessing campaigns and can reveal a successful break-in.
  • D. Incorrect. Wrong. The port forward still sends internet traffic to the server wherever it sits. Moving subnets changes nothing for outside attackers.
  • E. Correct. Lockouts slow password guessing, and MFA means a guessed or stolen password alone won't open a session. Both are on CISA's list of practices for RDP that must stay in use.

Reference

  • #StopRansomware GuidePart 1, Initial Access Vector: Internet-Facing Vulnerabilities and Misconfigurations, p. 7

Question 14

A restaurant chain uses older tablets as order-entry terminals on each store's network. The tablet maker has stopped releasing operating system security updates for this model, though the ordering app still gets updates. Which statement BEST describes the risk?
  1. A. App updates also carry operating system fixes, so the risk is unchanged
  2. B. Turning on device encryption closes the gap, since stored data stays protected
  3. C. Being reachable only from the store network keeps the tablets out of attackers' reach
  4. D. Operating system flaws found from now on will remain unpatched on these tablets
Show the answer and explanation

Answer: D. Operating system flaws found from now on will remain unpatched on these tablets

Security updates are what close newly discovered flaws, so a tablet past its update support grows more exposed over time. NIST SP 800-124 Rev. 2 stresses that mobile devices must receive updates or remain vulnerable. The Cybersecurity and Infrastructure Security Agency (CISA) advises choosing models whose makers commit to years of security updates. Plan to replace unsupported tablets and isolate them until then.

Why each option is right or wrong

  • A. Incorrect. Wrong. App updates fix the app, not the operating system beneath it. A flaw in the operating system stays open no matter how current the app is.
  • B. Incorrect. Wrong. Encryption protects data at rest, mainly when a device is lost. It doesn't stop an attacker from exploiting a flaw in the running operating system.
  • C. Incorrect. Wrong. An internal network isn't a safe zone. Malware on another store device, a rogue device on the network, or malicious content reaching the tablet can still exploit an unpatched flaw.
  • D. Correct. NIST notes that a mobile device that doesn't receive updates will remain in a vulnerable state. Once the maker stops releasing fixes, every newly found operating system flaw stays open.

References

Question 15

At a law firm, staff print confidential client documents on a shared printer in a busy hallway. Pages often sit in the output tray until someone collects them, and some have gone missing. Which control BEST addresses this exposure?
  1. A. Encrypt print jobs as they travel from workstations to the printer
  2. B. Install the latest firmware on the printer and keep it current
  3. C. Hold each job until its sender signs in at the printer to release it
  4. D. Wipe the printer's internal storage at the end of each business day
Show the answer and explanation

Answer: C. Hold each job until its sender signs in at the printer to release it

Printers are output devices, and their output can leak as easily as their stored data. NIST's control for output devices calls for linking a person's identity to the release of output, such as authenticating at the printer. Pull printing does this: jobs wait in a queue and print only when the owner signs in. Moving the printer into a controlled room is another option.

Why each option is right or wrong

  • A. Incorrect. Wrong. Encryption protects the job while it crosses the network. The exposure here is printed pages lying in a public tray, which encryption in transit doesn't touch.
  • B. Incorrect. Wrong. Current firmware fixes software flaws in the printer. It doesn't stop a passer-by from picking up pages that someone else printed.
  • C. Correct. NIST SP 800-53 PE-5(2) links a person's identity to receipt of output, for example by requiring authentication at the printer before output is released. Pages print only when their owner is standing there.
  • D. Incorrect. Wrong. Wiping storage protects copies of jobs kept inside the printer. The pages in the tray are already printed, so a daily wipe leaves them exposed.

Reference

Question 16

A company's monthly vulnerability scans cover its servers and workstations. Networked multifunction printers are left out because the IT team treats them as office equipment. Attackers later exploit a printer firmware flaw and use the printer to reach other internal systems. Which statement BEST describes the gap?
  1. A. Networked printers can hold exploitable flaws, so they need vulnerability monitoring too
  2. B. Printer firmware can't be altered, so the flaw must have started on a workstation
  3. C. Printer risk is limited to stored scans, which sanitizing at disposal already covers
  4. D. Printers sit behind the perimeter firewall, so they need no separate vulnerability checks
Show the answer and explanation

Answer: A. Networked printers can hold exploitable flaws, so they need vulnerability monitoring too

Multifunction printers run embedded operating systems and network services, so they carry the same kinds of flaws as other computers. NIST's vulnerability monitoring control names networked printers as sources that shouldn't be overlooked, and its patch management guide covers printers and firmware. Leaving printers out of scanning and patching gives attackers a quiet foothold inside the network.

Why each option is right or wrong

  • A. Correct. NIST SP 800-53 RA-5 says vulnerability monitoring should make sure that sources of vulnerabilities such as networked printers, scanners, and copiers aren't overlooked. NIST's patching guide also counts printers and firmware in scope.
  • B. Incorrect. Wrong. Printer firmware is software: it has flaws, and it can be updated or replaced. The scenario says the attackers exploited the printer's own firmware.
  • C. Incorrect. Wrong. Stored copies of scans are one printer risk, and sanitization handles them at disposal. A networked printer also runs services that attackers can exploit while it's in use.
  • D. Incorrect. Wrong. Being inside the perimeter doesn't make a device safe. An attacker who reaches the internal network can target unpatched printers there and use them as footholds.

References

Question 17

A pharmacy chain contracts one logistics company to handle every delivery from its warehouses to its stores. Ransomware shuts down that company's dispatch systems for ten days, and many stores run short of medicine. None of the chain's own systems were breached. Which supply chain weakness did this expose?
  1. A. Concentration of a critical service in a single provider
  2. B. Counterfeit products entering through the delivery route
  3. C. Tampering with shipments while in the provider's custody
  4. D. Weak encryption on the chain's warehouse network
Show the answer and explanation

Answer: A. Concentration of a critical service in a single provider

A logistics provider can hurt an organization without touching its network: if deliveries stop, operations stop. NIST lists concentration of products or services from a single supplier as a supply chain vulnerability. NIST's supply chain guidance also warns about interruptions to logistics processes for critical components. Alternate carriers and buffer stock reduce this exposure.

Why each option is right or wrong

  • A. Correct. NIST SP 800-161 Rev. 1 names concentration of products or services from a single supplier as a supply chain vulnerability. With no alternate carrier, one provider's outage became the chain's outage.
  • B. Incorrect. Wrong. Counterfeits are a real supply chain risk, but nothing here suggests fake products. The deliveries simply stopped.
  • C. Incorrect. Wrong. Tampering alters goods in transit. Here the problem was that no goods moved at all.
  • D. Incorrect. Wrong. The chain's own systems weren't breached. The harm came entirely through its dependence on the provider.

References

Question 18 Multiple answers

A company manages the browsers on its 2,000 workstations centrally. Which two measures BEST reduce the risk from malicious browser extensions? (Select two.)
  1. A. Allow any extension that's listed in the browser vendor's store
  2. B. Enforce an extension allow list through central browser policy
  3. C. Turn on HTTPS-only mode in every browser on the workstations
  4. D. Audit installed extensions regularly for look-alikes of popular tools
  5. E. Clear browser cookies and history at the end of every workday
Show the answer and explanation

Answers: B. Enforce an extension allow list through central browser policy; D. Audit installed extensions regularly for look-alikes of popular tools

Extensions can read and change what users see and type, so the safest approach is to control which ones get installed. An allow list enforced by central policy blocks unapproved installs, and audits catch look-alikes that imitate popular tools. Browser vendors' stores help, but their review doesn't reliably stop malicious submissions.

Why each option is right or wrong

  • A. Incorrect. Wrong. Store review is limited, and malicious extensions can get past its automated scanners. Many pose as legitimate, popular tools.
  • B. Correct. ATT&CK lists a browser extension allow or deny list as a mitigation. Central policy stops users from adding anything that hasn't been approved.
  • C. Incorrect. Wrong. HTTPS-only mode protects traffic between the browser and websites. Extensions run inside the browser and see pages after decryption, so it does nothing about which extension code is installed or what it reads.
  • D. Correct. Malicious extensions often masquerade as legitimate ones. Regular audits confirm that what's installed is what was intended and catch anything that slipped past policy.
  • E. Incorrect. Wrong. An extension that reads pages can send data out as it collects it. Clearing cookies later doesn't recall data already sent or stop the extension from running.

Reference

Question 19 Multiple answers

An online store's checkout page loads an analytics script straight from a vendor's server. The store wants a defense that still works if attackers break into that vendor server and alter the script. Which two measures meet this goal? (Select two.)
  1. A. Add a Subresource Integrity (SRI) hash to the script tag
  2. B. Require the vendor to serve the script only over Hypertext Transfer Protocol Secure (HTTPS)
  3. C. Set the HttpOnly attribute on the store's session cookie
  4. D. Serve the script from a copy on the store's own servers
  5. E. Put a web application firewall in front of the store's site
Show the answer and explanation

Answers: A. Add a Subresource Integrity (SRI) hash to the script tag; D. Serve the script from a copy on the store's own servers

Third-party JavaScript runs with the same privileges as the page's own code, so a compromised vendor server can turn it into a card skimmer. Subresource Integrity and in-house mirroring both stop unreviewed changes from running in customers' browsers. HTTPS protects the script only on the way, not at its source.

Why each option is right or wrong

  • A. Correct. SRI makes the browser compare the downloaded script with the hash the store recorded. If the vendor's copy changes, the hash no longer matches and the browser refuses to run it.
  • B. Incorrect. Wrong. HTTPS stops changes while the script is in transit. A compromised vendor server will deliver the altered script over HTTPS just the same.
  • C. Incorrect. Wrong. HttpOnly keeps scripts from reading that one cookie. An altered script could still read card numbers as customers type them into the checkout form.
  • D. Correct. With in-house mirroring, browsers never fetch the vendor's live copy. Changes on the vendor's server don't reach customers until the store reviews them and updates its copy.
  • E. Incorrect. Wrong. Customers' browsers fetch the script directly from the vendor, so that request never passes through the store's firewall.

References

  • OWASP Cheat Sheet SeriesThird Party JavaScript Management Cheat Sheet, Major risks, Risk 1: Loss of control over changes to the client application
  • OWASP Cheat Sheet SeriesThird Party JavaScript Management Cheat Sheet, Security Defense Considerations, Subresource Integrity

Question 20

A web app sets its session cookie with SameSite=Lax instead of using anti-forgery tokens. Its account deletion runs when a signed-in browser requests https://app.example.com/account/delete?confirm=yes. An attacker posts that link on a public forum, and users who click it while signed in lose their accounts. Why didn't SameSite=Lax stop this?
  1. A. SameSite takes effect only on cookies that also carry the Secure attribute
  2. B. Lax allows the cookie on cross-site GET navigations, and this action runs on GET
  3. C. Lax withholds the cookie only from requests to a port other than the one that set it
  4. D. SameSite limits which scripts can read a cookie, not when the browser sends it
Show the answer and explanation

Answer: B. Lax allows the cookie on cross-site GET navigations, and this action runs on GET

Browsers attach cookies automatically, so a link on another site can carry a user's session into an action the user never meant to take. SameSite=Lax blocks that for cross-site POST forms and embedded requests, but it allows top-level GET navigations. Never change state on GET, and protect sensitive actions with anti-forgery tokens or SameSite=Strict.

Why each option is right or wrong

  • A. Incorrect. Wrong. SameSite works with or without Secure. Browsers require Secure only on cookies marked SameSite=None.
  • B. Correct. Lax withholds the cookie from cross-site embedded requests and unsafe methods such as POST, but allows it on top-level navigations that use GET. Any state change reachable by GET stays exposed.
  • C. Incorrect. Wrong. SameSite compares sites (registrable domains), not ports. The forum and the app are different sites, so the request was cross-site.
  • D. Incorrect. Wrong. That describes HttpOnly. SameSite tells the browser whether to attach the cookie to cross-site requests, which is how it helps against request forgery.

References

Question 21

Nurses share workstations on a hospital ward. A web app sets its session cookie with no Expires or Max-Age attribute, and staff are told that closing the browser signs them out. One nurse closes the browser without signing out. The next user reopens the browser and lands in that nurse's session. Which explanation BEST fits?
  1. A. With no Expires or Max-Age, the cookie was persistent and stayed on disk by default
  2. B. The server reissued the first nurse's session ID to the next user who opened the app
  3. C. The HttpOnly attribute kept the browser from deleting the cookie at shutdown
  4. D. Session restore kept the cookie, and the server hadn't ended the session
Show the answer and explanation

Answer: D. Session restore kept the cookie, and the server hadn't ended the session

Closing the browser isn't a reliable logout. Session restore can bring back non-persistent cookies, and close events don't always fire. The fix belongs on the server: idle and absolute session timeouts plus a logout action that invalidates the session, which matters most on shared workstations.

Why each option is right or wrong

  • A. Incorrect. Wrong. It's the reverse: a cookie with no Expires or Max-Age is a non-persistent session cookie. Setting one of those attributes is what makes a cookie persistent.
  • B. Incorrect. Wrong. Session IDs come from a random generator, so handing one to a different user would be a serious defect, and nothing points to it. The cookie the browser kept explains the result.
  • C. Incorrect. Wrong. HttpOnly hides the cookie from page scripts. It doesn't affect when the browser discards the cookie.
  • D. Correct. Browsers with session restore can retain session cookies after closing. The server still treated the session as valid, so the restored cookie worked for the next user.

References

Question 22 Multiple answers

Ransomware on one office workstation spreads within an hour to hundreds of other workstations. It copies itself to each one over Server Message Block (SMB) file sharing. Which two changes would MOST directly limit this kind of spread? (Select two.)
  1. A. Block SMB traffic between workstations, allowing it only to servers they need
  2. B. Block Transmission Control Protocol (TCP) port 445 at the internet firewall
  3. C. Require SMB encryption on every connection between hosts
  4. D. Turn off the SMB server service on workstations that share no files
  5. E. Run full antivirus scans on every workstation once a week
Show the answer and explanation

Answers: A. Block SMB traffic between workstations, allowing it only to servers they need; D. Turn off the SMB server service on workstations that share no files

Workstations that accept SMB connections from each other give malware a ready path for lateral spread. Ransomware guidance says to block or limit internal SMB so it flows only between systems that need it, and to disable the SMB server service where nothing is shared. Blocking port 445 at the internet edge is good practice, but it doesn't touch traffic between internal hosts.

Why each option is right or wrong

  • A. Correct. Most workstations never need to reach other workstations over SMB. Limiting SMB to the servers that require it removes the paths this malware used to hop from desk to desk.
  • B. Incorrect. Blocking SMB at the perimeter keeps outsiders from reaching it from the internet. This spread happened inside the network, where the perimeter firewall never sees the traffic.
  • C. Incorrect. Encryption keeps traffic contents from being read on the wire. The malware still connects and copies itself; it simply does so over an encrypted session.
  • D. Correct. With the server service off, a workstation no longer accepts incoming SMB connections. Malware on another machine then has nothing to connect to and copy itself onto.
  • E. Incorrect. A weekly scan can't keep up with spread that takes an hour. It might find copies after the damage is done, but it leaves the path open.

References

Question 23

Attackers steal a cloud administrator's credentials at an online retailer. The retailer's virtual machines (VMs) accept no inbound connections from the internet, and each VM's own host firewall blocks remote shell access. Logs later show that the attackers ran scripts inside dozens of VMs. Which explanation is MOST likely?
  1. A. They used the cloud's management service to send commands to the agent in each VM
  2. B. They escaped from one VM into the hypervisor and reached the others from there
  3. C. They changed the cloud network rules to open a remote shell port on each VM
  4. D. They sent the scripts to each VM's metadata service, which runs what it receives
Show the answer and explanation

Answer: A. They used the cloud's management service to send commands to the agent in each VM

Cloud platforms build in remote-execution features for administrators, and an attacker who holds an administrator account inherits them. ATT&CK describes adversaries abusing cloud management services to run commands inside VMs through installed agents. Because the commands arrive through the platform, network blocks on the VMs don't stop them, so protecting cloud administrator accounts matters as much as hardening the VMs.

Why each option is right or wrong

  • A. Correct. Cloud platforms include management services that run scripts through an agent already installed in each VM. An administrator account can use them without any inbound network path to the VM.
  • B. Incorrect. A hypervisor escape needs code running in a VM plus an exploitable flaw. A stolen cloud login provides neither, and the platform's own tools offer a far simpler path.
  • C. Incorrect. Cloud network rules don't change the firewall inside each VM, which still blocks shell access. The attackers would also need sign-in credentials for each guest system.
  • D. Incorrect. The instance metadata service answers queries from inside the VM with configuration data and credentials. It doesn't accept and run scripts sent from outside.

References

Question 24

Nurses sign in to shared workstations by tapping a badge and placing a finger on a fingerprint reader. Many complain that the reader rejects their real fingers. An administrator loosens the reader's matching threshold to cut the complaints. Which risk does this change MOST directly increase?
  1. A. Genuine users will be rejected by the reader more often
  2. B. Stored fingerprint templates will be easier to steal from the reader
  3. C. Another person's fingerprint will more often be accepted as a match
  4. D. The badge tap will no longer count as a separate factor
Show the answer and explanation

Answer: C. Another person's fingerprint will more often be accepted as a match

Biometric matching is probabilistic, so every system sets a threshold that trades false non-matches against false matches. NIST notes that thresholds usually favor a low false match rate (FMR) for security, because a genuine user who is rejected can simply try again. Loosening the threshold to reduce false rejections raises the chance that an impostor is accepted.

Why each option is right or wrong

  • A. Incorrect. A looser threshold accepts weaker matches, so genuine users are rejected less often. That was the goal of the change.
  • B. Incorrect. The threshold sets how close a match must be. It has no effect on how templates are stored or protected.
  • C. Correct. Accepting weaker matches raises the false match rate: the chance that an impostor's finger is declared a match.
  • D. Incorrect. The badge is still something the nurse has, and the fingerprint something the nurse is. Changing the threshold doesn't merge or remove factors.

Reference

Question 25

A data center entrance uses an access control vestibule. The outer door opens with a badge. The inner door needs the badge plus a personal identification number (PIN), and it opens only after the outer door has closed. A stranger with a found badge gets through the outer door but enters the wrong PIN. A guard arrives a minute later and finds the stranger still between the two doors. Which capability does this show?
  1. A. Recording badge reads that a single door couldn't log
  2. B. Blocking cloned badges, because both doors read the card
  3. C. Containing a person while their authorization is verified
  4. D. Slowing a forced entry so cameras can capture a clear image
Show the answer and explanation

Answer: C. Containing a person while their authorization is verified

An access control vestibule places a space between two sets of interlocking doors. Its best-known job is stopping tailgating, but NIST also notes that interlocking door controllers provide containment areas while authorization for physical access is verified. Here, the stranger is held in that space instead of reaching the data hall.

Why each option is right or wrong

  • A. Incorrect. Single badge-controlled doors log reads too. Logging isn't what stopped the stranger here.
  • B. Incorrect. A cloned or found badge works at every reader that accepts it. The PIN, not the second card read, stopped this person.
  • C. Correct. Interlocking doors can create a containment area. The stranger can't go further until a guard verifies their authorization.
  • D. Incorrect. A vestibule controls who passes and how many at a time. Capturing images is a camera's job, and forced entry isn't what happened here.

Reference