<p>Ideally it is safe, the data transferred in bitcoin protocol is never meant to be executed. However:</p>

<ol>
<li><p>The transactions themself <a href="https://en.bitcoin.it/wiki/Script" rel="nofollow noreferrer">are programs</a>. While they are limited and cannot <em>directly</em> affect your computer, they can be just very computationally expensive, <a href="http://en.wikipedia.org/wiki/Denial-of-service_attack" rel="nofollow noreferrer">DoSing</a> your PC. This attack is impossible now <a href="https://bitcoin.stackexchange.com/a/5978/2343">and in foreseeable future</a>, since any non-standard transaction will not be evaluated.</p></li>
<li><p>Not virus, but it is possible to include arbitrary text messages inside blockchain. Therefore, one can include something that is illegal in some jurisdiction, potentially making bitcoin illegal as well, since blockchain can not be retroactively redacted. However, it is dubious whether such trick will actually work (<a href="https://bitcointalk.org/index.php?topic=11381.100" rel="nofollow noreferrer">1</a>, <a href="http://www.reddit.com/r/Bitcoin/comments/1akyy4/what_happens_if_someone_inserts_illegal_content/" rel="nofollow noreferrer">2</a>). But there was some <a href="https://bitcointalk.org/index.php?topic=38007.0" rel="nofollow noreferrer">commotion about including catholic prayers in block headers</a>.</p></li>
<li><p>There might be some bugs in bitcoin software (be it client or miner), just like in any other software. For example, it is possible to crash a computer by sending <a href="http://en.wikipedia.org/wiki/Ping_of_death" rel="nofollow noreferrer">specially formed ping</a> or <a href="http://technet.microsoft.com/en-us/security/bulletin/ms11-083" rel="nofollow noreferrer">execute code by sending packets to a <em>closed</em> network port</a>. This applies to all software and is not bitcoin-specific.</p></li>
</ol>

CC BY-SA 3.0
2013-12-18T07:09:33.917Z
2013-12-18T07:09:33.917Z
2017-04-13T12:47:33.743Z
aland
<p>I'm new to BitCoin and curious about a lot of things about it, and about the mining network. So is it safe for everyone to mine and not get their PC or other machines get hit by a virus if it goes along the transfer of information? How safe are we from this scenario as users?</p>

<virus>
Is it possible that a virus could be included in the block chain or even spread out to computers as miners are trying to mine?
Benjie Mangulabnan
# Is it possible that a virus could be included in the block chain or even spread out to computers as miners are trying to mine?

(Asked by: username_0 on 2013-12-18)

I'm new to BitCoin and curious about a lot of things about it, and about the mining network. So is it safe for everyone to mine and not get their PC or other machines get hit by a virus if it goes along the transfer of information? How safe are we from this scenario as users?

**Tags:** virus


---

## 1 answers

### Answer by username_1 on 2013-12-18. Score: 4

Ideally it is safe, the data transferred in bitcoin protocol is never meant to be executed. However:

1. The transactions themself [are programs](https://en.bitcoin.it/wiki/Script). While they are limited and cannot *directly* affect your computer, they can be just very computationally expensive, [DoSing](http://en.wikipedia.org/wiki/Denial-of-service_attack) your PC. This attack is impossible now [and in foreseeable future](https://bitcoin.stackexchange.com/a/5978/2343), since any non-standard transaction will not be evaluated.
2. Not virus, but it is possible to include arbitrary text messages inside blockchain. Therefore, one can include something that is illegal in some jurisdiction, potentially making bitcoin illegal as well, since blockchain can not be retroactively redacted. However, it is dubious whether such trick will actually work ([1](https://bitcointalk.org/index.php?topic=11381.100), [2](http://www.reddit.com/r/Bitcoin/comments/1akyy4/what_happens_if_someone_inserts_illegal_content/)). But there was some [commotion about including catholic prayers in block headers](https://bitcointalk.org/index.php?topic=38007.0).
3. There might be some bugs in bitcoin software (be it client or miner), just like in any other software. For example, it is possible to crash a computer by sending [specially formed ping](http://en.wikipedia.org/wiki/Ping_of_death) or [execute code by sending packets to a *closed* network port](http://technet.microsoft.com/en-us/security/bulletin/ms11-083). This applies to all software and is not bitcoin-specific.


---

