Spotting malicious activity and AI threats

20 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

An analyst compares executables on a shared engineering drive with the vendors' original files. Fourteen programs from different vendors have each grown by the same 4,096 bytes, and each now runs the added code before its normal startup. On any workstation where a user launches one of them, other local executables soon change the same way. Which type of malware is MOST likely responsible?
  1. A. Worm
  2. B. Trojan
  3. C. Virus
  4. D. Rootkit
Show the answer and explanation

Answer: C. Virus

A virus replicates by modifying host programs, and it activates only when an infected program is run. The same 4,096-byte addition in unrelated executables, with new infections following each launch, is the signature of a file infector. A worm would have reached other hosts over the network without anyone running a file. Memory hook: a virus needs a host and a launch; a worm needs neither.

Why each option is right or wrong

  • A. Incorrect. A worm is self-contained and spreads over the network without a host program or user action. Here the code travels inside other programs and spreads only when a user launches one.
  • B. Incorrect. A trojan is one program disguised as something useful, and it doesn't copy itself. Identical code appearing in fourteen unrelated programs, then in more after each launch, shows self-replication.
  • C. Correct. A virus inserts a copy of itself into other programs and runs when an infected program runs. Identical additions to many executables, spreading each time one is launched, fit a file-infecting virus.
  • D. Incorrect. A rootkit conceals an attacker's activity and preserves privileged access. Nothing here is hidden; the evidence is code copying itself into other programs.

References

Question 2 Multiple answers

A sales employee installs a free document-signing tool from a download portal, and it signs documents as promised. Endpoint detection and response (EDR) data shows the tool also copies the browser's history and saved form entries every few hours. It uploads them to 203.0.113.80 without the user's knowledge. Which two terms BEST describe this tool? (Select two.)
  1. A. Worm
  2. B. Trojan
  3. C. Adware
  4. D. Rootkit
  5. E. Spyware
Show the answer and explanation

Answers: B. Trojan; E. Spyware

Both labels apply because they describe different things. Trojan describes how the code got in: a working, useful-looking tool with a hidden malicious function. Spyware describes what that hidden function does: covertly collecting the user's information and reporting it to someone else. Check the delivery method and the payload separately; one program can earn more than one label.

Why each option is right or wrong

  • A. Incorrect. Nothing shows the tool copying itself to other hosts. A user installed it, and it stays on one laptop.
  • B. Correct. The tool does the useful job it promises while hiding a malicious function. A working program with concealed harmful behavior is a trojan.
  • C. Incorrect. Adware exists to push advertising at the user. This tool shows no ads; it quietly collects data and sends it away.
  • D. Incorrect. A rootkit hides files, processes, or connections from the operating system. EDR recorded the copying and the uploads, so nothing points to that kind of concealment.
  • E. Correct. Secretly gathering browsing history and form entries and sending them to an outside server without the user's knowledge is spyware behavior.

References

  • CSRC GlossaryTrojan horse (definition from NIST SP 800-12 Rev. 1 and SP 800-82r3)
  • CSRC Glossaryspyware (definition from NIST SP 800-28 Version 2)

Question 3

An analyst reviews two browser extensions found on a marketing laptop. Extension 1 replaces banner ads on visited pages with its own sponsored ads and opens coupon sites in new tabs. Extension 2 shows nothing to the user but posts every visited address and form field to 192.0.2.77 each hour. Which classification is MOST accurate?
  1. A. Extension 1 is spyware, and Extension 2 is adware.
  2. B. Both extensions are adware.
  3. C. Extension 1 is adware, and Extension 2 is spyware.
  4. D. Both extensions are spyware.
Show the answer and explanation

Answer: C. Extension 1 is adware, and Extension 2 is spyware.

Classify by purpose. Adware is built to put advertising in front of the user, so its indicators are visible: injected or replaced ads, pop-ups, and tabs opening to sponsored sites. Spyware is built to collect information covertly and send it to someone else, so its indicators are quiet: hidden uploads of browsing history, form data, or keystrokes. One program can do both, but each extension here shows only one purpose.

