Your AI Agents Are Using Your Credentials

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

AI agents frequently lack their own identities and instead operate using static API keys, tokens, and credentials borrowed from humans or workloads, creating a governance blind spot outside enterprise identity provider (IdP) oversight. Gartner predicts Fortune 500 enterprises will run over 150,000 agents by 2028, up from fewer than 15 in 2025, and GitGuardian data shows AI-service credential leaks grew 81% year over year with 1.27 million exposed in 2025. Attacks like Nx s1ngularity and Shai-Hulud have already exploited this gap by harvesting and reusing credentials at scale. The recommended remediation sequence is discovery of where agent credentials live, attribution to an owner, honeytokens for observability, prevention via scanning tools like GitGuardian's AI Hooks and ggshield across coding environments (Claude Code, Cursor, VS Code, Codex), and migration to scoped, short-lived, agent-specific or delegated credentials.

10m read timeFrom blog.gitguardian.com
Post cover image
Table of contents
TL;DRThe agent identity spectrum has two well-lit endsHow the agent gray zone fills upAgent identity is a secrets problem before it's an identity problemShining a light on the AI agent gray zoneThe future of agent authentication

Questions this post answers

Why do AI agents create a security governance blind spot even when identity access reviews look clean?

Many AI agents don't have their own distinct identity, so they authenticate using API keys, tokens, or other credentials issued to a human or workload. When no enterprise identity provider mediates that exchange, the activity can be indistinguishable from the human or workload whose credential was borrowed, so it never surfaces in standard identity access reviews. Teams tracking secrets and identity risks around AI agents follow this kind of research on daily.dev.

How much did AI-service credential leaks grow year over year according to recent secrets sprawl research?

AI-service credential leaks grew 81% year over year, with 1.27 million exposed in one year according to GitGuardian's State of Secrets Sprawl report. Additionally, Claude Code co-authored commits leaked secrets at roughly twice the public GitHub baseline, and 24,008 unique secrets were found in public MCP config files. Developers weighing AI coding tool risks can keep tabs on secrets exposure trends via daily.dev.

What are the two governable models for AI agent identity, and what sits between them?

One end is the human-controlled session, where an employee drives the agent through single sign-on and stays accountable, governed by the identity provider. The other end is the single-purpose service account running in a sandboxed environment with no static credential to steal. Between them sits secure delegated identity, where both user and agent hold distinct identities backed by scoped, short-lived tokens. Security teams deciding how to architect agent access can track these identity patterns on daily.dev.

137 Impressions