Learning and how-to · October 26, 2026
My agent said something it shouldn't have
Reported by YouTube: Microsoft Developer
In short
A Microsoft Foundry tutorial walks through protecting a demo cupcake-store agent from prompt injection, both from user messages and from instructions hidden in tool responses. It attaches a guardrail with Prompt Shields, replays the attacks, and uses the trace to show where each one is blocked before the agent acts.
Why it matters
Agents can be attacked through tool outputs as well as user input, so knowing which intervention point stops which attack is key to building safer deployments.
Terms used in this story
Read the original reporting
YouTube: Microsoft Developer (opens in a new tab)AI Download summarizes and links to the news. We do not republish full articles.