Nov 03 2026

Someone Is Running Your AI Models Right Now. You’re Paying for It

Category: AI,AI Logs,AI Risk,Information Security — disc7 @ 12:32 pm

The Rise of LLMJacking: How Threat Actors Monetize Compromised Cloud and Model Resources

Nov 3, 2026 · @disc

The $100,000 Afternoon

Cryptojacking took months to show up on a cloud bill. LLMJacking takes an afternoon. In incidents Mandiant worked through 2026, attackers ran up more than $100,000 in fraudulent model charges in a single day, and some victims hit roughly $1 million before anyone revoked the stolen access.

That is the headline from the Google Threat Intelligence Group and Mandiant report published November 2, 2026. The attackers did not need a zero-day or a jailbreak. They needed one leaked service account key, one GitHub token, or one LLM API key committed to a public repo.

Here is the uncomfortable part for anyone selling or buying AI-enabled software. Every organization that has wired a frontier model into production now holds a credential that converts directly into cash. Criminals have noticed. They have built a supply chain to steal those credentials, validate them quietly, and resell the model access to paying subscribers at a discount, while the victim pays the invoice.

For B2B SaaS and financial services teams, this is not only a cloud security story. It is a denial-of-wallet risk, a data exposure risk, and an AI governance evidence problem. Your ISO/IEC 42001 auditor, your SOC 2 auditor, and your enterprise customers’ vendor risk teams will start asking how you govern model access. This post lays out how LLMJacking works, who profits, and the specific controls and evidence that close the gap.

What Mandiant and GTIG Actually Found

LLMJacking is now an organized, multi-region criminal business with a division of labor, not a hobbyist’s trick. The November 2026 report draws on multiple Mandiant incident responses across North America, South America, and Asia Pacific, hitting financial services, retail, technology, and transportation organizations.

Five findings matter most for defenders:

  • Speed beats cryptojacking. Cryptominers drain resources slowly. LLMJacking produces billing spikes within hours, with single-day fraud above $100,000 and cumulative losses near $1 million at some victims.
  • Identity is the front door. Exposed endpoints such as unauthenticated Ollama servers get probed, but the dominant entry point was stolen cloud identity: IAM credentials, service account keys, GitHub personal access tokens, and live session tokens.
  • Attackers turn LLM services on. In several cases the victim had never enabled a managed LLM service. The attacker enabled Bedrock, Gemini, or similar APIs with stolen keys, then started billing.
  • The model gateway is a target. A follow-on actor exploited CVE-2026-40217, a user ID rebind flaw in the LiteLLM /key/regenerate endpoint, to turn ordinary virtual keys into PROXY_ADMIN master credentials.
  • Specialists now split the work. One cluster breaks in and validates access. A second cluster runs “LLM Mixers” that pool, meter, and resell the stolen model access to underground subscribers.

The tradecraft is quiet before it is loud. One group validated keys harvested from public GitHub with single-token requests (max_tokens=1), cheap enough to slip under volume-based SIEM and EDR thresholds. Another bypassed MFA by tricking users into pasting a raw JSON access token into a fake portal for joining an LLM user group, a tactic GTIG attributes to UNC6993.

The LLMJacking Kill Chain

Every stage of an LLMJacking intrusion uses ordinary cloud attack techniques; only the payoff is new. That is good news. Most of the controls you need already exist in your cloud security program. They just are not pointed at model services yet.

StageWhat attackers did in the Mandiant casesMITRE ATT&CK / ATLASEarliest place to catch it
1. Credential theftHarvested LLM API keys and service account keys from public GitHub; stole PATs; phished raw session tokensT1552.001 Credentials in Files; T1528 Steal Application Access Token; ATLAS AML.T0055 Unsecured CredentialsSecret scanning with push protection; token binding; phishing-resistant MFA
2. Quiet validationSingle-token max_tokens=1 calls to confirm keys workT1078.004 Valid Accounts: Cloud; ATLAS AML.T0040 AI Model Inference API AccessGateway logs for tiny, zero-temperature requests from new IPs or user agents
3. DiscoveryEnumerated regions, models, identity policies, repos, data warehouse metadataT1580 Cloud Infrastructure Discovery; T1213.003 Code RepositoriesListFoundationModels, ListModels, deployments/read calls by unusual principals
4. Privilege escalationMinted tokens for high-privilege service accounts; attached admin policies; exploited LiteLLM CVE-2026-40217T1098.001 Additional Cloud Credentials; T1068 Exploitation for Privilege EscalationIAM policy change alerts; gateway admin key creation alerts
5. PersistenceCreated IAM users and backdoor service accounts named like billing tools; injected SSH keys into instance metadataT1136.003 Create Cloud Account; T1098.004 SSH Authorized KeysNew-identity alerts; project-wide SSH key changes
6. Defense evasionChecked or disabled model invocation logging; “burn and rotate” short-lived service accountsT1562.008 Disable or Modify Cloud LogsAny logging change by a non-IaC principal = high severity
7. Abuse and monetizationEnabled LLM services, accepted model agreements, ran high-volume inference, provisioned GPUs, requested quota increases, resold accessT1496.004 Cloud Service Hijacking; ATLAS AML.T0034 Cost HarvestingEnableService, PutUseCaseForModelAccess, quota requests; budget anomaly alerts

The table shows where defenders have leverage. Stages 1 and 2 are cheap to stop and nearly invisible to traditional volume-based alerting. By stage 7 you are watching an invoice grow in real time.

The LLM Mixer Economy: Your Quota, Their Storefront

Stolen model access is now a resold commodity, and your invoice funds someone else’s discount subscription. GTIG calls the resale layer “LLM Mixers”: gateways that proxy, pool, and meter unauthorized access, then sell it to underground customers.

The tooling is mostly open source, which makes the economics brutal:

  • Pooling and load balancing. UNC6993 used new-api, a centralized model hub, and gcli2api, which turns CLI tools into standard model endpoints, to aggregate stolen keys and spread requests across victim accounts.
  • Retail storefronts. The service Jet Night, run on stolen third-party keys, executed more than 500,000 API calls in under eight hours and passed close to $1 million in token costs to one victim. Its unlimited plan sold for about $60 a month, against $100 to $250 for a comparable legitimate tier. Its public Telegram channel announced outages, which GTIG reads as keys being revoked by victims.
  • Lookalike relays. One actor ran custom ai-relay infrastructure on a domain built to mimic the victim’s own internal host, siphoning quota into the newapi.pro resale ecosystem.
  • Hijacked agents and GPUs. Another actor deployed public reverse proxies branded D1337-KAIROS, a containerized Manus-based agent backdoor that reasoned through tasks and ran commands locally, self-hosted LiteLLM gateways, and GPU instances across regions with quota-increase requests.

The lesson for governance teams: stolen model access has a market price, a resale channel, and customer demand. That turns every unscoped API key into a monetizable asset, the same way stolen card numbers became one twenty years ago. Expect LLMJacking to keep displacing cryptojacking, because the margins are better and the payout is immediate.

Network indicators GTIG published: jet-night.com and newapi.pro, both classified as LLM Mixers. Block them at egress and hunt for historical connections.

Why This Is an AI Governance Problem, Not Just a Cloud Ticket

LLMJacking succeeds where AI governance stops at the policy document. The attackers did not beat a model; they walked through gaps in inventory, ownership, spend limits, and logging that an AI management system is supposed to close.

