CirvixAI-agent security

AI-Agent Security

AI-agent security is the practice of controlling and protecting AI agents that can take actions through tools, APIs, files, credentials, MCP servers, and other external systems. Cirvix provides runtime authorization for those actions, evaluating each operation against policy before it executes.

8 stagesper-action pipeline
4 verdictsallow / deny / hold / audit_only
Default denyfail closed
SHA-256hash-chained audit
Definition

What is AI-agent security?

A model answers questions. An agent causes consequences. That difference is the entire category.

An AI agent reads files, runs shell commands, calls APIs, queries databases, uses MCP tools, touches credentials, sends messages, modifies infrastructure, and triggers workflows — with your permissions, at machine speed. AI-agent security is what stands between that capability and the consequences: a control layer that decides, for every proposed action, whether the agent is authorized to cause it.

The core thesis: capability is not authority. A model being capable of executing an action does not mean the agent is authorized to cause that consequence. Frontier models keep crossing new capability thresholds, discovering novel vulnerabilities and chaining multi-step exploits autonomously. Static allowlists and prompt guardrails cannot keep up, because they evaluate text while the damage happens in tool calls. AI-agent security evaluates the tool calls.

Cirvix operates directly in the execution path: each proposed action is checked against policy before it runs, and the decision is recorded as hash-chained evidence. If the agent is compromised, tricked, or simply wrong, the boundary still holds.

Scope

Why traditional AI security is not enough.

AI security is the umbrella. AI-agent security is one category under it. Cirvix does not replace the others.

CategoryPrimary jobCirvix's relationship
Model securityProtect models and model infrastructureOut of scope
Prompt defensesReduce manipulation and injectionComplementary — Cirvix assumes they can fail
IAMManage human and service identity permissionsComplementary — Cirvix enforces per-action decisions, not identity
Network securityControl network trafficOut of scope — Cirvix is not a network firewall
AI-agent securityProtect agents and the actions they takeThis category
Runtime agent authorizationDecide whether a specific agent action may executeWhat Cirvix does

Anyone selling you a single product that "solves AI security" is selling the umbrella as if it were one problem. It isn't. Buy model security from model-security vendors, keep your IAM, and put runtime authorization in front of every agent action.

The boundary

Why agents create a new security boundary.

Every tool you give an agent is a permission. Most teams hand them out without a policy layer.

01

Agents execute with your credentials

A coding agent inherits cloud keys, SSH keys, SSO tokens, and repository access from whoever launched it — with no scoping, no least-privilege enforcement, and no expiration. One compromised agent is one compromised developer.

02

Agents chain tools into attacks

Read a file, exfiltrate it with curl, execute what comes back. Each step looks innocent; the chain is the attack. Per-tool permissions cannot see chains. A runtime boundary that watches sequences can.

03

Agents read untrusted content by design

Documents, emails, web pages, tool results, MCP tool descriptions — an agent's inputs are attacker-controlled far more often than a human's. Any of them can carry injected instructions the agent will follow.

04

Agents act at machine speed

Post-hoc detection arrives after the damage. A human review queue cannot keep up with thousands of tool calls per task. The decision has to happen before execution, in milliseconds, on every call.

Threats

Core AI-agent threats.

Stated plainly, with scope honesty: what Cirvix addresses, and what stays outside its boundary.

