By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: SeclorePublished April 2, 2026

TL;DR: A single ChatGPT prompt retrieved more than 400 internal files in 42 milliseconds because OAuth access and server-to-server API calls bypassed human-centred security controls, according to Seclore. The real failure is not AI access itself but the lack of persistent data context, classification, and rights management around what that access can reach.


At a glance

What this is: Seclore describes a case where a ChatGPT query triggered server-side retrieval of more than 400 internal files from Google Drive in milliseconds.

Why it matters: For IAM, NHI, and data security teams, the issue is that OAuth-granted machine access can enumerate sensitive content faster than human-centric monitoring or approval workflows can react.

👉 Read Seclore's analysis of ChatGPT retrieving 400 internal files in 42 milliseconds


Context

AI-assisted data access becomes a governance problem when machine-to-machine integrations inherit broad permissions without understanding content sensitivity. In this article’s example, the issue is not simply that ChatGPT could reach Google Drive, but that the access path had no usable context about file type, regulatory exposure, or business criticality. That is an identity and data control problem as much as a security tooling problem.

The gap is familiar to IAM and NHI practitioners: approvals, tokens, and integrations often outlive the operational context that justified them. Once an OAuth token can act server to server, the security model must decide whether the actor is merely authenticated or actually authorised for each class of data. In this case, the starting position is unfortunately typical of many enterprise AI integrations.


Key questions

Q: What breaks when AI systems inherit broad repository access?

A: Broad inherited access lets AI systems reach data that was never intended for machine-scale retrieval, including stale, duplicated, or sensitive content. That creates both a quality problem and an exposure problem, because the model may return material the business cannot explain or defend. The control failure is overbroad access without a machine-specific review.

Q: Why do AI agents complicate traditional IAM controls?

A: AI agents complicate traditional IAM controls because they do not behave like human users with short, predictable sessions. They can act continuously, chain actions, and reuse the same identity across many systems. That creates a governance problem centered on access duration, revocation, and blast radius, not just authentication.

Q: How do security teams know if an AI integration has become overtrusted?

A: Look for connectors, MCP servers, and vendor accounts that can reach production data, change configurations, or run actions without a separate approval step. If one credential can cross environments or operate on behalf of multiple principals, the integration is overtrusted. The signal is broad reach with weak session-specific constraints.

Q: Who is accountable when an AI agent accesses regulated data improperly?

A: Accountability sits with the teams that govern the agent's identity, the data classification, and the policy that allowed the access path. If those controls are disconnected, no single owner can explain why the access existed or why it was not removed sooner. Shared context is what makes accountability traceable.


Technical breakdown

Why OAuth consent is not data governance

OAuth consent establishes that an application may act on behalf of a user or service, but it does not determine whether every reachable file should be accessible in the same way. In AI-connected workflows, the backend often uses delegated tokens to enumerate content at machine speed. That means access control is checked at the connection boundary, while the real risk sits deeper in the data layer, where file sensitivity, retention obligations, and business context should shape what can be returned.

Practical implication: pair OAuth approval with data-class-based enforcement so delegated access is constrained after authentication, not just at onboarding.

Why human-centred security telemetry misses AI backends

Most endpoint, browser, and user-behaviour controls assume a human session, a device, or an interactive workflow. AI backends often operate through cloud IPs, API calls, and parallel retrieval patterns that look ordinary to those controls because no endpoint user is present. The result is a detection blind spot: the system is busy, authorised, and silent, even when it is enumerating hundreds of sensitive files in seconds.

Practical implication: extend monitoring to service-to-service traffic, API volumes, and delegated identity activity instead of relying on endpoint signals alone.

How persistent rights management changes the control plane

Persistent controls such as data classification, masking, revocation, and enterprise digital rights management move enforcement closer to the content itself. Instead of trying to predict every risky integration, the organisation labels and protects the file so that downstream systems inherit the restriction. This approach is especially relevant when AI tools can fetch large volumes of material faster than humans can review or intervene.

Practical implication: protect sensitive documents before they reach AI workflows, because post-retrieval review cannot keep pace with machine-speed enumeration.


Threat narrative

Attacker objective: The objective is to enumerate and extract sensitive enterprise content through a legitimate AI integration path without needing visible human interaction.

  1. Entry occurred when an approved ChatGPT-to-Google Drive OAuth integration was granted delegated access to internal content.
  2. Credential abuse followed when the backend used active tokens to retrieve files at machine speed through server-to-server requests.
  3. Impact was the bulk retrieval of more than 400 internal files, including sensitive business and security material, without triggering the expected security stack.

NHI Mgmt Group analysis

Data context has become the missing control plane for AI integrations. Authentication alone no longer tells practitioners whether an AI backend should see a file, a folder, or an entire workspace. Content classification, regulatory context, and intent-based policy must work together, because machine-speed retrieval collapses the review window that traditional approval models assume. The practitioner conclusion is simple: if context does not travel with the data, access control is incomplete.