Five governance failures show up across the Mandiant cases:

  1. No inventory of model access. If you cannot list which identities can call which models, you cannot notice a new one. GTIG explicitly recommends shadow LLM discovery, which is the AI system inventory ISO/IEC 42001 already expects.
  2. Model services that were never approved got switched on. Several victims had no LLM service enabled until the attacker enabled it. That is a change-management and approval failure, not just an IAM gap.
  3. Denial-of-wallet was never a named risk. OWASP lists Unbounded Consumption (LLM10:2025) in its Top 10 for LLM applications. Most risk registers still treat AI cost as a FinOps topic, with no owner, no threshold, and no incident trigger.
  4. The model gateway is treated as plumbing. LiteLLM-style routers hold master keys for every model you pay for. That makes the gateway a crown-jewel asset that needs patch SLAs, admin-key monitoring, and its own threat model.
  5. Agents inherit ambient credentials. The D1337-KAIROS backdoor shows attackers running their own agent inside your cloud on your bill. Any agentic workload with broad service account rights, model access, and open egress closes the “lethal trifecta” of private data, untrusted input, and an outbound channel.

There is also a data protection angle that gets lost in the billing headlines. The same footholds were used to clone repositories, query data warehouse metadata for passwords, and pull secrets from cloud secret managers. Prompts and completions routed through a hijacked gateway can expose customer data. For financial services firms, that can become a reportable incident, not just an unexpected invoice.

This connects to a theme from earlier DISC InfoSec posts, The Controls Are Still Being Written and The Harness Is the Contract: AI capability is shipping faster than the controls and evidence around it. LLMJacking is what that gap looks like once criminals put a price on it.

Threat Model: Risk, Mapping, Control, Evidence

Each LLMJacking risk needs a named control and a piece of evidence an auditor or customer can check. A control without evidence is a statement, not assurance, which is the same point we made in the When Structure Pays case study with Frontier Founder.

RiskOWASP mappingControlEvidence an auditor can verify
Long-lived cloud or LLM keys leak to code, CI, or chatLLM02 Sensitive Information Disclosure; ASI03 Identity & Privilege AbuseWorkload identity federation instead of static keys; secret scanning with push protection; 90-day max key ageScanner reports; key-age report from IAM credential report; zero static keys for prod model access
Session token theft bypasses MFAASI03 Identity & Privilege Abuse; ASI09 Human-Agent Trust ExploitationPhishing-resistant MFA; token binding; short session lifetimes; user training on token-paste luresIdP policy export; conditional access config; training records
Unapproved model services enabledLLM10 Unbounded ConsumptionOrg policy denying LLM service enablement outside approved projects; change approval for new modelsSCP / Org Policy / Azure Policy export; AI system register entries with approvals
Runaway inference spendLLM10 Unbounded ConsumptionPer-model quotas, hard spending caps, per-key budgets at the gateway, budget alerts to the SOCQuota config; budget alert routing; test that a cap actually stops calls
Model gateway compromise (e.g., CVE-2026-40217)LLM03 Supply Chain; ASI04 Agentic Supply ChainGateway in asset inventory; 72-hour critical patch SLA; admin keys in a vault; alerts on admin key creationSBOM; patch tickets with dates; gateway audit log
Logging disabled to hide abuseNo direct OWASP item; ATT&CK T1562.008Model invocation and data access logs on by default; alerts on any logging change by non-IaC principalsLog config snapshots; alert rule definitions; test alert firing
Hijacked agent runs attacker tasksASI02 Tool Misuse & Exploitation; ASI05 Unexpected Code ExecutionSandboxed execution; egress allowlists; no broad service account on agent runtimesNetwork policy; runtime identity bindings; sandbox config
Compromised model or dependency pulled into pipelinesLLM03 Supply Chain; ASI04 Agentic Supply ChainApproved internal model registry; SCA on ML dependenciesRegistry allowlist; SCA results in CI

Detection and Hunting Playbook

Treat any unauthorized enablement of an LLM service, or any change to model invocation logging, as a critical security event. Those two signals arrive before the bill does. Volume alerts alone will miss the max_tokens=1 validation sweeps that come first.

AWS (Bedrock, via CloudTrail)

  • Abuse: InvokeModel, InvokeModelWithResponseStream, Converse from principals or regions with no history.
  • Spraying: spikes in ThrottlingException, ValidationException, ResourceNotFoundException.
  • Scoping: ListFoundationModels, ListInferenceProfiles, GetFoundationModelAvailability; unlock attempts via PutUseCaseForModelAccess and CreateFoundationModelAgreement.
  • Evasion: GetModelInvocationLoggingConfiguration, PutModelInvocationLoggingConfiguration, DeleteModelInvocationLoggingConfiguration by non-IaC principals.
  • Tooling: user agents such as aws-sdk-rust, aws-sdk-go-v2, or CLI tools that your workloads never use.

Azure (Microsoft.CognitiveServices)

  • Abuse: high volumes of POST requests to Completions or Chat Completions endpoints. This needs Diagnostic Logs enabled on the data plane.
  • New capacity: Microsoft.CognitiveServices/accounts/deployments/write.
  • Scoping: accounts/read and accounts/deployments/read by unusual identities.
  • Evasion: Microsoft.Insights/diagnosticSettings/read, write, or delete.

Google Cloud (aiplatform.googleapis.com)

  • Enablement: alert on ServiceUsage.EnableService for the agent platform.
  • Abuse: PredictionService.Predict, GenerateContent, StreamGenerateContent. These live in Data Access audit logs, which are off by default, so turn them on for model projects.
  • Scoping: ModelService.ListModels, EndpointService.ListEndpoints, PublisherModelService.ListPublisherModels.
  • Evasion: IAMPolicy.GetIamPolicy and log sink reads (ListSinks, GetSink) from unexpected principals.

At the model gateway (LiteLLM, Portkey, Kong AI, custom)

  • Requests with max_tokens of 1 to 5 or zero temperature from new source IPs or keys.
  • New virtual keys, key regeneration, or admin role changes, especially via /key/regenerate.
  • Per-key token rate that jumps more than 10x over its 7-day baseline.
  • Egress to known mixer infrastructure such as jet-night.com and newapi.pro, or to lookalike domains of your own hosts.

Cross-cutting identity hunts

  • New IAM users or service accounts with names that sound like billing or optimization tools.
  • Project-wide SSH keys added to instance metadata; startup script changes.
  • Service account key creation, or token creation for high-privilege service accounts.
  • Quota increase requests for GPU families you do not run.

If you run Google Security Operations, GTIG maps this activity to existing rules such as GCP Service Account Key Creation, GCE Project SSH Keys, AWS Create New Access Key, and Persistence via instance metadata startup scripts. Other SIEMs can implement the same logic as Sigma or KQL rules.

Hardening: Twelve Controls, Ranked by Payoff

If you do only three things this month, kill static model keys, cap spend per key, and block unapproved LLM service enablement. Those three break the attacker’s business model even when a credential leaks. The rest of the list hardens around them.

Tier 1: stop the bleeding (this week)

  1. Hard spend caps and per-model quotas. Set budgets per project and per gateway key, with alerts routed to security, not only finance. A cap turns a $1 million incident into a $5,000 one.
  2. Deny-by-default for LLM services. Use AWS SCPs, GCP Organization Policies, or Azure Policy to block enabling Bedrock, the agent platform, or Azure OpenAI outside approved projects. Block model access agreements the same way.
  3. Rotate and scope every model key. Inventory LLM API keys, revoke unused ones, and scope the rest by model, environment, and rate. A key for a cheap utility model should never reach a frontier model.