Why each option is right or wrong

  • A. Incorrect. This reverses the two. Pushing sponsored content into the user's view is adware behavior; silently sending browsing data away is spyware behavior.
  • B. Incorrect. Extension 2 shows the user nothing, so it isn't advertising. Its hidden upload of visited addresses and form fields is spyware behavior.
  • C. Correct. Extension 1 exists to put sponsored content in front of the user, which is adware. Extension 2 covertly gathers browsing data and sends it to an outside host, which is spyware.
  • D. Incorrect. Nothing shows Extension 1 collecting or sending data. It injects ads and opens coupon sites, visible advertising behavior that marks adware.

References

Question 4

At 01:10, a file server sends 40 gigabytes to a cloud storage service the company doesn't use. At 03:30, files across the same shares are encrypted and renamed, and a note appears in each folder. The note demands payment for a decryption key and warns that the company's documents will be published. What does the 01:10 transfer MOST likely indicate?
  1. A. Attackers copied data out first to gain leverage for payment.
  2. B. The malware sent its decryption key out to the attackers' server.
  3. C. A scheduled backup copied the shares to the company's cloud.
  4. D. The malware copied itself to cloud storage to reach new hosts.
Show the answer and explanation

Answer: A. Attackers copied data out first to gain leverage for payment.

Ransomware operators often exfiltrate data before encrypting it and then threaten to release it, a combination known as double extortion. Encryption hits availability, and the stolen copy adds a confidentiality breach that restoring from backups can't undo. A large, unexpected outbound transfer shortly before encryption is therefore a key indicator. It also changes the response: the incident may need breach handling, not just recovery.

Why each option is right or wrong

  • A. Correct. A large outbound transfer just before encryption, followed by a threat to publish documents, signals double extortion: steal the data for leverage, then encrypt it for disruption.
  • B. Incorrect. Encryption keys are tiny and never need 40 gigabytes. The size and the threat to publish documents point to stolen files, not key escrow.
  • C. Incorrect. The company doesn't use that service, and the transfer came two hours before encryption. Treat it as exfiltration until proven otherwise.
  • D. Incorrect. Uploading to an outside storage service doesn't infect new hosts. The size and the threat to publish point to theft of documents.

References

Question 5

Visitors to a hospital's parking garage pay by scanning a quick response (QR) code printed on a sign at each level. Over one week, several visitors report fraudulent card charges after paying this way. None of them inserted a card at the pay station; they typed their card details into a page on their phones. A guard finds that two signs carry printed stickers over the original codes, linking to a look-alike domain. Which attack does this indicate?
  1. A. Skimming
  2. B. Smishing
  3. C. Cache poisoning
  4. D. Quishing
Show the answer and explanation

Answer: D. Quishing

Quishing is phishing in which the malicious URL sits inside a QR code, so the victim can't read the link before scanning. Here the delivery was physical: stickers placed over legitimate codes. Skimming is the tempting distractor, but it needs hardware on a card reader. Checking where a scanned code leads before entering data, and inspecting posted codes for overlays, counter this attack.

Why each option is right or wrong

  • A. Incorrect. Skimming captures card data with a device attached to a card reader. These victims never used a reader; they typed their details into a web page.
  • B. Incorrect. Smishing delivers the lure in a text message. Nobody received a message; the victims scanned codes posted in the garage.
  • C. Incorrect. Cache poisoning makes a legitimate name resolve to an attacker's address. These victims went to a different, look-alike domain because the code itself was replaced.
  • D. Correct. Quishing hides a malicious link in a QR code. The stickers send anyone who scans them to a fake payment page that collects card details.

References

Question 6

An intrusion detection system on an office virtual LAN (VLAN) reports that workstation 10.40.2.77 sends unsolicited Address Resolution Protocol (ARP) replies every two seconds. Each reply announces that 10.40.0.1, the default gateway, is at the workstation's own hardware address. Several hosts on the VLAN now list that address for 10.40.0.1, and their internet access still works. If this continues, what is the attacker MOST likely able to do?
  1. A. Read traffic on the building's other VLANs, including the server VLANs
  2. B. Decrypt the hosts' encrypted web sessions without triggering certificate warnings
  3. C. Read and change the traffic the affected hosts send toward the gateway
  4. D. Redirect users of the company's Domain Name System (DNS) resolver to the attacker's sites