Machine identities are now acting inside human-approved workflows. OAuth-connected AI services behave like non-human identities even when they are launched by a human user. That creates a governance overlap between IAM, NHI, and data security, because the security team must manage delegated privilege, token lifetime, and content scope as one control problem. The practitioner conclusion is to treat AI integrations as governed identities, not just applications.

Semantic context is the control gap that determines whether AI access is safe or noisy. If an AI system cannot distinguish a roadmap from a help article, it will over-collect by design. That is why context-aware classification is a stronger concept than simple file tagging, and it aligns with data governance practices already familiar in NIST CSF and ISO/IEC 27001 environments. The practitioner conclusion is to make sensitivity and purpose part of the access decision.

The discovery problem is no longer about seeing the integration, but about seeing the blast radius. Security teams often know an AI connector exists, yet still cannot answer what it can enumerate, which identities authorised it, or how long the token stays useful. That is a classic governance debt issue, and it is where NHI oversight and data protection meet. The practitioner conclusion is to measure reach, retention, and revocation as one risk surface.

What this signals

The immediate programme signal is that AI access reviews need to move from application approval to content exposure analysis. If a connector can enumerate thousands of files in seconds, then the control question becomes which identities can authorise that path, which repositories it touches, and whether the token can be revoked before the next retrieval cycle.

Data context debt: this is the accumulation of unclassified, over-exposed, or policy-light content that AI systems can reach faster than governance can react. Teams should expect more incidents where the connector is legitimate but the data scope is not. The response is to align content classification, delegated identity review, and revocation into one operating model.

For identity teams, the issue extends beyond human users into machine actors that inherit human trust. That makes OAuth-connected AI services a practical NHI governance problem, especially where tokens stay active after the business justification has changed. Controls such as NIST CSF and NIST SP 800-53 only become meaningful here when they are applied to the data path, not just the login path.


For practitioners

  • Inventory AI-connected OAuth integrations Map every AI connector that can read enterprise storage, including delegated scopes, token lifetimes, and the data domains it can enumerate. Prioritise connectors that can traverse Google Drive, Microsoft 365, SharePoint, or file servers at server speed.
  • Classify data before AI access is approved Apply sensitivity labels and purpose-based policy to documents before granting AI backends any retrieval path. Sensitive records should carry enforcement that persists after the file leaves the repository, including masking and revocation where appropriate.
  • Monitor service-to-service retrieval patterns Build detections for unusual API volume, parallel file enumeration, and cloud IP access that bypasses browser telemetry. Correlate those events with the OAuth application, the granting identity, and the folders reached.
  • Shorten and review delegated access windows Limit how long AI integrations keep active tokens and require periodic re-approval for connectors that touch regulated or highly sensitive repositories. Focus reviews on the actual folders exposed, not just the application approval record.

Key takeaways

  • AI-connected file access can expose hundreds of internal documents in seconds when delegated identity is broader than the data governance model.
  • The evidence points to a control gap between approved OAuth access and persistent protection of the files that access can enumerate.
  • Practitioners need content-level enforcement, token review, and service-to-service monitoring to keep AI integrations inside their intended boundary.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the technical controls, while ISO/IEC 27001:2022 define the regulatory obligations.

FrameworkControl / ReferenceRelevance
NIST CSF 2.0PR.AC-4Delegated AI access needs least-privilege and access governance.
NIST SP 800-53 Rev 5AC-6The article centers on overbroad authorised access to files.
ISO/IEC 27001:2022A.5.15Access control policy governs who or what can read sensitive content.

Apply AC-6 to constrain AI integrations to least privilege and review access to sensitive repositories.


Key terms

  • Delegated OAuth Access: Delegated OAuth access is a permission model where an application acts on behalf of a user or workspace after consent is granted. In NHI terms, the app becomes a non-human identity with real reach, so scope, revocation, and monitoring matter as much as the original account credentials.
  • Persistent Data Controls: Persistent data controls are protections that stay attached to content after it leaves its original system. They include classification, masking, revocation, and rights management, which allow an organisation to keep enforcing policy even when a file is copied, shared, or retrieved by an AI backend.
  • Machine-Speed Enumeration: Machine-speed enumeration is the rapid retrieval of many files or records by an automated system through APIs or backend services. Unlike human browsing, it can expose broad content sets in seconds, often without the endpoint, browser, or user-behaviour signals that traditional security tools expect.
  • Data Context: Data context is the operational understanding of what data exists, where it lives, how sensitive it is, and which identities can reach it. In incident response, data context turns alerts into decisions by showing whether a system holds regulated records, test copies, or low-risk content. It is essential for defensible containment and notification scope.

What's in the full article

Seclore's full post covers the operational detail this post intentionally leaves for the source:

  • How the Semantic Triad classifies content using content, context, and intent at the document level
  • How AI DLP and EDRM apply persistent controls after a file leaves its source repository
  • How the audit trail captures which integration touched which files, from which IP, and when
  • How sensitive values can be masked before they reach an AI processing layer

👉 Seclore's full post covers the retrieval path, control gaps, and persistence model in more detail

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle control. It helps practitioners connect delegated access decisions to the controls that actually govern them.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org