Tier 2: close the doors (this month)

  • Replace static cloud keys with workload identity. Service account keys and long-lived access keys were the dominant entry point. Federation removes the thing to steal.
  • Secret scanning with push protection across GitHub, GitLab, CI logs, container images, and frontend bundles. Rotate first, then rewrite history.
  • Phishing-resistant MFA and short-lived sessions for consoles, IdPs, and developer platforms, plus training on token-paste lures.
  • Turn on model invocation and data access logging in every model project, and alert on any change to it.

Tier 3: harden the AI layer (this quarter)

  • Treat the model gateway as a crown jewel. Put LiteLLM or equivalent in the asset register, patch CVE-2026-40217 now, store master keys in a vault, and alert on admin key creation.
  • Egress allowlisting for model workloads and agent runtimes, plus blocks on known mixer domains.
  • Sandbox agents. Run code-executing agents in isolated, process-level sandboxes with no ambient admin identity.
  • Approved model and dependency registry. Pull models only from vetted internal sources; run SCA on ML libraries.
  • Continuous exposure testing. Scan for open Ollama, vLLM, or gateway endpoints and simulate a validation sweep against your own keys to prove alerts fire.

Governance Crosswalk: Where LLMJacking Controls Live in Your Frameworks

You do not need a new framework for LLMJacking; you need existing controls scoped to model access. The crosswalk below shows where each control family already sits, so one piece of evidence can serve several audits.

Control familyISO/IEC 42001ISO/IEC 27001:2022 Annex ANIST AI RMF 1.0NIST CSF 2.0SOC 2 (TSC 2017)
Inventory of models, keys, gatewaysA.4.2 resource documentation; A.4.5 system and computing resources5.9 inventory of assetsGOVERN 1.6ID.AMCC6.1
Identity, keys, and MFAA.4.5; Clause 6.1 risk treatment5.15, 5.17, 8.2, 8.5MANAGE 2.4PR.AACC6.1, CC6.2
Approval to enable new models or servicesA.6.2.2 to A.6.2.5 lifecycle requirements and deployment8.9 configuration; 8.32 change managementMAP 1.1; GOVERN 1.4PR.PS-01CC8.1
Spend caps and quotas (denial-of-wallet)A.6.2.6 operation and monitoring8.6 capacity managementMEASURE 2.7; MANAGE 2.3PR.IR-04A1.1
Invocation logging and alertingA.6.2.8 event logs8.15 logging; 8.16 monitoringMEASURE 2.7; MANAGE 4.1DE.CMCC7.2
Gateway and ML supply chain patchingA.10 third-party and customer relationships5.19 to 5.23 supplier and cloud services; 8.8 vulnerabilitiesMAP 4.1; GOVERN 6.1GV.SC; ID.RACC7.1, CC9.2
AI incident responseClause 10 improvement; A.8 information for interested parties5.24 to 5.28 incident managementMANAGE 4.3RS.MACC7.3 to CC7.5

Two regulatory notes. First, under the EU AI Act, Article 15 requires high-risk AI systems to be resilient against attempts by unauthorized third parties to exploit vulnerabilities, which squarely covers credential and gateway abuse. Second, for U.S. financial institutions, an LLMJacking intrusion that touches customer data can trigger GLBA Safeguards Rule and state notification duties, so loop counsel in early.

Verify control numbers against the current version of each standard before citing them in an audit response; numbering shifts between editions.

Incident Response: The First 60 Minutes and the First 24 Hours

In an LLMJacking incident, every hour of hesitation is billed. Containment comes first, forensics second, because the attacker’s meter is running on your account.

First 60 minutes: stop the spend

  1. Apply a hard budget cap or quota of zero on the affected model services and gateway keys.
  2. Revoke the suspect LLM API keys and gateway virtual keys. Rotate first where production depends on them.
  3. Disable, do not delete, suspect IAM users, service accounts, and keys. Keep them for evidence.
  4. Block egress to known mixer domains and to any lookalike domains you find in gateway logs.
  5. Snapshot current IAM policy, logging configuration, and gateway config before anyone changes more.
  6. Open a case with your cloud provider’s support and abuse teams about the fraudulent charges.

First 24 hours: evict and scope

  1. Hunt for persistence: new identities, admin policy attachments, project-wide SSH keys, startup scripts, and GPU instances in unused regions.
  2. Find the entry point: leaked keys in Git history, CI logs, container images, or phished session tokens.
  3. Scope data exposure: cloned repositories, secret manager reads, data warehouse queries, and prompts or outputs routed through the gateway.
  4. Re-enable logging that was altered, and confirm data access logs cover every model project.
  5. Brief legal and compliance on notification duties, customer contracts, and cyber insurance terms.
  6. Record everything in your AI incident log; ISO/IEC 42001 and SOC 2 auditors will ask for it.

Afterward, run a short post-incident review that ends in specific control changes, owners, and dates, not just a lessons-learned paragraph.

My Perspective

LLMJacking is the clearest proof yet that AI risk is measured in dollars before it is measured in headlines. The industry has spent two years debating jailbreaks and hallucinations. Meanwhile, criminals found the simplest exploit of all: use someone else’s credentials, run someone else’s models, and send someone else the bill.

When I led ShareVault through ISO/IEC 42001 Stage 2 certification, and later wrote its MCP Governance Standard, the controls that held up under audit were never the clever ones. They were inventory, ownership, least privilege, logging, and evidence that those things worked. LLMJacking attacks exactly those basics. Financial data rooms are the hard mode of compliance for a reason: when the asset is money or customer data, the attacker shows up with a business plan.

Three things I would tell any CISO or founder this week:

  • Put AI spend on the risk register with a security owner. Denial-of-wallet is a security outcome, and a hard spending cap is the cheapest control you will ever deploy.
  • Count your model gateway as a crown jewel. If it holds master keys to every model you pay for, it deserves the same patching and monitoring as your identity provider.
  • Ask for evidence, not policy. Can you show an auditor the list of identities that can invoke a frontier model, and an alert that fired in testing? If not, you have a statement, not a control.

The good news is that nothing in the Mandiant report requires exotic tooling. It requires governance that reaches the model layer, which is exactly what ISO/IEC 42001 and the NIST AI RMF were built to do.

Work With DISC InfoSec

If you cannot answer “who can invoke our models, and what stops a $100,000 day?” in under a minute, let’s fix that. DISC InfoSec helps B2B SaaS and financial services teams put AI governance where attackers are actually operating.

  • Free AI Governance Readiness Assessment: a 30-minute review of your model inventory, key hygiene, spend controls, and logging.
  • AI Governance Quick-Start (7 to 10 days): an LLMJacking-focused control baseline mapped to ISO/IEC 42001, ISO/IEC 27001, and the NIST AI RMF, with evidence your auditors and customers will accept.
  • vCISO / vCAIO retainers: ongoing ownership of AI risk, model gateway governance, and audit readiness.

“DiscInfoSec” Deura, CISSP, CISM, ISO/IEC 42001 Lead Implementer, ISO/IEC 27001 Lead Implementer. Principal Consultant, DISC InfoSec. Led ShareVault to ISO/IEC 42001 certification on the first Stage 2 audit.

Book a call: calendly.com/hd-deurainfosec · info@deurainfosec.com · (707) 998-5164

Related DISC InfoSec posts

  • The Controls Are Still Being Written: Governing AI When the Technology Outruns the Audit
  • The Harness Is the Contract
  • US Banks Are Blocking Third-Party AI Agents from Customer Accounts
  • When Structure Pays (case study with Frontier Founder)

Sources

