← All projects Security / DeFi

SmartReco — Static and Dynamic DeFi Contract Analysis

A four-stage pipeline that pairs Slither's static analysis with REVM-based transaction replay, then checks findings from one against the other across 17 live DeFi protocols.

Role
Sole author
Context
Blockchain & Smart Contracts coursework
Core stack
Slither · REVM · Solidity
Protocols tested
17

At a glance

Static analyzers flag what might go wrong; replaying real transactions shows what actually happened. SmartReco runs both over the same contracts and correlates the results, so a finding has to survive two independent methods before it counts.

Contract source On-chain history Slither — static REVM — replay correlated findings
Static findings are cross-checked against replayed transactions, so a flagged issue has to survive both passes.

The problem

Public bodies, funds and companies increasingly hold value that moves through smart contracts — tokenized assets, payment rails, grant-disbursement pilots. The code is public, which is routinely mistaken for the code being understood. In practice the organization has to answer a question it has no instrument for: does this contract behave the way its source suggests, on-chain, with real money?

How this helps

SmartReco makes a finding earn its place by requiring two independent methods to agree. Slither reads the source and proposes what could go wrong; a REVM harness replays transactions that really happened and shows what did. The two passes are correlated, so what reaches a human has survived both.

The generalizable part is not DeFi-specific. Any due-diligence question of the form does this deployed system do what its source implies has the same structure: one method that reasons about the code, one that observes it running, and a correlation step that only surfaces what both support.

What it does

Results

Across the 17 protocols tested, the pipeline reported zero vulnerabilities and reached over 90% transaction replay accuracy after a round of bug fixes to the replay layer.

A zero-finding result on mature, heavily audited protocols is the expected outcome — these are among the most reviewed contracts in production. The meaningful number here is the replay accuracy, because that measures whether the harness faithfully reproduces on-chain execution, which is what any finding would rest on.

Presentation

The work was written up and presented as an interactive HTML slide deck rather than a static report, so the pipeline stages and per-protocol results could be stepped through.

Stack

Slither REVM Solidity Static analysis Transaction replay
← T-Rax VR Hand Interfaces →