This section provides a core demonstration of prompt injection using a simulated AI agent. prompt_injection_demo.py: A Python script that simulates two types of AI agents: naive_agent: A vulnerable ...
Explicit role & constraints: I open by assigning a clear role (Debugging Assistant) and a strict constraint (no full solution). This focuses the model on pedagogy and diagnostic guidance rather than ...