r/Bitcoin • u/thonbrocket • Nov 03 '13
Brain wallet disaster
Just lost 4 BTC out of a hacked brain wallet. The pass phrase was a line from an obscure poem in Afrikaans. Somebody out there has a really comprehensive dictionary attack program running.
Fuck. I thought I had my big-boy pants on.
125
Upvotes
11
u/usernameunavailable Nov 03 '13
Paging /u/btcrobinhood, does your bot speak Afrikaans?
45
u/LtShitbrick Nov 03 '13 edited Nov 03 '13
I thought everyone knew not to use existing sentences.
A brainwallet is created simply by starting with a unique phrase. The phrase must be sufficiently long to prevent brute-force guessing - a short password, a simple phrase, or a phrase taken from published literature is likely to be stolen by hackers who use computers to quickly try combinations. A suggestion is to take a memorable phrase and change it in a silly way that is difficult to predict.
Yet you thought you were smarter than the system.
4
u/chriswilmer Nov 03 '13
Just curious, was it all in one case (i.e., upper or lower case)?
4
u/frankros Nov 03 '13 edited Nov 03 '13
Watter gedig was dit? jammer om te hoor...
"Bitterbessie dagbreek,
bitterbessie son,
jirre maar ek is fokken dom"
87
u/[deleted] Nov 03 '13
If it's written in a book or exists online, never use it. Brain wallets are hard to do and still be safe. People ALWAYS seem to pick bad passwords.
21
u/timepad Nov 03 '13
Make a 10 word Diceware passphrase next time. This is the best way to ensure your password actually has 128 bits of entropy, and that no one knows it. It is a far superior method than picking something "random" yourself (humans suck at being random). Never pick something from published literature.
9
u/platypii Nov 04 '13
It seems like a universal law of bitcoin that there will always be morons who insist that their super special secret passphrase is safe. DON'T USE BRAIN WALLETS! Just, don't use them.
Breaking bitcoin private keys is like a game of hide and seek, played over the space of the whole universe. I like to hide in a distant galaxy, light years away. But, some douche bags will insist that they can just hide in an obscure closet around the corner from the seeker where "no one will ever think to look". To be safe you need DISTANCE and to get distance you need ENTROPY. Your super special unguessable brainwallet passphrase does not have enough entropy!
13
u/Prattler26 Nov 03 '13
Sorry for your loss. If your brainwallet is cracked, your passphrase is useless. Please share it with us, so others can learn from your mistake.
6
u/[deleted] Nov 04 '13
People don't seem to understand that encrypting your wallet.dat with a pass-phrase that has enough entropy is so much more saver. A thief would need to steal the wallet.dat file first and then try to crack the pass-phrase. But with brainwallets a single cracker can not only attack all brainwallets ever made but also all future brainwallets to be made! Brainwallets are the worst thing that ever happened with bitcoins from a security perspective. With a random generated address your coins are saver then money on your bank account. How likely is it that your system was compromised at the moment of the address generation? Next you encrypt your wallet and done. And if you are really paranoid then do all of this on a offline system. In fact if you are going to have bitcoin addresses with more then 5 or 10 bitcoin on it I would highly recommend that you create a brand new bitcoin address on a offline system and then transfer the bitcoin there. Next encrypt the wallet.dat or the private key with a good enough password and you are done. Only when somebody gets physical acces to your offline machine can they start the cracking process. This is billions of times more unlikely then people that have software that right now is crawling the internet for quotes and use them as seeds for private keys just to see if you were stupid enough to use them or a combination of them. Imagine if your computer could try to crack ALL bank account in existenst in the world AT the same time and not only present accounts but also future accounts. That's what is possible if you use brain-wallets. If your pass-phrase is to complex and contains to much entropy then there is a very high chance you will forget it in the future. If not it will be cracked eventually. If you have written down your pass-phrase you are a idiot as you might as well written down a good generated private key.
The only reason people came up with the brain-wallet concept is to have fun with the people that fell for it.
2
u/zizmax_ Nov 03 '13
What exactly is a brain wallet?
2
u/GSpotAssassin Nov 04 '13
I would like to remind people that the point of mining is to provide a counterincentive to just this sort of energy expenditure (brute forcing) but it requires that your brainwallet have some minimum level of pure randomness. Straight phrases out of any literature anywhere will not do. Technically it's because the Kolmogorov (descriptive) complexity is low.
5
u/kilorat Nov 04 '13
We're just going to hear story after story like this until people learn to stop using brain wallets.
11
u/alexkravets Nov 03 '13
Proven word to the wise: always "salt" the passphrase (prepend, append or mix in ) with some information unique to you which doesn't even have to be secret, ie your name or phone number or email this makes vast majority of "wholesale" attacks completely ineffective
4
u/Ecologisto Nov 04 '13
Can we just stop implying that brain wallets are a good thing ? The idea proved to be stupid and provoked far too many problems, especially for new comers. We should be very clear that it is a bad idea, the same as keeping lot of money in an online wallet.
4
u/enmaku Nov 04 '13
A brain wallet based on intelligible English text is almost always a bad idea. That said, memorizing a mnemonic for an existing key or seed does add an extra layer to a good backup plan. Remember the 321 rule: at least 3 copies of your data using at least 2 different storage mediums and at least 1 of which is off site. If you are capable of also memorizing the data, that's a bonus.
1
u/DuckTech Nov 04 '13
can you trace where the funds went? its in the public ledger right?
1
u/sjalq Nov 04 '13
Dis flippen jammer, sorry man! Hoekom het jy net woorde gebruik en hoekom het jy iets wat al gedruk was gebruik?
1
u/krali_ Nov 04 '13
Brain wallet as a concept is ok, but its widespread implementation is far from good. 3 hashes and a pubkey derivation to check a passphrase candidate against a public BTC address is too fast.
6
u/peacewhale Nov 04 '13
Strange to me that there are people who believe in the "finders keepers" mentality of hacking wallets. If you spend time trying to find brainwallets, you are a thief, just like a bank robber or home burglar is a thief.
3
u/Flailing_Junk Nov 04 '13
If you want to use a memorable phrase in a brain wallet then salt it. Create a random string of letters and numbers and copy it a bunch of times and store it a bunch of places and then add it to the end of your brain wallet phrase.
Ya its not entirely in your head at that point, but its much less likely that someone will come across your salt, realize what it is, and then start brute forcing just to get your specific brain wallet than to have a memorable phrase cracked.
Also, if you forget your phrase you have a chance of bruteforcing it yourself and recovering it.
3
u/VirtualMoneyLover Nov 04 '13
OK, all these discussions about how to make a wallet hack proof and you guys seriously expect the average people to use 20+ digits upper/lower/numbers passwords? Bitcoin will never get mainstream if this is the future...
3
u/Anenome5 Nov 04 '13
Anything written down publicly. Anything. May as well be the same security as a password like "12345."
1
u/[deleted] Nov 03 '13
BIP 39. Look it up and use it.
1
u/kerstn Nov 04 '13
It should not show up on google. Then you are maybe safe.
4
u/[deleted] Nov 03 '13
Yet my brainwallet remains uncracked even with many hints.
http://www.reddit.com/r/Bitcoin/comments/1pazww/guess_this_brainwallet_hint_its_a_four_word/
5
u/[deleted] Nov 03 '13
Hexidecimal Dice, people! Don't trust a seed.
2
u/GSpotAssassin Nov 04 '13
Don't use simple sentences. Of any sort.
2
u/servowire Nov 04 '13
Now that the coins are gone, what was the phrase? Just curious about the length of it...
2
u/goonsamchi Nov 04 '13
I think secure brain wallets have to go the other way - for example, you can use Electrum to create a wallet that can be rebuilt from a seed, which can be represented as a series of words. You have Electrum pick the keyphrase for you, basically. You don't make it up. Then, you just memorize whatever Electrum generates for you.
Also, check out https://en.bitcoin.it/wiki/BIP_0039 BIP 0039 Mnemonic code for generating deterministic keys Author: Pavol Rusnak (stick) Marek Palatinus Aaron Voisine
2
u/vbuterin Nov 04 '13
Normal accounts are secure because they have usernames and passwords, so you can only attack one user at a time. Default brainwallets don't have this property, which is why they are less secure. Thus, you should always prepend your username to your password when making a brain wallet. This simple advice really needs to be spread more; it would make the number of thefts go down by 99.9% in an instant.
2
u/y-c-c Nov 06 '13
I actually submitted a pull request to the Brainwallet GitHub repository to use a slower hashing algorithm (PBKDF2 with 100000 iterations salted with "brainwallet" to avoid clashing other known password hashes) so it's a little harder to crack (https://github.com/brainwallet/brainwallet.github.com/pull/27). The response I got was that since the ECC algorithm was already "slow enough" we don't need an even slower hashing algorithm, which I disagree with as every bit of security counts. I'm not trying to start a fork of brainwallet or anything but feel free to take a look at the pull request and nicely ask it to be integrated to Brainwallet :) Or you can just clone from my repo and host it yourself (https://github.com/ychin/brainwallet.github.com)
Now even with a slow hash if your passphrase doesn't have enough entropy it's not going to help in the long run. So if you really want to use brain wallets you probably want a randomly generated passphrase, something along the lines of "correct horse battery staple" as proposed by xkcd. You may want at least 5 words to have enough entropy though.
3
u/MeanOfPhidias Nov 04 '13
Hahahahaah.
I'm sorry but we're getting up to one of these a week.
"I was super secret and picked this known line from a book that has been published thousands of times. No one would ever think to do that, right?"
2
u/muyuu Nov 03 '13
GPUs can perform dictionary attacks extremely efficiently.
2
u/cswords Nov 04 '13
My opinion: brain wallet is too risky, I wouldn't trust my own human limitations. Use bitaddress.org from a disconnected computer, print the paper wallets to PDF and send funds into them. 7ZIP this PDF with AES encryption with a complex & long password you can't forget, make 5 copies on usb keys and burned CDs hidden in your home's walls and ceiling and give copies to family members.
1
u/maybe_just_one Nov 03 '13
What's a brain wallet?
1
u/gox Nov 04 '13
I think most people are wary of forgetting the phrase, so they remove punctuation, uppercase letters, international characters, etc. and try to find a long and obscure but publicly known phrase. Every one of these are against the very idea of having a brain wallet.
If you are not going to create a random phrase using a method that is independent of your personal biases, which is the safest method, here are some ways of making your brain wallet more secure:
Then again, creating a random phrase and memorizing might be much easier, depending on how your mind works.
1
u/itodor Nov 04 '13
People underestimate vanity generator goodness. Generate a vanity address, see: https://en.bitcoin.it/wiki/Vanitygen , import it into wallet.dat, encrypt that wallet with decent, not necessarily hi-quality passphrase, and you are safe.
1
u/[deleted] Nov 04 '13
Why do we always remember our full password ? We are facing various threats who all have a weakness.
Why not use a public salt stored at an url, using a standard API (your Google/Facebook profile could contain it), that is automatically collected by the software you use (your OS, your web browser, your phone, your wallet, ...). It is then concatenated to your memorized password automatically on all password fields.
That way you need to know the password and the owner of the password.
1
u/EvilPundit Nov 04 '13
Is a brainwallet the same as a pass phrase for Bitcoin-QT, or is it something else?
1
u/bluewaterbaboonfarm Nov 04 '13
Bookmarking this for the next time someone tells me there password is "good enough". Sorry for your loss. Way to take it in stride.
1
u/chillex27 Nov 04 '13
Why not just stick to paper wallets ?
1
u/padout Nov 04 '13
Does this mean electrum is not secure because it uses a 12 word seed?
1
u/DontHackMeBrendan Nov 04 '13
Why don't you just publish an encrypted wallet, and use your 'brainwallet' password as the passphrase?
You can publish the encrypted wallet EVERYWHERE and it still won't be slightly close to being as insecure as just using a brainwallet.
1
u/FreyasCloak Nov 04 '13
Not that I need a brain wallet, but wouldn't this be a good way to do it: route of street names from one location to another, that only you know, for instance Lottie Main Broadway Jackson Michigan ninety five etc
1
u/pablopaniagua Nov 04 '13
I Recently heard on a podcast or a video can't remember exactly that someone made a brain wallet and put a little amount of BTC as an experiment and used the phrase "hello world " for the brain wallet, about an hour later the BTC where gone.
1
u/RedScourge Nov 30 '13
To play the numbers game most effectively, what these hackers should be doing is going after the highest balance wallets in descending order before moving on to someone else with their attacks.
1
u/[deleted] Mar 03 '14
Or what about doing it Da Vinci style and write your phrase backwards? Done. I can't trust computers and it's current binary system to give me a powerful password......we did inherently create these things from ourselves. Why do we put ourselves below our creation?
1
u/physalisx Nov 04 '13
Jesus. I don't get this. You obviously know how this works, why on earth would you use a fucking passphrase that is part of a poem that was written somewhere?
It's really hard for me to feel sorry for the victims when this stuff happens. It's so predictable and so goddamn easy to prevent.
1
u/baillou2 Nov 04 '13
If you had simply salted it a little, even just capitalizing the 2nd letter of the first and last word it would almost certainly have not been hacked.
SALT! SALT! SALT!
0
u/dragon_fiesta Nov 04 '13
this has me wondering if random generation of private keys could find the FBI wallet.
I should have majored in programing
0
u/DuckTech Nov 04 '13
I have the best pass phrase. Unfortunately I cant tell you guys what it is.
0
u/swemp Nov 03 '13
owo.....wallet is all.
0
u/byronbb Nov 04 '13
Whoa
0
u/DrArcadium Nov 04 '13 edited Dec 12 '13
We really need a more robust standard for brain wallets. The pass phrase should be hashed at least 10,000 times, making a single crack attempt take 10,000 longer without reducing the usability of it.
It doesn't solve the bad password problem, but lengthens the horizon until they become vulnerable.
Or you could just use non-standard methods, obscurity does add entropy.
0
u/[deleted] Mar 03 '14
What about numberizing letters into a phrase like P30PL3 CA'NT TAK3 MY M0N3Y SO 3ASY TH1S T1ME?.........
-22
u/PotatoBadger Nov 03 '13
Dumbass.
-7
u/bullco Nov 03 '13
Bitcoin users not affected!!! :D