Security in agentic systems is a cross-cutting topic. We finish with a mock exam and a review of classic traps to solidify everything covered so far.
Objective: understand prompt injection in the agentic context, distinguish it from other attacks, and see how to protect against it.
Explore prompt injection with real examples:
Identify an injection in a concrete example:
"Validating only user inputs protects against prompt injection" → FALSE. Indirect injections come from data read by the agent (files, URLs, API results), not just direct inputs. All external content must be treated as potentially malicious.
Objective: understand and apply the minimal footprint principle: give agents only the permissions they need, nothing more.
Explore the dimensions of minimal footprint:
Apply the principle to a real design:
Before giving a tool to an agent, ask: 1) Is it really necessary? 2) Can it be restricted (read-only vs read-write)? 3) Is the action reversible? 4) Is the scope minimal (this directory vs the whole system)?
Objective: consolidate the classic traps identified across all sessions. Memorize before the exam.
Generate and review classic traps:
Objective: simulate exam conditions. Answer without help, then analyze mistakes with Claude.
Launch the mock exam:
After the exam, analyze your mistakes: