
Your AI agent can read files, execute commands, install software, connect to external services, and maybe even deploy to production. But should it have permission to do all of those things?
In Season 2, Episode 3 of DevSec Station, Tanya Janca (SheHacksPurple) explores one of the most important principles in AI agent security: least privilege.
After Claude unexpectedly published, executed, and scheduled Tanya's little "Hello Queen" application, she started asking some serious questions about what AI agents should actually be allowed to do.
In this episode, we cover:
- Permissions vs. instructions: Why telling an agent not to do something isn't the same as preventing it from doing it.
- Least privilege for AI agents: How to give agents only the access they genuinely need.
- Human approval: When an agent should ask permission before taking consequential actions.
- Sandboxing and isolation: How to limit the damage when an agent makes a mistake.
- The bigger architectural question: Does this task even need to be an AI agent?
Because not every damn thing needs to be an agent! Sometimes ordinary software, a scheduled job, or a narrowly scoped AI feature is the better solution.
Your challenge this week: Pick one AI agent you're using and examine its permissions. Does it need access to all those files, tools, credentials, and external services? If not, take away at least one unnecessary permission.
DevSec Station is a podcast by Tanya Janca (SheHacksPurple), focused on short, practical lessons that help software developers build more secure software.
Train with Tanya: Want to bring practical, hands-on secure coding, application security, or AI security training to your team? Learn more at SheHacksPurple.
Follow Tanya:
Mais episódios de "DevSec Station"



Não percas um episódio de “DevSec Station” e subscrevê-lo na aplicação GetPodcast.