ThreatWhat happensCirvix scope
Prompt-induced tool abuseInjected content tricks the agent into attempting a harmful tool callAddressed — the resulting call is still evaluated and can be denied
Excessive agent permissionsAgent holds broader access than its task needsAddressed — policy scopes each action; default-deny refuses the rest
Credential exposureKeys and tokens leak into prompts, logs, or tool resultsAddressed — secret detection plus credential handles keep material out of agent context
Malicious MCP toolsA compromised tool server poisons descriptions or resultsAddressed — gateway enforcement per tool call (see MCP security)
Tool-result manipulationA result steers the agent toward an unsafe next actionAddressed — the next action is evaluated on its own merits
Unauthorized API accessAgent calls endpoints outside its mandateAddressed — unsanctioned calls are denied
Filesystem abuseReads of secrets, writes outside the workspaceAddressed — e.g. ~/.aws/credentials reads denied by default policy
Privilege escalationAgent reaches admin actions from a support-level grantAddressed — capability bounded by authorization set
Delegation abuseSub-agents inherit more authority than intendedAddressed — each action evaluated against the issuing agent's policy
SSRF via agent requestsAgent is steered into requesting internal endpointsPartially — policy can deny internal ranges; not a network firewall
Data exfiltrationSanctioned reads leave through unsanctioned channelsAddressed at the action layer — egress to unapproved destinations denied by policy
Runaway tool sequencesLoops burn cost and hammer servicesPartially — rate limiting and chain detection bound the blast radius
Model-level attacksWeight theft, training-data poisoning, model extractionOut of scope — model security territory

For the full statement of what is defended and what is not, read the threat model. It is deliberately blunt about the gaps.

Enforcement

Runtime enforcement, step by step.

Agent → tool/action request → eight stages → one verdict. Every call, before it runs.

1

Parse

The proposed action is parsed into a typed execution event: agent, action, resource, environment, origin.

2

Normalize

Equivalent requests are reduced to one canonical form, so policy cannot be dodged with encoding tricks or path variants.

3

Secret detection

The request is scanned for credential material before anything else touches it.

4

Risk classification

The action is assigned a risk level. Secrets and risk resolve before policy — a rule may test risk >= HIGH, so the value has to exist first.

5

Policy evaluation

Deterministic rules resolve to exactly one verdict. Design target: sub-millisecond-scale authorization latency per stage budget.

6

Approval check

Actions held for human review wait here. Nothing executes while held.

7

Sanitization

Approved actions are stripped of anything the agent should not have seen or passed on.

8

Audit event

The decision — allow, deny, hold, or observe — enters the hash-chained audit log. Unsanctioned payload data is discarded, not stored.

Try it live: the homepage demo evaluates this exact pipeline in your browser, and the interactive sandbox lets you change a rule and watch the verdict change. The engine behind both is documented in the policy engine and architecture pages.

Verdicts

Allow, deny, hold, audit_only.

Four verdicts, each with a precise meaning. One of them is widely misunderstood.

VerdictMeaning
allowThe action may execute. The decision and its reason are recorded.
denyThe action must not execute. Refused calls are not counted against the free daily quota.
holdThe action waits for human approval. Nothing executes while held.
audit_onlyThe action is observed and recorded for policy tuning. It does NOT authorize the action — audit_only is an observation mode, not a permission.
Posture

Default deny and fail closed.

Two properties that separate a boundary from a suggestion.

Default deny means anything not explicitly permitted is refused. There is no "probably fine" path. A new tool, a new MCP server, a new API endpoint is denied until policy covers it — which is exactly backwards from how most agent setups behave today, where everything is permitted until someone writes a blocklist.

Fail closed means the control plane refuses rather than waves through when it cannot decide safely. Over the daily decision quota, the call is denied rather than passed through unchecked. A security control that stops enforcing when a counter runs out is not a degraded product — it is an absent one.

MCP

MCP security is agent security's hardest surface.

The Model Context Protocol gives agents their tools — and every tool is a permission.

MCP servers hand agents filesystem access, shell execution, database queries, and HTTP requests behind friendly tool descriptions. Those descriptions can be poisoned. Those servers can be compromised. Broad-scope tools ("read any file", "run any command") turn one permission into all of them.

Cirvix sits between the agent and the MCP server as a policy gateway: which tools each agent may call, bounded arguments on broad tools, credential handles instead of raw secrets, and an audit record of every call. The full breakdown — tool permissions, malicious servers, least privilege, and the gateway setup — is on the MCP security page, with a hands-on path in the MCP guide and MCP demo.

Credentials

Agents should use credentials without seeing them.

Secret material is not unnecessarily exposed to the agent.

Cirvix issues credential handles: the agent references a handle, the control plane resolves it at execution time, and the raw secret never enters the agent's context — where it could leak into prompts, logs, tool results, or a poisoned MCP response. On the free tier, handles are ephemeral and do not survive a restart. The mechanism is part of the execution flow, and the retention rules are stated in the security model.

