Answer

Should AI agents hold their own credentials?

MING Labs' agents hold no credentials at all. A gateway holds every secret, and a rogue agent can do nothing the gateway has not authorised.

No. In MING Labs' production fleet, agents hold no credentials at all: no OAuth tokens, no API keys, no database credentials. A gateway layer holds every secret; agents request actions, the gateway authorises and executes them against a whitelisted tool surface declared in each agent's job description. The consequence is architectural, not procedural: an agent that goes rogue, or gets prompt-injected, can do nothing the gateway has not authorised. OWASP names excessive permissions as a root cause of agentic risk; this is the corresponding bright line.

Last updated: July 2026 | Next review: January 2027 Proprietary evidence Machine-readable record

No. In MING Labs’ production fleet, no agent holds an OAuth token, an API key, or a database credential. All secrets live in a gateway layer: agents request actions, the gateway authorises them against the agent’s declared tool surface and executes the approved ones itself.[S1] An agent that is compromised, confused, or simply wrong can change what it asks for. It cannot change what it is granted.

01The bright line, and why it is architectural

Most agent security guidance is procedural: scope the keys carefully, rotate them often, hope every agent’s configuration keeps up. The credential-free rule is different in kind. If the agent never holds a secret, there is no key to leak, no token for an injected instruction to exfiltrate, and no per-agent configuration to drift. A rogue agent can do nothing the gateway has not authorised, and that guarantee does not depend on the model behaving well. It is a policy turned into physics: not enforced on the agent, but absent from it.[S1]

The tool surface that the gateway enforces is declared per agent, in the agent’s job description, and versioned. A typical surface reads like an access grant for a new employee: read and draft in email, read in the knowledge base, read and write notes in the CRM. Sending to a new outbound domain escalates to a human. Anything not declared is denied.[S1]

02The risk is permissions, not model quality

OWASP’s Top 10 for LLM applications names the failure mode precisely. LLM06:2025, Excessive Agency, attributes agentic damage to three root causes: excessive functionality, excessive permissions, and excessive autonomy. Its recommended mitigations are to restrict extensions to the minimum necessary permissions, execute in the least-privileged context available, and require human approval before high-impact actions.[S2] None of those mitigations mention model quality, because the damage path does not run through it: a perfectly aligned model holding an over-scoped credential is one good prompt injection away from misusing it.

Where credentials liveBlast radius of a compromised agentWhat revocation takes
Inside each agentEverything every held key reachesFinding and rotating every copy, per agent
In a shared vault agents can readEverything the vault grants that agent, at injection timeRe-scoping vault policy, per agent
In a gateway; agents hold nothingThe agent’s declared tool surface, nothing elseOne change, one place, logged

03What this makes answerable

The pattern’s quiet payoff is auditability. Because every external action flows through one mediating layer, the question “what can this agent reach?” has a reproducible answer at any point in time, in writing, with a change history, and the question “what did it reach?” is a log query rather than a forensic project. Isolation completes the picture: each agent runs in its own container with no shared filesystem and no shared network namespace, and encryption keys are separated per region and rotated quarterly.[S1] Those answers are precisely what an agent’s audit trail has to contain, and this architecture produces them as a by-product of running.

04The claim, scoped

Scope

  • The rule: agents hold no production secrets. A gateway layer holds all credentials, authorises requests against each agent’s declared tool surface, and executes approved actions.
  • Where it runs: MING Labs’ own production fleet, per-agent container isolation, since January 2026.
  • Enforcement artefacts: per-agent tool surface declared and versioned in the agent’s job description; deny-by-default for undeclared actions; human escalation for new outbound destinations; quarterly key rotation.
  • Not claimed: a product, an industry standard, or a compliance certification. This is one firm’s operating architecture, published as a working reference.

Credential-free agents are one half of a larger discipline: giving an agent exactly the access its role requires is the same act as giving it a role at all. That is why the tool surface lives in the agent’s job description rather than in a config file, and why changing it follows the same approval path as changing the job. How that hiring discipline works, and why it beats deploying tools, is the subject of hire, don’t deploy ; what the whole operating model looks like is described under hybrid organisation .

Sources

[S1]
MING Labs operating record: fleet security architecture, gateway-mediated authentication, and per-agent tool surfacesMING Labs (internal) · 2026-07-01 Supports: no agent holds OAuth tokens, API keys, or database credentials; all outbound authentication is mediated by a gateway, each agent runs isolated in its own container, with no shared filesystem and no shared network namespace, each agent's tool surface is declared in its job description, versioned, and whitelisted; anything not declared is denied, encryption keys are separated per region and rotated quarterly
[S2]
LLM06:2025 Excessive Agency, OWASP Top 10 for LLM Applications 2025OWASP GenAI Security Project · 2024-11-18 Supports: excessive functionality, excessive permissions, and excessive autonomy named as the root causes of excessive agency, recommended mitigations include restricting extensions to minimum necessary permissions and requiring human approval for high-impact actions

Frequently asked questions

Isn't a single gateway a single point of failure?
It is a single point of control, and that is the point. Secrets have to live somewhere; the choice is between one hardened place with one audit trail, and a copy inside every agent. With a gateway there is exactly one place to audit access, revoke a token, rotate a key, or shut off a tool, and one log that answers what was reached and when. Distributing credentials into agents does not remove the failure point. It multiplies it by the size of the fleet and attaches each copy to a component that reads untrusted input all day.
How does an agent get access to a new tool?
By amendment, not by configuration. Each agent's tool surface is declared in its job description: exactly which systems, actions, and outbound destinations it can reach, with read and write scoped separately. Adding a tool is an explicit change to that declaration, approved by a human and version-controlled, the same way a human employee's system access changes when their role does. Anything an agent requests outside its declared surface is denied or escalated to a human by default.
What actually happens when an agent gets prompt-injected?
The injection changes what the agent asks for, not what it is granted. A successful injection can make an agent request an action outside its whitelist, and that request then dies at the gateway like any other undeclared action: denied, or escalated to a human. Combined with per-agent container isolation, the blast radius of a compromised agent is its own declared tool surface and nothing else. That is a property of the architecture, not of the model's alignment, which is why it holds on a bad model day too.
Does OWASP have a position on this?
Yes. LLM06:2025, Excessive Agency, names excessive functionality, excessive permissions, and excessive autonomy as the root causes of agentic damage, and its mitigations read like a specification of the gateway pattern: restrict extensions to the minimum necessary permissions, execute in the least-privileged context available, and require human approval for high-impact actions. Keeping agents credential-free with a mediating gateway is those recommendations implemented as architecture rather than as per-agent discipline.
All Insights