Skip to content
CERQAVAJoin waitlist

Security model

How CERQAVA judges a transaction before it’s signed

A scan answers three separate questions: did it finish, what did each check manage to look at, and what did the checks find. This page explains each one, the evidence behind a finding, and the cases where the honest answer is “unknown”.

In developmentNo public API yet

What gets checked

CERQAVA analyzes a request before anyone signs it. There are two kinds:

  • An unsigned EVM transaction: the chain, sender, target, value and calldata, exactly as the wallet is about to sign them.
  • A signing request: EIP-712 typed data (eth_signTypedData_v4), or a message for personal_sign or eth_sign. Many drains need no transaction from the victim at all. A signed permit or marketplace order is enough, and someone else submits it.

The client can also say which site made the request. That origin is treated as an unverified claim: CERQAVA never fetches it, and only compares it with what it already knows.

CERQAVA never holds keys, never signs and never broadcasts. It reads a request and returns a report. The decision stays with the wallet and the person using it.

Scope today: Ethereum mainnet. Requests for other chains are refused outright, not analyzed with assumptions borrowed from Ethereum, and transactions that deploy a contract aren’t analyzed yet.

Four analyses, kept apart

Each analysis has its own status, deadline and version, so a report can say exactly which ones ran and how far they got. Rules then turn their output into findings.

Decoding: what the calldata asks for

Calldata is read against known function signatures. Protocol calls are decoded only at deployments that have been reviewed. The result is the transaction’s intent: an approval of this spender for this amount, or a swap that pays at most one amount and receives at least another. Nothing has run yet. A function that isn’t recognized stays unknown, and is never guessed from its name. EVM transaction decoding lists what’s covered.

Reputation: who’s on the other side

The addresses and site involved are looked up in threat-intelligence sources and in decisions made by CERQAVA’s own reviewers. That means the target contract, the spender an approval names, the recipients of a transfer and the origin. Confirmed threats are kept apart from unconfirmed reports: an allegation can raise a warning, never a dangerous verdict on its own. When sources disagree about an address, no finding is made from it, and the scan can’t come back clear.

Simulation: what execution would do

On request, the transaction is executed against a recent block without being sent. What that shows depends on what the node behind it supports. It can show only whether the transaction would revert, or it can also show every asset the transaction would move and every approval it would change, including approvals the calldata doesn’t show, such as one inside a multicall. A simulation is a prediction at one known state, and it’s labelled with that state: the block number and hash, how the block was pinned, and which node ran it. Counterparties that only simulation reveals, such as a contract forwarding funds onward, are looked up in reputation too.

Contract context: what a contract claims to be

Some questions can’t be answered from calldata. approve(address,uint256) is the same call on an ERC-20 token, where the number is an allowance, and on an ERC-721 collection, where it’s a token ID. When it matters, CERQAVA asks the contract over ERC-165. For a protocol behind an upgradeable proxy, it reads which implementation the proxy runs now and compares it with the one that was reviewed. Recognizing a function doesn’t prove the contract still does what it did when it was reviewed.

Rules: from evidence to findings

Versioned rules turn what the analyses produced into findings. Each finding has a category: a known threat, a permission exposure, a suspicious indicator, a contextual warning, or a coverage gap. The verdict is derived from the findings and from coverage, as explained below.

Evidence behind a finding

A finding is never just a label. Each one carries:

  • the rule that raised it and that rule’s version, plus the ruleset and analyzer versions of the whole report;
  • its category and severity;
  • structured evidence: the addresses, amounts and fields it’s about, taken from the request or the simulation;
  • for reputation findings, every source that counted: its classification, whether a person reviewed it, when the indicator was first and last seen, and whether the data is stale;
  • a recommended action.

Text that comes from the chain is untrusted, because whoever deployed the contract chose it. That covers revert reasons, the domain names in typed data and error messages from the node. It appears only in structured fields, sanitized, and never in a summary or title that a wallet might display as it is.

Verdicts

Every report ends in one of four verdicts. There’s deliberately no safe field anywhere in a report.

VerdictMeaning
no_known_risk_detectedNo risk evidence matched in the checks that completed, and every check that matters for this request did complete. It is not a statement that the transaction is safe.
reviewAn exposure, ambiguity or suspicious indicator the person signing should look at, such as an unlimited approval or an address someone has reported.
dangerousSubstantial evidence of a known threat, such as a spender or recipient confirmed as malicious.
unknownNot enough was checked to say anything meaningful.

The verdict is derived in a fixed order:

  1. Any known-threat finding makes it dangerous.
  2. Otherwise, any permission exposure, suspicious indicator or contextual warning makes it review.
  3. Otherwise it’s no_known_risk_detected, but only if every analysis that matters for the request completed, every rule ran, and at least one rule is enabled. If any of those fails, it’s unknown.

Unknown is never escalated to dangerous on its own, and never softened into a pass. A separate risk level gives the highest severity found. It isn’t a probability.

Coverage: what each check managed

Every analysis reports one of these statuses:

StatusMeaning
completedIt ran to completion.
partialIt ran, but part of the input couldn’t be analyzed, such as an unrecognized function.
unsupportedIt isn’t available for this input or this deployment.
failedAn error stopped it.
timed_outIt didn’t finish within its deadline.
not_requestedNobody asked for it, or no check needed it.

