Join our Newsletter — 33% off our NHI Course
Home› Guides› Securing Enterprise AI Copilots and Assistants
Guide AI Platforms

Securing Enterprise AI Copilots and Assistants

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, edited by Lalit Choda Updated 24 October 2026 15 min read
On this page

Enterprise AI assistants, such as the copilots built into productivity suites, CRM, IT service management and developer platforms, work with the same permissions as the person using them, and that turns years of hidden over-sharing into easily discovered data. In principle, permission-trimmed answers are safe. In practice, most organisations have files shared with everyone, broad group memberships and forgotten access, and an assistant that can search everything a user can technically reach finds it in seconds. Copilots are also gaining the ability to act: sending messages, updating records, calling connectors and running custom agents, each of which is a non-human identity with its own access. This guide covers the identity and data risks of enterprise copilots and how to prepare, deploy, govern and monitor them. It is for identity, data protection and collaboration platform teams, and for security leads approving a rollout.

Key takeaways

  • Existing over-sharing is the biggest risk: copilots generally respect permissions, so they surface whatever users can already reach. Find and fix broad sharing before a broad rollout.
  • Labels, scoped discovery and DLP keep the crown jewels out: use sensitivity labels, temporary exclusion of sensitive sites and data loss prevention for AI interactions while clean-up continues.
  • Connectors and custom agents are NHIs: each needs an owner, scoped permissions, a consent policy and a place in your inventory, or it becomes the easiest way around user-level controls.
  • Prompt injection turns content into commands: EchoLeak, the Gemini calendar invite and ForcedLeak all used content the assistant read to make it leak data. Limit what assistants can do with untrusted input and where output can go.
  • Log and review AI interactions: which content was referenced, which agents and plugins ran, and which actions were taken, then remove agents and connectors nobody uses.

How enterprise copilots access data

Most enterprise copilots ground their answers in organisational data through an index or graph, then pass the retrieved content to a large language model as context. Microsoft states that its Copilot "only surfaces organizational data to which individual users have at least view permissions", and that its Semantic Index "honors the user identity-based access boundary". Google says Gemini in Workspace follows existing Workspace permissions: "If you don't have permission to see a file, the AI can't see it or use it either." Those guarantees are only as good as the permissions underneath them.

Access pathIdentity usedMain risk
Grounding on documents, mail and chatThe signed-in user, through the index or graphOver-shared content and stale access surfaced in answers
Connectors to other systems (search connectors, plugins)The user's delegated token, or a shared integration identityA shared identity with broad read access exposes data beyond the user's own rights
Custom agents built by users and makersThe maker's credentials, a service identity or the end user's token, depending on configurationAgents shared widely with the maker's access; ownerless agents
Actions (send, update, create, approve)The user's delegated permissions or the agent's own identityUnintended actions triggered by injected instructions
Web search groundingThe service, with terms derived from the promptSensitive terms in prompts sent to an external search service

Agent-building features let users create custom agents with their own connectors and actions. See the Low-Code Agent Platforms Guide.

The risks

  • Over-shared content surfaced: files shared with "everyone", company-wide links, broad sites and old project spaces become answers to simple questions. Microsoft's own deployment guidance tells administrators to find sites with "oversized audiences", "Everyone except external users" (EEEU) usage, broken inheritance and inactive or ownerless status.
  • Stale access: movers who kept access to old departments can now search that content effortlessly. See the Joiner-Mover-Leaver Guide.
  • Connector over-reach: OWASP describes "excessive permissions" where an extension built to act for one user "accesses downstream systems with a generic high-privileged identity".
  • Prompt injection to data leak: in EchoLeak 2025, according to BleepingComputer's account of Aim Labs' research, a crafted email retrieved by Microsoft 365 Copilot's RAG engine made it place internal data in a link sent to the attacker; Microsoft fixed CVE-2025-32711 server-side. In the Gemini AI Calendar Prompt Injection 2026, Miggo showed a calendar invite description that made Gemini summarise a user's private meetings into a new event the attacker could see.
  • Agents as phishing infrastructure: in CoPhish 2025, Datadog Security Labs showed that a Copilot Studio agent's "Login" button could deliver an OAuth consent attack from a genuine Microsoft domain and send the resulting token to an attacker-controlled URL.
  • Exfiltration through allowed destinations: in ForcedLeak 2025, Noma Labs found that instructions planted in a Web-to-Lead form could make Salesforce Agentforce send CRM data to an expired domain still on an allowlist; Salesforce patched it and re-secured the domain.
  • Data in prompts and outputs: sensitive content pasted into unmanaged AI tools, or AI output stored where it should not be. After the Samsung ChatGPT Source Code Leak 2023, TechCrunch reported that Samsung temporarily restricted generative AI tools on company devices.

