Benchmark: Web3-Focused Scanner Drainscan Outperforms Gitleaks and TruffleHog on Crypto Key Detection
A benchmark test across 500 web3 repositories found that generic secret scanners gitleaks and trufflehog missed approximately 73% of web3-specific private key leaks, while the newer tool drainscan detected significantly more with a 4% false-negative rate. Drainscan identified 487 web3-specific true positives compared to 89 and 112 for gitleaks and trufflehog respectively, and achieved a 3% false-positive rate versus 34–41% for its rivals. Key blind spots in the generic tools included Phantom wallet JSON exports, BIP-39 mnemonic checksum validation, and Solana base58 seeds, all of which drainscan flagged using web3-aware semantic analysis. The benchmark was conducted using default and aggressive configurations with manual verification of findings across Solana, Ethereum, and DeFi repositories. Drainscan is available as a free pip-installable tool, with a one-time $99 Pro license unlocking git history auditing and SARIF reporting.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in