Before I Give an AI Agent the Keys
I’ve spent a good part of this year building AI agents to help with real cybersecurity work. Not demos, not toys. Agents that touch real data for real organizations. And before any of them goes live, I keep coming back to one simple question: which doors can this thing open?
It’s tempting to skip that question. The tools are impressive, and it’s easy to hand an agent broad access and figure out the guardrails later. I’ve been in security long enough to know how that story ends. So every agent I build starts with its boundaries, not its capabilities.
Here’s what that looks like in practice.
Five agents, five sets of boundaries
Recon Agent. This one maps an organization’s external attack surface and helps prioritize vulnerabilities. It scans only within approved scope. It doesn’t exploit anything. And no finding leaves the team until a human has reviewed it.
Before I ever built this agent, I created three documents to create guardrails:
- Toolset: specifically, what can the agent touch? What can it not touch?
- Rules of Engagement: what are you not allowed to do, which is more important than what are you allowed to do in most cases with cybersecurity.
- Methodology: how are we going to approach this so that we provide the service that is asked of us without disrupting the business?
Vendor Risk Agent. It researches vendor ownership, cloud certifications, and privacy requirements. Every finding has to come with a dated source, because “the AI said so” isn’t evidence. The agent recommends. A human decides.
Cyber Newsletters. This agent builds personalized security intelligence while minimizing and masking sensitive information along the way. Nothing goes out the door without review.
Threat Intelligence Agent. It tracks emerging threats across the U.S. and around the world. Everything it pulls from the web is treated as untrusted, because prompt injection isn’t a theoretical problem. People are actively planting instructions in web content, hoping an agent will follow them. So this agent reads and summarizes. Period.
Email and Calendar Agent. My personal favorite, mostly because it keeps me honest. It tells me about urgent emails, upcoming commitments, and my apparently impressive talent for double-booking myself. It can read and recommend, but it can’t send an email or touch my calendar. Some days I’m tempted to let it. Then I remember why I’m writing this post.
Same philosophy, every time
Different agents, different jobs. The rules underneath them don’t change:
- Least privilege by design. Access is decided up front, not patched in after something goes wrong.
- Only the tools each agent actually needs. If it doesn’t need write access, it doesn’t get write access.
- Human approval for consequential actions. Anything that leaves the team, changes a system, or makes a decision gets a person in the loop.
- Secrets stay out of prompts. Credentials and sensitive data live where they belong, not in the context window.
- Logging and accountability. If an agent did something, I want to know what, when, and why.
- Autonomy is earned, not assumed. Agents start on a short leash, and trust grows with a track record.
Why it matters
The more capable an agent becomes, the more its boundaries matter. A limited tool can only do limited damage. A capable one with no guardrails is a different story.
Think about how we onboard a new employee. Nobody gets unrestricted access to every system on day one. They get what they need for the job, someone checks their work for a while, and their access grows as trust does. That’s just good practice.
So why would we treat an AI agent any differently, especially one that works about 100 times faster than that new hire? A mistake at that speed isn’t a small mistake. It’s a big one that already happened before anyone noticed.
Build the boundaries first. The capabilities will still be there when you’re ready.
Next in this series: Guardrails Are the Product: Deploying AI Agents Safely, where those rules live in the system and a checklist to run before you go live.