Publishing Notes

  • Title: LLMJacking: How Attackers Monetize Stolen Cloud AI Access
  • Meta description: LLMJacking drove $100K-a-day fraud in 2026. Learn the kill chain, LLM Mixer economy, detection queries, and ISO 42001 controls that stop denial-of-wallet.
  • Slug: /llmjacking-stolen-cloud-ai-access
  • Keywords: LLMJacking, LLM API key security, denial-of-wallet, AI governance, ISO 42001, model gateway security, LiteLLM CVE-2026-40217, Bedrock security
  • LinkedIn post: Mandiant just documented attackers running up $100,000 a day in AI bills on stolen cloud credentials. Some victims hit $1M before anyone noticed. They didn’t jailbreak anything. They used leaked keys, quietly tested them with one-token requests, switched on model services the victim never used, and resold the access through “LLM Mixers” for $60 a month. Three controls break this business model: no static model keys, hard spend caps per key, and deny-by-default for new LLM services. Full kill chain, detection queries for AWS, Azure, and GCP, and an ISO 42001 crosswalk in the post. #AIGovernance #AISecurity #ISO42001 #CloudSecurity #LLMJacking

Book a call: calendly.com/hd-deurainfosec · Email: info@deurainfosec.com · Phone: (707) 998-5164 · Web: deurainfosec.com

https://www.deurainfosec.com/disc-infosec-home/aims-iso42001-ai-governance/

Tags: AI Models, LLMJacking


Oct 16 2026

The Evidence Lifecycle: Which Organizational Events to Log for Liability — and How Long to Keep Them

Category: AI Log Retention,AI Logs,Log Management — disc7 @ 10:26 am

The Evidence Lifecycle: Which Organizational Events to Log for Liability — and How Long to Keep Them

Oct 16, 2026 · @disc infosec

Why logs are your liability defense

When an auditor, regulator, or plaintiff’s attorney asks “prove it,” your logs are the only answer that counts. Policies show intent. Logs show what actually happened, who did it, and when.

Most organizations log plenty of data and still lose the argument. They capture firewall noise for 30 days but can’t produce the board minute that approved an AI system, the access review from the quarter a contractor left, or the model version that made a disputed credit decision 18 months ago.

The fix is to stop thinking about logs as an IT setting and start thinking about them as an evidence lifecycle: identify the events that create legal or regulatory exposure, decide what proof each one needs, and keep that proof exactly as long as the exposure lasts — no shorter, and no longer.

This post gives you a method for finding those events, a lifecycle map for both the organization and its AI systems, what ISO/IEC 27001, ISO/IEC 42001, the EU AI Act, and the NIST AI RMF actually require, and a retention matrix you can adapt this week.

How to identify the key events: the four-question test

A “key event” is any moment that someone may later need you to prove. Not every log line qualifies. Run each candidate event through four questions; one “yes” makes it a key event.

  1. Does it grant, change, or remove authority? Board approvals, delegations, access grants, admin elevation, an AI agent receiving a new tool or permission.
  2. Does it change your risk posture? A new vendor, a new AI model in production, a material configuration change, an exception to policy, an accepted risk.
  3. Does it create an obligation to someone outside the company? A customer contract, a regulator notification clock, a consent captured from a data subject, a breach that starts a 72-hour timer.
  4. Could it be disputed later? An automated decision about a person, a termination, a pricing or credit outcome, a model output a customer relied on.

Then find the events where they actually live. You don’t need to invent them. They are already sitting in six places:

  • Legal and regulatory register — every law, contract clause, and standard you’re bound to implies events you must prove.
  • Risk register and AI risk assessments — every treated risk implies a control, and every control implies evidence.
  • AI system inventory — every system has a lifecycle; every lifecycle stage has a decision.
  • HR and identity systems — joiners, movers, leavers, and privileged roles.
  • Contracts and vendor register — onboarding, reassessment, termination, data return.
  • Incident and complaint history — what has already gone wrong tells you what will be asked about next.

The output of this exercise is an event catalog: event, owner, system of record, evidence produced, legal driver, and retention period. Everything else in this post fills in that catalog.

The organizational lifecycle map

Every stage of a company’s life produces events that a buyer, auditor, regulator, or court may later examine. Formation and exit happen once; change and crisis repeat many times, and each repetition creates a fresh evidence obligation.

The stages that bite hardest are the ones teams don’t plan for. During an acquisition, the buyer’s diligence team will ask for three years of access reviews and every AI impact assessment. During a wind-down, you still owe customers proof that their data was returned or destroyed, and that proof must outlive the company’s operating systems.

The AI system lifecycle: events that must leave a trail

Every AI system you build or buy runs a lifecycle inside the organization’s lifecycle, and each stage owes its own evidence. ISO/IEC 42001 A.6.2.8 sets the floor: event logs at least while the system is in use. The EU AI Act asks for logs across the system’s whole lifetime.

The operate stage writes most of the volume and most of the liability. It is where a customer disputes a decision, where an agent takes an action nobody approved, and where a regulator’s reporting clock starts. It is also the stage that loops: each retraining creates new versions, evaluations, and approvals that have to be traceable back to the decisions they produced.

The question to ask at every stage is simple: if this system harmed someone two years from now, could we show what it was, who approved it, what data shaped it, and what it actually did?

What the frameworks actually require

Only one of the four frameworks sets a hard retention clock for logs: the EU AI Act. The two ISO standards require you to define retention and prove you follow it. The NIST AI RMF expects you to be able to trace and reconstruct. Your retention schedule has to satisfy all four at once.

FrameworkWhat it requires you to log or keepRetention it setsStatus
ISO/IEC 27001:2022Cl. 7.5 documented information; A.8.15 logging; A.8.16 monitoring; A.8.17 clock synchronization; A.5.28 collection of evidence; A.5.33 protection of records; A.5.24–5.27 incident recordsNone fixed. A.5.31 and A.5.33 tie it to your legal, regulatory, and contractual requirementsCertifiable; 3-year certification cycle
ISO/IEC 42001:2023Cl. 7.5; A.6.2.8 AI system event logs; A.5.3 documented impact assessments; A.6.2.7 technical documentation; A.7.5 data provenance; Cl. 10.2 nonconformity recordsNone fixed. A.6.2.8 requires logging at least while the AI system is in use, with defined retentionCertifiable; 3-year certification cycle
EU AI Act (high-risk)Art. 12 automatic event logging across the system’s lifetime; Art. 18 documentation; Art. 72 post-market monitoring; Art. 73 serious incident reportingLogs: at least 6 months for providers (Art. 19) and deployers (Art. 26(6)), longer if other law requires. Technical documentation, QMS records, and declaration of conformity: 10 years after placing on the marketMandatory. Annex III systems from 2 Dec 2027; Annex I systems from 2 Aug 2028
NIST AI RMF 1.0GOVERN 1.6 AI system inventory; GOVERN 1.7 decommissioning; MEASURE 3 tracking of risks over time; MANAGE 4.1 post-deployment monitoring; MANAGE 4.3 incident tracking and communicationNone. Expects enough record to reconstruct decisions and outcomesVoluntary; the de facto US benchmark

Three points matter for liability.

The EU AI Act clock moved, but it didn’t stop. The AI Omnibus, Regulation (EU) 2026/1744, entered into force on 27 July 2026 and deferred the stand-alone high-risk obligations to 2 December 2027. The classification rules didn’t change, and Article 50 transparency duties largely still apply from August 2026. A high-risk system you deploy today will need 2027-grade logs, and logs can’t be created retroactively.

Six months is a floor, not a target. The Act’s six-month minimum yields to any longer period in Union or national law. A credit model’s decision log will usually be governed by the lending record rules and limitation periods around it, not by Article 26.

“Not specified” doesn’t mean “optional.” An ISO auditor will ask for your retention schedule, then sample it. A log you said you keep for 2 years and can’t produce at month 14 is a nonconformity. A log you keep for 10 years with no reason is a GDPR storage-limitation problem. Both standards reward a schedule that is written down, justified, and followed.

