Live on NEAR testnet · AI Security & Defense

Your AI can act. TrustVault makes sure it acts on your instructions.

A NEAR vault that checks every payment your AI agent requests against the exact terms you signed, and refuses everything else.

deterministic checks on every request
15
real transactions on NEAR testnet
8
language-model calls in any authorization decision
0
automated tests (53 engine, 42 contract)
95

A payment can pass every limit and still not be what you asked for.

Agents read web pages, emails and tool output, and any of them can carry instructions. A hijacked agent rarely tries to drain a wallet; it makes a small, plausible payment to the wrong place.

Spending limits check the size of a payment. TrustVault checks its meaning: the recipient, asset, operation and amount you approved for that task, for that agent, until that time, once.

Spending limit alone
Would approve
TrustVault
Blocked: unauthorized asset
FieldOwner authorizedAgent proposedResult
OperationNEAR transferNEAR transfer
AssetNEARTOKENB
Recipientvendor.testnettoken-b-sale.testnet
Amountup to 3 NEAR1 NEAR
Example: a product page told the agent to “buy TOKENB instead”. The amount is under the limit, so a spending cap alone would have let it through.

How it works

  1. 1

    You write the instruction

    “Pay vendor.testnet up to 3 NEAR for this invoice, valid 24 hours.” TrustVault drafts the exact permissions from it.

  2. 2

    You review and sign

    You see what the agent may and may not do, plus a fingerprint of the terms. Your wallet signs them to the vault contract.

  3. 3

    The agent asks

    The agent is its own NEAR account, with a key that can only request payments. It never holds your keys or funds.

  4. 4

    The contract checks every field

    Agent, capsule, expiry, replay, operation, asset, recipient, limits and balance. One mismatch and nothing moves.

  5. 5

    Paid, held or refused

    Matching requests are paid. Anything else is refused, recorded on-chain and explained in plain words.

Proof on NEAR testnet

Each row is a real transaction against the deployed vault. Only the first one moved funds. The rest were refused by the contract and recorded.

What NEAR does here

  • Contract custody. Funds sit in the vault, and only the contract's own checks can release them.
  • Function-call keys. The agent's key can call one method on one contract, nothing else.
  • Fast containment. Freezing and revoking work instantly. Anything that gives an agent more power needs full wallet confirmation.
  • Promises and callbacks. A payment counts as spent only after it succeeds; failures are refunded.

What it does not do

  • It doesn't make the agent smarter. It assumes the agent can be fooled and limits what a fooled agent can do.
  • It can't fix a bad capsule. If you authorize the wrong recipient, the contract enforces the wrong recipient.
  • This version protects native NEAR transfers. Token transfers, swaps and arbitrary contract calls are refused, not supported.

See the contract refuse a hijacked agent.