Solutions · Prompt Injection

Contain prompt injection by limiting what your agents can do.

Any agent that reads email, tickets, documents, or web pages can be persuaded to attempt almost anything, and no detection layer catches every attempt. Gradient works at the point where the agent acts. The agent holds no credentials to steal, it cannot act beyond its assigned scope regardless of what it is told, and every attempt is recorded to a named owner.

Nothing to exfiltrate Scope enforced per call Every attempt on the record
Zero
Credentials in the agent’s context, environment, or memory. An injected instruction to “print your keys” has nothing to print.
Every call
Checked against the task’s scope at the moment it’s made, not at session start, not at deploy time.
Minutes
Until the agent’s authority expires unless it is re-proven. Without renewal there is no access. Access fails closed.
The detection problem

Why filtering cannot be the whole answer

Prompt injection exists because instructions and data travel in the same channel. A model reading a document cannot reliably distinguish content to process from commands to follow. Filters and classifiers help at the margin, but they are probabilistic, and attackers iterate faster than detection models retrain.

Anyone selling prompt injection prevention is selling a detection rate. Whether you get breached depends less on whether persuasion gets through than on what the agent is able to do when it does.

The blast radius

Three things an injected agent can do, and how Gradient for Agents stops each one

If the agent holds credentials

It can leak them

API keys and tokens in the agent’s environment, context window, or config are one persuasive paragraph away from a paste site. The stolen key then works from anywhere, for anyone, until someone notices.

With Gradient

It holds none

Inference keys and target credentials live in the gateway and never enter the agent’s context. There is nothing in the agent’s reach to dump.

If permissions are standing

It can abuse them

An agent with broad, always-on access doesn’t need to steal anything. Its legitimate permissions are the weapon. Injected intent rides on authorized credentials, and nothing in the path asks whether this call serves the task.

With Gradient

Scope caps every call

Each request is authorized against the task’s scope at the moment it’s made. An agent scoped to one repository cannot touch another, regardless of what its prompt now says it wants. An out-of-scope call is denied outright, with no detection step involved.

If logging is optional

It can act quietly

When audit depends on the agent’s own logs or the target app’s, an injected agent’s actions blur into normal traffic. You learn what happened from the damage, not the record.

With Gradient

Every attempt is evidence

Allowed or denied, every call is logged in the authorization path itself: session identity, owner, scope, decision. The attempt fails, and it leaves a signed record of exactly what was tried.

How it works

Four controls that do the work.

01

Credential isolation

Inference keys and target credentials are held by the Gradient gateway, never provisioned into the agent. The agent asks for actions; the gateway attaches authority. A persuaded agent can ask for an action, but it has no credential to reveal.

02

Per-call scope enforcement

Scope is defined by the human owner for the task, and enforced on every individual call. Two agents with different scopes get different worlds, and no prompt, however clever, widens either one.

03

Fail-close, short-lived authority

Credentials live for minutes and renew only while the session keeps proving what it is. Pull renewal and the agent loses access to everything, inference and targets alike. A compromise cannot persist past the credential’s lifetime.

04

Per-call audit

Every inference call and every target call is recorded with session identity, owner identity, scope, decision, and measurement state. This is the gateway’s record of what was allowed, independent of anything the agent reports about itself.

It doesn’t even take an attacker

Reachable credentials get used, with or without an attacker.

Some of the most instructive agent incidents involved no injection at all. An agent, working on a legitimate prompt, found credentials that were reachable, in its environment, in a config, in a neighboring service, and used them, because they carried permissions for what the prompt seemed to want. Nobody attacked anything. The owner simply never scoped the agent for that action, and nothing in the path checked.

This is the underlying problem that prompt injection sits on top of. Any authority an agent can reach, it will eventually use. Gradient’s answer is the same for both cases. The agent is never scoped by what credentials happen to be within reach, only by what its owner granted for this task, enforced on every call.

What we don’t claim

What Gradient for Agents does, and what it does not.

Gradient does not detect prompt injection, filter hostile inputs, or make a model ignore instructions it shouldn’t follow. Any agent, including one running on Gradient, can still be persuaded to attempt the wrong thing.

What Gradient for Agents guarantees is architectural rather than probabilistic. There are no credentials in the agent to steal, no call outside scope succeeds, no authority outlives its clock, and every attempt, allowed or denied, is recorded. Detection layers can run on top of this.

The principle

Treat the agent’s judgment as untrusted, and build accordingly.

Treat the agent’s judgment as untrusted, the way you already treat a browser or a phished employee. Then put it in an environment where bad judgment has nothing to steal and no way to act outside its scope. That is what Gradient for Agents enforces on every call.

See it fail, live

Watch an injection attempt fail against a scoped agent

Book a session and we’ll attempt a live injection against a Gradient-scoped agent, then walk the audit trail it leaves behind.