An AI agent that reads untrusted text and can call tools will, sooner or later, be fooled by that text. Better prompts reduce how often; they do not make it impossible. So agent security has two halves. First, test the agent the way an attacker would and find out what actually happens. Second, change the system so that a fooled model still cannot do serious harm. Orivia Technologies does both.

Step one: testing

Our AI agent security assessment plants attacks in the places your agent reads (emails, documents, web pages, tool results, other agents' messages, its own memory) and records which tools were called, with which arguments, and whether planted secrets left the system. It covers 19 attack scenarios across all ten categories of the OWASP Top 10 for Agentic Applications (2026), on a test environment you authorise in writing. That page describes the test in detail. This page is about what happens after it.

Step two: hardening

  • Least-privilege tools. Replace broad tools ("run SQL", "send any email") with narrow, typed ones that validate their own arguments: refund amounts within limits, recipients from an allowlist.
  • Limits enforced in code, not in the prompt. A rule in the system prompt is a suggestion to the model. A check in the tool is a rule. Anything that moves money, deletes data or contacts outsiders gets a code-level check.
  • Human approval that shows the truth. Approval requests built from the actual tool arguments, not from the model's summary, so a hidden recipient or amount cannot slip past the approver.
  • Closed exfiltration paths. No rendering of arbitrary markdown images or links, outbound requests limited to known hosts, and secrets kept out of the context window entirely.
  • Untrusted content marked as data. Retrieved documents, emails and tool results are separated from instructions and treated as data the agent reads, not orders it follows.
  • MCP server review. Tool descriptions checked for hidden instructions, servers and versions pinned, and an alert if a tool's description changes after approval.
  • Memory hygiene. What the agent may remember, who can write to that memory, and expiry for anything learned from untrusted input.
  • Budgets and logs. Step and spend limits per task, and a log of every tool call with its arguments, so an incident can be reconstructed.
  • Regression tests. Each confirmed attack becomes a test that runs before every release, so a model or prompt change cannot quietly reopen it.

How we build our own

In AssetChat, our early-access IT asset product, the language model only works out what a WhatsApp or web message is asking for. It never writes to the database. Fixed code makes every change after a role check and an explicit confirmation from the user. That is the core pattern of agent hardening: the model proposes, code decides. We are also building an authorization layer for AI agents, in development, so that agents hold no keys and every action is checked against policy. Design partners are welcome.

In scope and not in scope

In scope: agents and LLM features built on any major model provider or open-weight model, their tools, retrieval, memory, MCP servers and approval flows. Not in scope: guaranteeing that a model cannot be manipulated (no one can), testing production without written authorisation, or certifying the system. A clean retest is evidence, not proof, and we say so in every report.

Questions to ask about your own agent

  • If the model followed an instruction hidden in an email, what is the worst tool call it could make?
  • Is that limit in the prompt or in code?
  • Does the approver see the real arguments, or the model's description of them?
  • Where could data leave: links, images, outbound HTTP, email?

Testing is quoted at a fixed price based on the agents and tools in scope; hardening is quoted once we have the findings. For a deeper guide to the risks, read our OWASP Agentic Top 10 guide.