Lesson 15 of 15
Agent safety: prompt injection, secrets and permissions
What can go wrong when an agent reads untrusted text or holds your credentials, and the settings that limit the damage.

In this lesson
- Why an agent changes the risk
- Prompt injection
- The lethal trifecta
- Keeping secrets out of reach
- Choosing a permission mode
- A setup to start from
Ultra Premium
Unlock this lesson
Ultra Premium opens the 6 premium lessons in Building with agents, along with the rest of WhiteBox's premium lessons and problems.
Not ready yet? Read the free lesson: What a coding agent actually is