Skip to main content

SY0-801 · Objective 2.6 · Threats, Vulnerabilities, and Attacks

SY0-801 objective 2.6: AI threats and vulnerabilities explained

The official objective: “Summarize threats and vulnerabilities associated with artificial intelligence (AI) usage.” Here is what it means, what candidates mix up, and 3 practice questions that test it.

What objective 2.6 covers

Objective 2.6 is new in V8; SY0-701 had no AI objective. It covers what can go wrong when an organisation builds, buys or simply allows AI tools, especially large language models (LLMs). It is a 'summarize' objective, so the exam expects you to recognise each risk from a short description.

Some threats attack the model itself. Poisoning corrupts the training or fine-tuning data so the model learns something the attacker wants, such as ignoring a certain malware family or giving wrong answers on a topic. Model manipulation is broader: tampering with the model, its weights or its configuration so it behaves differently from what its owner intended. Evasion happens at use time rather than training time: the attacker crafts an input that the model misjudges, such as malware altered just enough that an AI-based detector rates it clean.

Other threats attack through the prompt. Prompt injection hides instructions inside input the model processes. Direct injection is typed by the user; indirect injection sits in a web page, email or document the model is asked to read, and can make an AI assistant leak data or take actions its user never requested. Jailbreaking uses crafted prompts, such as role-play or layered hypotheticals, to talk a model past its safety rules. The difference is the goal: jailbreaking defeats the guardrails, while injection hijacks the task.

Data loss is the most common everyday risk. Staff paste source code, customer records or contracts into public AI tools, and that data may be stored, reviewed or used for training outside the organisation's control. Models can also reveal sensitive data from their training sets or from other documents they can reach. Privacy overlaps with this: personal data used for training or kept in prompt history may breach regulations and is hard to delete from a trained model.

Some risks are about the quality of output. Hallucinations are confident answers that are simply wrong, such as invented citations or non-existent software packages that attackers then register. Bias is unfair or skewed output inherited from training data, which matters when AI informs hiring, lending or access decisions. Explainability is the difficulty of showing why a model reached a decision, which makes errors hard to audit or defend. Ethical considerations tie these together: fairness, transparency, consent and accountability for decisions made with AI.

Finally, AI systems are applications with the usual application risks. Session hijacking steals the token or API key behind an AI session or agent, letting an attacker read conversations or act as the user. Code execution happens when model output is passed to an interpreter or tool without checks, when an agent is allowed to run commands, or when a malicious model file runs code as it loads.

Mitigations follow from the list: approved tools, data loss prevention, least privilege for AI agents, input and output filtering, human review of important decisions, and treating every model output as untrusted input.

What candidates mix up

  • Prompt injection versus jailbreaking: injection smuggles in instructions that redirect the task; jailbreaking talks the model past its safety rules.
  • Poisoning versus evasion: poisoning corrupts what the model learns during training; evasion fools a trained model with a crafted input.
  • Hallucination versus bias: a hallucination is a confident false answer; bias is a systematic skew that can appear even in accurate-looking answers.
  • Data loss versus privacy: data loss is sensitive information leaving your control; privacy is about personal data and the rights of the people it describes.

Practice questions for 2.6

From the CertRidge SY0-801 question bank. Try each one before opening the answer.

How we write and review questions

  1. Question 1

    An executive's AI email assistant summarizes each new message. An attacker sends the executive an email containing white-on-white text that tells the assistant to forward the last ten invoices to an outside address. The attacker never interacts with the assistant itself. Which attack is this?

    • ADirect prompt injection
    • BAssistant session hijacking
    • CIndirect prompt injection
    • DJailbreaking
    Show answer and explanation

    Answer: C) Indirect prompt injection

    Indirect prompt injection plants instructions in content the AI reads (emails, web pages, files) instead of typing them into the model.

    • ADirect injection means the attacker types into the model. Here the instructions arrive inside content the assistant processes for someone else.
    • BSession hijacking steals or reuses an authenticated session or token. The attacker did not take over the executive's session.
    • CHiding instructions in data an AI system will read later (an email, web page or document) is indirect prompt injection.
    • DJailbreaking aims to bypass a model's safety rules to get prohibited output. This attack plants instructions to trigger an action through third-party content.
  2. Question 2

    An AI coding assistant often suggests installing libraries that do not exist. Attackers have started publishing malicious packages under these commonly suggested names in public repositories. Which control BEST reduces the risk to the development team?

    • AAllow installs only from a vetted internal package repository
    • BAsk the assistant to confirm that each package name is genuine
    • CRun a syntax checker on all AI-generated code
    • DUpgrade the assistant to the newest model version
    Show answer and explanation

    Answer: A) Allow installs only from a vetted internal package repository

    Hallucinated package names become a supply chain risk when attackers register them; control which packages can be installed.

    • ARestricting dependencies to an approved, curated source means a malicious package with a hallucinated name cannot be pulled in.
    • BThe same model that invented the name can confidently confirm it; asking it again is not a verification.
    • CThe generated code may be syntactically valid; a syntax check does not catch a malicious dependency.
    • DNewer models may hallucinate less but still do; this does not stop a malicious package from being installed.
  3. Question 3

    A data analysis chatbot turns users' questions into Python and runs the result on the application server automatically. A user phrases a question so that the generated script opens a reverse shell to an outside host. Which vulnerability did the user exploit?

    • APoisoning of the model's training data
    • BHallucinated script content
    • CModel evasion attack
    • DCode execution via model output
    Show answer and explanation

    Answer: D) Code execution via model output

    Treat LLM output as untrusted input: never pass it directly to an interpreter, shell or tool without validation and isolation.

    • AThe model's training data was not changed. The user influenced a single generated script.
    • BThe harmful script was deliberately induced, not invented by mistake, and the risk comes from running it.
    • CEvasion fools an ML detector into misclassifying input. Nothing here is being misclassified.
    • DPassing model output straight to an interpreter or shell without validation or sandboxing lets attackers run arbitrary code through the model.

Ready for a full SY0-801 practice exam?

Timed practice exams match the real exam's length and domain weights, every result shows your score per domain, and Review Mode re-drills the questions you missed.

Objective numbers and statements from CompTIA's published SY0-801 exam objectives. The explanations and questions are our own. Not affiliated with CompTIA.