Join our Newsletter — 33% off our NHI Course
Home› Guides› AI Platform Account Takeover Guide: Protecting Chat Histories,…
Guide Secrets Management

AI Platform Account Takeover Guide: Protecting Chat Histories, Sessions and Connected Data

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

A stolen login or session cookie for ChatGPT, Claude, Gemini or a similar assistant gives an attacker months of conversation history, uploaded files and, increasingly, live connectors into email, drives and code. This is a different problem from LLMjacking, where stolen API keys are used to run up model usage: here the target is the human user's account and everything it can see. Infostealer malware, credential reuse and personal accounts used for work make AI platform accounts an easy, high-value catch. This guide is for identity, SaaS security and SOC teams who need to decide which controls to put around AI assistant accounts, how to detect a takeover and how to respond when one happens.

Key takeaways

  • The account is a data store and a gateway. Chat history, projects, uploaded files, memory and connector grants mean one takeover can expose source code, contracts and downstream SaaS data.
  • Infostealers already harvest AI logins at scale. Group-IB reported 101,134 stealer-infected devices with saved ChatGPT credentials in the year to May 2023, and session cookies are taken alongside passwords.
  • Personal accounts are the blind spot. Work data in consumer accounts sits outside your SSO, logging and offboarding; domain capture and SSO enforcement are the controls that bring it back.
  • IdP session controls may not reach the AI app. Many AI platforms keep their own session cookies, so sign-in frequency and token binding at your identity provider do not automatically end an attacker's session.
  • Response means revoking sessions and grants, not just resetting passwords. Log out all devices, revoke connector OAuth tokens, review exports and shared links, then rotate any secrets pasted into chats.

What an attacker gets from an AI platform account

Treat an enterprise AI assistant account as a privileged SaaS account. The value lies less in the model than in what users have put into it and connected to it.

Asset in the accountWhy it mattersTypical exposure
Conversation historyUsers paste code, logs, customer data, credentials and strategy into chatsBulk reading or data export of everything retained
Projects, files and knowledge basesShared reference material, often more curated than emailDownload of uploaded documents; visibility changes to share them out
Memory and custom instructionsPersistent personal and business contextProfiling of the user for follow-on phishing
Connectors and apps (email, drive, calendar, code hosting, ticketing)Delegated OAuth access into other systemsThe attacker can ask the assistant to search or act across those systems as the user
Agents, custom GPTs and scheduled tasksAutomations that run with the user's grantsPersistence: a modified agent or instruction keeps working after a password reset
Admin rolesWorkspace settings, SSO, retention, compliance exportsDisabling controls or exporting the whole workspace

The connector row is where this differs most from older SaaS takeover. The attacker does not need to hold the downstream OAuth token themselves: an authenticated chat session can drive the connector. The Vercel Context.ai OAuth breach shows the reverse path too: an employee granted a consumer AI app full access to a corporate Google account, the AI vendor was breached, and the stolen OAuth token was used to take over the Workspace account. For API key abuse, which is a separate threat, see the LLMjacking Guide.

How AI platform accounts are taken over

RouteATT&CK referenceWhat makes it workPrimary control
Infostealer harvests saved passwordsT1555.003 Credentials from Web BrowsersPassword saved in the browser, no MFA, credential never rotatedSSO with phishing-resistant MFA; stealer log monitoring
Infostealer or malicious extension steals session cookiesT1539 Steal Web Session Cookie, T1550.004 Web Session CookieLong-lived app session cookie that is not bound to the deviceShorter app session lifetimes; managed browsers; extension allowlists
Credential stuffing and password reuseT1078.004 Cloud AccountsPersonal or email-and-password accounts outside SSODomain capture and SSO enforcement
Phishing for the AI login or the IdP loginT1078.004 Cloud AccountsPush or OTP MFA that can be relayedPasskeys or FIDO2 security keys at the IdP
Theft of a downstream OAuth grant from the AI vendorT1528 Steal Application Access TokenBroad, long-lived grants to AI apps, including unsanctioned onesOAuth app governance, scope limits and expiry
Email-based sign-in links or codesT1078.004 Cloud AccountsMagic link or emailed code where the mailbox is already compromisedEnforce SSO so email login is not available for corporate domains

The Group-IB figures above came from its own threat intelligence platform and covered June 2022 to May 2023; they are dated, but they show that stealer families were already capturing AI platform credentials as a matter of course. For how stealer data is traded and reused, see the Infostealer Logs and Session Token Abuse Guide.

Bring accounts under corporate identity

