<p>As you described, a valid transaction must be submitted to the network to change ownership of funds. Mt.Gox P2PKH addresses, so spending the funds indeed required a signature of the corresponding private key to move the funds.</p>
<p>As Nate Eldredge commented above, this can be achieved either through gaining control of the key, or by causing the owner to use the key in the attacker's favor. Both occurred in the context of MtGox.</p>
<p>First, MtGox got <a href="https://blog.wizsec.jp/2017/07/breaking-open-mtgox-1.html" rel="nofollow noreferrer">hacked in 2011</a> where the attacker attained a copy of the service's hot wallet. Not only did they take the funds available at the time, but Mt.Gox continued to get deposits to tho addresses the attacker had keys for, which the attacker immediately redirected for the next two years.</p>
<p>Later, MtGox described losing funds due to attackers <a href="https://bitcoin.stackexchange.com/q/21994/5406">malleating</a> withdrawal transactions. In such an attack, one or multiple signatures on a transaction get modified which results in an equivalent transaction with a different transaction id (txid). MtGox was tracking withdrawals by txid. Since the original transaction never confirmed, MtGox misinterpreted the corresponding withrdrawals to have failed and reissued the same withdrawal again, paying out the withdrawal twice. Later research showed that this caused a much smaller portion of the losses than initially suspected.</p>
<p>If you are interested in reading more about the MtGox saga specifically, I would recommend the corresponding article series on the <a href="https://blog.wizsec.jp/search/label/MtGox" rel="nofollow noreferrer">WizSec blog</a>.</p>

CC BY-SA 4.0
2021-04-30T15:13:33.680Z
2021-04-30T15:13:33.680Z
Murch
<p>I read about <a href="https://en.wikipedia.org/wiki/Mt._Gox" rel="nofollow noreferrer">Mt. Gox</a> and how 850,000 bitcoins has been "stolen" from it. I do not understand how someone can steal bitcoins: if MtGox has bitcoins, and MrThief wants to use this bitcoins, then MrThief must show a transaction moving bitcoins from MtGox's accout to MrThief's account. But such a tranasaction must be signed by the private key of MtGox. Does it mean that, in order to steal bitcoins, MrThief must somehow find the private key of MtGox and sign transactions in its name? Or is there another way by which bitcoins can be stolen?</p>

CC BY-SA 3.0
2017-03-28T04:58:55.673Z
Simplifying greatly, MtGox's private keys were controlled by their software, so that transactions could be automated.  Thus it was possible to exploit vulnerabilities in that software to get it to send out coins that should not have been sent.  You don't have to steal the keys if you can trick the owner into using them the way you want.  See also http://bitcoin.stackexchange.com/questions/22104/wouldnt-the-malleable-transaction-attack-be-foiled-by-common-sense
Nate Eldredge
<security><mtgox>
How can bitcoins be stolen?
Erel Segal-Halevi
# How can bitcoins be stolen?

(Asked by: username_0 on 2017-03-27)

I read about [Mt. Gox](https://en.wikipedia.org/wiki/Mt._Gox) and how 850,000 bitcoins has been "stolen" from it. I do not understand how someone can steal bitcoins: if MtGox has bitcoins, and MrThief wants to use this bitcoins, then MrThief must show a transaction moving bitcoins from MtGox's accout to MrThief's account. But such a tranasaction must be signed by the private key of MtGox. Does it mean that, in order to steal bitcoins, MrThief must somehow find the private key of MtGox and sign transactions in its name? Or is there another way by which bitcoins can be stolen?

**Tags:** security, mtgox

> **Comments:**
> **username_1**: Simplifying greatly, MtGox's private keys were controlled by their software, so that transactions could be automated.  Thus it was possible to exploit vulnerabilities in that software to get it to send out coins that should not have been sent.  You don't have to steal the keys if you can trick the owner into using them the way you want.  See also http://bitcoin.stackexchange.com/questions/22104/wouldnt-the-malleable-transaction-attack-be-foiled-by-common-sense  

---

## 1 answers

### Answer by username_2 on 2021-04-30. Score: 1

As you described, a valid transaction must be submitted to the network to change ownership of funds. Mt.Gox P2PKH addresses, so spending the funds indeed required a signature of the corresponding private key to move the funds.

As username_1 username_1 commented above, this can be achieved either through gaining control of the key, or by causing the owner to use the key in the attacker's favor. Both occurred in the context of MtGox.

First, MtGox got [hacked in 2011](https://blog.wizsec.jp/2017/07/breaking-open-mtgox-1.html) where the attacker attained a copy of the service's hot wallet. Not only did they take the funds available at the time, but Mt.Gox continued to get deposits to tho addresses the attacker had keys for, which the attacker immediately redirected for the next two years.

Later, MtGox described losing funds due to attackers [malleating](https://bitcoin.stackexchange.com/q/21994/5406) withdrawal transactions. In such an attack, one or multiple signatures on a transaction get modified which results in an equivalent transaction with a different transaction id (txid). MtGox was tracking withdrawals by txid. Since the original transaction never confirmed, MtGox misinterpreted the corresponding withrdrawals to have failed and reissued the same withdrawal again, paying out the withdrawal twice. Later research showed that this caused a much smaller portion of the losses than initially suspected.

If you are interested in reading more about the MtGox saga specifically, I would recommend the corresponding article series on the [WizSec blog](https://blog.wizsec.jp/search/label/MtGox).


---