The retention matrix: what to keep and for how long

The rule behind every row: keep evidence as long as someone can still hold you to the event, plus a margin, and not a day longer. That means the longest of (a) the regulatory minimum, (b) the contractual commitment, (c) the limitation period for claims, and (d) one full ISO certification cycle so your auditor can sample it.

In our previous post, AI Log Retention: Why Every AI Log Doesn’t Deserve the Same Shelf Life, we tiered AI logs from Tier A (critical) to Tier E (minimal). This matrix places those tiers inside the wider organizational picture.

Event categoryKey eventsEvidence to keepRecommended retentionMain drivers
Corporate governanceFormation, bylaws, board and committee approvals, equity changes, AI policy adoption, risk appetiteSigned minutes, resolutions, cap table history, policy approval recordsPermanent (life of entity, then per dissolution rules)State corporate law; M&A due diligence; ISO 27001/42001 Cl. 5 leadership evidence
Finance and taxTransactions, audits, revenue recognitionLedgers, audit workpapers, approvals7 yearsIRS; SOX §802 for public companies
Contracts and customersSignature, amendments, SLA breaches, termination, data returnExecuted contracts, change history, notices, deletion certificatesContract end + 7 yearsLimitation periods; customer audit clauses
People (joiner, mover, leaver)Hire, screening, role change, privileged role grant, terminationHR records, screening results, acknowledgments, offboarding checklistsTermination + 4–7 years; Form I-9 per federal ruleFLSA; IRS; EEOC; ISO 27001 A.6.1, A.6.5
Identity and accessAccount creation, privilege elevation, access reviews, removalIAM audit logs, review sign-offs, break-glass records3 years (reviews); 1 year minimum for raw logsISO 27001 A.5.18, A.8.2, A.8.15; PCI DSS 10.5.1
Security monitoringAuthentication, admin actions, alerts, data egressSIEM events, alert triage notes12 months hot, archive to 3 yearsISO 27001 A.8.15–8.17; PCI DSS; cyber insurance terms
Change and configurationProduction changes, emergency changes, policy-as-code updatesTickets, approvals, diffs, rollback records3 yearsISO 27001 A.8.32; ISO 42001 A.6.2.5
Risk and complianceRisk assessments, risk acceptances, SoA versions, audit findings, management reviewsVersioned registers, signed acceptances, CAPA recordsSuperseded + 3 yearsISO 27001/42001 Cl. 6, 9, 10
Vendors and AI suppliersOnboarding, due diligence, reassessment, offboardingQuestionnaires, SOC 2/ISO reports, DPAs, exit evidenceRelationship end + 7 yearsISO 27001 A.5.19–5.22; ISO 42001 A.10; GDPR Art. 28
PrivacyConsent, DSARs, DPIAs, transfersConsent records, request logs, DPIA versionsConsent: processing period + limitation period; CCPA request records: 24 monthsGDPR Arts. 5, 7, 30, 35; CCPA regulations
Incidents and breachesDetection, triage, notification, closureTimeline, forensic evidence, notifications, lessons learnedClosure + 7 years; indefinite under legal holdISO 27001 A.5.24–5.28; state breach laws; EU AI Act Art. 73
AI governance recordsAI inventory entries, impact assessments, technical documentation, conformityVersioned AIIAs, model cards, declarations10 years after placing on the market or retirement (high-risk); retirement + 3 years otherwiseEU AI Act Art. 18; ISO 42001 A.5.3, A.6.2.7; NIST GOVERN 1.6
AI decisions (Tier A)Consequential outputs about people: credit, hiring, insurance, accessDecision record: input reference, model version, output, human reviewer, overrideAt least 6 months; in practice the governing record rule, often 3–7 yearsEU AI Act Arts. 12, 19, 26(6); sector lending and employment rules
AI operations (Tiers B–E)Agent tool calls, permission grants, retrieval, guardrail blocks, drift alertsMetadata-only event logs; prompt and response content minimized6 months to 3 years by tierISO 42001 A.6.2.6, A.6.2.8; NIST MANAGE 4.1
AI model and data provenanceTraining data sourcing, evaluation, bias testing, release, retraining, decommissionDataset lineage, eval reports, version registry, retirement recordLife of the model + 10 years (high-risk); + 3 years otherwiseISO 42001 A.6.2.4, A.7.5; NIST GOVERN 1.7

These periods are defensible starting points for a US-based B2B SaaS or financial services firm with EU exposure. They are not legal advice. Sector rules (for example, broker-dealer, HIPAA, or lending record rules) can lengthen any row, so have counsel confirm the final schedule.

Seven liability traps, including the new ones AI creates

A retention schedule fails in court for predictable reasons. Five are classic; two are new with AI.

1. Deleting under legal hold. Once litigation or an investigation is reasonably anticipated, every scheduled deletion of relevant records must stop. Automated lifecycle rules don’t know that. Build a hold flag that overrides deletion jobs, and log who set and released it.

2. Keeping too much. Retention beyond your stated purpose violates GDPR storage limitation and inflates discovery cost. Every extra year of raw prompts is another year of exposure in a breach or subpoena. Defensible deletion — scheduled, documented, and verified — is as much a control as retention.

3. Logs that can be edited aren’t evidence. ISO 27001 A.5.33 and A.8.15 require protection against falsification. Use write-once storage (for example, S3 Object Lock or Azure immutable blobs), hash chaining, and A.8.17 clock synchronization. Restrict log deletion rights to a role nobody uses day to day.

4. Logs held by someone else. If your LLM provider, agent platform, or SaaS vendor holds the logs, you have a retention promise you can’t keep. Put export rights, retention periods, and legal-hold cooperation into the contract, and test the export before you need it.

5. The oversight checkbox. A “reviewed by human” flag records the reviewer’s statement, not what they saw or changed. For Tier A decisions, log the model output, what the reviewer saw, the action they took, and the time spent. That is the difference between claiming oversight under EU AI Act Article 14 and proving it.

6. Log poisoning (new). Attackers now plant prompt-injection payloads in fields that end up in logs: user agents, file names, support tickets, chat messages. When an AI SOC assistant or summarizer later reads those logs, the payload runs. Treat log content as untrusted input to any AI tool, and never give a log-reading agent write or delete rights over the logs it reads.

7. Agents erasing their own trail (new). An over-permissioned agent with infrastructure access can change logging configuration, rotate logs, or delete them, by accident or under injection. Log every agent tool call and permission grant to a store the agent can’t reach. Alert on any change to logging configuration made by a non-human identity.

One more caution: AI logs leak. Prompts carry PII, secrets, and deal terms, which turns your log store into a high-value target. Default to metadata-only AI logs, keep content only where a Tier A decision needs it, and redact before storage, not after.

Your 90-day plan

You can go from scattered logs to an auditable evidence lifecycle in one quarter.

  1. Days 1–30: Find the events. Run the four-question test across your legal register, risk register, AI inventory, HR, vendor list, and incident history. Produce the event catalog with an owner and system of record for each event.
  2. Days 31–60: Set the clocks. Assign every catalog entry a retention period using the matrix above. Tier your AI logs A to E. Have counsel sign off, then publish the schedule as part of your records management standard under ISO 27001 and ISO 42001 Clause 7.5.
  3. Days 61–90: Make it provable. Configure retention in each system, add immutable storage and the legal-hold override, move agent logs out of agents’ reach, and add vendor export clauses. Then test it: pick five events from 14 months ago and try to produce the evidence in under an hour.

