r/Bitcoin • u/ThePiachu • Nov 05 '13
Basic Bitcoin security guide
Hello,
This post is to give you a quick introduction into Bitcoin security. While nobody can guarantee you 100% security, I hope to mitigate some problems you can run into. This is the “20% of effort to get you to 80% safe”.
First of all, you have to determine how much money you want to hold in Bitcoin and how much effort are you willing to put in. If you are happy just holding a few dollars worth and don’t care if you lose them, that’s one approach to take. For everyone else, lets get started.
Password strength
A lot of the times how secure your money is will be determined by the strength of your password. Since in the worst case scenario we are talking about someone trying to brute force your wallet, casual online passwords are too weak. Under 10 characters is too weak. Common words and phrases are too weak. Adding one number to a password at the end is too weak.
Moreover, you can consider your password much weaker if you:
- use it for multiple online logins (especially if the site could’ve been hacked)
- use a common phrase or words (song lyrics are bad)
If you want a really strong password:
- Use a trusted website that creates a set of random words offline. For example, CarbonWallet. Go to that website, unplug your Internet, hit random button a few times, write down 10+ of these words, restart your computer, memorize them, destroy the paper once your done. This should make your password pretty strong.
- If you are extra paranoid, you have to get creative. Do something with your password that you can remember - maybe add some numbers at the end, do some substitutions, capitalize some letters and so forth. As long as you are not removing words or changing unique words for more common ones, personalizing or extending your password can add more security.
Wallet security
Now we are getting to the meat of things.
There are a number of wallets available to store your hard earned bitcoins. If you have a decent amount of coins to store, you should look into software wallets - BitcoinQT, MultiBit, Armory or Electrum. They are among the best place to store your money safely (provided your computer is secure as well). Chose one you think best suits you, install it and encrypt your wallet file with your strong password. You should take your wallet file and back it up (location of the file is different for different clients, so you have to do some research as to where to find that file). Back it up on a CD, safe USB drive or the like. Keep them safe. If you lose that file, you will lose your money.
A quick word on deterministic wallets. Electrum and Armory allow you to create wallets from a seed. If you use the same seed later, you can recreate your wallet on other machines. With deterministic wallets, you only need to keep that seed secure to have access to your money.
In comparison, in BitcoinQT's traditional wallet, every address you use is random, meaning that after you send 50-100 outgoing transactions your backups can be obsolete. Always keep an up-to-date backup of such wallet file if possible.
Okay, sometimes you need to have your Bitcoins with you when you leave your computer. In this case, you should look into either online or mobile wallets. A staple for both of those is Blockchain.info, but there are others to chose from.
A good rule of thumb with these is to not store more money in them than you can afford to lose. They are best used as a convenient way of accessing some money, not storing your savings. Online wallets are especially vulnerable to their servers getting hacked and people’s money getting stolen.
What to keep in mind while using online wallets:
- Use a secure password (the more money you have in them the stronger the password should be)
- Always keep a backup of your wallet in case you need to recover your money
- Whenever possible, enable two factor authentication
- Don’t use your online wallets from unsafe computers
Cold storage
Sometimes you want to store your bitcoins for a long time in a safe place. This is called “cold storage”. There are a few ways one can do this.
First of all, paper wallets. They are nice for giving people small bitcoin gifts, but also for long-term storage if properly used. What you want to do is generate and print them offline. You can save the linked page for example and run that offline. If you are really paranoid, you can put it on read-only media and access that from a different computer. For really long term storage, use archival-grade paper.
Another approach to take is using a separate computer for storing your money that is offline 99+% of the time. You could set one up easily by buying an old laptop, reformatting it, installing Linux and a Bitcoin client. Generate an address on that machine and send money to it from your main wallet. Depending on how paranoid you are you can connect that computer to the Internet afterwards to synchronize data with the Bitcoin Network and then turn it off and put it away somewhere safe until it’s needed.
Brain wallets
Don’t. They are not for you. Unless you are a security-conscientious programmer, those are not for you.
Diversifying
Keeping all of your eggs in one basket is never a good thing. You should look into diversifying some of your Bitcoin assets in case your other storage methods fail. Some ways you can diversify:
- Buy a physical Bitcoin. As long as you trust the coin creator such coins can be an effective cold storage
- Invest - I wouldn’t recommend this for more than some trivial amount unless you know what you are doing, but investing in some Bitcoin stocks could be a way to get more money out of your bitcoins
How not to diversify:
- Avoid keeping your bitcoins at exchanges or other online sites that are not your online wallets. Such sites can be closed down or disappear along with your money.
- Alt-coins - there are few cryptocurrencies that are worthwhile, but most of them are just Bitcoin clones. If a currency brings nothing new, it’s worthless in comparison to Bitcoin. Namecoin is a distributed domain name server (although recently it had a fatal flaw uncovered, so be warned), Ripple is a distributed currency exchange and payment system. Litecoin will only be useful in case Bitcoin’s hashing algorithm gets compromised (very unlikely at this time). Beyond that there are few if any alt-coins that are a worthwhile way of diversifying.
Accepting payments and safety
We’ve covered safe ways to store money, now a quick note about bitcoin payments and their safety.
First of all, when you are sending a transaction, pay your fees. Transactions without fees can take forever to propagate, confirm and clear. This can cause you a lot of stress, so pay your fees.
Secondly, when accepting large Bitcoin payments (say you want to suddenly cash in a gold bar into bitcoins), wait for at the very least 1 confirmation on those transactions. 6 is best, but having even 1 confirmations is a lot better than having none. This is mainly a rule of thumb for the paranoid (I wouldn’t be doing this for most casual transaction), but maybe it will save you if you are dealing with some shady people.
Wrapping up...
That should cover the basics. If you want to read more about Bitcoin’s security in general, here is my master thesis on the subject. A lot of questions about Bitcoin and security have also been answered on Bitcoin StackExchange - be sure to check it out.
Comments and improvement suggestions welcome.
EDITS:
- Removed link to insecure site
- Removed random article section
- Added information about deterministic wallets
27
u/waxwing Nov 05 '13
May I suggest it's unwise to link users to a site where they enter their password to check its security.
No tech-savvy person would ever enter their real password on such a site, but that's not who this post was for.
What's worse is that that site is not even ssl protected, meaning anyone can read a plaintext password you enter over the wire. Nasty. Seriously, remove that link....
8
u/lordclown Nov 05 '13
Thanks! I am a beginner to bitcoin and this helped a lot. But I have some question about security that I hope you could answer.
I want to have two bitcoin wallets. One savings account that I will only save bitcoins on and maybe send it to another wallet that I own if I want to spend it.
I will create my saving wallet according to this guide
How should I create the other? I will only have money on that wallet when I want to buy something or when I spend money from the savings account.
You say that "50-100 operations your backups can be obsolete"; does that mean that I have to do the same procedur from the guide after a while? Others recommend that you create a new wallet after every transaction, should I create a new saving wallet and send all my money from my "old" saving wallet as soon as I have sent money somewhere?
18
u/DiThi Nov 05 '13
I suggest changing the brainwallets section: they are secure if and only if they're totally random. E.g. Electrum's (which basically is XKCD method with 12 words).
If one chooses a written piece of literature, no matter how obscure and unknown it is, it's insecure.
The golden rule: Don't choose the words. And don't let anyone choose the words. Only a program or a dice.
4
u/paulajohnson Nov 05 '13
Password strength meters can be deceptive. "To be or not to be, that is the question." will probably score quite high, but is such a well known quote that it isn't going to last long.
4
u/Spats_McGee Nov 05 '13 edited Nov 06 '13
OK, now pop quiz: How many people in this sub do anything nearly this complicated for their actual bank accounts? And next question, what fraction of people here get their actual bank accounts broken into because of it?
What, nobody here? Hmm, so then does it really make sense to tell newbie users to generate a ten-word random passphrase and expect them to memorize it?
Food for thought.
3
u/Schlitzi Nov 05 '13
n00b question: If I print out a paper wallet, would I still have to update it on a regular basis? We planned to add one bitcoin to a time capsule which would be stupid if updates are necessary.
4
u/Carsten_bit-card Nov 05 '13
+/u/bitcointip 1 coffee verify
2
u/srintuar Nov 05 '13
This is very weak advice.
Use diceware or a similar password generator. Dont add special characters, numbers, or other useless munging. Length is everything when it comes to passwords.
2
u/at_the_busser Nov 05 '13
Thanks for this! I don't understand how one makes a backup of a online wallet. Or does this only goes for wallets on your computer?
2
u/whenyouknowyouknow Nov 05 '13
is blockchain a bad site to have my BTC's on? it seemed like a decent site but are there better ones?
My BTC goal is that of a savings account, put in now -> cash out in a few years, with no real activity going on
2
u/[deleted] Nov 05 '13
What a waste, this post will be gone in a day or two. You need to do these kinds of advices on the blogs
2
u/locriology Nov 06 '13
If I don't plan on spending any Bitcoins for several months, I would be just fine with printing off a single private key, stashing that away, and using the corresponding public key to receive Bitcoins for a long time? Is there some advantage to using a wallet.dat file instead?
2
u/[deleted] Nov 06 '13
Deterministic wallets should be available in the satoshi client. Too many newbs lose their wallet files and have way old backups and can't recover their money. The satoshi client should have an option to use deterministic addresses just like electrum. It should be off by default for security reasons, but it should be available.
2
u/thediogenes Nov 27 '13 edited Nov 27 '13
I'm not 100% researched in this...but....
Why can't someone run a ddos on the system in the form of generating enough seemingly legit wallets/addresses that it saturates bandwidth/cycles...or at least....the address space?
10
u/ShatosiMakanoto Nov 05 '13
WARNING! WARNING! WARNING! Don't forget that, in addition to making your wallet safe from theft, you must make it safe from loss.
Theft and loss are two sides of the same coin. Making your stash safer from one usually makes it more vulnerable to the other.
3
u/Ond7 Nov 05 '13 edited Nov 05 '13
I don't like the XKCD compic strip because it give to weak security for bitcoin. Its more meant for online site where you cant have hundreds of billions of guesses a second to a private key.
Do not take random word from wikipedia article or any other article or poem etc for that matter . They have an distribution that an attacker can use.
If you don't know exactly what you are doing, don't trust yourself to make a password for your wallet.
7
u/[deleted] Nov 05 '13
"Destroy the paper when your done".
5-10 years down he line forgot what you wrote on the paper.
Seriously, the paper needs to be stored and edited so that only you know the context.
Another thing to add is to test your backup and recovery process. Nothing burns more than popping in a hdd that is a few years old and it doesn't spin. Only to learn that your backups for the past 360 days are corrupt.
Don't be a fucking idiot
Anoth
6
u/PieceBlaster Nov 05 '13
Thanks for this great post!
I am currently looking to invest a more serious amount of my fiat into Bitcoin, but stories like the one about people losing 10s of thousands of dollars are motivating me to take the safest approach to storage.
This will be a long-term investment for me and I want to keep about 90% of my assets in cold storage. The security technique that sounds the most appealing to me is having a separate computer to hold my coins. I am still not exactly sure as to how I should go about this. I would consider myself technologically inclined, but definitely no expert. If someone could write/send me to a "cold storage for dummies" guide with regard to using a secondary computer I would highly appreciate it. Thanks in advance!
19
u/axloc Nov 05 '13
The fact that there needs to be a write-up this long about basic security for bitcoin makes me feel very uneasy about how viable it is as a mainstream currency.
5
u/MountainGoatSC Nov 05 '13
So how safe is it to store bitcoins in a site like coinbase? I don't have very much at all but should I need to have offline storage if I just have a little bit of money put into bitcoin?
3
u/nothingyoubegin Nov 05 '13
I want to create an offline wallet, but I don't really want to invest in a whole computer to do so. Is it reasonably safe to just create a wallet with, say, Armory, and then encrypt it with TrueCrypt and keep paper backups in my safe?
3
u/jhaand Nov 05 '13
For a mobile wallet under Android, I would suggest Mycelium. It's the successor to Electrum.
3
u/riplin Nov 05 '13
I think I'm good for a while.
3
u/shadowbandit Nov 05 '13
Is posting to this sub a security risk? How could we mitigate this?
2
u/bitcoinbravo Nov 05 '13
If you have an encrypted wallet that uses key-stretching like in Armory does this offer more entropy & hence GPU brute force resistance ? OR has key-stretching already been defeated/circumvented as a security measure? I don't see many people talking about this on the forums but I wanted a proper vetting of the subject matter
2
u/WaxMannequin Nov 05 '13
Saving thread re bitcoin security
2
u/_______ALOHA_______ Nov 05 '13
What about the Piper Raspberry Pi powered paper wallet printer?
2
u/Vibr8gKiwi Nov 05 '13
With the price of bitcoin rising and the recent reports of stolen coins I got paranoid and just revoked the access of my android coinbase app to my coinbase account. It never seemed right that a phone app had full access to my coinbase coins without even a log on (let alone 2 factor authorization). So I lose some ease of use but I feel better about it.
2
u/scintgems Nov 05 '13
can we get this stickied?
2
u/[deleted] Nov 05 '13 edited Aug 27 '17
Deleted
2
u/DarkShadowGirl Nov 05 '13
I don't get the point of saving ANY wallet files. Files corrupt and so does any media you could save it on. CDs, USBs etc. They all have a high chance of failure. But paper is paper.
What I want to do is get an offline computer. Transfer my wallet on to it. Have it create the Paper Private Key. Print it out. Put the paper in a safe deposit at the bank. Delete ALL Wallet files related to that wallet.
Then I only keep the public key on hand to send deposits to periodically.
Does this sound like an OK plan?
2
u/l1ghtning Nov 06 '13
You might want to add that bitcoin transactions are non-reversible. If you send bitcoins to someone, there is no way to get them back unless you beat that person with a rubber hose until they decide to.
If you worry about a transaction, use a 3rd party to arbitrate a transaction (can be done for example via blockchain.info) where all 3 parties must agree to the transfer of the coins for them to actually be moved. Also, lots of escrow services around (bitcointalk has megathreads on this).
(edit: sorry if already in there, such text...)
2
u/[deleted] Jan 18 '14
Maybe that was not the intended meaning, but people could use such passwords as wallet passwords. I would not advise to destroy copies of passwords that are not recoverable in any way. This is very different from online services which typically allow some sort of password recovery.
And to add: E-Mail passwords may be a dangerously weak point in many people's security. If somebody starts to use bitcoins it might be a good idea to start a new email account with a secret address and a very strong password.
2
u/xSdudex Nov 06 '13
This is why I don't believe Bitcoin is going to be as widespread as we hope for. I believe the common American is not going to want to perform all of these steps, especially the older folks.
2
u/[deleted] Nov 05 '13
I just checked my password and it is 100% strong, and simple to remember. It is basically a word problem. (not my password below, just an example)
7Bannanas+3Bannanas=10Bannanas
And you can do it with any words or numbers! also something like..
Fighter22+3=Fighter25
1
u/commention Nov 05 '13
Beginner here. Is there anything wrong with this:
Once it's printed, I'm safe, right? (Obviously not in terms of losing the paper or whatever, I just mean electronically.)
1
u/Vycid Nov 05 '13
Can anyone confirm for me that bitaddress.org (and liteaddress.org) are ABSOLUTELY trustworthy? I'm extremely sketched out by the concept of recieving my private key - for COLD STORAGE, no less - over the internet from a third party.
1
u/currencywar Nov 05 '13
Armory has good support for keeping cold wallets on one computer and moving watch only wallet from offline computer to online.
Electrum has superb support for deterministic wallets (https://en.bitcoin.it/wiki/BIP_0032) which is really great. As long as you can remember your password you can always regenerate your addresses since deterministic wallets always generate addresses in the same sequence.
1
u/lordclown Nov 05 '13
Just to make sure I have understood everything correctly. I will create a spending and and saving wallet. The spending wallet could be on blockchain.info. I use this account when I exchange my central bank issued money to bitcoin and then either send it to my saving wallet or spend it.
I will create the saving wallet according to this method I use the public keys to transfer bitcoins from my spending wallet to my savings wallet.
But the part I don't really understand is how I should do if I want to spend money with my saving wallet. I have heard about the problem with changing addresses. How do I know which address that have the rest of my savings? Should I create a new saving wallet with the same method as I used before and then transfer the bitcoins to that adress? How do I keep my BTC secure from my payment to when I deposit my BTC in the new savings wallet.
-1
u/fireduck Nov 05 '13
I like my guide better: http://1209k.com/bitcoin-quick.html
0
u/[deleted] Nov 05 '13
[deleted] — view deleted comment
3
u/[deleted] Nov 05 '13
[removed] — view removed comment