Show the answer and explanation

Answer: C. Read and change the traffic the affected hosts send toward the gateway

Unsolicited ARP replies that claim the gateway's address poison the ARP caches of nearby hosts. Those hosts then send their outbound traffic to the attacker, who relays it, which puts the attacker on-path for that segment. The attacker can capture cleartext and modify traffic, but only for hosts in the same broadcast domain, and properly validated TLS sessions stay protected. Switch features that check ARP replies against known address bindings can drop forged replies like these.

Why each option is right or wrong

  • A. Incorrect. ARP works only within one broadcast domain, so the poisoning affects hosts on this VLAN. Hosts on other VLANs never accept these replies into their ARP caches.
  • B. Incorrect. Relaying traffic doesn't break Transport Layer Security (TLS). To read encrypted sessions, the attacker would have to present its own certificates, which browsers flag unless they trust the issuer.
  • C. Correct. The poisoned hosts send gateway-bound frames to the workstation, which forwards them so internet access keeps working. From that position it can capture unencrypted outbound data and alter it in transit. Replies still reach the hosts directly unless the gateway's cache is poisoned too.
  • D. Incorrect. That reach would need a poisoned cache on the DNS resolver itself. ARP poisoning only affects the local hosts whose ARP caches accepted the forged replies.

References

Question 7

An employee follows a link in an email about a shared invoice. She signs in on a page at login.invoice-share.test that looks exactly like the company's identity provider. She approves her multifactor authentication (MFA) prompt and lands in the real company portal. Twenty minutes later, her account is active from 203.0.113.45. The identity provider shows no new sign-in or MFA prompt; that activity continues the session created when she signed in. Which explanation BEST fits?
  1. A. The attacker guessed her password, then sent repeated MFA prompts until one was approved
  2. B. A keylogger on her laptop recorded her password and one-time code for later reuse
  3. C. The page passed her sign-in to the real provider and kept the session cookie it issued
  4. D. Her laptop's Domain Name System (DNS) cache was poisoned, so the portal sent her session away
Show the answer and explanation

Answer: C. The page passed her sign-in to the real provider and kept the session cookie it issued

This is adversary-in-the-middle phishing: the phishing site proxies the real sign-in, so the victim completes MFA and still lands where she expected. The proxy captures the session cookie that the provider issues and replays it from another address. Because the cookie proves a completed sign-in, the attacker needs neither the password nor MFA again. Phishing-resistant MFA, whose authenticators are bound to the real site's domain, defeats the relay.

Why each option is right or wrong

  • A. Incorrect. Guessing a password and prompting repeatedly would create new sign-in and MFA events from the attacker's address. The log shows no new sign-in, only reuse of her existing session.
  • B. Incorrect. She approved a prompt rather than typing a code, and reusing captured credentials would still create a new sign-in event. The attacker skipped sign-in entirely.
  • C. Correct. The look-alike page acted as a relay: it forwarded her credentials and MFA approval to the real provider, then sent her on to the portal. The attacker kept the resulting session cookie and replayed it, so no new sign-in or MFA was needed.
  • D. Incorrect. The fake page used its own domain, so no name resolution had to be falsified. A real portal also doesn't send a user's session to a third party.

References

Question 8

A database engineer at a payment processor gets a direct message on a professional networking site from a recruiter she doesn't know. Over two weeks, the recruiter discusses her open-source projects and a job offer. He then sends a link to a 'take-home coding test' on a file-sharing site. Its setup script installs a remote access tool on her work laptop. Which social engineering attack does this MOST directly represent?
  1. A. Watering hole
  2. B. Whaling
  3. C. Smishing
  4. D. Spear phishing
Show the answer and explanation

Answer: D. Spear phishing

Spear phishing is phishing tailored to a specific person or group, and the channel can be any electronic service, not just email. Messages on social or professional networks bypass the company's email filters and often feel more personal. A fake recruiter who builds rapport before sending a 'test' is a common pattern. The remote access tool is the payload; the tailored lure that delivered it is spear phishing.