OWASP's Top 10 for LLM Applications 2025 frames these as LLM01 Prompt Injection, LLM02 Sensitive Information Disclosure and LLM06 Excessive Agency. NIST AI 600-1 adds that generative AI "expands the available attack surface, as GAI itself is vulnerable to attacks like prompt injection or data poisoning".

Before rollout: prepare permissions

  1. Find over-sharing: content shared with everyone or large groups, anonymous and company-wide links, broken inheritance, and inactive or ownerless sites with broad access. Data access governance and posture reports in the collaboration platform are the usual starting point.
  2. Prioritise sensitive locations: HR, legal, finance, mergers and acquisitions, executive, security and customer data, plus any site holding regulated personal data.
  3. Apply interim protection: exclude high-risk sites from AI discovery while they are reviewed. Microsoft's Restricted Content Discovery is an example; it is "designed as a temporary governance control" and "doesn't change existing permissions", so users with access can still open the content directly.
  4. Clean up: remove broad sharing, rescope links to named groups, fix group membership, archive inactive sites and assign accountable site owners.
  5. Label: apply sensitivity labels and encryption to the most sensitive content. Microsoft states that for content encrypted by its information protection service, Copilot "honors the usage rights granted to the user". See the Data Classification Guide.
  6. Remove interim protection only when the underlying permissions are fixed, and record the decision.
Over-sharing signalWhy it matters for AITypical fix
"Everyone" or all-staff groups on a site or libraryEvery licensed user's assistant can ground on itReplace with named groups; site access review by owner
Company-wide or anonymous sharing linksLinks outlive the reason they were createdExpire or rescope links; change default link type
Broken permission inheritanceSensitive folders hidden inside broadly shared sitesReset inheritance; move sensitive content to a restricted site
Inactive or ownerless sitesNobody can approve clean-up or notice misuseAssign owners or archive
Stale group membershipMovers keep access to former departmentsAccess reviews and joiner-mover-leaver automation

This is access governance applied urgently. See the Access Reviews Guide and the Permission-Aware RAG Guide.

During rollout

  • Pilot with known access: start with groups whose permissions are well understood and expand in waves, checking audit data between waves.
  • Approve connectors and agents centrally: check whether each uses delegated or shared identities, what it can reach and who owns it. Microsoft notes that admins "have full control to select which agents are allowed" in the integrated apps settings.
  • Control agent building and sharing: restrict who can create and share custom agents, require an owner and a description of the data and actions involved, and review before wide sharing. See the Agentic AI Identity Guide.
  • Turn on DLP for AI: where supported, block AI processing of prompts containing sensitive information types, stop labelled files and emails being used in responses, and stop sensitive prompts going to external web search. See the Generative AI Data Loss Prevention Guide.
  • Consider external content: some platforms can exclude email from external domains as grounding data, which reduces the indirect prompt injection surface.
  • Set acceptable use and train users: what may be pasted into assistants, which tools are sanctioned and how to spot manipulated output. See the AI Acceptable Use Policy Template.

When copilots act

OWASP traces excessive agency to "excessive functionality; excessive permissions; excessive autonomy" and recommends executing extensions "in user's context" with the minimum privileges necessary. Tier actions by impact and match the control to the tier.

