THE INDEPENDENT RECORD · AGENTIC AI AS A SERVICE AboutStandardsContact
GAASAGENTIC AI · AS A SERVICE
INDEPENDENT · SINCE 2026
UPDATED DAILY
NO HYPE · NO PAY-TO-PLAY
PER-TASK PRICING NOW STANDARD ● NEW BENCHMARK: 71% TASK COMPLETION ● ENTERPRISE PILOTS UP 4X ● RUNTIME FUNDING ACCELERATES ● "AGENTS ARE THE NEW SEATS" ● MARGINS UNDER PRESSURE ● THE INDEPENDENT RECORD ON GAAS
Trust & Safety

Agents With Credentials: The New Enterprise Attack Surface Nobody Budgeted For

When you buy an AI agent as a service, you're not just renting a worker. You're handing a piece of software a set of keys to your systems, then asking it to use those keys thousands of times a day on its own judgment. That credential-holding, tool-using software is now one of the largest and least-monitored attack surfaces in the enterprise. The agent itself rarely gets breached the way a server does. Instead, its credentials get borrowed, its permissions get over-scoped, and its instructions get hijacked. This piece breaks down why agent identities are different from both human users and traditional service accounts, where the real exposure lives, and what a defensible posture looks like before your security team learns the hard way.

By E. Marchetti · Jan 31, 2026 · 15 min read

Table of Contents

Why an Agent With Credentials Is a Different Animal

Security teams have spent two decades getting good at two kinds of identity. There are humans, who log in, get phished, forget passwords, and trip multi-factor prompts. And there are service accounts and API keys, which are static, predictable, and mostly do one narrow thing on a schedule. Agents fit neither mold, and that mismatch is the whole problem.

An agent holds credentials like a service account but behaves like a human, except faster, tireless, and without the instinct that says "this request feels off." Give a sales agent access to your CRM, your email, and a payment tool, and it will combine those capabilities in ways no static integration ever would. It reads a customer message, decides to issue a refund, looks up the account, and triggers the transaction. That chain of decisions is exactly what makes the agent useful, and exactly what makes its credentials dangerous. The blast radius of a single compromised key now scales with the agent's autonomy.

The non-human identity problem isn't new in name. Microsoft's own data has shown machine identities outnumbering human ones in enterprise environments by a wide margin for years, and credential sprawl was already a top breach vector. What's new is that the machine identity used to be dumb. It did what it was hardcoded to do. An agent's identity is wired to a reasoning loop that can be talked into things, which means the credential is only as safe as the agent's judgment under adversarial pressure. The Cloud Security Alliance has been blunt that non-human identities are now the dominant identity category most organizations fail to govern, and agents pour accelerant on that fire.

There's a second-order issue worth naming early. When you deploy agents from a GaaS vendor, you often don't even hold the credentials directly. The vendor's platform brokers access on your behalf, which means your attack surface now includes someone else's infrastructure, someone else's secrets handling, and someone else's incident response. That handoff deserves its own scrutiny, and it connects directly to the broader question of third-party agent risk that any serious buyer has to confront.

The Three Ways Agent Credentials Actually Get Abused

Forget the Hollywood version where an attacker "hacks the AI." In practice, credential abuse against agents falls into three buckets, and none of them require breaking the model.

Credential theft and over-scoped keys

The boring path is still the most common. An agent needs an API token to do its job. That token gets stored somewhere: an environment variable, a config file, a vault, a vendor's database. If any of those leak through a misconfigured bucket, a logging mistake, or a compromised dependency, the attacker now has whatever the agent had. And here's the kicker most teams miss: agent credentials are routinely over-provisioned because it's faster to grant broad access than to scope it tightly. A token that "just needs read access to one folder" gets full workspace permissions because the integration was easier that way. When it leaks, the attacker inherits the over-grant, not the intent. This is why least-privilege design for agents isn't a nice-to-have; it's the single highest-leverage control you have.

Instruction hijacking through the data the agent reads

This is the genuinely new attack class, and it's the one keeping CISOs up at night. An agent reads untrusted content as part of its normal work: a support ticket, a web page, an email, a PDF, a row in a database. Hidden inside that content is text crafted to look like an instruction. The agent, which can't reliably tell its operator's commands apart from data it ingested, follows the injected instruction using its real credentials. This is prompt injection, and when the malicious content rides in through a tool or document the agent was always going to read, it functions as a supply-chain attack. The agent didn't get hacked. It got socially engineered, and then it used its legitimate access to do the attacker's bidding. OWASP ranks prompt injection as the number-one risk for LLM applications precisely because it turns a trusted, credentialed actor into an insider threat without touching the credential itself.

The confused deputy with real keys