Why each option is right or wrong

  • A. Incorrect. A watering hole attack compromises a website that the target group already visits and waits for them there. Here the attacker contacted the engineer directly and sent her the link.
  • B. Incorrect. Whaling targets senior executives. The target here is an individual engineer chosen for her skills and access.
  • C. Incorrect. Smishing arrives by text message. This contact came through a networking site's direct messages.
  • D. Correct. The attacker chose one person, researched her work, and built a tailored lure over weeks. Spear phishing can arrive through social media messages as well as email.

References

Question 9

Employees at an insurance company get an email with a PDF attachment. The PDF shows the company logo, a quick response (QR) code, and the line 'Scan to keep your benefits enrollment active.' The email gateway rewrites and scans every link it finds, and its log shows no links in this message. Staff who scanned the code with their personal phones entered passwords on a look-alike sign-in page. The web proxy has no record of visits to that page. Which explanation BEST accounts for both the gateway and proxy results?
  1. A. The link went through a link-shortening service, and the proxy hadn't categorized it yet
  2. B. The PDF was encrypted against scanning, and the site's encryption hid the visits from the proxy
  3. C. The link existed only as an image, and the phones that opened it don't use the company proxy
  4. D. The sender passed email authentication, so the gateway skipped it, and the proxy ignores new sites
Show the answer and explanation

Answer: C. The link existed only as an image, and the phones that opened it don't use the company proxy

Quishing is phishing through a QR code. The code hides the destination from email scanners that look for text links, and it moves the victim to a mobile device, often a personal one outside company controls. That is why both the gateway and the proxy saw nothing. Teaching staff to treat unexpected codes like unexpected links, and using gateways that decode images, help close the gap.

Why each option is right or wrong

  • A. Incorrect. A shortened link is still text that the gateway would find and rewrite. An uncategorized site would also still appear in the proxy's logs.
  • B. Incorrect. Staff could open the PDF and see the code, and a proxy still records the host name of encrypted connections. Encryption hides page contents, not the fact that a visit happened.
  • C. Correct. A QR code puts the address in an image, so a gateway that looks for text links finds none. Scanning it moves the visit to a personal phone on its own data connection, outside the company's proxy.
  • D. Incorrect. Passing sender authentication shows where mail came from; it doesn't turn off link scanning. Proxies also log visits whether or not a site is new.

Reference

Question 10

An employee signs in to the company's web-based email with a password and multifactor authentication (MFA) from her office in Toronto at 08:55. From 09:10 to 09:40, the mail server logs requests carrying her session cookie from two addresses. One is her office address, and the other is in Southeast Asia; the two alternate minute by minute. The identity provider shows no sign-in from the second address. What is the MOST likely explanation?
  1. A. Her traffic moved to a virtual private network (VPN) exit in another country
  2. B. An attacker phished her password and MFA code and signed in from abroad
  3. C. A copy of her signed-in session is being replayed from another location
  4. D. A second device she owns opened its own session at the same time
Show the answer and explanation

Answer: C. A copy of her signed-in session is being replayed from another location

When a session identifier moves to a new location in the middle of a session, treat it as a sign of hijacking. Replaying a stolen cookie bypasses the password and MFA, because the server sees a session that is already authenticated. The giveaways are impossible travel within one session and no matching sign-in. Ending the session and requiring fresh authentication cuts the attacker off.

Why each option is right or wrong

  • A. Incorrect. A VPN would move all of her traffic to the new exit point. Requests keep arriving from her office between the remote ones, so two different machines are using the same session.
  • B. Incorrect. A phished sign-in would appear in the identity provider's log and would start a new session with its own cookie. The remote requests reuse her existing cookie and skip sign-in entirely.
  • C. Correct. A session cookie shows that sign-in and MFA already happened, so whoever presents it is treated as her. Its use from a distant address, interleaved with her own requests and with no new sign-in, fits a copied cookie being replayed.
  • D. Incorrect. Each device that signs in gets its own session cookie, so a second device would add a second sign-in and a different cookie. One cookie used from two places is a single session being shared without her knowledge.

References

Question 11