The single most effective control is to make sure work use happens in managed workspaces that authenticate through your identity provider.

  • Verify your domains and enforce SSO: Anthropic documents that Claude SSO enforcement is applied by email domain, so members on an enforced domain, including the Primary Owner, must authenticate through SSO. Without enforcement, users can keep signing in with email links, Google or Apple, which bypasses your MFA policy.
  • Provision and deprovision automatically: SCIM removes a user when they are removed from the IdP application. JIT provisioning is weaker on the leaver side: Anthropic notes that JIT never removes members automatically, and an unassigned user remains a member, holding a seat, until an admin removes them. Pair JIT with a scheduled reconciliation. See the Joiner-Mover-Leaver Guide.
  • Do not rely on app-level MFA for the workforce: OpenAI documents that ChatGPT account MFA uses an authenticator app with recovery and email code fallbacks, and that MFA cannot currently be enforced for an entire workspace. App-level MFA is a good personal control, but workforce assurance has to come from SSO and IdP policy.
  • Use phishing-resistant MFA at the IdP: passkeys or FIDO2 keys on the IdP sign-in remove the relayable OTP and push routes.
  • Find the personal accounts: use SaaS discovery, DNS and proxy logs and expense data to find consumer AI subscriptions on corporate email, then invite them into the managed workspace or close them. See the Shadow AI Discovery Guide.

Session controls: where your IdP stops

Session theft defeats MFA because the attacker replays a cookie issued after authentication. The difficulty with AI platforms is that the session usually belongs to the AI vendor's application, not your IdP.

ControlWhat it coversLimit to plan around
Microsoft Entra sign-in frequencyReauthentication for Microsoft and non-Microsoft SAML, OAuth2 and OIDC appsMicrosoft documents that apps keeping their own cookies and not redirecting back to Entra may not have it enforced
Microsoft Entra Token ProtectionDevice-bound tokens so stolen tokens fail from another deviceSupported resources are listed Microsoft services such as Exchange Online, SharePoint Online and Teams, not third-party AI apps
Google Workspace web session durationReauthentication for Google web services (default 14 days)Google documents that OAuth-authenticated apps and native mobile apps are not enforced
AI platform "log out of all devices"Ends the vendor-side sessions for one accountOpenAI notes that turning on MFA does not end existing sessions, so this must be a separate step
Managed or enterprise browserRestricts extensions, profile sync and cookie export on managed devicesDoes not help on unmanaged personal devices

The practical answer is layered: shorten the AI application's own session lifetime where the vendor allows it, restrict access to managed devices through the vendor's network or device controls where offered, block unmanaged extensions, and treat infostealer detection on any device that has touched the AI workspace as a session revocation trigger. The OWASP Session Management Cheat Sheet sets out the server-side expectations to test vendors against: session renewal on authentication, idle and absolute timeouts, and server-side invalidation on logout. See the Session Hijacking and Cookie Theft Guide.

Govern connectors and agents as delegated access

  • Allowlist connectors at workspace level: enable only the connectors you have reviewed, and scope them to groups that need them. Each enabled connector is an OAuth grant held on behalf of the user and should be in your non-human identity inventory.
  • Prefer read-only scopes: a connector that can send email, push code or modify tickets turns a takeover into an action, not only a disclosure.
  • Review grants to AI apps in your IdP and SaaS platforms: list third-party OAuth apps with access to Google Workspace, Microsoft 365, GitHub and Slack, flag AI vendors, and remove unsanctioned or dormant ones.
  • Track agents and scheduled tasks: custom assistants, instructions and scheduled actions survive password changes. Include them in takeover response.

Detecting a takeover

Detection depends on getting the AI platform's logs into your SIEM. On the enterprise tiers, OpenAI's Compliance Platform for ChatGPT Enterprise and Edu exposes audit, authentication and app log categories through the Compliance API with a workspace Admin key. Anthropic's Claude audit logs, available on Enterprise organisations, record sign-ins by method (SSO, Google, Apple, magic link, phone code), SSO enforcement changes, conversation and project activity, file uploads and data export start and completion; an export covers the past 180 days.

  • Sign-in method drift: a magic link, Google or Apple sign-in for a user on an SSO-enforced domain, or SSO enforcement being switched off.
  • Impossible or new access context: AI platform activity from an IP, ASN or country that does not match the user's IdP sign-ins in the same period, which is a strong cookie replay signal.
  • Bulk collection: data export started, many conversations opened or files downloaded in a short window, or project visibility changed to shared.
  • Connector activity spikes: unusual search volume through mail or drive connectors, or connectors newly enabled by a user who has not used them before.
  • Admin changes: retention, SSO, domain or role changes outside change control.
  • Endpoint signal: an infostealer detection on a device where the user is signed in to an AI workspace.

