SecurityTechInsider AI security & governance
EN/ NL
Risk

Still-valid credentials found in AI training code

A Cloud Security Alliance briefing reports 543,699 still-valid credentials in AI training data. Learn what this means for secrets management beyond the vault.

10 October 2026 4 min
Illustration for this article: Still-valid credentials found in AI training code. A dense bundle of unbranded patch cables, sharp at one connector and falling out of focus behind.
Credentials exposed in training data require detection and revocation outside the vault to remain effective. Image: SecurityTechInsider — original editorial illustration

You must now assume that credentials exposed in training data remain valid indefinitely unless actively revoked, and design your secrets management around detection and emergency revocation outside the vault, not storage alone.

The prompt is an analysis of 10 October 2026 of credentials discovered in AI training datasets, which argues that the assembly of training corpora creates an additional discovery channel for secrets already present in public code. The analysis examined a large corpus of public repositories gathered for AI model training and found over half a million credentials that remained valid at the time of testing. In our assessment, this finding shifts the practical burden from vault management to detection and revocation across every place a secret can be copied, cached or re-exposed—a surface that expands significantly when AI agents gain access to tools, logs and external systems.

What changes when training data becomes a secrets exposure vector?

Secrets management has traditionally centred on the vault: storing credentials securely, rotating them on schedule, and controlling access to them. That model assumes secrets live where you put them. Training data collection breaks that assumption. When a corpus of public code is assembled for model training, every secret already present in that code becomes discoverable through a new channel. A credential that was exposed months or years earlier, forgotten by its original author, and never revoked can be found again—not through the original leak, but through the training dataset itself. The exposure does not disappear when you rotate the secret in your vault if a copy remains in the training corpus.

Which failure modes now require separate controls?

  • Credentials in training corpora — secrets copied into public repositories and then ingested into datasets remain valid and discoverable indefinitely unless actively revoked.
  • Agent-mediated exfiltration — agentic workflows can expose credentials via tool caches, configuration files, terminal history and agent output itself.
  • Unrevoked leaked secrets — credentials confirmed as valid in public code often remain unrevoked for years, creating a persistent attack surface.
  • Secrets outside the vault — copies of credentials in logs, model caches and code repositories are not protected by secrets managers and require separate detection.
  • Overly broad agent permissions — agents with access to private data, untrusted content and external communication create channels for unauthorised secret exfiltration.

What concrete controls must you be able to demonstrate?

  1. Scan for secrets beyond the vault — implement continuous detection in code repositories, logs, model caches and training datasets, separate from secrets manager monitoring.
  2. Assign separate identities to production agents — each agent should operate under its own credential set with bounded permissions and short-lived tokens.
  3. Establish revocation authority and timeline — define who is authorised to revoke a leaked credential, how quickly they must act, and what evidence of remediation must be retained.
  4. Limit agent egress and tool access — restrict which external systems, APIs and data sources an agent can reach, and audit all connections at runtime.
  5. Document detection and response ownership — assign clear responsibility for monitoring, verification and emergency revocation across all exposure channels, not just the vault.

How do you govern an AI agent as a privileged identity?

When an agent has access to systems, data or external communication, it functions as a privileged account. The controls that apply to human privileged access—separate identity, short-lived credentials, bounded scope, audit logging and emergency stop capability—must apply to the agent as well. The exact configuration depends on the agent's risk profile: an agent that reads internal documents requires different constraints than one that can execute code or call external APIs. What matters is that the constraints are enforced at runtime, not stated in a prompt. Instructions do not form a reliable boundary.

What can tooling carry and what remains your responsibility?

Secrets scanning tools can find credentials in code, logs and datasets. Secrets managers can rotate credentials on schedule. But no tool can decide whether a leaked credential should be revoked immediately or whether the exposure is acceptable in context. No tool can determine which agent should have which permissions or whether an agent's behaviour at runtime matches its intended purpose. Those decisions require human judgement informed by your organisation's risk tolerance, the sensitivity of the data the agent touches, and the consequences of compromise. Tooling surfaces the exposure; you decide what to do about it and who has authority to act.

Sources: This article draws on reporting and guidance from Cloud Security Alliance, Google Cloud, Mandiant, OWASP GenAI Security Project and GitGuardian.

Tobias Lindqvist

Written by

Tobias Lindqvist

Adversarial machine learning and the security properties of retrieval systems.