An employee stays signed in to the company's human resources (HR) portal in one browser tab while reading a hobby forum in another. Minutes later, the HR portal logs a request from her session that changes her direct-deposit bank account. The request's Origin header shows forum.example.net. She says she never opened the payroll page. Which attack does this MOST likely show?
  1. A. Server-side request forgery
  2. B. Cross-site request forgery
  3. C. Cross-site scripting
  4. D. Session replay
Show the answer and explanation

Answer: B. Cross-site request forgery

Cross-site request forgery (CSRF) exploits the browser's habit of attaching a site's cookies to every request for that site, even when another site starts the request. The indicators are a state-changing action the user didn't make and an Origin or Referer header that names an unrelated site. Anti-CSRF tokens, SameSite cookies, and origin checks stop it. In server-side request forgery, the server, not the browser, is tricked into sending the request.

Why each option is right or wrong

  • A. Incorrect. Server-side request forgery makes a server send requests to destinations the attacker picks. This request came from the employee's own browser and carried her session, which is the opposite direction.
  • B. Correct. A page on the forum made her browser send a state-changing request to the HR portal. The browser attached her session cookie automatically, so the portal accepted an action she never chose, and the forum origin on the request confirms where it started.
  • C. Incorrect. Cross-site scripting runs attacker script inside the HR portal's own pages, so a request it sent would carry the portal's own origin. A request whose origin is an unrelated site points to request forgery instead.
  • D. Incorrect. Replay resends a request that was captured earlier. This request was new, built by another site and sent through her live session, and it changed data she had never touched.

References

Question 12 Multiple answers

A security team reviews findings about an internet-facing login service written in C. Which two findings are indicators of a buffer overflow attempt? (Select two.)
  1. A. The service restarts after its memory use climbs slowly over two days of normal traffic
  2. B. A login packet carries a 2,000-byte username, far past the 32-byte limit, ending in binary data
  3. C. A request's path holds ..%2f sequences, and the response returns a configuration file
  4. D. The operating system stops the service for running code from a memory page marked non-executable
  5. E. The same signed login message arrives twice, ten minutes apart, from different addresses
Show the answer and explanation

Answers: B. A login packet carries a 2,000-byte username, far past the 32-byte limit, ending in binary data; D. The operating system stops the service for running code from a memory page marked non-executable

Buffer overflow attempts show up as oversized or malformed input aimed at a fixed-size field. They also show up as memory-protection faults when the exploit tries to run its payload. Data execution prevention and address space layout randomization exist because attackers try to run code from data regions. A crash alone isn't proof, since a memory leak also restarts services.

Why each option is right or wrong

  • A. Incorrect. Slow growth under normal load points to a memory leak, which is a reliability bug. Nothing here writes past a buffer's bounds or carries hostile input.
  • B. Correct. Input far larger than the field it targets, followed by non-text bytes, is the classic shape of an overflow attempt. The extra bytes are meant to spill past the buffer into neighboring memory, often carrying code or addresses.
  • C. Incorrect. Encoded ../ sequences that reach a configuration file indicate directory traversal. That attack manipulates a file path, not memory bounds.
  • D. Correct. Data execution prevention blocks code from running in memory meant only for data, such as the stack. Tripping it means something tried to run injected bytes there, which is what many overflow exploits do.
  • E. Incorrect. A valid message resent unchanged is a replay attempt. It reuses legitimate content rather than corrupting memory.

References

Question 13

A payments partner calls a company's application programming interface (API). Each request carries a signature, a timestamp that must be within five minutes, and a nonce. Overnight, the API gateway rejects 1,200 requests with 'nonce already used.' Each rejected request has a valid signature and timestamp. Each also matches, byte for byte, a request that succeeded seconds earlier, but arrives from an address the partner doesn't use. What do these rejections MOST likely indicate?
  1. A. The partner's server clock has drifted out of sync with the gateway
  2. B. A brute-force attempt is targeting the partner's signing key
  3. C. Someone is capturing valid requests and sending them again
  4. D. A flood of junk requests is trying to overload the gateway
Show the answer and explanation

Answer: C. Someone is capturing valid requests and sending them again

A replay attack resends a valid message, such as a signed payment request, to repeat its effect. A signature alone doesn't stop it, because the copy is still validly signed. A nonce that the server accepts only once, plus a short timestamp window, makes the copy useless. A burst of 'nonce already used' errors on otherwise valid requests is a direct indicator of replay attempts.