That last test is the one that matters. Controls are rarely why organizations fail audits or lose disputes; missing evidence is.

Need a hand?

DISC InfoSec helps B2B SaaS and financial services firms build evidence that holds up under ISO/IEC 27001, ISO/IEC 42001, the EU AI Act, and the NIST AI RMF. We led Virtual Data Room through ISO/IEC 42001 Stage 2 certification on the first attempt, including its AI log retention and records management standard.

Book a free 30-minute call at calendly.com/hd-deurainfosec, or email info@deurainfosec.com. Comment EVIDENCE on the LinkedIn post and we’ll send you the event catalog and retention matrix template.

Sources

Tags: AI logs, Logs for Liability


Sep 29 2026

The Security Risks Hiding in AI Agent Memory

The Security Risks Hiding in AI Agent Memory

Agent memory is the least-governed data store in most enterprises, and it is filling up with secrets. An agent that remembers can be taught. An agent that can be taught can be poisoned. And whatever it has learned sits somewhere, usually in plain text, usually outside any control you would recognize from your ISMS.

Last week I argued that the harness is the contract: every consequential path an agent can take should be declared, bounded, and leave evidence another party can verify. Memory is the part of the harness that breaks that model quietly. A tool call happens once and shows up in a log. A memory write persists, gets replayed in every future session, and can change behavior weeks after the input that caused it.

That is why a new Help Net Security interview with Vectorize CEO Chris Latimer deserves the attention of every CISO running agents in production. His headline advice is blunt: if you do one security check this quarter, make it agent memory. I agree, and I want to go further, into what that check should look like and how it maps to the frameworks your auditors already use.

What “agent memory” actually means

Agent memory is any state an agent writes during one run and reads back as trusted context in a later run. That last clause is the whole security problem. Retrieval-augmented generation reads from a corpus someone curated; memory reads from a corpus the agent itself wrote, often from inputs nobody reviewed.

Memory typeWhere it usually livesWhat piles up in itWho can write to it
Session / scratchpadContext window, temp filesTool outputs, pasted snippets, intermediate plansThe agent, every tool it calls
Long-term user memoryMarkdown files, local JSON, SaaS memory servicePreferences, project facts, credentials users pastedThe agent, on the user’s behalf
Vector memory storeEmbedded DB, managed vector serviceChunked documents, conversation summaries, embeddingsIngestion jobs, agents, sometimes other agents
Shared / team memoryShared server, team workspaceDecisions, runbooks, cross-user contextMany users and many agents
Skill, plugin, MCP stateExtension directories, MCP server storageConfig, cached tokens, instructionsThird-party code you installed

Notice the right-hand column. In a database you would never accept “anyone whose text the agent read” as the write-access policy. For most memory stores in production today, that is effectively the policy.

Four signals from the field

Latimer’s interview is short, but it lands four points that match what I see in agent design reviews.

  1. Secrets are migrating into memory. When he read through the memory banks of the coding agents he used, he found API keys, credentials, and sensitive documents that developers had fed in, and that the agents had promoted to long-term memory. The data your secure SDLC was built to protect now sits in plain text on workstations, in cloud memory services, and in markdown files.
  2. Extensions are the poisoning vector. He names plugins, skills, and MCP integrations as the likely entry points, because people install things that look useful without reading them. His attacker scenario targets first-time coders with a too-good-to-be-true plugin that quietly scans memory for credentials and ships them to an external endpoint.
  3. Provenance is the forensic question. After an incident, what you most need to know is where a memory came from: an MCP server, a tool response, or an insider. Better still is filtering hostile writes before they persist, which is the idea behind OWASP’s Agent Memory Guard.
  4. Access control is the gap vendors can’t close yet. Most products stop one user’s session from reading another user’s memories. Team memory and graduated access, the RBAC and ABAC patterns enterprises take for granted in databases and APIs, are mostly not there.

His quarterly audit prediction is the one to act on. He expects CISOs to find two things: no governance over which memory systems are in use, and a startling volume of keys, database passwords, and confidential business data sitting in those systems, ready to be exfiltrated.

That second finding is not an AI problem. It is a data-classification and secrets-management failure that AI has made faster and harder to see.

Six risks hiding in agent memory

Memory risk is durable risk. A prompt injection that lands in the context window dies with the session; one that lands in memory becomes a standing instruction.

1. Memory poisoning. Attacker-controlled text is written into memory and replayed as trusted context in future sessions. The entry point is rarely the chat box. It is a web page the agent summarized, a ticket it triaged, a tool response, or a plugin that writes directly to the store. The effect is delayed, so the incident and its cause show up weeks apart.

2. Secrets at rest in the wrong place. Every credential a developer pastes into a session is a candidate for promotion to long-term memory. Those stores rarely have encryption at rest, secret scanning, or retention limits. Your vault is hardened; the agent’s notes file next to it is not.

3. Cross-user and cross-tenant leakage. In multi-tenant products, the question is whether one customer’s memory can surface in another customer’s session. Tenant filters applied after retrieval can be talked around. They belong inside the vector query itself, enforced by the store, not the model.

4. Malicious extensions reading memory. A skill or MCP server runs with the agent’s access. If the agent can read its memory, so can the extension, and nothing stops it from sending what it finds to an external endpoint. This is supply-chain risk with a data-exfiltration payload.

5. Embedding and summary leakage. Teams treat embeddings as anonymized math. They are not; they can be inverted enough to leak source text. Summaries are worse, because they compress sensitive facts into short, retrievable sentences.

6. Unbounded retention. Memory stores grow without an owner, a retention schedule, or a deletion path. That turns a GDPR erasure request, a customer offboarding, or a legal hold into a question nobody can answer with confidence.

Where these risks sit in the threat frameworks

Every one of the six risks already has a home in the frameworks your security team uses. The work is connecting them to the memory store, which most threat models leave off the diagram.

Memory riskOWASP Agentic Top 10OWASP LLM Top 10 (2025)MITRE ATLAS
Memory poisoningASI06 Memory & Context Poisoning; ASI01 Agent Goal HijackLLM04 Data and Model PoisoningAI Agent Context Poisoning (AML.T0080); RAG Poisoning (AML.T0070)
Secrets at restASI03 Identity & Privilege AbuseLLM02 Sensitive Information DisclosureLLM Data Leakage (AML.T0057)
Cross-tenant leakageASI03 Identity & Privilege AbuseLLM08 Vector and Embedding WeaknessesLLM Data Leakage (AML.T0057)
Malicious extensionsASI04 Agentic Supply Chain Vulnerabilities; ASI02 Tool MisuseLLM03 Supply ChainAI Supply Chain Compromise (AML.T0010)
Embedding and summary leakageASI06 Memory & Context PoisoningLLM08 Vector and Embedding WeaknessesLLM Data Leakage (AML.T0057)
Unbounded retentionASI10 Rogue Agents (drift over time)LLM02 Sensitive Information DisclosureNot a technique; a governance gap

OWASP’s Agent Memory Guard is the reference implementation for ASI06. It sits between the agent and the store, screens every read and write, and maps each finding to allow, redact, quarantine, or block. In its published benchmark it caught 92.5% of 40 attack payloads with zero false positives, and its misses were API tokens slightly longer than its fixed-length patterns. Treat it as a strong first layer, not the whole defense.

The governance lens: memory is data, and data has owners

The fastest way to get memory under control is to stop treating it as an AI novelty. It is a data store. Your AIMS and ISMS already have controls for data stores; memory just hasn’t been put in scope.

