COURSE 17 OF 21
AI Security, Safety, and Privacy
Threat-model the complete AI system: its data, prompts, models, retrieval layer, tools, users, and logs.
Background reading
Free course previewComplete course
Introduction to AI Security, Safety, and Privacy
AI security protects the system and its data from deliberate attack. Safety reduces harmful behavior and unintended consequences. Privacy limits how personal or sensitive information is collected, exposed, and retained.
An LLM system can be attacked before training, during inference, or through the software connected to the model. The first task is to identify which stage and asset an attack reaches.
Draw the complete surface: training data, model parameters, prompts, generated outputs, retrieval sources, and connected tools. A defense that protects only the chat prompt leaves the other paths untouched.
Continue learning
See Pro plansContinue with Pro
Get Pro on codebaobab.com.
What you will learn next
- 01Direct and Indirect Prompt Injection
- 02Privacy, Memorization, and Extraction
- 03Poisoning and Supply-Chain Risk
- 04Red-Team and Safety Evaluation
- 05When a Support Ticket Contains an Attack
- 06Generating Red-Team Tests With a Language Model
- 07Review
- 08References