Why each option is right or wrong

  • A. Incorrect. Clock drift breaks the timestamp check, so the errors would report expired or future timestamps. These requests passed that check and failed only because their nonces had already been seen.
  • B. Incorrect. Guessing a signing key would produce requests with invalid signatures. Every rejected request carries a valid signature, which an outsider can only get by copying a real request.
  • C. Correct. Exact copies of recent, validly signed requests arriving from other addresses are a replay attempt. The single-use nonce caught them, because the gateway had already accepted each original once.
  • D. Incorrect. A flood relies on volume and usually on junk or malformed traffic. These are well-formed, signed copies of real transactions, which only make sense if the goal is to repeat their effect.

References

Question 14

A build pipeline's cloud identity is meant only to push container images and read one storage bucket. After the pipeline's access key is stolen, the cloud audit log records the four events below. Which event marks the attacker's privilege escalation?
  1. A. 02:58: the key signs in from a hosting provider address the pipeline has never used
  2. B. 03:05: the identity lists the objects stored in its assigned bucket
  3. C. 03:12: the identity attaches a policy to itself that allows every action on every resource
  4. D. 03:31: the identity copies a database snapshot to a storage account outside the company
Show the answer and explanation

Answer: C. 03:12: the identity attaches a policy to itself that allows every action on every resource

Privilege escalation is the point where an account gains rights beyond what it was assigned. In cloud environments, a common indicator is an identity editing its own policies or roles, especially to grant wildcard permissions. Alert whenever an identity changes its own permissions, and don't give pipeline roles the right to modify policies at all.

Why each option is right or wrong

  • A. Incorrect. A sign-in from an unfamiliar address shows the stolen key in use. At this point the attacker still holds only the pipeline's limited rights.
  • B. Incorrect. Listing the assigned bucket is reconnaissance within rights the identity already has. Nothing about its permissions has changed yet.
  • C. Correct. Granting itself a policy that allows all actions raises the identity from a narrow build role to full control. Gaining rights beyond those assigned is privilege escalation, and every later step depends on it.
  • D. Incorrect. Copying a snapshot outside the company is data exfiltration. It uses the rights gained at 03:12 rather than being the moment they were gained.

References

Question 15 Multiple answers

An attacker's script submits thousands of usernames to a company's web application. Which two application behaviors would let the script tell real usernames from made-up ones? (Select two.)
  1. A. Failed sign-ins return status code 403 for existing accounts but 200 for unknown ones
  2. B. The password reset page answers 'If that account exists, we sent a link' to each request
  3. C. Sign-ins from one source address are blocked for an hour after ten failures
  4. D. The registration form rejects a new sign-up with 'This username is already taken'
  5. E. The server records each failed sign-in with the submitted username and source address
Show the answer and explanation

Answers: A. Failed sign-ins return status code 403 for existing accounts but 200 for unknown ones; D. The registration form rejects a new sign-up with 'This username is already taken'

User enumeration needs a difference the attacker can observe: different messages, status codes, timing, or behavior for real and unknown accounts. Sign-in, password reset, and registration features all need generic, identical responses. Rate limits don't remove the leak, but they make it slower to exploit at scale.

Why each option is right or wrong

  • A. Correct. Even when the page text is identical, a different status code reveals whether the account exists. A script reads status codes easily, so the difference works as an enumeration oracle.
  • B. Incorrect. This is the recommended generic reply. It reads the same whether or not the account exists, so the script learns nothing from it.
  • C. Incorrect. The block depends on the source address and the failure count, not on whether a username is real. It slows the script without revealing anything.
  • D. Correct. Registration is an often-missed enumeration path. 'Already taken' confirms that the account exists, so the script can test names by trying to register them.
  • E. Incorrect. Server-side logs are invisible to the attacker. Logging failed attempts helps defenders spot enumeration but leaks nothing to the script.

References

Question 16

A security operations center (SOC) adds a generative artificial intelligence (AI) assistant that summarizes each alert and labels it benign or malicious. After a few months, analysts close every alert the assistant labels benign without opening the raw logs. Some of those closed alerts had logs showing clear signs of compromise. Which risk does the analysts' behavior BEST illustrate?
  1. A. Algorithmic aversion
  2. B. Confabulation
  3. C. Automation bias
  4. D. Emotional entanglement
