Bitcoin Forum
November 07, 2024, 10:20:15 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How do you guys secure your bitcoins ?  (Read 1146 times)
drgr33n (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 251



View Profile
March 25, 2014, 11:42:48 PM
Last edit: March 26, 2014, 10:34:26 PM by drgr33n
 #1

Just thought I'd start a discussion (if anyone wants to discuss) how you lot are securing your bitcoin wallet, machines ? Here's how I have mine setup.

Bitcoins are stored on my laptop.
Laptop boots from UEFI grub (more secure than bios)
grub handles luks encryption now yey so grub prompts for password and mounts /boot fs (protects against initrd and vmlinuz tampering)
system has two drives one ssd (encrypted lvm) and one HDD (/var,virtual machines,wine).
init contains script to check hashsum of grub after boot and warns after boot (warns of changes to your bootloader)
after unlocking other drives the system boots into desktop.
My bitcoin wallet is stored inside yet another encrypted lv and symlinked back into my .bitcoin directory. I also have a custom startup script to handle loading the bitcoin-qt client. Here it is it's nt pretty but it works Cheesy

Code:
#!sudo /bin/sh
# Secure bitcoin starter by Zarren Spry <zarren@norfolklights.com>
#
USER="zarren"
mount_crypt() {
cryptkey=$(zenity --text "Enter passkey for encryptedfs" --password )
echo $cryptkey |  cryptsetup luksOpen /dev/laptop/bitcoin bitcoin
mount /dev/mapper/bitcoin /home/$USER/.bitcoin/encryptfs
}

check_mount() {
if [ ! -f /home/$USER/.bitcoin/encryptfs/wallet.dat ]; then
        echo "Mounting failed ! Please try again or check $LOGFILE for errors."
        exit 1
else
        echo "Filesystem is mounted correctly."
fi
}
(
echo "30" ;
echo "# Mounting encrypted filesystem." ; mount_crypt
echo "60" ; sleep 1
echo "# Checking mount." ; check_mount
echo "80" ; sleep 1
echo "# Creating symlink to wallet.dat" ;
if [ -f /home/$USER/.bitcoin/wallet.dat ] || [ -h /home/$USER/.bitcoin/wallet.dat]; then
rm /home/$USER/.bitcoin/wallet.dat
fi
 ln -s /home/$USER/.bitcoin/encryptfs/wallet.dat /home/$USER/.bitcoin/wallet.dat
echo "90" ; sleep 1
echo "# Loading bitcoin client."
echo "100" ; sleep 1
) | zenity --progress --title="Starting bitcoin-qt client" --text="Attempting to start bitcoin client ..." --percentage=0 --auto-close

if [ "$?" = -1 ] ; then
        zenity --error --text="Initialization canceled."
fi
bitcoin-qt
pid="$(pidof bitcoin-qt)"
wait $pid
 umount /home/$USER/.bitcoin/encryptfs
 cryptsetup luksClose bitcoin
if [ "$(ls /dev/mapper | grep bitcoin)" ]; then
zenity --info --text="Bitcoin-qt quit, encrypted file system closed!"
else
        zenity --error --text="Bitcoin-qt quit but encrypted filesystem still exists! Bitcoins are at risk :("
fi

What does this do ? Here's a brief explanation.

prompts for crypt password.
unlocks the encrypted filesystem and mounts to the appropriate folder.
checks to see if the encrypted folder is mounted with a simple file test.
checks and cleans up any old symlinks or now wallets created due to premature bitcoin-qt loading.
loads the bitcoin client with my wallet.
unmounts and locks the encrypted filesystem when bitcoin-qt is closed.

Script includes some zenity to give me nice gtk windows with information etc. I suppose I could get hit by a hardware sniffer, or exploited while the client is running but if I keep the client use to a minimum. Also I encrypt my wallet using the bitcoin client.

Also I have an init to wipe memory on shutdown via secure-delete, I also have a patched kernel with tresor included. My laptop has been bios locked and nothing else is allowed to boot except internal dd.

Is this over the top ? Or could I do anything else to keep people out ? How do you protect yours ? I suppose I'm trying to protect from theft of my laptop and theft of my wallet from my laptop while it's unattended (providing I've remembered to close the bitcoin client).
cdog
Hero Member
*****
Offline Offline

Activity: 1036
Merit: 500


View Profile
March 26, 2014, 12:37:29 PM
 #2

Sounds pretty complicated.

I just have my coins stored in as a default wallet.dat file which is encrypted using the default Bitcoin-qt software.

Its backed up to a few separate physical locations on USB flash drives.

If you use a strong passphrase, your coins are still secure even if someone nabs your wallet file.

If you dont encrypt your wallet.dat, or you dont back it up, you are asking for trouble.
drgr33n (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 251



View Profile
March 26, 2014, 11:06:16 PM
 #3

It's not really complicated once it's all setup. just a bit annoying that you have to type two passwords on boot. One to unlock your boot partition. One thing I didn't mention my laptop closes the encrypted boot partition once booted. I'm also protecting all my personal data using this setup.

I'm also protecting myself this way from physical theft of my wallet.dat while the bitcoin client is not running. I don't want a super hard password on my wallet just in case I the worst happens and for some reason I forget it. But that means the password can be brute forced.

With my script the wallet.dat file will only be accessible when the client is open and in use. Once I close the client the script closes the encrypted partition and my wallet.dat is not accessible.

I know the wallet encryption is hard to break NOW but you also have the future to think about. Something that sounds ludicrous now could be achievable in the near future. Bitcoin is still a very early growing currency. The thing with bitcoin is that it's not just a national currency it's a GLOBAL currency. If bitcoin keeps growing and maybe become the dominant internet currency (I'm predicting it will) each one of your coins could be worth around $100,000 easy in the next 5 to 10 years. If you have a few coins that's a lot of wealth. If someone has a copy of your encrypted wallet and has motive nothing is impossible. I'd hate to wake up 10 years down the road thinking I was stinking rich, check blockexplorer and realize some fucker actually managed to break the encryption on my wallet and steal my coins.

That's why I'm super cautious about my wallet.dat

 
bountygiver
Member
**
Offline Offline

Activity: 100
Merit: 10


View Profile
March 26, 2014, 11:46:06 PM
 #4

It's not really complicated once it's all setup. just a bit annoying that you have to type two passwords on boot. One to unlock your boot partition. One thing I didn't mention my laptop closes the encrypted boot partition once booted. I'm also protecting all my personal data using this setup.

I'm also protecting myself this way from physical theft of my wallet.dat while the bitcoin client is not running. I don't want a super hard password on my wallet just in case I the worst happens and for some reason I forget it. But that means the password can be brute forced.

With my script the wallet.dat file will only be accessible when the client is open and in use. Once I close the client the script closes the encrypted partition and my wallet.dat is not accessible.

I know the wallet encryption is hard to break NOW but you also have the future to think about. Something that sounds ludicrous now could be achievable in the near future. Bitcoin is still a very early growing currency. The thing with bitcoin is that it's not just a national currency it's a GLOBAL currency. If bitcoin keeps growing and maybe become the dominant internet currency (I'm predicting it will) each one of your coins could be worth around $100,000 easy in the next 5 to 10 years. If you have a few coins that's a lot of wealth. If someone has a copy of your encrypted wallet and has motive nothing is impossible. I'd hate to wake up 10 years down the road thinking I was stinking rich, check blockexplorer and realize some fucker actually managed to break the encryption on my wallet and steal my coins.

That's why I'm super cautious about my wallet.dat

 
If you are talking about securing a cold storage for 10 years, at least have a physical backup of your private key (and keep the key like it literally worth $100,000).

You'll get pissed off more if your laptop hdd has any problems 10 years later.

12dXW87Hhz3gUsXDDCB8rjJPsWdQzjwnm6
drgr33n (OP)
Sr. Member
****
Offline Offline

Activity: 308
Merit: 251



View Profile
March 27, 2014, 10:10:32 AM
 #5

I have backups Cheesy
TookDk
Legendary
*
Offline Offline

Activity: 1960
Merit: 1062


One coin to rule them all


View Profile WWW
March 27, 2014, 10:24:51 AM
 #6

I have done a lot of research on this topic; my solutions uses two Bitcoin-core clients and one paperwallet.
1. Bitcoin-core client running on my desktop-pc, this is my hotwallet, where I do all my in/out transactions to the "world". I never keep too many bitcoins here. Password is of cause strong.
2. Bitcoin-core client running on dedicated pc, this is my cold-storage, only use this PC if I have to move funds to my hot-wallet.
3. Paperwallet, printed out, stored away. Never touches this one. Only uses it for long time storage of funds I am certain that I don't need in the near future.

I have backup of all the wallets, located at two different locations.  

I know that there is more secure ways to do this, but the more security you add the higher is the chance that you will not be able to access the funds your self.
The important thing for me, is that it reasonable safe and I trust the setup.

I also thing it is important not to "put all the eggs in one basket", thing it is important to divide your funds into different system/types. E.g. if my cold-storge is compromised it is unlikely that my paper wallet is compromised at the same time.

Cryptography is one of the few things you can truly trust.
Altoidnerd
Sr. Member
****
Offline Offline

Activity: 406
Merit: 251


http://altoidnerd.com


View Profile WWW
March 27, 2014, 01:42:47 PM
 #7

Just keep them on gox.  lulz

Do you even mine?
http://altoidnerd.com 
12gKRdrz7yy7erg5apUvSRGemypTUvBRuJ
TookDk
Legendary
*
Offline Offline

Activity: 1960
Merit: 1062


One coin to rule them all


View Profile WWW
March 27, 2014, 01:49:03 PM
 #8

Just keep them on gox.  lulz

Remember to always spread out the risk:
Keep 1/4 at inputs.io, 1/4 at BIPS, 1/4 at Mt.Gox and 1/4 at Vircurex?  lulz

Cryptography is one of the few things you can truly trust.
softron
Full Member
***
Offline Offline

Activity: 210
Merit: 100


View Profile
March 27, 2014, 03:08:28 PM
 #9

Simple i dont keep the keys on a machine i use on d net. So its all offline and i use blockchain when i need them online.

fuzzi
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile
March 27, 2014, 06:38:03 PM
 #10

Simple i dont keep the keys on a machine i use on d net. So its all offline and i use blockchain when i need them online.

How do you use blockchain when you need them online and how do you get to cold safely?
Chancellor
Full Member
***
Offline Offline

Activity: 154
Merit: 100


View Profile
March 27, 2014, 06:50:54 PM
 #11

Well, no advanced techniques used:

1. I do not use Windows for running bitcoin-qt.
2. Wallet is encrypted with strong password.
3. The whole datadir is placed on a TrueCrypt volume mounted manually when needed.
4. A few backups of wallet.dat in different physical locations.

Sure, not a cyber Fort Knox, but IMHO enough considering I'm still below 1 BTC :-).

BTC: 1GRx2H5esyFTucZCt1eX9tjpoqfMrbVHMT
TookDk
Legendary
*
Offline Offline

Activity: 1960
Merit: 1062


One coin to rule them all


View Profile WWW
March 27, 2014, 06:54:02 PM
 #12

Simple i dont keep the keys on a machine i use on d net. So its all offline and i use blockchain when i need them online.

How do you use blockchain when you need them online and how do you get to cold safely?

I believe that softron means the blockchain-wallet, it has a pretty nice function to sweep private keys, you can even use your webcam to read a QR code for the private key.

You could make 100 x paper wallets and load them with 0.01 BTC each.
Then use them as "5 dollar bills", each time you need bitcoins you redeem a bunch of your 0.01 BTC paper wallets.

Cryptography is one of the few things you can truly trust.
etotheipi
Legendary
*
expert
Offline Offline

Activity: 1428
Merit: 1093


Core Armory Developer


View Profile WWW
March 28, 2014, 04:23:27 AM
 #13

Seriously.  This is Armory's bread and butter.  You can keep the coins as secure as you want (hot or cold wallet), one-time only backups, still distribute unique addresses for every transaction, still be able to monitor the coins and incoming payments on the online computer, and no need to sync blockchain data between online and offline computers to spend.

Basically, Armory has already solved all the complexities of putting private keys offline, keeping public keys online, and shuttling the minimum amount of data needed for the offline computer to securely verify and sign the transactions.

https://bitcoinarmory.com/about/using-our-wallet/#offlinewallet

Founder and CEO of Armory Technologies, Inc.
Armory Bitcoin Wallet: Bringing cold storage to the average user!
Only use Armory software signed by the Armory Offline Signing Key (0x98832223)

Please donate to the Armory project by clicking here!    (or donate directly via 1QBDLYTDFHHZAABYSKGKPWKLSXZWCCJQBX -- yes, it's a real address!)
TookDk
Legendary
*
Offline Offline

Activity: 1960
Merit: 1062


One coin to rule them all


View Profile WWW
March 28, 2014, 08:50:55 AM
 #14

Seriously.  This is Armory's bread and butter.  You can keep the coins as secure as you want (hot or cold wallet), one-time only backups, still distribute unique addresses for every transaction, still be able to monitor the coins and incoming payments on the online computer, and no need to sync blockchain data between online and offline computers to spend.

Basically, Armory has already solved all the complexities of putting private keys offline, keeping public keys online, and shuttling the minimum amount of data needed for the offline computer to securely verify and sign the transactions.

https://bitcoinarmory.com/about/using-our-wallet/#offlinewallet

You guys are doing a great job with armory, thank you!

The application has some very nice feature, e.g. signing transactions completely offline - each time I boot my cold-storage PC and syncing, then am I exposing the PC to the internet.
I would definitely advice user who have large funds to look into this solution.

I have only little experience with Armory, maybe I will switch from Bitcoin-core to Armory if my level of paranoia increase.

Cryptography is one of the few things you can truly trust.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!