Unit 30: Threats and Vulnerabilities of AI Usage
Lesson at a glance
| Item | Detail |
| --- | --- |
| Suggested length | 3 x 60 minutes |
| Objective alignment | SY0-801 2.6 (Summarize threats and vulnerabilities associated with artificial intelligence (AI) usage). New in SY0-801; no SY0-701 equivalent. SY0-801 2.4 also lists LLMs as an attack surface |
| Materials | learner.md reading, worksheet.md lab, assets/ lab files (if any), quiz.md |
| Lab boundary | Local, fictional data only; no scanning or testing of real school, home, or public systems |
CompTIA and Security+ are trademarks of CompTIA, Inc. Blackbox Intelligence Group LLC is not affiliated with or endorsed by CompTIA. Objective numbers are listed for alignment only.
Topics
- Quick recap (see AI Fluency Unit 9)
- Attacks on the model
- Attacks through the model
- Governance concerns
- Controls
Teacher lesson
Maps to: SY0-801 2.6 (Summarize threats and vulnerabilities associated with artificial intelligence (AI) usage). New in SY0-801; no SY0-701 equivalent. SY0-801 2.4 also lists LLMs as an attack surface. Time: 2 class periods plus lab.
Overlap note: AI Fluency Unit 9 (AI Risks and Safety) already teaches hallucination, bias, privacy before pasting, direct vs indirect prompt injection, jailbreak recognition, and model supply chain. Students who took it should review that unit; this unit recaps those items briefly and spends its time on the security-practitioner view: attacks on models, data loss, code execution, session hijacking, and defensive controls.
1. Quick recap (see AI Fluency Unit 9)
- Hallucinations: fluent but false output. Security impact: invented package names, fake citations, wrong commands.
- Bias: systematic skew from data, alignment, or deployment.
- Privacy: prompts and uploads can be stored, logged, or used for training depending on the service terms.
- Prompt injection: untrusted input changes the model's behavior against the developer's intent. Ranked LLM01 in the OWASP Top 10 for LLM Applications 2025 [O1].
- Jailbreaking: prompts crafted to bypass safety controls. Recognize, do not practice on real services.
2. Attacks on the model
NIST AI 100-2 E2025 classifies adversarial machine learning attacks by life cycle stage and attacker goal [N1].
- Poisoning: corrupting training, fine-tuning, or retrieval data so the model learns attacker-chosen behavior (OWASP LLM04 Data and Model Poisoning) [O1].
- Evasion: crafting inputs at run time that a deployed model misclassifies (for example a malware sample tweaked to slip past an ML detector) [N1].
- Model manipulation: tampering with model weights, configuration, or system prompts, or abusing an exposed model to steer its outputs. MITRE ATLAS catalogs real-world tactics against AI systems [M1].
3. Attacks through the model
- Data loss: sensitive data leaks through prompts sent to outside services, or through model output (OWASP LLM02 Sensitive Information Disclosure; LLM07 System Prompt Leakage) [O1].
- Code execution: if an application runs model output (shell commands, SQL, code) without validation, an attacker who controls the input can run code (OWASP LLM05 Improper Output Handling; LLM06 Excessive Agency) [O1].
- Session hijacking: stolen session tokens or API keys for AI services let attackers read chat history, use paid quotas, or act as the user. Protect tokens like any other session credential.
4. Governance concerns
- Explainability: many models cannot show why they produced an output, which complicates audit, incident review, and appeals.
- Ethical considerations: fairness, transparency, consent, accountability. The NIST AI RMF organizes this work under Govern, Map, Measure, Manage [N2].
5. Controls
Treat retrieved and user content as data, not instructions; least-privilege tools and allow lists; human approval for high-impact actions; keep secrets out of model context; validate and sandbox model output before execution; log and monitor; data classification and approved-tool policies; vet model and dataset sources.
Sources
- [C2] CompTIA SY0-801 objectives v2.0, 2.6 and 2.4.
- [O1] OWASP Top 10 for LLM Applications 2025. https://genai.owasp.org/llm-top-10/
- [N1] NIST AI 100-2 E2025, Adversarial Machine Learning: A Taxonomy and Terminology. https://csrc.nist.gov/pubs/ai/100/2/e2025/final
- [N2] NIST AI Risk Management Framework. https://www.nist.gov/itl/ai-risk-management-framework
- [M1] MITRE ATLAS. https://atlas.mitre.org/
- [U9] CLC AI Fluency, Unit 9: AI Risks and Safety (internal cross-reference).