Blog · 6 min read ·
ShareAI Agent Governance: Controls to Set Before Agents Act
A chatbot answers questions. An agent does things: it reads a mailbox, updates a record, runs a script, or calls an API, all with credentials someone gave it. That is why AI agent governance is mostly an identity and permissions problem, and why it is worth setting the controls before agents start acting, not after the first one does something nobody expected. This guide is vendor-neutral and written for the IT leader at a small or mid-sized firm who has been asked, "Are we okay with agents?"
Why do agents need different controls than chat?
Microsoft defines an agent plainly: "an application that attempts to achieve a goal by understanding its environment / context, making decisions and acting on them autonomously using available tools." Tools are the part that matters. The same page lists them: "web search, database access, APIs, file systems, or integrations with other software." Every tool is a door, and the agent decides when to open it.
OWASP's guidance on Excessive Agency describes the failure: "damaging actions to be performed in response to unexpected, ambiguous or manipulated outputs from an LLM, regardless of what is causing the LLM to malfunction." The root cause, it says, is "typically one or more of: excessive functionality; excessive permissions; excessive autonomy." Those three are a good checklist for everything below.
Which agents exist, and who owns each one?
You cannot govern what you cannot list. Agents show up in more places than most firms expect: built-in assistants in the tools you license, agents staff build with low-code tools, automations a consultant wired to an AI model, and desktop agents people installed themselves. Start a register with one row per agent:
- Name and purpose: what job it does, in one sentence.
- Owner: one named person accountable for it, plus a backup.
- Identity: the account, token or key it acts with.
- Reach: the systems and data it can touch, and whether it can read, write, send or delete.
- Approval rule: which actions need a human first.
- Review date: when someone confirms it is still needed.
Microsoft's own agent identity model reflects the same idea. In Copilot Studio, "The user who created the agent is recorded as its sponsor." Whatever tools you use, an agent with no recorded owner is the first thing to fix.
What identity should an agent act with?
Never a shared admin account, and never a person's own login left running. Give each agent its own non-human identity so its actions are separable from a person's, and so it can be turned off without disrupting anyone. Microsoft's documentation describes why existing models fall short: "The need to distinguish operations performed by AI agents from operations performed by workforce, customer, or workload identities." It also lists "Preventing AI agents from gaining access to the most critical security roles and systems" as a goal.
Microsoft Entra Agent ID is Microsoft's answer inside Entra: "Agent identities are identity accounts within Microsoft Entra ID that provide unique identification and authentication capabilities for AI agents." Two details matter for planning. Agents can act "autonomously, using access rights given directly to the agent identity," or "on behalf of human users, using access rights given to the user." Choose deliberately which model each agent uses. And note the licensing line on the page: "Extending Microsoft Entra security features to agents requires Microsoft Agent 365." Confirm current feature status and licensing on Microsoft Learn before you design around it.
On the access itself, OWASP's guidance is direct: limit extensions and their functions to the minimum, avoid open-ended ones such as running a shell command, and where an agent works for a person, execute it in that user's context with minimum privileges. A mailbox summarizer, for example, needs to read mail. It does not need to send it.
Which actions should a human approve?
Autonomy is a dial, not a switch. OWASP recommends to "Utilise human-in-the-loop control to require a human to approve high-impact actions before they are taken," and adds a point that is easy to miss: authorization should be enforced where the data lives, "rather than relying on an LLM to decide if an action is allowed or not."
A workable rule of thumb: let agents read and draft freely within their scope; require approval for anything that sends outside the firm, moves or deletes data, spends money, or changes access. If it would need your signature when a new hire did it, it needs an approval step when an agent does it. This is where skilled staff stay in charge, and where agents earn their keep as a force multiplier rather than a replacement.
What should be logged?
OWASP lists logging as damage limitation: "Log and monitor the activity of LLM extensions and downstream systems to identify where undesirable actions are taking place, and respond accordingly." In Microsoft 365, Microsoft says Entra logs authentication by Copilot Studio agents "as AI agents" viewable in the admin center, and that for supported AI apps "prompts and responses are captured in the unified audit log." Decide up front who reviews those logs, how often, and what triggers a call. A log nobody reads is a record for the postmortem, not a control.
How do you keep agents inside your data boundaries?
Agents amplify whatever access already exists. Microsoft's Purview documentation warns that "generative AI amplifies the problem and risk of oversharing or leaking data," and says supported AI apps use existing controls so data "is never returned to the user or used by a large language model (LLM) if the user doesn't have access to that data." That makes permission cleanup the first job: an agent acting for a user inherits that user's oversharing. Sensitivity labels add a layer on labeled content, and Microsoft Purview Data Loss Prevention "helps you identify sensitive items across Microsoft 365 services and endpoints, monitor them, and helps protect against leakage of those items." Coverage varies by app and license, so check the page for the agents you actually run.
What about prompt injection?
Any agent that reads outside content, such as email, web pages or files, can be handed instructions by whoever wrote that content. OWASP's LLM01 Prompt Injection entry is candid: "it is unclear if there are fool-proof methods of prevention for prompt injection." So design for the case where it works. OWASP's mitigations include to "Restrict the model’s access privileges to the minimum necessary for its intended operations," require human approval for high-risk actions, and test by "treating the model as an untrusted user." Its example attack is instructive: an agent that only needed to read a mailbox also had send functions, and a crafted email told it to forward sensitive content to an attacker. Least privilege breaks that chain even when the injection succeeds.
What about vendor and model risk?
Every agent depends on a model provider and often on third-party tools. Add three questions to your register: where does the data go, what happens if the vendor changes or retires the product, and what third-party extensions does the agent call? OWASP's example of an extension that was trialled and dropped but left available to the agent is a reminder to remove what you stop using. Our write-up on LLMjacking and ThisBash shows what unmanaged AI keys and desktop agents look like in practice.
The agent's own code is part of the supply chain too. On November 17, 2026, two releases of
agent-framework on PyPI, the official Python package for Microsoft Agent Framework, were published
with a credential stealer added. The OSV advisory
MAL-2026-20101 names versions 1.26.1 and 1.26.2 and
says 1.26.0 is the last clean release. Both have since been removed from PyPI. The code ran at every Python
interpreter start through a .pth startup hook, so installing the package was enough: nothing had to
import it. It collected credential-like environment variables, files such as ~/.azure,
.npmrc, .git-credentials and .env, Azure managed-identity tokens, and
CI pipeline tokens. Two controls follow. First, pin agent dependencies to exact versions and review upgrades.
Second, keep the agent's credentials scoped so that a stolen token reaches as little as possible. If either
version was ever installed on a laptop, build agent or server, rotate every credential that machine could read.
What does a lightweight governance cadence look like?
- Owner: every agent has one, recorded in the register.
- Intake: a new agent gets a short review before it gets credentials: purpose, reach, approval rules, logging.
- Quarterly review: owners confirm the agent is still needed and its access is still the minimum.
- Kill switch: a documented way to disable the agent's identity and keys in minutes, and someone authorized to use it.
- Incident path: if an agent does something wrong, who is called, what is preserved, and how it is turned back on.
Pair it with a written rule set; our AI acceptable use policy, mapped to controls shows where each rule is enforced.
Which framework should you map it to?
A framework turns good habits into something that survives staff turnover and satisfies a customer questionnaire. The NIST AI Risk Management Framework "is intended for voluntary use" and is a sensible common language for risk. NIST also notes that "The AI RMF 1.0 is being revised as part of the White House AI Action Plan," so check the page for the current version. ISO/IEC 42001 is the management-system standard for AI; our ISO/IEC 42001 readiness service builds the program and evidence to that structure. Readiness only: certification comes from an accredited certification body, never from us, and neither framework makes you compliant by itself.
If you have agents already running, start with securing the AI you already use. When you are ready to build, our AI agents and automation work applies these controls from the first design. This is operational and technical guidance, not legal advice.
Questions we get asked
- What is AI agent governance?
- AI agent governance is the set of decisions and controls that determine which AI agents may exist in your organization, who owns each one, what each can access and do, which actions need a human to approve them, and how their activity is logged and stopped. It differs from an AI acceptable use policy, which mostly covers what people may type into a chat window. Governance for agents is closer to access management, because an agent acts through credentials.
- How is AI agent security different from securing a chatbot?
- A chatbot returns text. An agent calls tools, such as mail, files, databases and APIs, and takes actions with an identity and permissions. That moves the main risk from what the model says to what the agent is allowed to do when it is wrong or manipulated. OWASP calls the vulnerability Excessive Agency and names its root causes as excessive functionality, excessive permissions and excessive autonomy.
- Do we need Microsoft Entra Agent ID?
- Not necessarily. The principles apply whatever the platform: every agent gets its own identity, a named owner and least-privilege access. Microsoft documents agent identities in Entra ID as a way to do this for Microsoft agents and for agents you build. Its page states that extending Microsoft Entra security features to agents requires Microsoft Agent 365, so check licensing before you plan around it. Check Microsoft Learn for the current status of each feature before you rely on it.
- Can prompt injection be fully prevented?
- No fool-proof prevention is known. OWASP says: "it is unclear if there are fool-proof methods of prevention for prompt injection." That is why the controls that matter for agents limit damage instead of relying on the model to behave: least privilege, authorization enforced outside the model, and human approval for high-impact actions.
- Does following NIST AI RMF or ISO/IEC 42001 make us compliant or certified?
- No. The NIST AI Risk Management Framework is, in NIST's words, intended for voluntary use. ISO/IEC 42001 is a standard for an AI management system, and certification is something an accredited certification body grants after its own audit. We help you build governance that maps to either one, which is readiness work. We do not certify anyone and nothing here is legal advice.
Related service
Secure AI for BusinessWritten by the team at Pro IT NW · Senior-led Microsoft project consultancy · Seattle and the Pacific Northwest, delivered USA-wide.