FrameworkWhere agent memory landsWhat the auditor will ask for
ISO/IEC 42001A.7 Data for AI systems, especially A.7.5 data provenance; A.6.2.8 event logs; A.10.3 suppliersMemory inventory, provenance records per write, supplier assessments for memory vendors and MCP servers
ISO/IEC 27001:2022A.5.9 asset inventory, A.5.12 classification, A.8.12 data leakage prevention, A.5.33 protection of recordsMemory stores in the asset register, classified, with DLP and retention applied
NIST AI RMF 1.0MAP 4.1 third-party components, MEASURE 2.7 security and resilience, MANAGE 3.1 third-party monitoringEvidence that memory poisoning and leakage were tested and are monitored
EU AI ActArt. 10 data governance and Art. 15 robustness for high-risk systems; Art. 26 deployer obligationsProof that memory can’t silently degrade a high-risk system’s accuracy or robustness
GDPR / CCPAStorage limitation, right to erasure, deletion requestsA working deletion path that reaches memory, embeddings, and summaries

Having taken virtual data room organization through ISO 42001 Stage 2 on the first attempt, I can tell you what certification auditors reward: a complete inventory, named owners, and evidence that reviews actually happened. Agent memory needs exactly that, and in most organizations today it has none of it.

A control framework for agent memory: govern the lifecycle, not the model

Apply the harness test to memory: every write is a declared path, every store is bounded, and every read leaves evidence. That gives five control points across the memory lifecycle.

Lifecycle stageDeclaredBoundedVerifiable evidence
1. Admit (write)Allow-list of sources that may write to memory; extensions denied write by defaultSecret and PII scanning before persist; injection screening; size and growth limitsProvenance tag on every entry: source class, session, identity, timestamp
2. StoreEvery memory store in the asset register with an owner and classificationEncryption at rest; no plain-text markdown for anything above Internal; tenant partitioningAsset register entry; configuration evidence; SHA-256 baselines on protected keys
3. Retrieve (read)Read scope defined per user, team, and agent roleAccess filters enforced in the store’s query, not by the model; extensions get no read by defaultRead logs with requesting identity and entries returned
4. Retain and expireRetention schedule per memory classTTLs; deletion that reaches embeddings and summaries; legal-hold overrideDeletion job logs; erasure request test results
5. RespondIncident playbook covering memory poisoningQuarantine and point-in-time rollbackSnapshots; poisoning test results; post-incident provenance trace

Two rules do most of the work. Secrets never belong in memory: detect them at write time, block them, and rotate anything you find. No extension gets memory access it did not declare: a plugin that needs to read your agent’s memory should have to say so, and you should have to say yes.

Your 90-day plan: find it, bound it, prove it

Latimer’s informal audit is the right first step. Here is how I would turn it into a quarter of work that ends with evidence an auditor will accept.

Start with discovery, because you cannot bound what you have not found. Latimer’s prediction is that you will find unvetted memory tools on developer workstations and small shared servers, so scope the inventory to endpoints, not just production.

Five questions to ask any agent memory vendor

  1. Can you enforce access by team and role inside the store, or only by user session?
  2. Is every memory entry tagged with its source, and can I query by source after an incident?
  3. Do you scan for secrets and PII before a write persists, and what happens when you find one?
  4. When I delete a user, do their embeddings and summaries go too, and can you prove it?
  5. Can a third-party skill or MCP server read memory it did not request, and where is that logged?

If a vendor struggles with the first question, Latimer’s experience says you are not alone. Put the gap in your risk register and compensate with network isolation and aggressive retention until the product catches up.

The bottom line

Memory is what turns an agent from a tool into a colleague, and it is what turns a one-time injection into a standing compromise. The organizations that get this right will not have better models. They will have an inventory, an owner, a write policy, and a log, the same four things that have governed every other data store for twenty years.

If your agents remember, your governance has to remember too.

Not sure what your agents have been memorizing? DISC InfoSec runs a focused Agent Memory Risk Review: we inventory memory stores across endpoints and production, scan for exposed secrets, map findings to ISO 42001, the OWASP Agentic Top 10, and NIST AI RMF, and hand you a remediation plan you can take into your next audit. Book a free 30-minute call or email info@deurainfosec.com.

DISC InfoSec, ISO/IEC 42001 and 27001 Lead Implementer, CISSP, and CISM. We led VDR organization through ISO 42001 Stage 2 certification on the first attempt.


  • Meta title: The Security Risks Hiding in AI Agent Memory (and a 90-Day Fix)
  • Meta description: Agent memory is filling up with secrets and poisoned context. Six risks, their OWASP and ISO 42001 mappings, and a 90-day plan to govern it.
  • Primary keyword: AI agent memory security
  • Secondary: memory poisoning, OWASP ASI06, agent memory governance, ISO 42001 A.7.5, MCP security, Agent Memory Guard

Sources

Tags: AI Agent Memory


Sep 25 2026

AI Log Retention: Why Every AI Log Doesn’t Deserve the Same Shelf Life

Category: AI Log Retention,AI Logs — disc7 @ 2:29 pm

DISC INFOSEC  |  AI GOVERNANCE

AI Log Retention: Why Every AI Log Doesn’t Deserve the Same Shelf Life

Your AI logs are either your best evidence or your biggest liability. The retention period decides which.

Most teams I assess have exactly one AI log retention setting: whatever the vendor or the SIEM shipped with. Thirty days here. Forever there. Nobody chose it, and nobody can defend it to an auditor.

That worked when AI was a pilot. It does not work when AI redacts personal data in a deal room, answers customer questions from confidential files, or takes actions through agents. Controls are rarely why organizations fail an AI audit. Evidence is. And a log you deleted too early, or kept too long, is evidence working against you.

This post explains why AI logs need to be categorized by risk, what the EU AI Act, GDPR and ISO/IEC 42001 actually require, and gives you a generic five-tier retention schedule (Tier A = critical) you can adapt this week.

Why one retention period fails in both directions

A single retention period for all AI logs is wrong for almost every AI feature you run. It is either too short for the risky ones or too long for the harmless ones.

Keep everything too briefly, and you lose the ability to prove anything.

  • A customer finds a missed redaction eight months after the data room closed. Your redaction logs expired at 90 days. You cannot show what the model flagged, who approved it, or which model version ran.
  • A regulator asks you to reconstruct how an AI answer was produced. The retrieval and permission-check logs are gone.
  • For high-risk AI systems, the EU AI Act sets a floor of at least six months. Many vendor defaults sit below it.

Keep everything forever, and you create liability you did not need.

  • GDPR’s storage limitation principle says personal data is kept no longer than necessary. “We might need it someday” is not a purpose.
  • AI logs often carry prompts, pseudonymous user IDs, IP addresses and document references. Every extra year enlarges your breach blast radius.
  • Everything you keep is discoverable in litigation, and it costs money to store, search and secure.

The fix is not a better single number. It is a small set of numbers, each tied to how much harm a specific AI function can cause.

What the frameworks actually require

No framework hands you a retention table. Each one pushes from a different side, and your schedule has to satisfy all of them at once.

FrameworkWhat it requires for AI logsWhat it means for retention
EU AI Act (Reg. 2024/1689)Art. 12: high-risk systems must log events automatically so their operation can be traced. Art. 19 (providers) and Art. 26(6) (deployers): keep those logs at least six months, or longer if other law requires.Six months is the floor, not the target. Under the AI Omnibus timeline, Annex III high-risk obligations are set to apply from December 2027.
EU AI Act, Art. 18 and 73Technical documentation kept 10 years for high-risk systems; serious incidents reported to authorities.Incident-linked logs need a legal hold, not a timer.
GDPR (Reg. 2016/679)Art. 5(1)(c) data minimization; Art. 5(1)(e) storage limitation; Art. 5(2) accountability; Art. 17(3)(e) retention to defend legal claims; Art. 30 retention periods in records of processing.A ceiling as well as a floor. Every period needs a written purpose.
ISO/IEC 42001:2023Annex A control A.6.2.8 (recording of event logs); Clause 7.5 documented information; Clause 9.2 internal audit.An auditor will ask for your defined retention and evidence that deletion actually happens.
NIST AI RMF 1.0MEASURE and MANAGE functions expect traceability and incident response across the AI lifecycle.Retention must outlast your monitoring and incident review cycles.

