Skip to content
InvarSec

Product

Structure in. Certainty out.

Instead of asking a model whether a caller is behaving, InvarSec compiles your internal schemas and data structures into runtime boundaries — and checks every call, from an AI agent or a microservice, before it executes.

Six travertine blocks arranged in a precise grid on warm sand.

Architecture

Inside-out, by design.

Most AI safety layers sit outside the system and inspect language — and say nothing about the services calling your APIs. InvarSec inverts that: it starts from the structure you already have — tool registries, API schemas, database catalogs — and derives the set of actions that are allowed to happen.

The result is a gateway that sits in-line between your callers — AI agents and microservices alike — and the systems they touch. Each call is classified, checked against pinned state, and either dispatched or refused with a machine-readable isError frame an agent can learn from.

  1. 01

    Caller

    An AI agent or a service makes an MCP, REST/GraphQL or SQL call

  2. 02

    Classify

    Mapped to one of six capability classes

  3. 03

    Verify

    Trajectory, pinned state and payload checks

  4. 04

    Dispatch or refuse

    Executed, or returned as isError with a reason

Who it governs

Two kinds of callers. One set of rules.

AI agents

LLM agents calling tools

Agents that call MCP tools, APIs and databases on someone’s behalf.

Threats blocked

  • Confused-deputy exfiltration and destination swaps
  • Cross-server MCP tool shadowing and rug pulls
  • Static API keys sitting in context windows

Refused calls return an isError frame, so the agent can correct itself.

Microservices

Services calling services

Workers, APIs and jobs making REST/GraphQL and SQL calls to each other.

Threats blocked

  • TOCTOU double-spends and overdraws
  • PostgreSQL 40P01 deadlocks
  • Parameter tampering and parser-differential smuggling

Same gateway, same rules, same audit trail — whether or not a model is involved.

Module 01 · Trajectory DFA

Trajectory state machine & tool shield

Every call — from an agent or a service — maps to one of six capability classes. Illegal sequences never run.

Included from Community

InvarSec maps every MCP tool, REST endpoint, DOM selector and OS syscall into six discrete capability classes, then enforces strict non-interference transitions between them in CPU registers.

Threats blocked

  • Cross-server MCP tool shadowing
  • Post-registration schema mutation (“rug pulls”)
  • Transitions that break non-interference between classes

Module 02 · State pinning

Closed-loop read-to-write pinning

What a caller read is what it writes. Balances, recipients and versions are pinned.

Included from Pro

Upstream read responses are intercepted and verified entity balances, recipient destination hashes, sibling aliases and upstream concurrency version tokens are bound in volatile memory. Writes that drift from what was read are refused before dispatch.

Threats blocked

  • Parameter tampering
  • Blind-probe oracles
  • Destination and address substitution

Module 03 · SQL CTE compiler

Two-phase SQL concurrency compiler

Writes from agents and services become atomic, lock-ordered SQL. No double-spends, no deadlocks.

Included from Enterprise

At boot, InvarSec introspects your database DDL catalog. Single-row updates compile into atomic conditional writes; multi-row mutations compile into canonical, lexicographically sorted FOR UPDATE common table expressions.

Threats blocked

  • TOCTOU double-spends and overdraws
  • PostgreSQL 40P01 deadlocks

Module 04 · In-driver 10s JIT

Receiver-side, in-driver token verifier

No long-lived keys in a caller’s hands. Each call gets a single-use, ten-second token.

Included from Enterprise

InvarSec mints single-use, ten-second HMAC capability tokens and verifies them inside the upstream database driver wrapper, with a spent-nonce replay register. An agent or service that bypasses the gateway holds nothing that works.

Threats blocked

  • Gateway-bypass attacks
  • Static API keys in agent context windows
  • Token replay

Module 05 · Stream hardening

Split-TCP reassembly & lexical scanner

Payloads are reassembled and scanned before JSON is ever parsed.

Included from Pro

InvarSec reassembles HTTP payloads across fragmented TCP streams and executes a pre-deserialization multi-depth duplicate-key gate, so smuggled or ambiguous payloads are refused before any JSON is parsed.

Threats blocked

  • Parser-differential smuggling
  • Duplicate-key confusion
  • Fragmented-frame evasion

Module 06 · Compliance ledger

Merkle flight recorder with GDPR erasure

Every decision is recorded in a tamper-evident chain — and personal data can still be erased.

Included from Enterprise

Each evaluated directive is written to a fixed-capacity, in-memory O(1) bounded Merkle ledger, with rolling checkpoint roots anchored to WORM storage. GDPR Article 17 requests are met by destroying per-subject keys, without breaking audit-chain continuity.

Threats blocked

  • Unaccountable automated actions
  • Audit gaps after erasure requests

Benchmarks

Measured in nanoseconds.

Trajectory check, P50
125ns
Six-class state machine, evaluated in CPU registers
State & destination pinning, P99
167ns
Read-to-write binding before dispatch
Deadlocks
0
Lock-sorted SQL CTEs — no PostgreSQL 40P01
Inference tokens
$0
100% compiled Rust, no model in the loop

Python integration overhead is 0.79 µs at P50 through the native extension. Blocked calls are dropped in under 20 µs.

How we measure

Hardware
AWS c6i.2xlarge and Apple Silicon M-series.
Workload
A mixed 100-breach hostile payload corpus, plus MCP JSON-RPC traffic.
Sample size
50k to 570M requests per run.
Harness
run_ciso_eval.sh and a k6 load-test.js, available to customers or on request.

Deployment

Runs where your code runs.

Python

Native Rust core as a Python extension (_invarsec.so). Wrap an MCP server with one decorator.

Any language

A Rust stdio shim sits in front of MCP servers written in anything.

Kubernetes

Enterprise deploys as sidecars with unlimited nodes and sessions, plus pre-flight CI/CD certification.