Metrics

  • Percentage of AI platform users on corporate domains authenticating through enforced SSO.
  • Number of personal AI accounts on corporate email found and migrated or closed per quarter.
  • Percentage of enabled connectors with a named owner and reviewed scopes.
  • Time from infostealer detection to AI platform session revocation.
  • Percentage of AI workspaces whose audit logs reach the SIEM.

Responding to a suspected takeover

  1. Contain sessions: revoke the user's IdP sessions and refresh tokens, then use the AI platform's log-out-everywhere or admin session revocation; suspend the account if activity is ongoing.
  2. Revoke delegated access: disconnect connectors from the user's AI account and revoke the matching OAuth grants in Google Workspace, Microsoft 365 or other platforms.
  3. Check for persistence: review custom instructions, memory, custom assistants, scheduled tasks, shared links, project membership and any API keys created.
  4. Scope exposure: pull audit logs for exports, file downloads and conversation access during the window; identify secrets, personal data and regulated data in those conversations.
  5. Rotate what was pasted: any credential, token or key that appears in chat history must be rotated, not just the AI account password. See the Infostealer Logs Monitoring and Response Guide.
  6. Clean the endpoint: if a stealer was involved, reimage the device and assume every browser-stored credential and session on it is compromised.
  7. Assess notification duties: personal data in chats or connected systems may trigger breach notification obligations; involve privacy and legal early.

Choosing controls by organisation size

SituationMinimum viable control setTrade-off
Small team on a Team or Business planSSO with enforced domain if the plan offers it, IdP MFA with passkeys, JIT plus a monthly member review, connectors off by defaultAudit logs and compliance APIs are often limited to enterprise tiers, so detection relies on IdP and endpoint signals
Mid-size organisation with one sanctioned assistantEnterprise tier with SCIM, audit log export to the SIEM, connector allowlist, block consumer AI domains for corporate identities at the proxyBlocking consumer tools without offering a sanctioned one drives use to personal devices
Large organisation with several AI platformsStandard identity baseline applied to every platform, central OAuth grant inventory, session revocation automation tied to EDR and stealer log alertsEach vendor exposes different log fields and session controls, so normalisation work is substantial

Whatever the size, the decision that matters most is whether work use is allowed in personal accounts. If it is, none of the controls above apply to that data; if it is not, the policy needs a sanctioned alternative and discovery to enforce it. See the Shadow AI Policy Template.

Common failure patterns

  • Resetting the password and stopping there: existing sessions, connector grants and modified agents survive a password change.
  • SSO configured but not enforced: users keep their old email or social sign-in, and that is the credential in the stealer log.
  • JIT provisioning without a leaver process: departed staff remain workspace members with full history until someone removes them.
  • Assuming IdP session policy applies: the AI app's own cookie outlives the IdP session, so a replayed cookie still works.
  • Ungoverned AI app OAuth grants: as in the Vercel Context.ai OAuth breach, a broad grant to an AI tool becomes the attacker's route when that vendor is breached.
  • Credentials without MFA and never rotated: the Snowflake breach showed how infostealer credentials, some years old, keep working against SaaS platforms that do not enforce MFA.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev. 5IA-2, IA-11 Re-authentication, AC-12 Session Termination, AC-2 Account ManagementSSO and MFA, session lifetime, provisioning and removal
NIST CSF 2.0PR.AA-03; DE.CM-03Authentication of users and services; monitoring of personnel activity
MITRE ATT&CKT1539, T1550.004, T1555.003, T1528, T1078.004Cookie and credential theft, token theft, cloud account abuse
ISO/IEC 27001:2022 Annex AA.5.18 Access rights; A.8.5 Secure authenticationProvisioning, review and removal; strong authentication

Practitioner checklist

  • Verify corporate domains on every AI platform in use and enforce SSO for them.
  • Use SCIM where available; if JIT is the only option, reconcile members against the IdP weekly.
  • Require phishing-resistant MFA at the IdP for AI workspace access.
  • Find and migrate or close personal AI accounts on corporate email.
  • Allowlist connectors, prefer read-only scopes and record each grant with an owner.
  • Stream AI platform audit and authentication logs to the SIEM and alert on sign-in method drift, exports and admin changes.
  • Make infostealer detection on a device trigger IdP and AI platform session revocation.
  • Write an AI account takeover runbook covering sessions, connectors, agents, exports and secret rotation.

Standards and references

Related NHI Mgmt Group resources: LLMjacking Guide · ChatGPT Enterprise Security Guide · Claude for Enterprise Security Guide · Infostealer Logs and Session Token Abuse Guide

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 28 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