TL;DR: Akeyless reports that a 2026 study of more than 17,000 AI agent skills found print and console statements caused 73.5% of the credential vulnerability issues. Agent credential leakage therefore has to be governed at runtime, not only at commit time.
Editorial analysis by NHI Mgmt Group, based on content published by Akeyless: “Your AI Agent Is Leaking Credentials Where You Aren’t Looking”.
By the numbers:
- A 2026 study of more than 17,000 AI agent skills found that print and console statements caused 73.5% of the credential vulnerability issues it identified.
Key questions
Q: Why do secret scanners miss some AI agent credential leaks?
A: Secret scanners miss some AI agent credential leaks because the secret may never exist as a static string in code or a committed file.
Q: What is the difference between brokered credentials and embedded secrets?
A: Brokered credentials are issued or passed through a control plane or broker at use time, while embedded secrets are stored directly inside code, images, prompts, configs, or memory.
Q: How do AI agents leak credentials at runtime?
A: AI agents leak credentials at runtime when they fetch, cache, log, echo, or pass secrets through prompts, tool calls, environment variables, memory, or error traces.
Practitioner guidance
- Move credential controls into runtime paths Map every place an agent can emit a secret, including logs, traces, prompts, memory stores and inter-agent messages, then apply redaction and suppression before data leaves the process boundary.
- Eliminate direct secret material from agent context Replace embedded keys with brokered, short-lived credentials so the agent can complete its task without holding a reusable secret in memory or configuration.
- Treat memory stores as credential-bearing systems Bring agent memory and vector stores into the same review and scanning scope as repositories and pipelines, because they can resurface secrets long after the task ends.
Bottom line: AI agent credential leakage is increasingly a runtime exposure problem, not just a repository hygiene problem.
Glossary terms: Runtime telemetry, Secretless Access, Agent Memory, Prompt Cache
What's in the full article
Akeyless's full research covers the operational detail this post intentionally leaves for the source:
- The six leak vectors table with practical examples of where credentials appear during agent execution
- The detection and response checklist with sequence-specific guidance for revocation, rotation and audit review
- The study's broader evidence on hardcoded secrets, AI-service secrets and live-secret validity
- The guidance on where to extend scanning beyond repositories into logs, prompts, memory and traces
👉 Read Akeyless's analysis of AI agent credential leakage and runtime exposure →
Explore further
View Full Forum → | NHI Foundation Course → | Our Services → | Read the full analysis →
Runtime output is the real credential boundary for AI agents: Repository scanning only covers what was committed, but the study shows that most credential issues arise after execution begins. Logs, traces, prompts and agent memory create exposure surfaces that conventional secret hygiene never inspected. Practitioners should treat runtime telemetry as part of the credential estate, not as a separate observability problem.
A few things that frame the scale:
- 70% of organisations grant AI systems more access than they would give a human employee performing the exact same job, according to the 2026 Infrastructure Identity Survey.
A question worth separating out:
Q: How should teams govern agent memory that may contain secrets?
A: Teams should govern agent memory as a controlled data store, because it can retain secrets, personal data, and privileged context beyond the task that created them. Classify what may be stored, redact secrets before persistence, apply retention limits, encrypt stored memory, and ensure access is restricted to the accountable agent owner and approved tools.
👉 Read our full editorial: AI agent credential leakage shifts from repos to runtime traces