what if all three of the mining companies who currently comprise >51% of the Bitcoin hashrate were taken over by clandestine means, and the hackers subtlety changed the data store to (say) edit the chain and add their own blocks?
You can't simply "edit the chain" and "add your own blocks". That would simply be invalidated by all full nodes, as it's against the protocol. The blocks you add must follow protocol rules, i.e. match a certain difficulty, and thus it requires "real" mining to produce them.
So even in this scenario, you have only the "normal" 51% attack options: double spending (easy to detect), censoring miners (easy to detect too) and censoring transactions/addresses (like I wrote above, requires a little chain analysis but should be detected very fastly by the chain analysis firms, and in the case the fee is high this is also easy to detect by normal miners). There's nothing subtle in this attack.
So what if the same country took over 51% of the nodes? That's really what we're talking about here. I tend to simplify the conversation by using the words "miners" and "nodes" interchangeably even though that's not technically accurate, but for the purposes of a 51% attack, I just mean some entities that could be taken over.
And if some people detected the attack, what exactly would they do? Keep in mind that, unless the attackers were stupid, they would
also be spreading their own disinformation about the 49% who are attempting an attack, and don't let them get to 51%, yadda yadda. How do we know who is the good guy and the bad guy
in real time?
I think part of the problem in talking about this attack is that most of us (or all of us, hopefully
) are
not criminal hackers and we don't think like one. But I know enough about hackers to know that they tend to figure out ways around problems and can be pretty elaborate and subtle about what they do, and they... think of things I never thought of.
Don't get me wrong, I feel like Bitcoin is as safe as getting on any airliner: I would bet my life on it being safe, and I do every time I fly. But airlines do go down occasionally: it's a different argument to call Bitcoin "theoretically 100% safe". By the same token, I hold my life savings in the same place most people do: in a financial institution. I would never call it "absolutely safe" in an academic sense, but the chances of my accounts at these places being hacked or erased or whatever is basically not a concern to me since it is so low.
There's a common talking point about Bitcoin that it's safer than a typical major financial institution, from the standpoint of losing your investment based on storage failure (e.g. hacking, crashing, etc.). That's simply not true, and there are remote risks involved with either.
So, an attacker would need to control at least approximately 178.5 EH/s to launch a 51% attack on the Bitcoin network.
So... $9 million or so? That's peanuts for a nation-state, and private hackers could easily make 10x that selling shorts on BTC while all of the turmoil was happening. I'm actually hoping you are wrong here
.