Bitcoin Forum
April 25, 2024, 06:06:11 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Various security-related questions (a lot to read, but small tip offered)  (Read 802 times)
oda.krell (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
November 22, 2013, 07:24:28 PM
Last edit: November 22, 2013, 11:01:48 PM by oda.krell
 #1

First, my apologies if this is the wrong subforum. I hope the 'Technical Support' forum is the right place to ask the following questions.

A quick preliminary clarification:

I'm not completely new to Bitcoin (but not a veteran either), and I've already read a number of security suggestions/tutorials/etc. With that in mind, I want to say that I am *not* looking for 'best practice' solutions, which presumably would mean offline usage of a full Bitcoin client, creating a paper wallet, etc. This would be the most secure, I understand, but it would not be practical for me, since I actively trade. I am just mentioning it because I want to avoid being scolded for e.g. using an online computer for transfering btc. This means I am interested in *understanding* what I do right now better, and if necessary, *improving* my practices, but please note that I am not aiming for an absolute maximum of security, but a careful balance between security and usability.

Here are my questions, grouped by topic:

(1) OS security

As mentioned above, I perform transfers on an online (more about that aspect later) computer. The OS I use is whatever is the latest stable version of Ubuntu.

Question (1.1) How safe am I from attacks during runtime, that are based on OS vulnerabilites, or programs that run on my computer. Assume that an attacker has *no physical* access to my machine, but knows my IP address and attempts to target me. My knowledge of Linux isn't particularly deep, so I don't know if I'm correct in my belief that a properly patched Linux distribution like the one I'm using is more or less 'safe' from, for example, trojans/software keyloggers, etc. How safe am I really, and what can I do to be safer? :D


(2) Bitcoin client security questions

I'm using Electrum. The electrum wallet is protected by a strong password.

Question (2.1) How safe am I using Electrum as my client? I understand that Electrum is not completely trustless because I don't have a full copy of the blockchain and rely on servers that I need to trust. So how likely are attacks on me via my choice of client? For example, is there any chance I could be connected to a "dishonest" Electrum server, who will be able to re-direct my btc transaction, or double spend?


(3) Network security

There are two scenarios in which I would possible use Electrum, or trade on a Bitcoin exchange webpage: at home, and at a public place.

Question (3.1) How safe am I when I am connected to my own WiFi network at home, which is WPA2 secured? Is there a plausible chance someone in the vicinity could intercept and decrypt my communication (i.e. break WPA2), and get for example access to the account data at my exchange? (please assume again a sufficiently strong password was set at both the exchange, and for my WiFi network)

Question (3.2) How safe is a *public* WiFi connection? Assume the WiFi connection itself is *unsecured*, but the webpage I'm using is reached via https. I'm sorry to be so clueless, but I don't really know if in that case my communication with the exchange webpage is in clear text or not? Can someone (the network admin of the unsecured network, or someone else eavesdropping) intercept my communication with the exchange website in clear text and interfere with it?


That's all.

Sorry for the wall of text :D To offer a small incentive to read through all of my dumb questions and even *answer* them, I offer a 0.025 btc = 25mBTC ~= 19 USD tip to the first poster who answers all of my questions in satisfactory detail (alternatively, I'll split the tip up between answers if no single poster answers all of them). Not much, I know, but just a small token of gratitude. If you prefer not to be tipped, please say so.

Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
1714025171
Hero Member
*
Offline Offline

Posts: 1714025171

View Profile Personal Message (Offline)

Ignore
1714025171
Reply with quote  #2

1714025171
Report to moderator
1714025171
Hero Member
*
Offline Offline

Posts: 1714025171

View Profile Personal Message (Offline)

Ignore
1714025171
Reply with quote  #2

1714025171
Report to moderator
1714025171
Hero Member
*
Offline Offline

Posts: 1714025171

View Profile Personal Message (Offline)

Ignore
1714025171
Reply with quote  #2

1714025171
Report to moderator
"The nature of Bitcoin is such that once version 0.1 was released, the core design was set in stone for the rest of its lifetime." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714025171
Hero Member
*
Offline Offline

Posts: 1714025171

View Profile Personal Message (Offline)

Ignore
1714025171
Reply with quote  #2

1714025171
Report to moderator
michagogo
Member
**
Offline Offline

Activity: 80
Merit: 10


View Profile
November 24, 2013, 09:20:26 AM
 #2

1.1: It's complicated. You should be mostly safe, as long as you're not going around running random programs and you don't have exploitable services listening on the network, but there's plenty of information online about the security of Linux distros.

2.1: With light clients such as Electrum or Multibit, you aren't fully trusting other nodes. You're doing SPV verification. Your private keys don't leave your machine, so a rogue server couldn't, for example, redirect your transactions, because you haven't signed the other transaction. (note that I don't know exactly how Electrum works in terms of its servers, but I do know that it doesn't just trust them blindly)

3.1: WPA2 is fairly secure, as long as you disable WPS.

3.2: Public networks shouldn't be assumed safe, but if you're using HTTPS you should be fine.
Ecurb123
Full Member
***
Offline Offline

Activity: 182
Merit: 100


View Profile
November 24, 2013, 09:37:13 AM
 #3

For the OS security, I think the risk is pretty low running Ubuntu. I would think the most likely way in this case would be if you installed some small software tool that also had some malicious code inserted into it. Let me also ask a question to the security experts, are there risks to my bitcoin stash having java enabled in my browser? 
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
November 24, 2013, 11:40:58 PM
 #4

Quote
Question (1.1) How safe am I from attacks during runtime, that are based on OS vulnerabilites, or programs that run on my computer. Assume that an attacker has *no physical* access to my machine, but knows my IP address and attempts to target me. My knowledge of Linux isn't particularly deep, so I don't know if I'm correct in my belief that a properly patched Linux distribution like the one I'm using is more or less 'safe' from, for example, trojans/software keyloggers, etc. How safe am I really, and what can I do to be safer? Cheesy

Make sure you have a firewall up and running. Disable the open SSH server if you don't use it. If you do use it enable public key authentication and disable password authentication and remote root login.

Install chkrootkit and rkhunter and run scans regularly.

To protect your wallet you can place it under a different user account than the one you are using for your other activities. That means create a new user, login and create a new electrum wallet (just run electrum while logged in as that user. make sure you backup the seed) and transfer all your coins to an address in the new wallet. For convenience sake you can create a new watch only wallet under your regular user account. This will allow you to hand out addresses, view transactions and balances using your regular user account but will require you to switch users to spend any coins.

Quote
(2) Bitcoin client security questions

I'm using Electrum. The electrum wallet is protected by a strong password.

Question (2.1) How safe am I using Electrum as my client? I understand that Electrum is not completely trustless because I don't have a full copy of the blockchain and rely on servers that I need to trust. So how likely are attacks on me via my choice of client? For example, is there any chance I could be connected to a "dishonest" Electrum server, who will be able to re-direct my btc transaction, or double spend?

Electrum is fine. The downsides are given below:

Electrum servers can't double spend your transactions. They can *not* broadcast them though. And they can give you fake data about transactions that never took place. But your private keys are entirely within your control. If you are worried about the authenticity of transaction data just double check it on blockchain.info.

Also you loose out on privacy because all your addresses are revealed to the servers.

Quote
(3) Network security

There are two scenarios in which I would possible use Electrum, or trade on a Bitcoin exchange webpage: at home, and at a public place.

Question (3.1) How safe am I when I am connected to my own WiFi network at home, which is WPA2 secured? Is there a plausible chance someone in the vicinity could intercept and decrypt my communication (i.e. break WPA2), and get for example access to the account data at my exchange? (please assume again a sufficiently strong password was set at both the exchange, and for my WiFi network)

Question (3.2) How safe is a *public* WiFi connection? Assume the WiFi connection itself is *unsecured*, but the webpage I'm using is reached via https. I'm sorry to be so clueless, but I don't really know if in that case my communication with the exchange webpage is in clear text or not? Can someone (the network admin of the unsecured network, or someone else eavesdropping) intercept my communication with the exchange website in clear text and interfere with it?

You actually can't trust any internet connection. The encryption used in your private wifi network is designed to prevent unauthorized persons from leeching your bandwidth. It won't magically make the Internet at large a safe place. It doesn't change the fact that you are connected to the global, wild west, free for all that is the Internet.

That is why we have firewalls, HTTPS, GPG etc. because we can't trust the network. So WiFi, wired, public or private doesn't matter. Whether it is properly encrypted or not does.
oda.krell (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
November 24, 2013, 11:53:38 PM
 #5

You actually can't trust any internet connection. The encryption used in your private wifi network is designed to prevent unauthorized persons from leeching your bandwidth. It won't magically make the Internet at large a safe place. It doesn't change the fact that you are connected to the global, wild west, free for all that is the Internet.

That is why we have firewalls, HTTPS, GPG etc. because we can't trust the network. So WiFi, wired, public or private doesn't matter. Whether it is properly encrypted or not does.

One follow-up question:

The corollary to what you said would be that I am safe (no matter what wifi network I use) if I connect to a site via HTTPS (and the certificate is valid). Did I get that right?

Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
November 24, 2013, 11:57:24 PM
 #6

(1) OS security

As mentioned above, I perform transfers on an online (more about that aspect later) computer. The OS I use is whatever is the latest stable version of Ubuntu.

Question (1.1) How safe am I from attacks during runtime, that are based on OS vulnerabilites, or programs that run on my computer. Assume that an attacker has *no physical* access to my machine, but knows my IP address and attempts to target me. My knowledge of Linux isn't particularly deep, so I don't know if I'm correct in my belief that a properly patched Linux distribution like the one I'm using is more or less 'safe' from, for example, trojans/software keyloggers, etc. How safe am I really, and what can I do to be safer? Cheesy
Almost all malware/keyloggers is targeted at the low-hanging fruit, that is: Windows users. They're the vast majority and have a large fraction of computer illiterates. So when using Linux, you're "safe" from most common threats, simply because cyber-criminals are also interested in maximizing efficiency.

Attacks specifically targeted at you are a different matter. How much can be done by someone knowing your IP address, depends on your network setup. If you're behind a router, then typically not much can be done. The router will drop any unsolicited incoming traffic unless explicit forwarding rules have been created by you (or another user with access to the routers configuration).

The largest threat is in phishing attacks: Luring you to fake websites to get you to input credentials or to execute a browser/plugin exploit to install malware. Disable extensions such as Java/Flash and/or run with an addon like NoScript to prevent this. Always be vigilant to ensure that the site you think you're on is the site you're actually on.

Quote
(2) Bitcoin client security questions

I'm using Electrum. The electrum wallet is protected by a strong password.

Question (2.1) How safe am I using Electrum as my client? I understand that Electrum is not completely trustless because I don't have a full copy of the blockchain and rely on servers that I need to trust. So how likely are attacks on me via my choice of client? For example, is there any chance I could be connected to a "dishonest" Electrum server, who will be able to re-direct my btc transaction, or double spend?
Electrum connects to multiple servers, so the chance of a successful attack is minimal. As others have said, your private keys are safe, so the scope of an attack is limited to not broadcasting your tx or feeding you false data about your current balance. You can create a watch-only wallet with Blockchain.info or another service to verify that Electrum shows the correct balance/transactions.

Quote
(3) Network security

There are two scenarios in which I would possible use Electrum, or trade on a Bitcoin exchange webpage: at home, and at a public place.

Question (3.1) How safe am I when I am connected to my own WiFi network at home, which is WPA2 secured? Is there a plausible chance someone in the vicinity could intercept and decrypt my communication (i.e. break WPA2), and get for example access to the account data at my exchange? (please assume again a sufficiently strong password was set at both the exchange, and for my WiFi network)
WPA2 is considered safe for now. An attacker without the WPA2-key won't be able to monitor your communication.

Quote
Question (3.2) How safe is a *public* WiFi connection? Assume the WiFi connection itself is *unsecured*, but the webpage I'm using is reached via https. I'm sorry to be so clueless, but I don't really know if in that case my communication with the exchange webpage is in clear text or not? Can someone (the network admin of the unsecured network, or someone else eavesdropping) intercept my communication with the exchange website in clear text and interfere with it?
The communication with the exchange is encrypted, but check that the SSL certificate is valid for the website you're visiting to prevent man-in-the-middle attacks. And even though the content of the HTTPS connection is encrypted, other users on the network will be able to see you connect to the exchange website and might use "offline methods" such as walking up to you and stealing your laptop if they're malicious and find out that you're about to trade Bitcoins.

In general, your security practices are fine. They may not be guaranteed to hold up against a truly dedicated person that is specifically targeting you, but these type of attacks are rarely worth the effort.
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
November 24, 2013, 11:58:24 PM
 #7

You actually can't trust any internet connection. The encryption used in your private wifi network is designed to prevent unauthorized persons from leeching your bandwidth. It won't magically make the Internet at large a safe place. It doesn't change the fact that you are connected to the global, wild west, free for all that is the Internet.

That is why we have firewalls, HTTPS, GPG etc. because we can't trust the network. So WiFi, wired, public or private doesn't matter. Whether it is properly encrypted or not does.

One follow-up question:

The corollary to what you said would be that I am safe (no matter what wifi network I use) if I connect to a site via HTTPS (and the certificate is valid). Did I get that right?

The content of the connection is encrypted, but others on the network will be able to see that you are connecting to this specific site.
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
November 25, 2013, 12:00:16 AM
 #8

You actually can't trust any internet connection. The encryption used in your private wifi network is designed to prevent unauthorized persons from leeching your bandwidth. It won't magically make the Internet at large a safe place. It doesn't change the fact that you are connected to the global, wild west, free for all that is the Internet.

That is why we have firewalls, HTTPS, GPG etc. because we can't trust the network. So WiFi, wired, public or private doesn't matter. Whether it is properly encrypted or not does.

One follow-up question:

The corollary to what you said would be that I am safe (no matter what wifi network I use) if I connect to a site via HTTPS (and the certificate is valid). Did I get that right?

Yes. I was about to edit my answer and clarify that.

Of course there are caveats to that as well. If someone else has installed a different set of CA certificates on YOUR system then even invalid certs would show up as valid. For example: a legitimate use case of this is when companies do this to their employee's systems to make the company's self-signed certs for internal systems appear valid.
oda.krell (OP)
Legendary
*
Offline Offline

Activity: 1470
Merit: 1007



View Profile
November 25, 2013, 12:41:15 AM
 #9

Thanks a lot, Rannasha & Abdussamad. Very helpful answers!

If it's okay with you I'll split the tip (in which case I still need your address, Abdussamad).

Not sure which Bitcoin wallet you should use? Get Electrum!
Electrum is an open-source lightweight client: fast, user friendly, and 100% secure.
Download the source or executables for Windows/OSX/Linux/Android from, and only from, the official Electrum homepage.
Abdussamad
Legendary
*
Offline Offline

Activity: 3598
Merit: 1560



View Profile
November 25, 2013, 12:48:04 AM
 #10

Thanks a lot, Rannasha & Abdussamad. Very helpful answers!

If it's okay with you I'll split the tip (in which case I still need your address, Abdussamad).

Ok thanks: 13m4SSVYXHdiA5jQM3i1w44UtPQj2yMwp2
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!