Evidence

Auditability, stated exactly.

Every decision leaves evidence. Here is what that evidence is — and what it isn't.

Each recorded decision is linked into a linear SHA-256 hash chain: every entry commits to the one before it, so tampering with history breaks the chain at exactly the edited point. An offline verifier replays the log with no network access.

Its properties, stated upfront: the chain is hash-linked and, since 0.1.3, optionally Ed25519-signed — each record's hash carries a signature, so a forged chain with every hash recomputed fails on the signature. There is no Merkle tree and no blockchain, and an unsigned chain still proves tampering is detectable. The honest limit: signing proves attribution to the key, not to a third party. The full mechanics are on the audit chain page.

The key distinction

Agent security vs prompt injection.

Read this twice. It is the most important paragraph on this site.

Cirvix does not claim to prevent prompt injection itself. It limits what a compromised or manipulated agent is authorized to do afterward.

Injection happens in text: a document, an email, a web page, a tool description tricks the model. No execution-layer product can stop a model from reading attacker-controlled text — that is the model's job, and its failure mode. What an execution layer can do is make sure the actions the tricked agent then attempts — read the SSH key, curl the exfil endpoint, run the payload — each hit a policy boundary and die there.

This is why the escape benchmark measures what it measures: not whether the agent can be fooled (assume it can), but whether the fooled agent can escape its authority. The published run data — 44 attempts, 44 blocked, methodology and per-attempt records in the repo — is reproducible rather than a marketing number.

Fit

Who needs AI-agent security?

If agents touch anything you would not hand to a stranger, you need it.

01

Enterprises deploying coding agents

Claude Code, Cursor, and similar assistants running against real repositories with real credentials. See the Claude Code guide and Cursor guide.

02

Teams using MCP

Any team wiring MCP servers into agents inherits every tool's blast radius. Start with MCP security.

03

AI SaaS companies and developer platforms

Your agents act on customer data with customer credentials. Runtime authorization plus an audit trail is the difference between a feature and a liability.

04

Internal AI automation and regulated environments

Autonomous workflows touching production systems need per-action decisions and exportable evidence — see solutions and the audit chain.

FAQ

AI-agent security, asked directly.

Short answers with no marketing padding.

01

What is AI-agent security?

Controlling and protecting AI agents that act through tools, APIs, files, credentials, and MCP servers — evaluating each operation against policy before it executes.

02

How is AI-agent security different from AI security?

AI security is the umbrella (model security, poisoning, privacy, theft). AI-agent security is the category for agents that act on the world. Cirvix works in that category, specifically runtime authorization.

03

What is an AI agent security platform?

Software that governs what agents may do at runtime — tool permissions, data boundaries, credential use, approvals — and records it. Cirvix is a self-hosted one.

04

Can AI agents be hacked through prompt injection?

Yes, through any untrusted content they read. The fix at the execution layer is not preventing the trick — it is denying the harmful tool calls the tricked agent attempts.

05

How do you secure MCP servers?

Gateway enforcement: scope tools per agent, bound broad tools, use credential handles, audit every call. Details on the MCP security page.

06

How do you control what an AI agent can do?

Intercept each proposed action and evaluate it against policy before execution, with allow / deny / hold / audit_only verdicts under default-deny.

07

What is runtime authorization for AI agents?

The per-action permit-or-deny decision on the execution path: parse, normalize, secret-detect, risk-classify, evaluate, approve, sanitize, audit.

08

Does Cirvix prevent prompt injection?

No. It limits what a manipulated agent is authorized to do afterward.

09

Does Cirvix replace IAM?

No. IAM manages identity permissions; Cirvix decides per-action execution. They compose.

10

Does Cirvix inspect agent tool calls?

Yes — every call crossing the control plane, before it runs, with the decision hash-chained into the audit log.

Start where you are

AI agents can be compromised.
Their permissions don't have to be.

Run the free local scan with no account, or put your first agent under policy in minutes.

Copied to clipboard