Show the answer and explanation

Answer: C. Automation bias

Automation bias is a human bias: people defer to an automated system and stop applying their own judgment. NIST AI 600-1 lists it under Human-AI Configuration and notes that it can make other risks, such as confabulation, worse. The fix is procedural as much as technical, for example requiring analysts to confirm benign labels against the raw evidence. Memory hook: here the bias is in the people trusting the tool.

Why each option is right or wrong

  • A. Incorrect. Algorithmic aversion is the opposite pattern: people distrust an AI system and avoid using it even when it would help. These analysts trust the assistant too much, not too little.
  • B. Incorrect. Confabulation is an AI system confidently generating false content. A wrong label may be an AI error, but the question asks about the analysts' habit of accepting labels without checking the evidence.
  • C. Correct. NIST AI 600-1 describes automation bias as excessive deference to automated systems, where people over-rely on AI output. The analysts stopped verifying labels against the logs, so the assistant's mistakes went uncaught.
  • D. Incorrect. Emotional entanglement refers to people forming psychological attachments to AI systems, such as companion chatbots. Nothing here involves an emotional bond; the analysts simply stopped checking the assistant's work.

References

Question 17

A security vendor's malware classifier returns only a verdict for each file that customers submit. Product managers want the public application programming interface (API) to also return, for every file, the features that most influenced the verdict. A security architect argues for limiting that detail. Which concern BEST supports the architect's position?
  1. A. Adding per-file explanations would lower the classifier's accuracy on the files it scores
  2. B. Detailed explanations give attackers feedback they can use to craft files that defeat the model
  3. C. Per-file explanations would expose the classifier to prompt injection through file contents
  4. D. Explanations would make the classifier's verdicts harder for auditors to verify
Show the answer and explanation

Answer: B. Detailed explanations give attackers feedback they can use to craft files that defeat the model

Explainability and adversarial robustness can pull against each other. NIST AI 100-2 lists this trade-off and describes explainability techniques being used to build poisoning attacks against malware classifiers. MITRE ATLAS recommends limiting the detail that inference endpoints return, because rich outputs speed up the search for evasive inputs. The vendor can still give detailed explanations to vetted analysts while keeping the public API terse.

Why each option is right or wrong

  • A. Incorrect. Reporting which features drove a verdict does not change the model that makes the verdict. Accuracy trade-offs arise when choosing or training a model, not from describing its existing decisions.
  • B. Correct. NIST AI 100-2 notes trade-offs between explainability and adversarial robustness and describes explainability techniques used to craft poisoning attacks on malware classifiers. MITRE ATLAS also advises limiting output detail to make adversarial-example optimization harder.
  • C. Incorrect. Prompt injection targets large language models that follow instructions found in their input. A feature-based malware classifier does not follow instructions, and returning explanations would not change that.
  • D. Incorrect. The AI RMF says explainable systems lend themselves to more thorough documentation, audit, and governance. Explanations make verdicts easier to audit, not harder; the real concern lies elsewhere.

References

Question 18

A public chatbot refuses a plain-text request for content that its safety policy prohibits. The user then sends the same request encoded in Base64 and asks the chatbot to decode it and answer. This time the chatbot complies. According to NIST AI 100-2, why does this kind of jailbreak often work?
  1. A. Base64 encrypts the request, so the model's safety checks cannot read it
  2. B. The decoded request is treated as retrieved data rather than as user input
  3. C. The request plays the model's drive to follow instructions against its safety goals
  4. D. The encoded input falls outside the model's safety training but within its capabilities
Show the answer and explanation

Answer: D. The encoded input falls outside the model's safety training but within its capabilities

NIST AI 100-2 sorts manual jailbreaks into two groups. Competing-objectives attacks set instruction following against safety, while mismatched-generalization attacks use inputs that safety training never covered but the model still understands. Special encodings such as Base64, character ciphers, and less common languages fall in the second group. Filters that only inspect the raw text miss such requests, so defenders also need safety training and checks that cover decoded content.