Action tierExamplesControl
Read and summariseSummarise a thread, draft a reply for reviewPermission-trimmed grounding; labels and DLP
Internal changeUpdate a CRM record, create a calendar event, file a ticketUser confirmation showing the exact change; logging
External or irreversibleSend external email, share a file outside the organisation, delete recordsExplicit approval per action; block for sensitive roles; no auto-run from retrieved content
Financial or privilegedApprove payments, change access, alter security settingsOut of scope for assistants, or step-up approval by a second person
  • Make the confirmation show what will happen, not a model-written summary that injected content could falsify.
  • Limit actions for users handling sensitive processes such as payments, HR cases and legal matters.
  • Restrict where output can be sent: block rendering of external images and links in responses where the platform allows, and keep allowlisted domains current, as ForcedLeak's expired domain showed. See the AI Agent Authorisation Guide.

Connectors and custom agents as non-human identities

Every connector, plugin and custom agent holds a credential or token and acts on data, so treat it like any other NHI. OWASP's agentic Top 10 warns that "without a distinct, governed identity of its own, an agent operates in an attribution gap that makes enforcing true least privilege impossible" (ASI03 Identity and Privilege Abuse).

  • Inventory: list every connector, plugin and published agent with its owner, data sources, actions, identity type and audience. See the Shadow AI Discovery Guide.
  • Consent policy: Datadog's CoPhish research notes that by default all Entra ID member users can register applications and that privileged application administrators are not bound by user consent policies. Restrict app registration, tighten consent and monitor consent grants. See the Entra ID Applications and Consent Guide and the SaaS and OAuth App Governance Guide.
  • Prefer delegated, scoped access over shared integration identities with tenant-wide read rights.
  • Lifecycle: review agents and connectors quarterly, remove unused ones and transfer ownership when makers leave. See the Identity Governance for AI Agents Guide.

Monitoring

Audit logs for AI interactions are the evidence base for both detection and governance. Microsoft logs Copilot interactions under the CopilotInteraction record type, including an AccessedResources field listing referenced files with their sensitivity label, and fields for the agent and plugins involved.

  • Who asked what: collect interaction records with the user, application, agent and resources referenced, and keep them long enough to investigate.
  • Sensitive content reach: alert when labelled or high-risk content is referenced by users outside the expected group, or when one user's AI queries touch unusually many sensitive files.
  • Agent behaviour: alert on agent actions outside normal patterns, new connectors, and new or changed agents published to wide audiences.
  • Consent and app events: new consent grants to high-risk delegated permissions, and new application registrations.
  • Housekeeping: review and remove unused agents and connectors. See the AI Agent Observability and Incident Response Guide.

Framework mapping

Indicative alignment prepared by NHI Mgmt Group, not an official mapping by any of these bodies. Control IDs were checked against NIST CSWP 29, the SP 800-53 Rev. 5 catalogue, the CIS Controls v8.1 list, a published ISO/IEC 27001:2022 Annex A list and the OWASP LLM and Agentic Top 10 texts.

Control areaNIST CSF 2.0NIST SP 800-53 Rev. 5ISO/IEC 27001:2022 Annex ACIS Controls v8.1OWASP
Fix over-sharing, least privilege on contentPR.AA-05AC-3, AC-6A.5.15, A.8.33, 6LLM02
Classification and labellingID.AM-07RA-2, AC-16A.5.12, A.5.133LLM02
DLP for prompts and outputsPR.DS-01, PR.DS-10AC-4A.8.123LLM02
Connector and agent identityPR.AA-01, PR.AA-05IA-9, AC-6, CM-7A.5.16, A.5.18, A.8.25, 6LLM06, ASI03
Third-party connectors and appsGV.SC-07SA-9A.5.19, A.5.2315ASI04
Prompt injection and action approvalPR.PS-06SI-10, AC-3(2)A.8.26, A.8.2816LLM01, LLM06, ASI01, ASI09
AI interaction logging and monitoringPR.PS-04, DE.CM-03AU-2, AU-6, AU-12, SI-4A.8.15, A.8.168ASI10
User awarenessPR.AT-01AT-2A.6.314LLM09

