Phase 3 outline

Module 11 of 11 · Outline

Generative AI and LLM Security

Defend against prompt injection, data leakage, insecure tools, and supply-chain risks.

Learning outcome: A security review, adversarial test results, and incident checklist.

Lesson outline

Lesson 11.1

Threat modeling

  • Prompt injection and indirect attacks
  • Data leakage and excessive agency
  • Assets, attackers, and trust boundaries

Lesson 11.2

Layered defenses

  • Tool authorization outside model decisions
  • Output handling and secret isolation
  • Dependency review and audit logs

Lesson 11.3

Security verification

  • Synthetic adversarial test cases
  • Incident response and containment
  • Residual risks and release checks

Practice assignment

Audit your capstone security

  1. Create a threat model and synthetic attack suite.
  2. Verify that malicious retrieved text cannot grant tool permissions.
  3. Document mitigations, residual risks, and incident actions.

Deliverable: A security review, adversarial test results, and incident checklist.

Independent practice · no submission or grading

Reference reading