Closely related but distinct: an agent with high privilege gets tricked into using that privilege on behalf of someone who shouldn't have it. A user with read-only access asks the agent to "summarize the document, and while you're at it, update the status field." The agent, holding write credentials the user lacks, complies. The agent became a confused deputy, lending its authority to an unauthorized action. Multiply this across an agent that serves thousands of users with one shared, powerful identity, and you've built a privilege-escalation machine that's invisible to traditional access logs, because every action is correctly attributed to the agent, not the human who steered it.

Where the Exposure Hides in a GaaS Deployment

The reason this surface stays invisible is that it doesn't live in one place. It's smeared across the stack, and each layer is owned by a different team or vendor.

The credentials themselves live in secrets management, which at agent scale is its own discipline. A single agent might juggle a dozen tokens; a fleet might rotate thousands. The tools the agent calls each represent a doorway, and securing the agent without securing its tools is half a job. The agent's memory, where it stores context between runs, can hold sensitive data that quietly becomes a retention and leakage problem. And the connective tissue, increasingly the Model Context Protocol or similar agent-to-tool standards, carries its own known weaknesses that an attacker can probe.

Then there's the multi-vendor reality. Your GaaS provider runs the agent. The agent calls a third-party model API. That model provider has its own logging. Your data crosses all three. When something goes wrong, the forensic challenge of reconstructing what the agent did, with which credential, prompted by which input, is brutal, because the evidence is scattered across systems you don't fully control. This is why audit logging for agents is becoming a hard requirement rather than a feature, and why regulators are starting to ask GaaS vendors for it by name.

Mapping the New Attack Surface

It helps to think in terms of what an attacker would target, working backward from the credential.

The first target is the secret at rest: vaults, config, environment variables, and the vendor's storage. The second is the secret in transit: the agent-to-tool calls, the agent-to-agent messages, and the API traffic, all of which can be intercepted or replayed if not properly secured. The third, and most novel, is the agent's decision loop itself: the prompts, the retrieved documents, the tool outputs that feed back into the agent's reasoning, any of which can carry an injected instruction. The fourth is the human-to-agent boundary, where a legitimate user manipulates an over-privileged agent into a confused-deputy action.

What ties these together is a single uncomfortable truth: the agent's identity is a standing grant of authority that operates continuously, at machine speed, on inputs you don't control. A human employee with the same access goes home, gets suspicious, and can be called to explain a decision. An agent does none of that unless you build the guardrails in. Gartner has projected that a meaningful share of enterprise breaches will soon trace back to agent and machine-identity misuse, and the mechanism is exactly this standing, unattended authority.

What a Defensible Posture Looks Like

You don't fix this with a single product. You fix it with a layered posture that treats the agent as a privileged, semi-trusted insider, because that's what it is.

Start with identity. Every agent needs its own distinct, authenticated identity, not a borrowed human account and not a shared god-token across a fleet. If you can't answer "which specific agent did this, on whose behalf," you've already lost the audit. This is the foundation that authenticating non-human actors and role-based access control for agent fleets are built to provide.

Then scope hard. Give each agent the narrowest set of permissions that lets it do its job, and time-box or task-box them where possible. A refund agent should be able to issue refunds up to a ceiling, not move arbitrary money. Scoped, least-privilege permissions turn a catastrophic credential leak into a contained one.

Contain the blast radius. Sandbox the agent so a hijacked instruction can't reach beyond its lane, and design a kill switch you can actually pull when an agent goes sideways. The "agent rogue" scenario is overhyped as a sci-fi event and underbuilt as an operational reality; the mature move is to assume an agent will eventually do something wrong and engineer the emergency stop in advance.

Treat untrusted input as hostile. Anything the agent reads from outside, content, documents, web pages, tool outputs, should be handled as potentially adversarial. Separate the channel that carries trusted instructions from the channel that carries data, validate tool outputs, and never let retrieved content silently rewrite the agent's task. There's no perfect defense against prompt injection today, which is exactly why scoping and containment matter so much: they limit what a successful injection can accomplish.

Finally, log everything in a way a regulator and a forensic investigator could both use. Capture the inputs, the decisions, the tool calls, and the credential used, in a tamper-evident trail. When an agent acts without authorization, the incident playbook only works if the evidence exists. The SANS Institute's guidance on logging and monitoring for non-human and automated actors maps cleanly onto agents: if you can't reconstruct the action, you can't contain or explain it.

Buying Agents Without Inheriting Their Risk

Because most enterprises will buy agents rather than build them, a huge share of this risk transfers through procurement. The security questionnaire you use for SaaS doesn't cover it. You need to ask GaaS vendors specific things: How are our credentials stored and brokered? Can we scope agent permissions ourselves, or are they baked in? What does your audit log capture, and can we export it? How do you defend against prompt injection, and what's your incident disclosure norm when an agent misbehaves? Do you carry coverage for agent errors and omissions?

Vendors that have thought hard about this will have crisp answers and probably a SOC 2 report plus agent-specific controls. Vendors that haven't will wave at "enterprise-grade security" and change the subject. That difference is one of the cleaner signals of maturity in a market still long on demos and short on governance. The compliance-as-a-feature positioning some vendors are adopting isn't just marketing; for a credentialed agent, governance is the product.