For AI risk governance as a whole, the NIST AI Risk Management Framework organises activities under Govern, Map, Measure and Manage, and NIST AI 600-1 profiles generative AI risks including data privacy and information security. See the AI Governance Guide.

Common failure patterns

  • Licences first, permissions later: broad rollout before any over-sharing assessment, followed by an urgent clean-up after a user finds salary or board papers in an answer.
  • Interim exclusions that become permanent: sensitive sites are hidden from AI discovery and never remediated, so the underlying exposure remains for direct access and search.
  • Labels without coverage: a labelling scheme exists but most sensitive content is unlabelled, so label-based DLP and AI restrictions catch little.
  • Uncontrolled agent building: any user can publish an agent with their own access to the whole organisation, with no owner review, as CoPhish showed is exploitable for phishing.
  • Treating injection as a filter problem: relying on a classifier alone, when EchoLeak and the Gemini invite were phrased as ordinary business text; Miggo notes Google "has already deployed a separate language model to detect malicious prompts, and yet the path still existed".
  • Stale allowlists: trusted domains for links and images are not reviewed, leaving an exfiltration channel, as in ForcedLeak.
  • No logs until an incident: AI interaction auditing is not collected or retained, so nobody can say what an assistant referenced or did.

Metrics that show progress

MetricWhat it showsTarget direction
Sites or libraries shared with everyone or all-staff groupsResidual over-sharing the assistant can surfaceDown
Share of high-risk sites remediated (not just excluded)Whether interim controls are being retired properlyUp
Share of sensitive content carrying a sensitivity labelCoverage for label-based AI restrictions and DLPUp
Published agents and connectors with a named owner and review dateAgent governance coverageUp, towards 100%
Agents and connectors unused for 90 days still enabledLifecycle hygieneDown
DLP matches on AI prompts and responses per 1,000 usersSensitive data pressure on AI tools; training needsDown after initial rise
High-impact actions run without explicit approvalExcessive autonomyDown, towards zero
Days to remove access after a mover changes roleStale access available to the assistantDown

Implementation roadmap

PhaseFocusOutputs
First 30 daysAssess and containOver-sharing reports run; top sensitive sites identified and temporarily excluded; AI interaction auditing confirmed on; agent creation restricted to a pilot group; consent policy reviewed
Days 31 to 90Pilot and remediatePilot waves with well-understood access; site owner access reviews for high-risk sites; labels on priority content; DLP for AI prompts and labelled content; connector and agent inventory with owners
Days 91 to 180Scale with guardrailsWider rollout; action approval tiers enforced; external content and output destination controls set; alerts on sensitive content reach and agent changes; quarterly agent and connector review
OngoingSustainInterim exclusions retired as sites are fixed; joiner-mover-leaver feeds access changes; metrics reported quarterly; regression testing for prompt injection when agents change. See the Prompt Injection Guide.

Practitioner checklist

  • Run an over-sharing assessment and fix the most sensitive locations before broad rollout.
  • Use temporary discovery exclusions only as a bridge to real permission fixes.
  • Apply sensitivity labels and restrict AI processing of the most sensitive content.
  • Turn on DLP for AI prompts, labelled content and web search where supported.
  • Roll out in waves and check audit data between waves.
  • Approve connectors centrally and prefer delegated, scoped access over shared identities.
  • Restrict who can build and share agents; give every agent an owner and a review date.
  • Tighten application registration and consent policies, and monitor consent grants.
  • Require explicit approval for external, irreversible and financial actions.
  • Collect and retain AI interaction logs, alert on sensitive content reach, and remove unused agents and connectors.

Standards and references

Related NHI Mgmt Group resources: Permission-Aware RAG Guide · Low-Code Agent Platforms Guide · Shadow AI Discovery Guide · Microsoft 365 Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Researched and written by the NHI Mgmt Group editorial team using AI tools, under the editorial direction of Lalit Choda. Facts are drawn from the sources listed on this page and checked by our automated quality process. Last updated 24 October 2026. Spotted an error? Use our contact page.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM and Agentic AI security. nhimg.org

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick the PDF box to continue.