Skip to content
Next Security

Security for AI-native products and agent platforms

Once a model can call tools, read customer documents and write to systems of record, prompt injection becomes an authorization problem. We map what each agent can reach, test the abuse paths, and verify the controls that limit the damage.

The situation

AI-native products put a language model between untrusted input and privileged actions. Retrieval pulls in documents anyone could have written, tool responses come back from third-party services, and MCP servers expose internal APIs to the agent. Current models cannot reliably separate instructions from data, so every tool an agent can call has to be safe to call with arguments an attacker chose.

The same teams usually build with AI coding assistants and agents in their own development workflow. That adds a second surface: generated code, generated dependencies, and agents with write access to repositories and CI.

What goes wrong

The failure modes we look for first in this sector. Each one becomes a test case against your system.

Indirect prompt injection
Instructions hidden in a retrieved document, web page, email or tool response steer the agent into calling a tool the user never asked for, such as forwarding data or editing a record.
Confused-deputy tool access
An MCP server or tool runs under a service account with broader rights than the end user. The agent becomes a way to reach data the user could not open directly.
Cross-tenant retrieval
A shared vector index is filtered by tenant in application code at query time. One missing filter returns another customer’s chunks into the context window.
Unsafe output handling
Model output is rendered as HTML, run as code, or passed into SQL or shell commands without the validation you would apply to user input.
Exfiltration through rendering
Markdown images or links in model output carry conversation data to an attacker’s server as soon as the client renders them.
Poisoned memory
Content written to long-term memory in one session changes the agent’s behavior in later sessions, with no record of where it came from.

How we work in this sector

MCP and agent threat model, then Abuse tests, then Control validation. Each stage feeds the next, and the same team carries the context through.

  1. 1

    MCP and agent threat model

    Map each agent’s inputs, tools, credentials and data stores. Mark where untrusted content enters and which actions need human approval. Reference OWASP LLM and agentic guidance and MITRE ATLAS techniques where they apply.

  2. 2

    Abuse tests

    Build test cases from that map: injected instructions in retrieved content and tool responses, tool calls with hostile arguments, tenant crossing in retrieval, exfiltration through rendered output. Run them against the real workflow.

  3. 3

    Control validation

    Verify the fixes hold: scoped tool credentials, per-user authorization enforced outside the model, output encoding, approval steps for high-impact actions, and logs that tie every action to a user and a prompt. Retest the same cases.

How testing is controlled

Testing an agent means feeding it hostile input, so scope and blast radius are agreed before anything runs.

  • Tests run against a non-production deployment wired to the same tools, or against production tools in read-only or sandbox mode. Actions with external effects, such as sending email, payments or deletes, are stubbed or need approval.
  • We agree which model provider accounts are used, so test prompts stay within your provider’s usage terms and do not pollute production logs or evaluation data.
  • Model behavior varies between runs, so results record reproducible conditions and how often an attack succeeded over repeated attempts. One failed attempt does not show that a control works.
  • Prompts, test documents and transcripts are handled as sensitive and returned or deleted at the end of the engagement.

Relevant services

Questions buyers in this sector ask

Is this the same as red-teaming the model?

Model red-teaming tests what a model will say. We test what your system does with the output: which tools the agent can call, under whose permissions, against which data, and what a successful injection can reach.

Can prompt injection be fixed?

Not completely with current models. The practical approach is to assume injection will sometimes succeed and limit what it can achieve: least-privilege tools, authorization checked outside the model, human approval for high-impact actions, and output handling that treats model text as untrusted.

Do you cover the AI coding agents our developers use?

Yes. We review the repository and CI permissions coding agents hold, the MCP servers they connect to, how generated dependencies are vetted, and where human review is required. The secure AI development workshop covers the same ground with your team.

Map what your agents can reach

Describe the agent, its tools and its data sources. We will come back with a test plan and the conditions it runs under.