Curated

Threats, Vulnerabilities, and Attacks 5 (2.6)

0 votes

Questions21

  1. Question 1

    Threats, Vulnerabilities, and Attacks

    A deployed model's behavior changed although its training data and user prompts are unchanged. Logs show its model file was replaced with a modified copy. Which control best prevents this?

    Show the answer

    Correct answerB. Verifying signed hashes of model files before loading

    AWhy not this: Training-data vetting counters poisoning; the data was unchanged and the file was replaced afterward.

    BWhy this is right: Signature and hash verification detects a tampered or swapped model file before it runs.

    CWhy not this: Prompt filtering counters prompt injection; the prompts were not the problem.

    DWhy not this: Output redaction limits data leakage and does not stop a model file being replaced.

    The model artifact itself was swapped, so integrity checks such as signed hashes on model files detect unauthorized changes before loading. Vetting training data addresses poisoning, but the training data was not altered here.

    Open this question
  2. Question 2

    Threats, Vulnerabilities, and Attacks

    Which attack embeds malicious instructions in input so a large language model treats them as commands?

    Show the answer

    Correct answerA. Prompt injection

    AWhy this is right: Prompt injection smuggles attacker instructions into the model's input so it obeys them.

    BWhy not this: Hallucination is the model generating false output on its own, with no attacker input.

    CWhy not this: Evasion alters inputs to fool a classifier and does not inject commands into a language model.

    DWhy not this: Poisoning corrupts training data, not the instructions given at runtime.

    Prompt injection places attacker-written instructions in the input an LLM processes so the model follows them. Poisoning is different because it corrupts training data rather than the runtime input.

    Open this question
  3. Question 3

    Threats, Vulnerabilities, and Attacks

    An attacker with write access to a model registry edits the stored weights of a deployed fraud-detection model so transactions from chosen accounts are approved. Which threat is this?

    Show the answer

    Correct answerC. Model manipulation

    AWhy not this: Prompt injection abuses text input to a language model; no prompt is involved.

    BWhy not this: Poisoning corrupts training data; nothing here touches the training data.

    CWhy this is right: Directly editing a deployed model's weights tampers with the model and changes its decisions.

    DWhy not this: Evasion crafts inputs at query time to slip past a model; here the model itself was changed.

    Altering the weights of a finished model directly changes its behavior, which is model manipulation. Poisoning is the closest option, but it corrupts the training data before or during training, not the stored model.

    Open this question
  4. Question 4

    Threats, Vulnerabilities, and Attacks

    A spam filter is retrained weekly on emails users report. An attacker floods it with spam labeled as legitimate, and later the filter lets the attacker's spam through. What attack is this?

    Show the answer

    Correct answerC. Poisoning

    AWhy not this: Jailbreaking bypasses a language model's safety restrictions, which does not apply to a classifier.

    BWhy not this: Bias is skewed output from unrepresentative data, not a deliberate attack on the training pipeline.

    CWhy this is right: Mislabeled samples injected into retraining data corrupt the model's learning, which is poisoning.

    DWhy not this: Evasion modifies an input at inference time; here the training data was corrupted.

    Feeding mislabeled samples into the retraining data corrupts what the model learns, which is poisoning. Evasion is tempting because spam gets through, but evasion crafts inputs against an already trained model and does not alter its training data.

    Open this question
  5. Question 5

    Threats, Vulnerabilities, and Attacks

    An AI assistant summarizes web pages for users. One page contains hidden text telling it to send the user's saved data to an attacker, and the assistant complies. What is this?

    Show the answer

    Correct answerB. Prompt injection

    AWhy not this: Jailbreaking is the user bypassing guardrails; this user typed nothing malicious.

    BWhy this is right: Instructions hidden in content the model reads override its task, which is indirect prompt injection.

    CWhy not this: Session hijacking steals a user's authenticated session, and no session token was taken.

    DWhy not this: Poisoning alters training data; this attack happens at runtime through page content.

    Hidden instructions in external content that the model processes at runtime are an indirect prompt injection. Jailbreaking is tempting, but it involves the user deliberately crafting prompts to bypass the model's guardrails, which did not happen here.

    Open this question
  6. Question 6

    Threats, Vulnerabilities, and Attacks

    A resume-screening model trained on ten years of hiring records rejects one group at a much higher rate, even after the protected-attribute field was removed. What is the most likely cause and best next step?

    Show the answer

    Correct answerD. Proxy features still carry historical bias; audit outcomes by group and rebalance data

    AWhy not this: Evasion alters inputs to fool a model at inference time; this is a consistent unfairness pattern, not applicants evading detection.

    BWhy not this: Nothing indicates a deliberate attacker tampering with training data; the pattern reflects the historical records themselves.

    CWhy not this: Hallucination means fabricated output, not systematically unfair outcomes against a group.

    DWhy this is right: Features correlated with the group act as proxies for the removed attribute, so auditing outcomes and rebalancing data is the right fix.

    Historical hiring records embed past bias, and remaining features correlated with the group act as proxies, so removing the attribute does not remove the bias. Auditing outcomes by group and rebalancing the data addresses it. Poisoning requires a deliberate attacker, which the scenario lacks.

    Open this question
  7. Question 7

    Threats, Vulnerabilities, and Attacks

    Which concept describes being able to show humans why an AI model produced a specific decision?

    Show the answer

    Correct answerB. Explainability

    AWhy not this: Jailbreaking bypasses a model's safety restrictions and has nothing to do with justifying decisions.

    BWhy this is right: Explainability means a model's decisions can be understood and described to humans.

    CWhy not this: Bias is unfair skew in model outcomes; explainability can help reveal it but is a different concept.

    DWhy not this: Data loss is the unintended exposure of sensitive information, not understanding model reasoning.

    Explainability is the ability to describe how a model reached a particular output so humans can understand and trust it. Bias is unfair skew in outputs; it is a problem explainability helps reveal, not the same concept.

    Open this question
  8. Question 8

    Threats, Vulnerabilities, and Attacks

    A facial recognition system trained mostly on images of one demographic misidentifies people from other demographics far more often. Which issue is this?

    Show the answer

    Correct answerA. Bias

    AWhy this is right: Unrepresentative training data causes uneven accuracy across groups, which is bias in the model.

    BWhy not this: Hallucination is confidently fabricated output, not consistently higher error rates for certain groups.

    CWhy not this: Poisoning is deliberate corruption of training data by an attacker, and none is described.

    DWhy not this: Evasion is crafting inputs at inference time to avoid detection, not a flaw from skewed training data.

    Training data that does not represent all groups makes a model perform unevenly across them, which is bias. Poisoning requires deliberate tampering with training data, which is not described here.

    Open this question
  9. Question 9

    Threats, Vulnerabilities, and Attacks

    An LLM research assistant cites court cases that do not exist, though no malicious input was submitted. Which two actions best reduce this risk? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Require human verification of cited sourcesB. Ground answers in verified reference sources

    AWhy this is right: Human verification catches fabricated citations before anyone relies on them.

    BWhy this is right: Grounding answers in verified sources gives the model real material to cite, reducing fabricated content.

    CWhy not this: Encryption in transit protects confidentiality of traffic and does not stop the model inventing citations.

    DWhy not this: Filtering prompts targets prompt injection, but no malicious input was involved here.

    Fabricated citations are hallucinations. Grounding answers in verified sources reduces invented content, and human verification catches what remains. Prompt filtering targets injection and encryption protects transit data, and neither affects fabricated output.

    Open this question
  10. Question 10

    Threats, Vulnerabilities, and Attacks

    Developers paste proprietary source code into a public AI chatbot that retains prompts. Which control most directly reduces the resulting data loss risk?

    Show the answer

    Correct answerA. DLP rules blocking uploads to AI tools

    AWhy this is right: DLP rules detect and block sensitive content before it is sent to external AI services, addressing the leak at its source.

    BWhy not this: Bias testing evaluates fairness of outputs and does nothing to stop sensitive input leaving the organization.

    CWhy not this: Rate limits cap prompt volume, but one prompt can still leak sensitive code.

    DWhy not this: Reviewing generated code checks output quality, but the proprietary code has already been sent to the provider.

    The risk is sensitive company data leaving the organization through prompts. Data loss prevention rules stop that content from reaching external AI services. Human code review addresses output quality, not the data already sent out.

    Open this question
  11. Question 11

    Threats, Vulnerabilities, and Attacks

    A fraud-detection model blocks a known transaction pattern. An attacker nudges transaction amounts and timing until the model approves the fraud, never touching the model file or training data. Which attack is this?

    Show the answer

    Correct answerA. Evasion

    AWhy this is right: Tweaking inputs until the model misclassifies fraud as legitimate is an evasion attack.

    BWhy not this: Model manipulation changes the model itself, such as its weights, which stays untouched here.

    CWhy not this: Jailbreaking bypasses an LLM's safety rules; this is a classifier being fooled by altered inputs.

    DWhy not this: Poisoning alters training data, but the training data was never touched.

    Evasion crafts inputs that a trained model misclassifies, so malicious activity appears legitimate. Poisoning would require corrupting training data, which the stem rules out.

    Open this question
  12. Question 12

    Threats, Vulnerabilities, and Attacks

    At what point does an evasion attack target an AI model?

    Show the answer

    Correct answerC. When crafted inputs are sent to the model after training is complete

    AWhy not this: That describes poisoning, which corrupts the learning data before the model is trained.

    BWhy not this: Overriding developer instructions through a prompt is prompt injection against an LLM.

    CWhy this is right: Evasion works on the finished model by feeding it inputs designed to be misclassified.

    DWhy not this: Editing stored weights is model manipulation, not input crafting.

    Evasion happens at inference time: the attacker submits specially crafted inputs to an already trained model so it misclassifies them. Corrupting training samples is poisoning, which occurs before training ends.

    Open this question
  13. Question 13

    Threats, Vulnerabilities, and Attacks

    A company plans to fine-tune an LLM on support transcripts containing customer names and account numbers. What should it do first to reduce privacy risk?

    Show the answer

    Correct answerD. Anonymize personal data in the transcripts before training

    AWhy not this: Bias testing checks for unfair outputs, not whether personal data was memorized.

    BWhy not this: Explainability shows why a decision was made but does not keep personal data out of the model.

    CWhy not this: Retaining raw transcripts increases the exposure of personal data rather than reducing it.

    DWhy this is right: Anonymizing personal data before training keeps it out of the model, so it cannot be revealed in outputs.

    Removing or anonymizing personal data before training keeps it out of the model, so it cannot be memorized and later revealed. Bias testing checks fairness, not whether personal data is exposed.

    Open this question
  14. Question 14

    Threats, Vulnerabilities, and Attacks

    A customer-service chatbot tells a user about a 90-day refund guarantee that the company has never offered. Logs show only ordinary questions. What is this behavior?

    Show the answer

    Correct answerD. Hallucination

    AWhy not this: Jailbreaking bypasses safety restrictions with crafted prompts, which did not happen with ordinary questions.

    BWhy not this: Poisoning corrupts training data; nothing here shows tampered data, only a fabricated answer.

    CWhy not this: Needs malicious instructions embedded in input, but the logs show only ordinary questions.

    DWhy this is right: The model invented a policy that does not exist and stated it confidently, with no attacker involved.

    A hallucination is a confident but fabricated output that the model generates without any malicious input. Prompt injection would need crafted instructions in the input, and the logs show only ordinary questions.

    Open this question
  15. Question 15

    Threats, Vulnerabilities, and Attacks

    A user writes a role-play prompt that persuades a chatbot to ignore its built-in safety restrictions. What is this attack called?

    Show the answer

    Correct answerA. Jailbreaking

    AWhy this is right: Persuading the model to drop its safety restrictions with a crafted prompt is the definition of jailbreaking.

    BWhy not this: Hallucination is a fabricated output, not a deliberate bypass of safety rules.

    CWhy not this: Poisoning corrupts the data a model learns from; the user here only typed a prompt.

    DWhy not this: Bias is unfair skew in outputs from training data, not a user circumventing guardrails.

    Jailbreaking uses crafted prompts to make a model bypass its guardrails and produce content it is meant to refuse. Data poisoning corrupts training data and does not involve a user prompt at all.

    Open this question
  16. Question 16

    Threats, Vulnerabilities, and Attacks

    Which is an ethical consideration when deploying AI that makes decisions affecting people?

    Show the answer

    Correct answerC. Being transparent that AI is making the decision

    AWhy not this: Poisoning is an attack on training data, a security threat rather than an ethical concern.

    BWhy not this: Evasion is an inference-time attack that fools the model, not an ethical concern.

    CWhy this is right: Telling people that AI is deciding about them is a core ethical consideration alongside fairness and accountability.

    DWhy not this: Jailbreaking is a user attack that bypasses safety restrictions, not an ethical consideration of deployment.

    Ethical considerations cover how AI affects people, including transparency about when AI makes decisions. Poisoning, jailbreaking and evasion are attacks on the system, so they are security threats rather than ethical issues.

    Open this question
  17. Question 17

    Threats, Vulnerabilities, and Attacks

    An attacker replays a stolen session token to read an employee's AI assistant chat history. Which control BEST addresses this?

    Show the answer

    Correct answerA. Short-lived, HttpOnly session cookies

    AWhy this is right: Short token lifetimes and HttpOnly flags make a stolen or scripted-away token far less useful.

    BWhy not this: Anonymizing training data reduces privacy risk in the model, not theft of a live session.

    CWhy not this: Input filtering counters prompt injection, but the attacker never manipulated the model's input.

    DWhy not this: Grounding reduces hallucinations and does nothing to protect session tokens.

    Session hijacking abuses a valid session token, so short-lived, protected session cookies shrink the window and make theft harder. Input filtering targets prompt injection, which is not how the attacker gained access here.

    Open this question
  18. Question 18

    Threats, Vulnerabilities, and Attacks

    Which two situations are examples of code execution risk in an AI system? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. An agent runs attacker-supplied code after a prompt injectionD. Model output pasted into a shell runs attacker commands

    AWhy not this: Mislabeled training data is poisoning, which harms accuracy without running code.

    BWhy not this: Perturbing inputs to fool a model is evasion, which does not execute code.

    CWhy this is right: An injected instruction that makes a tool-enabled agent run attacker code is code execution.

    DWhy this is right: Passing unvalidated model output to a shell lets attacker commands execute on the system.

    EWhy not this: Inventing a nonexistent case is hallucination, not code running.

    FWhy not this: Replaying a stolen cookie is session hijacking, which gives access but runs no code.

    Code execution risk arises when an AI system or its output causes attacker-controlled code or commands to run. Stolen cookies are session hijacking, which does not run code on the system.

    Open this question
  19. Question 19

    Threats, Vulnerabilities, and Attacks

    An insurer's AI denies claims automatically. Audits show it is unbiased and accurate, but no human can review or overrule a denial. Which concern remains?

    Show the answer

    Correct answerA. No human accountability for decisions

    AWhy this is right: Removing human review leaves nobody accountable for decisions affecting people, an ethical consideration.

    BWhy not this: Hallucination is invented output, and nothing in the stem shows the model fabricating content.

    CWhy not this: The audit found the model unbiased, so skewed outcomes are not the remaining concern.

    DWhy not this: Poisoning is a deliberate attack on training data, and nothing indicates one occurred.

    With bias and accuracy already addressed, the remaining issue is ethical: decisions affecting people have no human oversight or accountability. Bias is the tempting answer, but the audit has ruled it out.

    Open this question
  20. Question 20

    Threats, Vulnerabilities, and Attacks

    An AI agent runs model-generated Python on a production server, and the business must keep that feature. A shared document hides instructions that make the agent run a shell command. Which control BEST limits the damage?

    Show the answer

    Correct answerD. Running generated code in a least-privilege sandbox

    AWhy not this: Keyword filters are easily evaded and cannot reliably stop every injected instruction.

    BWhy not this: Reviewing replies afterward is detective only; the command has already run on the server.

    CWhy not this: Retraining reduces but does not eliminate compliance with injected instructions, so code can still run.

    DWhy this is right: Isolation and minimal privileges contain any code that executes while preserving the required feature.

    A sandbox with least privilege contains whatever code runs, even if injection succeeds, while keeping the feature. Phrase filters are easily bypassed and cannot guarantee that malicious code never runs.

    Open this question
  21. Question 21

    Threats, Vulnerabilities, and Attacks

    An attacker obtains the active session cookie of an employee logged in to a web-based AI assistant. From another device, the attacker reads the employee's earlier chats and submits new prompts as that user. Which threat is this?

    Show the answer

    Correct answerB. Session hijacking

    AWhy not this: Prompt injection embeds malicious instructions to make the model misbehave; here the attacker simply acts as the user.

    BWhy this is right: The attacker reuses a live authenticated session to act as the user and read their chats, which is session hijacking.

    CWhy not this: Model manipulation alters the model itself, such as its weights; the model here is unchanged.

    DWhy not this: Poisoning corrupts training or retraining data; nothing here altered the data the model learns from.

    Session hijacking takes over an authenticated session, here by reusing a stolen cookie, so the attacker inherits the user's access to chat history and prompts. Prompt injection is tempting because prompts are submitted, but it plants instructions in the input to subvert the model, not to take over a user's session.

    Open this question