An Agent Can Obey the Wrong Voice
Prompt injection is one entry point, but the true threat emerges after untrusted content influences an autonomous agent. The risk isn't just what an agent is told, but what it does once compromised by an external, malicious instruction. This demands a shift from mere input filtering to comprehensive agent governance.
Cole Medin, an AI developer, illustrates this with his "second brain" agent, which manages significant business operations and accesses private data. To mitigate risk, Medin implements rigorous security checks for all incoming data before it reaches the LLM, alongside strictly limiting the agent's access to only the necessary systems.
The lethal combination for enterprises involves agents with access to private data, untrusted external input, and the ability to write or communicate independently. While input filtering is a critical first line of defense, it cannot guarantee an agent will always take safe actions. Full protection requires governing agent identity and permissions at runtime, treating agents as non-human identities requiring Zero-Trust containment.
The Enterprise Problem Is Agent Sprawl
A personally managed agent, like Cole Medin’s "second brain," can operate with manual security checks and hardcoded tool restrictions. However, this model collapses under enterprise scale. Companies don't deploy one agent; they manage fleets running in cloud services and on employee devices, often with unclear ownership and reach.
This agent sprawl creates a profound visibility gap for IT. Organizations need a precise inventory of which agents exist, who is responsible for them, the specific identities they use, and critically, which resources they can access. Without this, the enterprise is blind to potential attack vectors.
Enterprise agents are not merely extensions of an employee account; they are non-human identities (NHIs) that require their own stringent governance. Each agent must adhere to the principles of least privilege and comprehensive auditability for all its activity. Treating agents as distinct identities, rather than an employee’s proxy, is paramount.
Microsoft’s Project Perception and Agent 365 address this by provisioning agents with their own identities, distinct from human users. This enables task-scoped, time-bound access, ensuring an agent only has the permissions it needs, precisely when it needs them. This shift from static access to dynamic, risk-adapted permissions is essential for containing agent-related threats at scale.
Microsoft’s Answer: Permission That Expires
Microsoft’s Project Perception and Agent 365 offer a critical governance layer designed to discover agents, identify control gaps, and manage fleet-wide risk. This architecture assigns agents their own identity, decoupling their operational access from an employee’s approved permissions.
Instead of broad standing privileges, agents receive dynamic, time-bound permissions. This means an agent gains access to specific, supported resources solely for a defined task, with access expiring upon task completion. This principle of least privilege, applied dynamically, significantly curtails potential damage from a compromised agent.
Crucially, risk evaluation extends beyond initial sign-in. Microsoft’s controls continuously assess supported agent actions against current policy and risk levels at runtime. If an agent exhibits unexpected behavior or its risk profile changes, containment measures restrict its capabilities without disrupting the employee’s ongoing access.
This approach prevents a single injected prompt from cascading into broader enterprise compromise. For further reading on common attack vectors, consult the OWASP Top 10 for Large Language Model Applications. Your team can review recommended protections, preview their impact, and approve phased rollouts before enforcement, ensuring a controlled transition to enhanced agent security.
Enjoying this? Get one like it in your inbox each morning.
one email a day · unsubscribe in two clicks · no third-party tracking
Fleet-Wide Defense Still Needs Human Approval
Microsoft’s vision extends beyond individual agent security to fleet-wide defense. Project Perception introduces “guardian agents” to help teams identify and respond to risk patterns across entire groups of agents. This shifts the focus from isolated investigations to cohesive, systemic protection.
This approach maintains a crucial human element. The video highlights that IT teams review recommended protections, preview the impact of policy changes, and approve a phased rollout before any new security measure is enforced. This deliberate, human-in-the-loop process ensures that automated defenses align with business objectives and operational realities.
Enterprises must adopt a layered defense strategy now. This includes:
- Inventorying all agents and their capabilities
- Scoping identities with least-privilege access
- Continuously monitoring actions for anomalies
- Testing containment strategies
For deeper technical guidance, refer to OWASP’s LLM application security guidance and Microsoft Learn documentation. Stork.AI thanks Microsoft for its partnership in advancing agent security.
Frequently Asked Questions
Why is prompt injection not the only AI agent security risk?
An injected instruction can exploit an agent’s access to data and tools, turning a manipulated input into an unauthorized action.
What is Project Perception?
Project Perception is Microsoft’s agent security initiative, described in the video as providing agent insights and tools to help teams manage risk across agents.
How do dynamic permissions help secure agents?
They grant an agent access for a specific task and time period, reducing reliance on broad, always-on permissions.
Do Microsoft’s agent controls automatically block risky actions?
The video describes recommended protections that IT teams can review, preview, and approve for phased rollout before enforcement.

