Support Agent: Let Code, Not the Model, Pick the Customer
No attack I tried reached another customer's order. I still moved the customer check into the code.
Video #34 ยท AI agents and MCP
Steps in the video
Files
- agent.py (68 lines)
- compare.py (26 lines)
- shop.py (9 lines)
Tested with
Python 3.12.15 | ollama==0.6.3
What this does not show
Four attacks, one prompt wording and one run of one small model (llama3.2), so the model result proves little; only the fooled-caller check is exact. The shop is made up, with no real login, sessions or refunds.
Sources
Learning IT by Example.