Shield
How Shield screens every purchase with versioned block and review rules and a local prompt-injection classifier, and why it only flags while the policy engine decides.
The problem it removes
An agent reads web pages, merchant descriptions and tool output written by strangers. One sentence in that text can tell it to buy something else, from someone else. Abazi Shield looks at the same text and the same merchant before money moves, and flags what looks manipulated or unusual, so a person sees it or it never happens.
Who uses it
| Who | How |
|---|---|
| Owners and risk | Read risk events: which rule fired, on which purchase, with the classifier score. |
| Approvers | Decide purchases that Shield sent for review. |
| Merchants | Have their service descriptions scanned when they save them. |
How it works
Shield runs once per purchase, before the policy decision. It sees the merchant, its tier, domain and payout address, the amount, the last price paid for the service, the agent's recent purchase rate, and three texts: the merchant's 402 description, the Catalog description and the agent's stated purpose.
| Rule | Kind | Fires when |
|---|---|---|
| Block list | block | The merchant, payout address or domain is on a block list. |
| Payout address changed | block | The live 402 pays a different address than the Catalog. |
| Prompt injection | block | Any of the three texts scores at or above 0.90. |
| Price jump | review | The price is more than 50 percent above the last price paid for the service. |
| Velocity | review | The agent makes more than 5 purchases in a minute. |
| First purchase | review | The organization's first purchase at a KNOWN merchant, above the auto-approve limit. |
The classifier. Meta's Llama Prompt Guard 2 (22M parameters) runs on CPU inside Abazi. It flags; it never decides. Text is split into sentences and the highest score wins, so an injection hidden among normal sentences is not diluted. Until the model has loaded, a deterministic fallback scorer keeps the injection rule in force.
Rules are versioned and never edited in place. Each purchase records the rules version and the classifier version it was screened with.
Screens

Boundaries
| Flag | What the policy engine does |
|---|---|
| Any block flag | DENY, for example INJECTION_FLAG, MERCHANT_BLOCKED or PAYTO_CHANGED. An approval cannot undo it. |
| Any review flag | REQUIRE APPROVAL, for example PRICE_JUMP, VELOCITY or FIRST_PURCHASE. An approver can let it through. |
No model output is ever the decision. Shield's flags are inputs the policy engine reads at fixed steps of its evaluation order. A classifier can miss an injection or flag an honest sentence; the mandate's caps and budgets still apply either way.
API
The Risk operations in the API reference, each with its parameters, responses and code samples:
- GETList merchant rules
/v1/merchant-rules - POSTBlock merchant
/v1/merchants/{id}/block - DELUnblock merchant
/v1/merchants/{id}/block - POSTAlways allow merchant
/v1/merchants/{id}/allow - DELRemove merchant allow rule
/v1/merchants/{id}/allow - GETList risk events
/v1/risk - GETGet risk event
/v1/risk/{risk_id}
Next steps
Proof
How every payment gets a signed, hash-chained receipt anchored on Solana, and how anyone can run the four checks without an account.
Identity
How people sign with passkeys, agents hold scoped credentials, and merchants prove their payout address and domain to earn an on-chain attestation, and how a business applies for verification.