Agent autonomy
Testing a trust score for AI agents
Simulated 16 attacks on a trust score for AI agents.
What the trust score is
Knowing who an agent is doesn't tell you whether to trust it to act for you. The trust score, designed at Cabana Labs, is built from two things: credentials the agent can prove it controls, and ratings from the services it worked for, given after each task. Credentials count for more when they cost something to get and carry history. The score is computed on a confidential blockchain (Oasis Sapphire), so anyone can check it without seeing the data behind it.
The problem
In a prototype agent marketplace built on the trust score, a person posting a task sets the trust an agent needs to apply. That only works if fake and misbehaving agents can't game the score, and if the score's settings are right before they're fixed in a contract that can't be changed.
How it differs from other reputation systems
- It rates results, not process. Platforms that host agents and watch them work can only score the agents inside them, and they measure how the work was done. This one scores any agent from ratings given afterward: did the result match what was promised?
- Trust is backed by something to lose. It doesn't try to detect fake accounts. A high score needs credentials that are scarce and costly to replace, and misbehaving damages them. The attack tests below check whether fake or misbehaving agents can reach a high score anyway.
What I built
A simulation of the whole system. Scripted actors play honest agents, attesters (parties that vouch for agents), apps that rate agents after each task, and attackers. It runs two kinds of tests:
- Attacks: 16, from swarms of fake agents to attesters gone bad, agents that misbehave some of the time, and actors who exploit, then start over under a new persona.
- Parameter sweeps: 13, each changing one or two settings and measuring the gap between honest and bad actors.
Attack scenarios run 2,000 steps; sweeps repeat each setting 5 to 30 times. Every result records its setup, a command that regenerates it, and any change it made to the spec.
Watch an attack
Five of the 16 attacks, re-run with each agent's score recorded every 50 steps.
How to read it. The simulation runs honest agents next to attackers for 2,000 steps. In each step, agents do tasks for apps, apps rate them, and every agent's trust score updates.
- Each dot is one agent. Its position from left to right is its trust score.
- The top row is honest agents (filled dots); the bottom row is attackers (orange rings). The bar in each row is that row's average.
- The run pauses at each event to say what changed. Click an event to jump to it.
What the attacks showed
Scores are averages, attacker against honest agent.
- Fake agents, in seven scenarios, ended with 4–12% of an honest score.
- Building trust and then defrauding, with or without a new persona: 38–45% of an honest score.
- Starting over doesn't wipe the record: a new persona keeps the account's history, so the score comes back only through good behavior. Two attacks that exploited, then started over and behaved well, ended level with honest agents: 0.680 against 0.682, and 0.70 against 0.71 for one that first built reputation with a bad attester and lenient raters.
What the sweeps showed
The sweeps found four of the 13 settings that never took effect, before any were fixed in a contract: attester reputation reached about 0.93 within 50 steps, so settings that switch on below a reputation threshold never came into play. They may still matter at a cold start, when ratings are sparse. Three of the settings that did matter:
What a sweep is. The same scenario, run many times, changing one setting between runs, to see what that setting does before it's fixed in a contract.
- Each card is one sweep. Left to right is the setting, across the range tested; up is the result it's meant to move. Every chart starts at zero.
- A dashed line marks the value the spec uses, where there is one. Hover or tap a point for its numbers.
Limits
- The attackers follow fixed strategies. Nothing tests one that adapts to the score.
- Honest behavior is an assumption: honest actors behave well on 70–100% of their actions.
- Credentials are generic: the simulation has one stronger and one weaker kind, not the kinds agents would use.
Status
A prototype at Cabana Labs, a three-founder studio. Simulation only; no deployment or users.