CodeBaobab
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 preview

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

Continue with Pro

Get Pro on codebaobab.com.

See Pro plans
Complete course

What you will learn next

  1. 01Direct and Indirect Prompt Injection
  2. 02Privacy, Memorization, and Extraction
  3. 03Poisoning and Supply-Chain Risk
  4. 04Red-Team and Safety Evaluation
  5. 05When a Support Ticket Contains an Attack
  6. 06Generating Red-Team Tests With a Language Model
  7. 07Review
  8. 08References