Profanity vanity-address keys recoverable from public keys; Wintermute loses ~$160M
1inch contributors disclosed that Profanity, a popular GPU Ethereum vanity-address generator, seeded each 256-bit private key from a random 32-bit value and then just incremented it. Given a public key (recoverable from any signed transaction), an attacker can walk back to one of only about 4 billion seeds and recover the private key. Days later, on 20 September 2022, market maker Wintermute lost about US$160 million from a Profanity-generated vanity address.
Broken implementation. The underlying math is not broken by this. The failure is in code, hardware, or how the primitive is used.
Background
The attack uses elliptic-curve point arithmetic (subtracting multiples of G from the public key) to search the tiny seed space efficiently, so effective security was about 32 bits plus GPU time, not 128. A KEY-GENERATION implementation flaw: secp256k1 is unaffected, and properly random keys (or 1inch's profanity2, which only adjusts a user-supplied public key) are safe. Amber Group publicly reproduced recovery of the Wintermute key.
Sources
- primary disclosureA vulnerability disclosed in Profanity, an Ethereum vanity address tool1inch, 1inch.com
- blogExploiting the Profanity FlawAmber Group, medium.com
- blogExplained: The Profanity Address Generator Hack (September 2022)Halborn, halborn.com