Every status other than completed and not_requested comes with a machine-readable reason, and a plain-language line in the report’s list of limitations. Some examples:

ReasonMeaning
ABI_UNKNOWNThe function called isn’t in the decoder’s registry, so what it does is unknown.
CALL_PARTLY_INTERPRETEDThe function is recognized, but part of what it does, such as a router command or a route, isn’t interpreted.
REPUTATION_SOURCES_STALESome sources haven’t been refreshed in time, so their data may be out of date.
SIMULATION_CALL_ONLYThe node could only check success or failure. Asset and permission changes weren’t predicted.
CONTRACT_IMPLEMENTATION_UNREVIEWEDAn upgradeable contract doesn’t run the implementation its action was reviewed at, or it couldn’t be read.
SIGNATURE_SCHEMA_UNKNOWNThe typed data isn’t a schema CERQAVA recognizes, so what signing it permits is unknown.

Not every gap blocks a clean result. A simulation nobody asked for doesn’t, and neither does a deployment that can only check success or failure: that’s a limit of the setup, and it’s recorded as one. A partly decoded call does block a clean result, and so does a reputation lookup that failed or found stale or conflicting sources.

Where certainty runs out

In these cases, analysis before signing becomes partial or uncertain. In each one, the report says so instead of guessing.

  • Unrecognized and partly interpreted calls. Most application calls use functions that no decoder knows. They come back as unknown calls, and decoding is partial. A router plan with a step that isn’t interpreted is decoded as far as it goes, and what’s missing is listed.
  • Proxies and upgradeable contracts. A proxy does whatever its implementation does today. CERQAVA resolves the implementation the way that proxy’s architecture does: an ERC-1967 slot, a beacon or an Aragon kernel. It then compares each step with what was reviewed, and a step that changed or can’t be read leaves the action unverified. What a contract says about itself over ERC-165 is a claim: it narrows what a finding can mean, but a contract can lie.
  • Code that runs during execution. Some code runs in the middle of the transaction, and no one reviewed it:
    • A Seaport zone is called before and after a restricted order fills.
    • A contract order’s own contract generates its items when it runs.
    • A Uniswap v4 pool’s hooks run the pool’s own code.
    The known parts are decoded, and the rest is recorded as a limitation. A Seaport call like this can’t be cleared from calldata alone, and a swap through a hooked pool is trusted only as far as the bounds the sender set on it. In a Seaport match that includes a contract order, it isn’t even known whose ETH pays for what, because that contract may supply ETH of its own.
  • External state and timing. A simulation runs against one block. By the time the transaction is included, prices, balances, allowances and even a proxy’s implementation may have changed. Some contracts check the block they run in. Where the node allows it, CERQAVA simulates as the next block, but that block’s fee recipient and randomness can’t be known in advance. If the chain reorganizes twice in a row during a simulation, the simulation fails, rather than returning a result for a state that no longer exists.
  • Simulation that disagrees with decoding. A complete trace and the calldata can disagree, for instance about what a swap leaves in its router. Neither one is preferred: both are reported, and the scan can’t be cleared.
  • Token behavior. Predicted token movements are what the token’s own events say, not measured balance changes. Fee-on-transfer and rebasing tokens move other amounts, any contract can emit a Transfer event, and a token’s symbol proves nothing about which token it is.
  • Reputation that hasn’t caught up. Reputation recognizes only addresses and sites that some source has already reported. A drainer deployed an hour ago is on no list. Sources can also be stale, unreachable or in disagreement. Each of these cases is reported, and none of them can produce a clean result.
  • Signatures. A signature is judged by what it says: what a permit grants, or what an order gives and asks for. What a contract later does with it isn’t simulated. These leave a scan without a clean result:
    • typed data in a schema CERQAVA doesn’t recognize;
    • a message in no format it interprets;
    • a bare 32-byte hash for eth_sign, which could stand for anything, a transaction included.

What a clean result doesn’t promise

no_known_risk_detected has to be earned: an empty list of findings never produces it on its own. Even when it’s earned, it means only that none of the checks that ran found evidence of risk. It does not mean:

  • that the counterparty is trustworthy, only that no source has reported it;
  • that the trade is fair. A swap’s minimum output is a bound, not a price, and can be far below what the swap is worth;
  • that the chain will look the same when the transaction is included;
  • that the site asking is the one the person thinks it is, because the origin is whatever the client reported;
  • that a contract’s description of itself is true.

A wallet that shows a CERQAVA result should show it for what it is: what was checked, what was found, and what couldn’t be checked. Not a green tick. Why “no risk detected” doesn’t mean safe goes into this in more depth.

What isn’t built yet

  • A public API, with keys and documentation for integrators. A private beta for a small group of wallet and dApp teams comes first. You can join the waitlist.
  • Chains other than Ethereum mainnet. Each chain will be added only after it’s been tested against its own fixtures.
  • Scans of EIP-7702 delegations, and analysis of transactions that deploy a contract.
  • Decoding beyond the protocols listed in EVM transaction decoding.