LS-CRYPTO-001: Ethereum Private Key¶
| Severity | CRITICAL |
| Blast radius | Cryptocurrency funds theft |
| Rotate at | https://ethereum.org/en/security/ |
If this leaks¶
Full control of the wallet: anyone with this key can transfer all of its funds irreversibly.
What to do¶
- Rotate or revoke the credential at https://ethereum.org/en/security/.
- Check the provider's audit logs for use you don't recognise.
- Remove it from git history (
leakscan purge --help) and load it from an environment variable or secret manager instead.
Pattern¶
(?i)(?:eth|ethereum|wallet|private)[\w.\-]{0,20}(?:key|secret)['\"]?\s*[=:]\s*['\"]?(0x[a-f0-9]{64})\b
Suppress¶
On one line: # leakscan:ignore LS-CRYPTO-001. For the whole project:
disable_rules: [LS-CRYPTO-001]