AIToday
Large Language ModelsAI Safety & AlignmentITmedia AI+Published: Sep 16, 2026, 06:00 JST

Gartner: 90% sharing credentials with AI agents face trouble by 2028

Gartner: 90% sharing credentials with AI agents face trouble by 2028

3 Key Points

  1. What happened

    Gartner predicts that by 2028, 90% of organizations sharing human credentials with AI agents will treat the security and compliance consequences as major incidents, requiring them to redesign their approach.

  2. Why it matters

    The old habit of loading API keys from .env files into agents now turns those agents into insider risks, since a granted key works for whatever the agent was told to do, not just one task.

  3. What to watch

    The fix hinges on moving to a token-broker gateway that issues short-lived, scoped tokens per action, as tools like Infisical, HashiCorp Vault and Nango offer. Watch whether human-in-the-loop approval covers irreversible actions.

WHO IT HITSEngineering and security teams running self-hosted or agent-driven workflows are most exposed, since a leaked API key or token can let an agent act with the same permissions as a person. Compliance and risk officers also face the audit gap when no log records which agent used which credential.

Ask the AI about this article →

Summaries like this, in your inbox every morning.

Context & Analysis

The article's central shift is that AI agents now call tools, connect to data sources and complete tasks autonomously, which means every tool and data source they reach adds another API call. That multiplication of calls is what makes API keys and access tokens a growing security risk. One specific failure the article names is reading API keys from environment variables via .env files, a method that worked when tokens were used by hand but breaks down when an agent reaches many services on its own.

The article points to tool poisoning and indirect prompt injection as ways agents themselves become a threat surface. It frames the response in three layers: keep credentials secure, issue short-lived scoped tokens only when needed, and log which user accessed what and when. A secrets manager that simply returns a stored string is described as essentially the same as .env, while a token broker runs the OAuth flow on the server side and manages token issuance, updates and expiry.

Gartner's prediction that 90% of organizations sharing human credentials with AI agents will face major incidents by 2028 sets the stakes. The piece ends by arguing the real question is not whether API keys are stored safely, but whether an agent is limited to the time and scope of access it should have. That outcome appears to hinge on whether teams build a gateway layer with scoped tokens and audit logs, and on enforcing human approval for irreversible actions.

FAQ
What does Gartner predict about sharing credentials with AI agents?
Gartner predicts that by 2028, 90% of organizations that share human credentials with AI agents will treat the security and compliance consequences as major incidents, forcing a significant redesign.
Why is storing API keys in .env files no longer safe for AI agents?
Because an agent that reads a key from .env can reach many services on its own, so the key is no longer scoped to a single task. If the agent follows instructions from an attacker, it becomes like an insider with broad access.
What is the recommended alternative to passing credentials directly to agents?
Rather than letting agents touch REST APIs directly, the recommended pattern is an MCP server acting as a gateway that issues short-lived, scoped tokens per action, with human-in-the-loop approval for irreversible changes.

Get the latest Large Language Models news every morning

For example, today's edition would include:

  • Meta One launches globally from $2.99/moTop Companies AI · 2h ago
  • Perplexity's Portable Computer hits Windows with NvidiaTop Companies AI · 2h ago
  • NEC runs 10-day AI-only department test with agent 1on1sTop Companies AI · 2h ago

AI-summarized, only the topics you pick — one digest a day via Email, Slack, or Discord.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. Q&As are published on this page for other readers too.

Related Articles

Next articleMeta's MTIA 450 (Arke) chips enter testing, aimed at cutting AI costs