Skip to content
CERQAVAJoin waitlist

Research

Why “no risk detected” does not mean a transaction is safe

Every transaction scanner is a set of checks. When none of them finds anything, it’s tempting to show a green tick. But an empty result has two very different causes: the checks ran and found nothing, or the checks never really got to look.

By CERQAVAPublished

Absence of findings isn’t evidence of safety

A finding is evidence. The absence of findings is only the absence of evidence, and what that’s worth depends entirely on what was checked. Suppose a scan decoded the call completely, looked up current threat data and ran a full simulation, and none of it found anything. That empty report says something. The same empty report after the decoder failed to recognize the function says nothing at all.

A scanner that doesn’t tell these two cases apart reports the second as if it were the first. The transactions it can’t read are exactly the ones an attacker would prefer it to wave through.

How a scan comes back empty without having looked

  • The function isn’t recognized. Most application calls use functions outside any decoder’s registry: mints, staking, or swaps through routers nobody has reviewed. Nothing matches, because nothing could be read.
  • The call is only partly interpreted. A router plan with one uninterpreted step can hide anything in that step.
  • Threat data is missing, stale or disputed. A lookup that failed finds no matches, and so does a source that hasn’t been refreshed in days. When two sources disagree about an address, neither can be trusted alone.
  • The simulation didn’t run, or ran without a trace. A node that only supports eth_call can tell whether a transaction reverts, but not what it moves. A trace too large to read in full may be missing the one transfer that matters.
  • A contract changed. An upgradeable contract recognized by its address may now run code nobody reviewed.
  • The signature isn’t recognized. These can authorize anything, and no rule fires because nothing could be interpreted:
    • typed data in an unknown schema;
    • a free-text message;
    • a bare hash for eth_sign.

Three questions, kept apart

CERQAVA, which is still in development, keeps three questions separate in every report, and combines them only in a fixed way:

  1. Did the scan finish? That’s status.
  2. What did each analysis manage to do? That’s coverage. Each analyzer reports completed, partial, unsupported, failed, timed_out or not_requested, with a reason whenever it didn’t complete.
  3. What did the checks find? That’s findings, and the verdict.

The best possible verdict is worded no_known_risk_detected, and it has to be earned. Every analysis that matters for the request must have completed, every rule must have run, and at least one rule must be enabled. Otherwise, a scan without findings is unknown. There’s no safe field anywhere in a report.

An honest unknown

Here’s an abridged report for a call to a function no decoder recognizes. The address and selector are fictional.

Illustrative · abridged report
{
  "status": "completed_with_limitations",
  "verdict": "unknown",
  "riskLevel": "unknown",
  "decodedAction": {
    "kind": "unknown_call",
    "contract": "0x4444444444444444444444444444444444444444",
    "value": "0",
    "selector": "0x12345678",
    "dataBytes": 68
  },
  "findings": [
    { "ruleId": "EVM_UNKNOWN_CONTRACT_CALL", "category": "coverage_gap", "severity": "info" }
  ],
  "coverage": {
    "decoding": { "status": "partial", "reason": "ABI_UNKNOWN" },
    "reputation": { "status": "completed", "sourcesChecked": 3 },
    "simulation": { "status": "not_requested" }
  }
}

The scan finished. Decoding was partial because the function isn’t known. Reputation completed and found nothing against the contract. Nobody asked for a simulation. There’s one finding, and it’s a coverage gap, not a risk: it records what couldn’t be checked. The only honest verdict is unknown. A scanner that called this “no risk” would be presenting its own blind spot as a clean result.

Even a clean result has limits

When no_known_risk_detected is earned, it still means only that none of the checks that ran found evidence of risk:

  • Reputation knows the past. It recognizes addresses and sites that someone has already reported. A drainer deployed this morning is on no list.
  • A simulation shows one state. It shows what the transaction would do at one pinned block. Between that block and the one that includes the transaction, balances, prices, allowances and contract implementations can all change. A malicious contract can also be written to behave differently under simulation than on chain.
  • Contracts describe themselves. ERC-165 answers, token symbols and Transfer events are what a contract says, and a malicious contract can say anything.
  • The site may not be who it seems. A scanner compares the origin the wallet reports with what it knows. It can’t confirm that the person meant to be there.
  • A fair trade is a separate question. A swap that’s fully decoded and bounded can still be a bad trade: a minimum output is a bound, not a price.

What a wallet should show

  • Don’t present an absence of findings as a pass. Show the verdict, and when it’s unknown, say what couldn’t be checked.
  • Show coverage next to the result: whether the call was decoded, whether it was simulated, and whether the threat data was current.
  • Treat review as a question for the person, with the evidence attached, and dangerous as a reason to stop.
  • Keep text that comes from the chain out of trusted parts of the interface. Token names, revert reasons and domain names in typed data are chosen by whoever built the contract.

The security model lists every coverage status, and the cases where analysis before signing becomes uncertain.