Secrypta Crypto security lab
RU / EN
Article In progress Project: secrypta · open-source · MIT 24 November 2026·4 min read

Mapping our tools to Trillion Dollar Security, item 3

Abstract

Ethereum Foundation's Trillion Dollar Security (Phase 2) names a concrete priority: an open-source database of smart-contract vulnerabilities that IDEs and tooling consume, with auditors and white hats contributing findings. This page honestly shows how the priority maps onto open-source work we already run, and where the line sits between what is built and what remains.

The Ethereum Foundation priority

Under "Making it easier for developers to avoid deploying vulnerable code", EF writes (verbatim):

Ethereum Foundation, verbatim

"Having an open-source database of smart contract vulnerabilities, which can be used as a reference by IDEs and other developer tooling…"

"These tools could scan pre-deployed contracts against the open-source database before deploying the code onchain."

"we invite anyone who would like to help, such as audit competition platforms, auditors, white hats, or others, to help contribute their findings."

What we already have

What item 3 asks forWhat exists today (open, MIT)
An open-source database of vulnerabilitiesA corpus where each entry is a triad: a detection rule, an executable PoC, and a record tied to a real incident
A tool that scans contracts before deploymentdrain-scan: a solc-AST engine plus Semgrep rules that flags wallet-drain classes in source
Consumable by IDEs and toolingCLI detector plus a reproducible benchmark; machine-readable output (SARIF) is planned
White-hat and auditor contributionsA contribution pipeline is planned; the record format already exists in the corpus

Built and published:

  • drain-scan - a precision-first static detector. On our public corpus of 155 labeled fixtures: precision 1.000, zero false positives, including on real production code (OpenZeppelin v5.1.0, Solady, Uniswap Permit2). It re-discovers real incidents with provenance (Parity 2017, Audius 2022, PAID 2021, Tornado 2023, Inferno Drainer 2025). 15 rules, solc-AST engine, no Slither. → github.com/secrypta/drain-scan
  • wallet-harness - a labeled executable benchmark for the wallet-drain class: 13 vectors on 3 levels, 155 reproductions, a 27-challenge CTF layer. → github.com/secrypta/wallet-harness
  • invariant - an invariant catalog plus Foundry fuzzing that re-discovers known bug classes and stays silent on correct code. → github.com/secrypta/invariant

What the work would complete

  • a machine-readable vulnerability-record schema that third-party tools consume;
  • wider class coverage while holding precision;
  • a blind evaluation set: detector frozen, new cases authored independently, scored once;
  • standard output (SARIF) plus a reference integration (CI / IDE);
  • a contribution pipeline so white hats can add verified, reproducible entries.

Honest boundary

Precision is measured on our own corpus: the detector was tuned against these cases, so it is a self-consistency measurement, not a blind one. An independent blind run is part of the proposed work.

Recall is deliberately narrow: 0.450 on a 94-case split (41 vulnerable, 53 safe) added after the first release. That gap is the point: the tool reliably catches a subset of real drain classes today, and closing it to broad coverage is the multi-month public-good work, not the part already built.

Repositories github.com/secrypta · related: drain-scan · wallet-harness