Why each option is right or wrong

  • A. Incorrect. Base64 is an encoding, not encryption, and anyone can reverse it without a key. The model plainly can read it, since it decodes the request and answers.
  • B. Incorrect. Instructions arriving through content the model ingests describe indirect prompt injection. Here the user typed the request directly, which makes this a direct prompting attack.
  • C. Incorrect. NIST calls that approach competing objectives, which covers techniques such as role-play and refusal suppression. NIST places special encodings such as Base64 in the other category, mismatched generalization.
  • D. Correct. NIST AI 100-2 calls this mismatched generalization. The model learned to read Base64 during capability training, but its safety training did not cover requests in that form, so refusals don't trigger.

References

Question 19 Multiple answers

An engineering firm is writing staff guidance on confabulation, often called hallucination, in generative artificial intelligence (AI) tools. Which two statements are consistent with NIST AI 600-1 and belong in the guidance? (Select two.)
  1. A. It is caused by an attacker tampering with the model's training data.
  2. B. It follows from how generative models produce statistically likely output.
  3. C. It is mainly a concern for image and audio generators rather than text tools.
  4. D. A wrong answer can come with invented reasoning or citations that look convincing.
  5. E. Reasoning steps shown with an answer are evidence that the tool checked it.
Show the answer and explanation

Answers: B. It follows from how generative models produce statistically likely output.; D. A wrong answer can come with invented reasoning or citations that look convincing.

NIST AI 600-1 uses the term confabulation for confidently presented false content, colloquially called hallucination. It is built into how generative models work, so it occurs without any attacker. Plausible reasoning and citations can make a wrong answer more convincing, not less. Staff should check consequential claims against authoritative sources before acting on them.

Why each option is right or wrong

  • A. Incorrect. NIST AI 600-1 describes confabulation as a natural result of how generative models work, with no attacker required. Data poisoning is a separate risk.
  • B. Correct. NIST explains that generative models approximate the statistical distribution of their training data, for example by predicting the next word. That process can produce fluent statements that are false.
  • C. Incorrect. NIST notes the opposite: confabulated falsehoods are most commonly a problem for text output. In image or audio work, creative non-factual output can even be the goal.
  • D. Correct. NIST warns that outputs may include confabulated logic or citations that seem to justify the answer, which can mislead people into trusting it.
  • E. Incorrect. NIST notes that models sometimes give logical-looking steps even when the answer itself is wrong. Shown reasoning is not proof of correctness.

Reference

Question 20

A company protects remote desktop sign-ins to its jump servers with an agent that checks each sign-in with a cloud multifactor authentication (MFA) service. On one jump server, an analyst finds a new hosts-file entry that maps the MFA service's hostname to 127.0.0.1. Since that change, sign-ins to that server succeed with a password alone, and the MFA service has logged no requests from it. What does this MOST likely indicate?
  1. A. An attacker poisoned a resolver's cache so MFA requests reach a server the attacker runs
  2. B. An attacker is intercepting users' MFA codes and replaying them before they expire
  3. C. An attacker flooded users with MFA prompts until one of them approved
  4. D. An attacker blocked the agent's MFA check, and the agent is failing open
Show the answer and explanation

Answer: D. An attacker blocked the agent's MFA check, and the agent is failing open

This is a known MFA bypass: redirect the MFA calls to localhost so the check fails, and a fail-open policy grants access without MFA. The giveaways are the hosts-file change and the silent MFA service. Configuring the agent to fail closed, and alerting on hosts-file changes, closes the gap.

Why each option is right or wrong

  • A. Incorrect. Cache poisoning corrupts a Domain Name System (DNS) resolver's records. This entry sits in one server's hosts file and points at 127.0.0.1, the server itself, so the requests go nowhere.
  • B. Incorrect. Intercepting codes requires codes to be issued, which means MFA requests. The MFA service logged none from this server.
  • C. Incorrect. Prompt flooding produces many requests at the MFA service. Here the service saw none, and the sign-ins needed no approval at all.
  • D. Correct. Pointing the MFA hostname at the local machine makes every MFA call fail. An agent that fails open then lets a correct password through without the second factor, which matches the password-only sign-ins.

Reference