Read together, the rule is simple: keep AI logs long enough to reconstruct and defend what the AI did, and no longer than that purpose requires. That is exactly why one number cannot work.

How to tier any AI log: four questions

Classify the AI function, not the log file. Every log that function produces inherits its tier. Score each function on four questions:

  1. Harm if wrong. If the output is incorrect, who gets hurt, and how badly? A mis-tagged folder is an annoyance. A missed redaction or a wrong credit decision is a breach or a rights violation.
  2. Reliance without review. Is the output used as-is, or does a human check it first? The less review, the higher the tier.
  3. Exposure. Can the function disclose personal data or confidential content, or change permissions, systems or money?
  4. Evidentiary value. Would you need this log to answer a regulator, defend a legal claim, or pass a customer’s due diligence?

Two or more “high” answers put a function in Tier A or B. Mostly “low” answers put it in Tier D or E. When in doubt, tier up; you can always justify shortening later with data.

The generic AI Log Categorization and Retention Schedule

Five tiers, from seven years down to six months. Periods run from the date of the log event and act as both the minimum and the default maximum.

TierTypical AI functionsWhy this tierKey log events (metadata only)RetentionPrimary basis
Tier A CriticalAI in decisions about people (credit, hiring, insurance, eligibility); privacy-protective AI (redaction, PII masking, DLP); agents that change systems, move money or send external messagesDirect harm to rights or data if wrong; outputs often relied on; primary evidence in breaches and legal claimsDecision or action taken; inputs referenced by ID; confidence scores; human approval, override or reversal; model, prompt and rule-set version; tool calls and their authorization7 yearsGDPR Art. 5(2), 17(3)(e), 22, 32–34, 82; EU AI Act Art. 12, 14, 19, 26(6); ISO 42001 A.6.2.8; claim limitation periods
Tier B HighCustomer-facing chatbots, RAG search and Q&A over confidential content, AI access-control decisionsCan surface content outside a user’s permissions; answers relied on; prompt-injection target; users interact with AI directlyQuery metadata; documents retrieved and permission-check result; cited sources; guardrail and injection detections; AI disclosure shown; feedback flags3 yearsEU AI Act Art. 12, 15, 50(1); GDPR Art. 5(1)(c), 25, 32; ISO 42001 A.6.2.6, A.6.2.8
Tier C ModerateGenerative content people rely on after review: translation, summarization, drafting of contracts or reportsErrors can mislead, but a human reviews and the source stays authoritativeJob ID; source and output hashes; languages or template; quality score; human edit or approval; model version2 yearsGDPR Art. 5(1)(e), 28, 32; EU AI Act Art. 50 transparency; ISO 42001 A.6.2.8
Tier D LowExtraction and enrichment feeding other systems: OCR, transcription, classification, entity taggingErrors mostly reduce quality downstream; no direct disclosureJob ID; document or file ID; page count; confidence; failures; engine version1 yearGDPR Art. 5(1)(c) and (e); EU AI Act six-month floor exceeded; ISO 42001 A.6.2.8
Tier E MinimalInternal productivity suggestions: auto-organize, tagging suggestions, autocomplete, performance telemetryHuman decides; no permission changes; lowest harm potentialSuggestion made; accepted or rejected; items affected; model version6 monthsEU AI Act Art. 19 / 26(6) baseline; GDPR storage limitation

Two things sit outside the tiers on purpose. AI configuration and model changes (enabling a feature, swapping a model, editing a system prompt or guardrail) are change records; keep them with your release records, typically five years. Raw prompt and output payloads captured for debugging are off by default, enabled per change request, and deleted within 30 days.

Six rules that make the schedule hold up in an audit

A table on its own is a policy. These rules turn it into evidence.

  1. Log metadata, not content. Record what happened, when, for whom and under which model. Do not store document text, OCR output, translations or full prompts in logs. Long retention is only defensible when the log is lean.
  2. Legal hold beats the timer. Any log tied to an AI incident, a personal data breach, litigation, a regulatory inquiry or a data subject request is frozen until released, then kept for the longer of its tier or the incident record.
  3. Dependencies inherit the higher tier. When OCR feeds redaction, the OCR job reference lives in the Tier A redaction log. Otherwise your Tier D deletion quietly breaks your Tier A evidence.
  4. Reclassify on change. A new model, a new provider or a new purpose triggers a re-tier before release. If a Tier E tool gains the power to change permissions, it is no longer Tier E.
  5. Put your vendors in scope. Your model provider may keep prompts and outputs on its own clock. Contract for no retention beyond processing and no training on customer content, and verify the settings at onboarding and every annual review.
  6. Prove deletion. Automate expiry, log the deletion job itself, and sample it in your internal audit. “We have a retention policy” fails; “here is last quarter’s deletion evidence” passes.

From the field: what a virtual data room taught us

Financial data rooms are the hard mode of compliance. When we took a Virtual Data Room organization through ISO/IEC 42001 certification and later rebuilt its Records Management Standard for AI, the same pattern showed up that I now see everywhere:

  • The existing retention table covered contracts, audits and training records. It said nothing about AI.
  • Five AI features (redaction, OCR, search, organize and translate) all shared one default log setting.
  • Redaction was clearly the highest-risk function, yet its logs had the same life as auto-organize suggestions.

The fix was the tiered approach above: redaction at seven years, AI search at three, translation at two, OCR at one, auto-organize at six months, with a metadata-only logging rule that fits a content-blind platform. The policy change took days. Configuring the SIEM to honor five retention periods is the real work, so start that conversation with engineering early.

Five steps to implement this quarter

  1. Inventory every AI function in production, including vendor features you switched on.
  2. Tier each one with the four questions and record the rationale.
  3. Write the schedule and the six rules into your records management standard, with an owner for AI logs.
  4. Configure log retention and automated deletion per tier in your SIEM and at each model provider.
  5. Audit it: sample one log per tier, confirm content minimization, and show deletion evidence in your next management review.

Get the AI Log Retention Kit

I’ve packaged everything in this post into a ready-to-edit AI Log Retention Kit:

  • The Tier A–E retention schedule as an editable Word table
  • Drop-in policy language for a records management standard (scope, roles, the six rules, legal hold)
  • The four-question tiering worksheet for your AI inventory
  • An auditor-ready evidence checklist mapped to the EU AI Act, GDPR and ISO/IEC 42001

Comment “RETENTION” below and I’ll send it to you. Prefer a second pair of eyes on your own AI features? Book a free 30-minute AI log retention review at calendly.com/hd-deurainfosec and we’ll tier your AI functions together.

Hugh “Disc” Deura is Principal Consultant at DISC InfoSec, an ISO/IEC 42001 Lead Implementer, CISSP and CISM, and led a Virtual Data Room organization to ISO 42001 certification on its first Stage 2 audit.

This post is general guidance, not legal advice. Sector rules (for example, financial services recordkeeping) and national law may require longer periods.

#AIGovernance #ISO42001 #EUAIAct #GDPR #AISecurity #RecordsManagement #Compliance

Tags: AI Logs retention