Insights Most People Overlook

The credential is rarely the thing that gets breached. The judgment is. Most security tooling watches for stolen keys and anomalous logins. But the dominant agent attack doesn't steal the key at all, it convinces the legitimate key-holder to misuse it. Until monitoring shifts from "was this credential compromised" to "was this credentialed action manipulated," teams will keep looking in the wrong place.

Shared agent identities are a privilege-escalation engine hiding in plain sight. Companies deploy one powerful agent to serve thousands of users because it's efficient. But that single identity collapses every user's distinct permission level into one shared, maximal grant. The least-privileged user in your org can now, through the agent, reach things only the most-privileged user should. This is the confused-deputy problem industrialized, and almost nobody models it during procurement.

Agent memory is an unmonitored data store that nobody classified. Vaults get audited. Databases get classified. The blob of context an agent retains between runs gets neither, yet it can accumulate PII, secrets, and internal data, then leak it on the next prompt injection. Retention policy for agent memory is a control category most organizations haven't even named, let alone implemented.

Over-scoping happens at integration time, for convenience, and never gets walked back. The broad grant that made the proof-of-concept work on a Friday becomes the permanent production permission. There's no natural moment that forces a re-scope, so the over-grant calcifies. The fix is organizational, not technical: someone has to own periodic permission review for every agent, the way someone owns access reviews for humans.

"Secure the agent" is the wrong frame. Secure the agent's authority. The model is mostly not the weak point. The weak point is the standing set of permissions, secrets, and tool access wired to it. You could swap in a perfectly aligned, un-jailbreakable model tomorrow and still get burned by an over-scoped token and a confused-deputy request. The attack surface is the authority, not the intelligence.

Frequently Asked Questions

How is an AI agent's credential risk different from a normal service account? A service account does a fixed, predictable set of actions. An agent holds similar credentials but decides what to do at runtime based on inputs you don't control, including content that may contain hidden malicious instructions. That makes the credential's risk dynamic rather than static, and it means traditional service-account monitoring misses the most important failure mode.

Can prompt injection be fully prevented? Not with current technology. You can reduce it with input separation, output validation, and careful tool design, but no defense is airtight. That's precisely why least-privilege scoping, sandboxing, and kill switches matter: they limit the damage a successful injection can do, rather than betting everything on prevention.

Should every agent have its own identity, or can a fleet share one? Every agent should have a distinct, authenticated identity. Shared identities destroy your ability to attribute actions, collapse per-user permissions into one maximal grant, and make confused-deputy escalation trivial. Role-based access control for agent fleets exists to give you per-agent and per-role scoping without managing thousands of keys by hand.

Who is liable when a credentialed agent causes harm? That's an unsettled and contract-dependent question. Liability for costly agent mistakes is being negotiated through GaaS contracts, liability waivers, and an emerging insurance market, and it often hinges on whether a human accountable owner was designated for the agent. The practical takeaway: name an owner for every agent and read the vendor's liability terms before you deploy.

What should I demand from a GaaS vendor about credential handling? Ask how your credentials are stored and brokered, whether you can scope permissions yourself, what the audit logs capture and whether you can export them, how they defend against prompt injection, and what their breach-disclosure norms are. Pair that with a SOC 2 report and agent-specific controls. Vague "enterprise-grade" answers are a red flag.

Is the "rogue agent" scenario a real threat or hype? The autonomous, self-directed rogue AI is mostly hype today. The realistic threat is mundane: an over-scoped credential, a hijacked instruction, or a confused-deputy action causing real damage at machine speed. Build for the mundane failure and design the kill switch anyway, because operational maturity means assuming something will eventually go wrong.

Conclusion

The agent you bought to save time is also a credentialed, tool-using actor that operates continuously on inputs you don't fully control. That combination, autonomy plus standing authority plus untrusted input, is the new enterprise attack surface, and it doesn't show up cleanly on any of the maps security teams already use. The credential rarely gets breached in the dramatic sense. It gets over-scoped, borrowed through a confused-deputy request, or commandeered through a hidden instruction, all while every log faithfully records the agent doing exactly what it was permitted to do.

Getting this right means treating the agent as a privileged insider: a distinct identity, hard-scoped permissions, real containment, hostile-by-default handling of input, and audit trails an investigator could actually use. It also means pushing this scrutiny into procurement, because most of this risk arrives through vendors. In the wider GaaS trust-and-security conversation, credential exposure is the spine that connects identity, scoped permissions, prompt-injection defense, audit logging, and the accountability question of who owns each agent. Organizations that internalize that the attack surface is the agent's authority, not its intelligence, will be the ones whose agent programs scale without a headline-grade incident attached.

References

#non-human identity#gaas security

More in Trust & Safety