520 points · by HaseebQ · 9y ago · 414 comments
> By exploiting the same vulnerability, the white-hats hacked all of the remaining at-risk wallets and drained their accounts, effectively preventing the attacker from reaching any of the remaining $77,000,000.
> To prevent the hacker from robbing any more banks, the white-hats wrote software to rob all of the remaining banks in the world. [...]
One argument I keep hearing in favor of cryptocurrencies is that they are beyond the control of individual governments and their regulation through legislation and law enforcement.
Next time, I'm going to use this case as a counterexample, because when the solution to the problem of "hackers robbing banks" is "vigilantes robbing the remaining banks", something is very wrong with your system, and it is certainly not something for the general public.
To be clear, neither of the two situations is "more moral" than the other. In the end however, the question remains: who you trust. Governments have resolved the question long ago (by enforcing trust), cryptocurrencies are just now starting to face the same question. You are correct however that who you Trust remains the greatest issue behind creating a currency.
Governments in the west are quite accountable, voted for and with a system of checks and balances that has evolved over time, through wars and revolutions.
Some random benevolents overlords (white-hat hackers) that save you just because they are magnanimous was the only option only in the most primive societies.
Thankfully we moved on from those times, don't you agree?
I've written this comment before, and I'll repeat it as it's relevant to your comment:
Societies have gradually grown more unfair as the political system has strained under their growing complexity. According to political scientists, the average voter has an extremely limited understanding of what their government is doing. The typical person's understanding of economics is similarly extremely limited.
This opens the door to manipulation by demagogues and special interests. The growing control that government exerts over society, seen in everything from the emergence of a mass-surveillance system of unprecedented scope, to the number of regulations on the books, to the percentage of GDP made up of government spending, is not healthy, and needs a counter balance in privacy technology that empowers the individual and limits the Kafkaesque tendencies of collective society.
Hahahahahahahaahahahahahahaahahahahahahaahahahahahahaahahahahah
I think this is where you're losing people. For the most part, it isn't true, and the trend seems to be shaped as a downward slope.
The "government" of the US still imprisons 2 million people, mostly because it has a list of plants and chemicals it doesn't like and won't negotiate on. That's just one example of its ongoing dysfunction.
It's completely reasonable, in a mature and thoughtful society, to try doing things in a completely different way. I'm not sure that cryptocurrencies are a good answer, but they're at least a good question.
History is not a linear progression, as far as societal and political developments are concerned. Our current government system is not the pinnacle of development so far, let alone the ultimate, final system.
And even by that view, as you say yourself the current system, if satisfactory, took hundreds of years to develop. Crypto currencies were invented 7 years ago.
You might be right that governments are more evolved and have more history but that doesn't make them universally better.
The underlying cause is a generally shoddy design of the contract language: when you're writing code where it's imperative that it have no security flaws, writing it in a JavaScript-like language which provides so few protections is absurd.
The Ethereum community is run by profiteering speculators rather than revolutionaries, however, so to them, performing a 51% attack on their own blockchain whenever they don't like how a contract turns out is an okay solution.
Modern governments provide an elaborate system of fallbacks: checks and balances, a justice system with multiple levels of appeals. Those may be complex and fallible, but they are at least reasonably good at dealing with unexpected problems.
When a smart contract goes wrong, there are no fallbacks.
Like others have suggested, there is a fallback just like in other systems, it's just not formalized - yet. The difference is that in government there must always be a fallback , while smart contracts leave open a possibility that in the future, with an ideally unhackable contract, the fallback can potentially be removed.
Sure there is. As the DAO hack showed us, if you can get enough of the network to agree to it, you can literally rewrite history and create an alternate universe where the contract never went wrong.
What happens if a crypto-asset becomes a legitimate currency and then an bad actor wants control and takes it using military-level force - or manipulation like blackmail, death threats of you or family members, etc?
The Russian government being strongly against anti-crypto-currencies and then recently Ethereum being endorsed by Putin himself by a physical visit with Vitalik. Does that not ring warning bells to others?
If someone evil - for a lack of better word - pumps $1 billion into the ecosystem early on, how much could they turn that into? What if then they use other $1 billion to lobby and pay off politicians, or get people into power who are "strong believers" in the crypto-assets, to then intertwine societies currencies with crypto-currencies. There is a lot of incentives for them to do this, and I'm not the only one aware of this issue. Even just pumping more $ billions into the ecosystem will create stronger believers - because their "$100 is now worth $70 million."
This current investment-like incentive for creating a new currency is bad for society, the wealth transfer as it currently would happen needs to be worked out of a crypto-asset based currency.
The argument for reverting the DAO was that 1) Ethereum was very new and there was still a lot of confusion about good community practice, 2) It would still serve as a cautionary tale even with the reversal, since it was the first big mistake, 3) A large percentage of all Ethereum early adopters were invested in it, so letting the money go would have a bad effect on adoption, 4) Because Ethereum was so new at the time, the DAO represented a large percentage of all outstanding Ethers.
We just won't see another theft with all of those attributes in place. The community is diversified and better educated.
> Are we going to end up with 50 forks
Yes and no.
Yes, in the sense of yes, there will literally be 50 forks. But that's the point of cryptocurrencies... anyone can fork them and run things their own way.
No in the sense that No, we won't have Ethereum, Ethereum Classic, and 48 other equally valid forks.
Forks have to be based on ideas if they are to last. Ethereum is based on the idea that it's a startup platform and there's going to be a little jostling around as it gets going, but that in the long term interventions will only be made when there are clear existential threats to the network.
Ethereum Classic is based on the idea that you never fudge the blockchain ever. What's written is written and what's done is done.
For there to be a third big chain, there needs to be a third big idea. What's that idea? Reverse all clear instances of fraud or theft?
OK, cool. That's a third chain. They'll fork off ETH and reverse this transaction. Maybe ETH keeps it, because it falls under "buyer beware" for them.
Now we've got three forks. One currency where nothing ever changes, one where only existential threats are dealt with, and one where theft and fraud is actively policed with a big beurocrasy.
Again: This is the point of cryptocurrency! You can set up different regimes with different ideas, and they will work differently.
> and then how does that even work - do then people accepting these crypto-currencies need to decide which forks they're going to accept from?
Yep. Just like how you can accept Dollars, Euros, Bitcoin, and Ethereum, you can also accept Ethereum Classic, and any other fork you like. It's all just currencies. They'll all be tracked on the exchanges and talked about endlessly on online forums.
The difference is, instead of being tied to the political system within a geographic area, they're tied to an idea.
I can see what you're saying, but I don't think that this is a problem with cryptocurrencies specifically, it's a problem with buggy software, yes, but it's something that is the case with every dangerous exploit being actively taken advantage of in the wild, Heartbleed would be an example that doesn't involve cryptocurrencies, but I give you that the Ether-based ecosystem seems to be a particularly buggy collection of software, probably because of too much ambition, (a Turing-complete VM), being written by people with too little experience and applied for very sensitive (monetary) transactions, which seems like a recipe for disaster.
Cryptocurrencies are being sold as eliminating trust and allow us to rely on the cold certainty of mathematics. Only trust hasn't been eliminated from the system, it's just been shifted from a central bank to the authors of the software client you're using. To the majority of the miners in the network.
The awful politics, lies, greed, corruption, are still here in all their glory.
Yeah, I don't see the difference here. So it was an aspect of Ethereum that had the vulnerability, how many more millions have to be stolen before the system is successfully QA'd?
I'd never heard of Ethereum before, so now this is the only thing I've heard about it.
Not a sound argument.
I wonder if the vigilantes will return the money with interest...
The authority and the process by which they do this is agreed upon, or at least known, ex ante. That was not the case here. Trust isn't fungible.
1) most contracts worth implementing in Ethereum are fairly complex
2) even given great developers, bugs are inevitable in complex code
3) the budget of the contract-makers' security team MUST be smaller than that of the hackers
You quickly see that if the chance of a bug is nonzero, "smart contracts" don't make economic sense. If you have a $100k contract, and you spend $5k on security (which would absolutely destroy most companies' margins by the way) you'll be facing hackers that are EACH willing to spend up to $90k or so. Let's say all the experts in this example world are $200/hr. You spent 25 expert-hours on security. But you're being hacked by people who spent 450 expert-hours on hacking you.
With that in mind, would YOU want to use a smart contract? Spend 5% of the contract value instantly on security, and risk losing 105%? This isn't a normal loss by the way, where you can prosecute someone or sue somebody. No, this is the instant, digital theft of the entire value of the contract, to an anonymous digital address where it will be quickly blended in with hundreds of millions of dollars of similar thefts a month.
Also worth pointing out that a non-trivial number of people would say that no theft at all has occurred, as the smart contracts are supposed to be the final authority, and if you can convince a smart contract to give up its value to an attacker then that's perfectly fine as that's how the contract was written. Ethereum Classic is a good example of this.
That's OK for now as the _real_ money being put into crypto-currency is understood to be a speculative thrill-ride. People who put actual _real_ money into this stuff know it could vaporize at any time for completely insane reasons. Its basically a bunch of people playing with funny money and having loud arguments about absurdly complex rules.
If, somehow, this stuff is to make it into the real world and start interacting with money, institutions, courts and the livelihoods of regular people, it will have to be VERY different from what it is now. That means you can't have smug, over-confident programmers writing clever shit-code and proclaiming it to be "law" and the "final authority".
I think this is a common misunderstanding of Ethereum and blockchains in general. The current Ethereum blockchain is authoritative only as long as a majority of it users consider it to be authoritative. The same applies to Bitcoin. No single person decided to fork Ethereum after the DAO was hacked, it was decided by a quorum of Ethereum users. The original fork still exists as Ethereum Classic and if you believe that the "contract is king" then you are still free to continue using that fork along with everyone else who shares that view.
You say "To me at least Ethereum was dead the moment they chose to fork" and that is probably the view of many Ethereum users. I'm certain many Ethereum holders chose to divest their positions and move their assets elsewhere. That is a big loss for the currency but obviously enough people still believe it to be worth something and so it survives.
Because of their distributed nature, cryptocurrencies can be thought of more as living organisms fed by the collective computing power of their users. They don't need to be perfect to survive, only to be slightly fitter than their competitors.
Let's assume offer, acceptance, capacity, legality for a transaction.
So question to me is, when do we have a contract (do we have a contract?) and what IS the contract. For this usually (not always) look to the so called "meeting of the minds."
If we define the meeting of the minds as the EXACT actual code, it's hard to argue that using a bug in the code is a breach. Simplistic example: I write a lease that says if I sell the house me or the buyer can terminate the lease on 30 days notice. You do not do any diligence on that lease. When I sell the house and the buyer terminates, you're out of luck.
If we define the meeting of minds as "you are promising to do thing X for me, and you propose to do it with a smart contract", then if there is a bug in the contract, that might be a breach on behalf of the person offering to do thing X. Simplistic example: Your website says if I send ETH to address "0xExample" you offer a service that will send it back in 6 months. If 0xExample is hacked and money wasn't returned, well, you could argue that there was a breach of a contract to return your money.
No idea how a Court might come out, and being the law, it depends on shades of grey, other factors, skill of lawyers, etc.
I frankly can't wait until this shit gets litigated.
And that's been true right from the beginning with Bitcoin: scams, schemes, heists, data loss - the headlines scream blood all the time. We've never had that kind of "mean time to disaster" in technology before. The status quo was that something would fail, but the failure would never quite get back to the individual or company that produced it. They would spin it away, and no careers would be harmed. But the likes of Solidity produces a meat-grinder, a blind destroyer of any who dare enter calling themselves rockstar.
I think it's kind of awesome and beautiful, in that sense. It will induce a maturation throughout the economy to adapt to this new pressure. But like adolescence, it can be an ugly work in progress, and I don't expect Ethereum itself to be a survivor at this rate.
Things is, with Apple and Google there is a rather low ratio of spectacular failures to output of products that are in many cases, rather effing amazing. Whereas with the cryptocurrencies unfortunately, the spectacular failures be they in the form of scams, schemes, or heists, more or less are the story.
It's not like these recurrent tales of avarice, greed, or just plain seediness are crowding out the print space for the tales of all the amazing things cryptocurrencies are bringing about, there's room to tell that story to, but where is it.
At this point it's getting harder and harder to locate where there is that glint of hidden potential in cryptos in the face of all the malice and fuckups.
It will never happen, but that's actually a great idea.
Clearly if TWO hackers both spend $90k and only one extracts the value, the other one has lost their entire $90k - unless there's a way to be sure you are the one who will win that, your expected return on the $90k is only $50k if there are two parties trying to hack the contract.
The interesting bit is yes - the immediate loss. But a loss of unmarked cash is similarly instant.
On the other hand, recently another country changed its note design, and made the older design no longer valid. Whatever physical cash you had in hand instantly lost its value, while whatever value you had in bank accounts was automatically converted.
As you can see, sometimes cash is safer, sometimes bank accounts are safer.
True, there isn't a global list of where every bank note is.
I've already lost a tiny amount of BTC just by testing a bit with short keys. Can you imagine what the world would be like if every time you left your wallet for 10 seconds, it vanished?
testing a bit with short keys.
He's put some bitcoin into wallets with keys/passwords that don't meet very high security standards.
I've already lost a tiny amount of BTC
He's then lost that bitcoin because there are programs running running around the clock to programatically empty any wallets with passwords that don't meet very high standards of security.
Thus,
Can you imagine what the world would be like if every time you left your wallet for 10 seconds, it vanished?
But this is the "trustless" world you signed up for right?
The scenario you gave should be fairly similar to any application outside of Ethereum that deals with money ie. a banking app, except for the fact that, like you mentioned, you can't prosecute someone.
Also, here's a possibly crazy idea: could one create bug bounties for algorithms (or even arbitrary software) on the Ethereum blockchain by writing the algorithm into a contract such that if you somehow break it you receive the bounty?
An example of this would be the massive implicit bounty currently placed on the crypto algorithms (SHA256, ECDSA/Secp256k1, etc) underpinning cryptocurrencies (of course, if those were broken the value of the cryptocurrency would plummet instantly)
There are already useful tools for symbolic execution, and I have a hunch that this kind of verification will be important along with model checking.
What I would like to see is a verified high-level smart contract language layered on top of the Ethereum stack, allowing non-logicians to put together contracts that mean what they think they mean. See [3].
[1]: https://github.com/pirapira/eth-isabelle
[2]: https://github.com/pirapira/ethereum-formal-verification-ove...
Cryptocurrencies are serving as bug bounties for their crypto primitives, but that only benefits other users of those primitives.
The Ethereum developers create Solidity with the goal to make it "super easy" for developers to create dapps. Security wasn't the #1 priority. And now the ecosystem will pay for that design decision. Whether the decision still ends up being a net positive in the long term, it remains to be seen.
However, keep in mind that Ethereum as a platform is still in its very early days, with not even 0.01% of the population using it. If $30 million can be stolen just like that, what happens when 10% of the population uses it and there are trillions of dollars invested in it? (assuming it will be the "next internet" or whatever)
Doesn't seem to quite work like that in real life.
I mean some of these things have bugs still, but generally when you have something of fixed scope then there are less bugs over time. Especially if you're restricting your scope to something simple
I think a good analogy here is to compare to American settlers. You're going to have a few waves: the explorers who move into totally uncharted territory and take on significant risk by using smart contracts. These are kinda crazy people who love the innovation, and I'd argue this is the majority of people in the space right now.
Eventually there will be the settlers, who start finding early uses for this technology that can significantly lower costs. Basically collecting on low-hanging fruit. J.P. Morgan, many finance companies, some savvy governments will step in to capitalize on easy wins.
Then there will be the long tail of normal uses. By the time the average company invests in smart contracts, there will be very well-understood battle-tested templates and toolchains for creating smart contracts, as well as consulting firms that are specialized in writing them for you with provable security guarantees.
Right now it's early. Your average company should not use smart contracts, that's a no-brainer. But someday the economics are going to make it a no-brainer for certain things, like incorporation, or issuing shares, or doing payroll, or complying with import/export regulations, or doing corporate taxes, or whatever it is that ends up more efficient through blockchains.
You think a lack of technology is what's keeping these giants back from innovating? There's a reason many banks still have mainframes powering large portions of their internals. Lack of new tech is not holding them back.
There are many reasons. Institutional inertia for one, a lack of sufficiently knowledgeable people another. Banks are not innovating because you can't get around them anyway. And personally I don't mind, I'd much rather have my $ parked with an entity that moves slowly and predictably than with some 'move fast and break stuff' outfit that gives me a heartattack 3 times per year by showing me a $0 balance and no support department to call.
For example, stock option agreements are usually pretty straightforward... until a termination date has to be decided on. How does the termination get put into the contract?
Though I suppose smart contracts could exist as an automation mechansim , but there's a "wrapper contract" that provides "real deal" legal protection against abuse?
Coincidentally, that's (part of) the role our court system plays in contract disputes; but there are other existing systems e.g. arbitration.
Some things that are at stake on the lawyers side are their competence (can they actually make sure the contract is "secure" ?), their reputation (track record of competence established over time) and some insurance mechanism (if things go wrong can you get something back from their insurance).
All of the above seem to be missing in the case of "smart-contracts".
...Which was founded by the very person who developed the smart contract language Solidity. Which goes to show how difficult it is to write 100% bug-free smart contracts.
This is precisely because it was deemed impractical to write contracts that could be 'computationally' interpreted line by line. Seems like the etherium is slowly rediscovering this fact the hard way.
> The problem is that his programming toolchain allowed him to make these mistakes.
Damn straight. The problem is that the model of 'public by default, opt in for security' is fundamentally daft in this context. There's quite a good read on that particular topic here too http://hackingdistributed.com/2017/07/20/parity-wallet-not-a....
...but hey, if this ends up making Ethereum better, more secure and more robust as a result, then that's a good thing; it probably does need a different better language to express code in.
Just remember...
> certainly you should not store any money in a hot wallet that you’re not comfortable losing.
>> The problem is that his programming toolchain allowed him to make these mistakes.
This is not the right conclusion; it is too shallow. It suggests that the risks of smart contracts can be fixed with some changes to the programming toolchain, but no-one has ever made one that only produces secure code, and I think I can safely call that notion a pipe-dream. How, then, do we write code with the level of security needed by smart contracts, and in the volume needed for smart contracts to be useful, if they are to be publicly accessible like Ethereum? The fact is, this has never been done before at that volume, and we do not know how to do it.
> Just remember...
>> certainly you should not store any money in a hot wallet that you’re not comfortable losing.
But what does it take to be comfortable? Unless you are just going to take someone else's word for it, you would have to examine all the code, including the libraries and the EVM itself, and be competent enough in security to be comfortable that you had not overlooked ay risks. But the real problem is that this does not just apply to hot wallets, it applies to anything that puts your Ethereum at risk. So, in practice, 'being comfortable' means trusting a bunch of people you probably do not know well, and with no recourse if that trust turned out to be overly optimistic.
For whatever historical reasons, software has almost always been engineered shoddily as compared to other money-critical or life-critical forms of engineering.
Companies (and governments) aren't willing to make the investments of time, personnel, expertise, and money that are required to create secure, safe code. Insecurity and vulnerability is the norm even among supposedly security-conscious organizations.
We could discuss the root causes all day (companies rarely face full consequences of poor security, etc), but part of the problem is denial. Few are willing to acknowledge how much work it would be to create truly secure code. Instead they settle for being better than most competitors.
However, this does not mean that really, actually secure code is impossible, just that we should (a) admit the scope of the challenge, (b) start taking steps toward that goal (like investing more in research).
It's daft in most contexts, and is one of the largest sources of security problems. If your design requires enumerating badness[1], you're doing it wrong.
> from: http://hackingdistributed.com/2017/07/20/parity-wallet-not-a...
>> Just about every ICO, trust and company used the Parity multisig wallet, and that code was considered well-tested.
-sigh- This is, unfortunately, a common problem. "It worked ok the last N times" and "It passed a lot of tests" do not mean it's bug-free and safe to use. Richard Feynman was right during the Challenger investigation when he called this a childish attitude. (He was also right in not wanting to assign blame, instead asking "How do we educate the child?"[2])
[1] http://www.ranum.com/security/computer_security/editorials/d...
https://github.com/nemequ/portable-snippets/blob/master/safe...
The real issue here is that the class constructor called a function instead of containing all code within itself. It's a fundamental misunderstanding of how the EVM works and how Solidity compiles to it.
I've read the code and it's hard to convey the level of incompetence that went into having a dynamic call from the Wallet constructor to the initWallet function; but it's very, very high.
Writing provable, secure software is difficult, and highly unlikely if your environment doesn't force the correct mindset. Solidity (poorly named) was made with the primary goal of being easy for JavaScript / Node hackers to use.
The cost of this is now illustrated through the repeat 'hacks' of bad 'smart contracts'.
Once I transitioned to Elm and Haskell, I saw bugs almost disappear. I didn't improve as a dev, I just used a safer language.
Especially when money is involved, correctness and safety should be the number 1 priority.
You can put any script kiddy in front of them and get a "working" program.
> Once I transitioned to Elm and Haskell,
My first question when I heard of Haskells main features: "What does a planet from Star Wars have to do with programming?". Haskell is not a source of cheap programmers.
> Especially when money is involved, correctness and safety should be the number 1 priority.
When money is involved the first priority is a cost/risk evaluation. Generally the people involved in that evaluation don't have much of a personal risk so the number 1 priority is to reduce the cost.
I mean.... I guess. It's a feature of Ethereum, if we're going to weasel around.
At some point I wonder if the idea of smart contracts is better than a traditional system, since they seem prone to developer error due to complexity.
This will probably come off as being assholish, but I honestly don't mean it to be: you should read the rest of the article. It actually covers this topic in depth and has good thoughts on this fundamental issue with smart contracts.
- Humans make mistakes, the tools should have been better
- The technology to make Ethereum safe doesn't really exist
- We should work to make that technology exist
- We should be happy this happened since it raises awareness about the problem
> In the end, attacks like this are good for the community. They call you to your senses and force you to keep your eyes open.
What?!
Listen, just because Valgrind exists doesn't mean you can't accidentally write a C program with memory errors. Just because Rust protects against race conditions doesn't mean you can't have bugs in your threading code. We're not even close to a world where tools can offer amazing protection.
> The developer here was Gavin Wood, one of the co-creators of Ethereum, and the inventor of Solidity, the smart contract programming language. The code was also reviewed by other Parity contributors. This is basically the highest standard of programming that exists in the Ethereum ecosystem.
This was an error made by the best of the best, reviewed by the best of the best. The tools that will save us from this madness don't exist. What does this mean for Joe Developer? It means he's not going to build something that he keeps anything of value on. The author's cheery "we'll be stronger for this!" attitude completely neglects the obvious chilling effect that this is having. If the guy that invented the damn thing can't protect his $31 million dollars, why would I even try to build something that could manage even hundreds of dollars?
And to that end, is it really better than a traditional system?
The idea is incredible. Groundbreaking. Honestly super interesting to me.
The execution of them as law is... well, going about as expected. This is why the law doesn't actually work this way.
The trouble with appealing to the middling devs, of course, is that you end up with middling code, and middling smart contract code is how to shoot yourself in the foot.
https://davidgerard.co.uk/blockchain/ethereum-smart-contract...
Why would you execute arbitrary text in any other languages?
One of the key and powerful features of the Ethereum Virtual Machine or, EVM, is the ability to delegate execution to external libraries. You can think of this much the same way you think of installing 3rd party libraries in your favorite programming language of choice.
In the EVM you can write a "library" which performs some common functionality such as manipulation of date-time objects much like the `datetime` library in Python. Any other contract may then make use of this code simply by delegating execution to the deployed library address. This has inherent risks that every Ethereum developer should understand fully, but with that risk comes some incredible power and potential.
There currently is no "Standard Library" for the EVM but it is looking very likely that it will be comprised of this type of contract. Slowly, overtime, these library contracts will be written and deployed to the network. There is work being done on using theorem solvers to mathematically prove that a contract satisfies certain properties which opens the door to a "provably correct" standard library.
I know of no other computing environment or packaging system that has these properties. For me, it has been an enlightening subject and I feel like we've only just scratched the surface.
> _walletLibrary.delegatecall(msg.data)
Dunno how much contracts in the wild have such brilliant feature.
https://web.archive.org/web/20160406115607/https://www.bloom...
ATMs are not secure because of their software. They are secure despite their software.
Maybe eth will reach the point where the police will come after people who try heists like this. That seems much harder than coming after someone who stole $30m from a series of ATMs, though.
I am most certainly not a lawyer.
Unless courts recognize the ability to sign away your rights through some kind of disclaimer that makes the smart contract the equivalent of binding arbitration.
so, how can he get rich without getting caught?
The problem that this hacker has is that they need to convert a lot of coins.
I moved my money out of Ethereum for now.
[1] Actually, its more schadenfreude, partly with the audacity of the speculator and system market makers, and partly at the mindless waste these proof of work/stake systems require.
The stakes are extraordinarily low relative to situations where formal proofs are mandatory. For references, the list price of a single new 737 runs in the 50 million range, and the cost of the software for the 737 is amortized across many thousands of planes.
1. That's actual hard money. Real US dollars you can use to buy yachts and houses and avocado toast. Given the level of hype and amount of speculation, the true value of all the ether in the world is obviously considerably less than Ethereum's market cap. The hacker stole $30M 'worth' of ether, not 30M actual dollars
2. The cost of a plane crash is easily 10x the price of the plane, and of course you can't put a price on the lost souls.
I'm sorry, but what a bunch of baloney.
Far from perfect (fake ID, assumes the issue is spotted promptly, etc.) but better in this case.
Obviously in this case, reassigning the wallet owner is completely against the spirit of the smart contract. What solutions are there to this? All I can think of is for contract coders to use a language that allows contract constraints to be specified more easily (e.g. "owners cannot be reassigned") and have it verified by the language. Maybe this is a good application of formally verified code but the language being used doesn't seem built with that in mind.
This is not accurate... the MtGox hack was ~$100M, Bitfinex ~$60M, the DAO $50M, so this would be the 4th, not 2nd.
Misleading statement
The coins just have to go through a single intermediate account for there to be doubt that the hacker still owns them
Isn't "unbreakable" a bit of a dirty word in the security community? Is there really such a thing as "unbreakable cryptography"?
Yes. One time pads are unbreakable.
"Even after the aliens from Andromeda land with their massive spaceships and undreamed-of computing power, they will not be able to read the Soviet spy messages encrypted with one-time pads (unless they can also go back in time and get the one-time pads)." (Bruce Schneier, Applied Cryptography)
- Vernor Vinge, "A Fire upon the Deep"
"Dirty" is one way to put it, yes. I'd personally use something like "false god" or "blasphemy" :). "Unbreakable" is a naive way of describing cryptographic algorithms, because it preempts conversations about intractability assertions or complexity analysis...modern cryptography accepts as a premise that "unbreakable" is not a reasonable goal, which is why we work by quantifying computational cost.
When I see someone use the phrase, "unbreakable cryptography", I mentally discount their authority to speak about cryptography and become more skeptical (this also applies to people who write things like "bank-grade security" or who tell me "AES-256" when I ask them how they're encrypting data, as if the key size is more important than the block cipher mode or confidentiality/authentication construction).
> Is there really such a thing as "unbreakable cryptography"?
A one-time pad, with the following provisos:
1. It has a truly random seed, not a pseudorandom one;
2. It is at least as long as the plaintext;
3. It is never reused (for the same plaintext, in whole or part).
It's straightforward to see why this guarantees information-theoretic security - you have no way of knowing when you've recovered the correct plaintext. There's nothing to brute-force.
In the security community we don't use one-time pads because we dare not touch the sun: they are extremely difficult to implement correctly, and even if you do implement them correctly you have traded off an inordinate amount of practical usability for a relatively small improvement in information theoretic security.
Asking people to 1) use true randomness to seed keys, 2) generate a new secret key for every message, 3) never reuse the same secret key and 4) keep each secret key securely confidential is extremely prone to error. It's often a fetishized ideal among people who first read about it, but in practice it's just not worth it.
One time pad systems are used regularly for high-security embassy-to-State Department communications. Since there are also secure couriers between those locations, there's a way to distribute key material. With today's storage densities, carrying key material around is easy.
Well that seems a bit pedantic, but yes, you're right. The difficulty I was focusing on however is the randomness itself, not how far it has to be extended. Ostensibly once you've incorporated a non-deterministic seed (which is necessarily external) into your process, you can extend it to the pad itself. The pad itself will just be a stream of that data, like a non-deterministic stream cipher. I get the impression you're aware of this already though, so I won't belabor it.
> One time pad systems are used regularly for high-security embassy-to-State Department communications. Since there are also secure couriers between those locations, there's a way to distribute key material. With today's storage densities, carrying key material around is easy.
Fair enough, I'll concede they have practical uses in situations where there are couriers and extremely high security requirements. That's about all they're practical for, though :)
Is it just the fact that it would take two trips for the courier? Or that someone would need to intercept both communications (pad, ciphertext)?
How do you guarantee the third condition? Wouldn't you eventually run into the birthday problem if you sent enough messages?
Not that it matters. The sqrt(n) birthday effect isn't sufficient to overcome the exponentially low chance of a one-time pad collision for pads of any substantial size.
You're not likely to get a collision ever because of the typical sizes of one-time pads - birthday paradox matters if the key length is measured in bytes, but not if it's measured in gigabytes, there isn't enough space/time in our universe to expect a collision.
Take Alice and Bob, who want to communicate confidentially. Alice doesn't know Bob personally, so she can't securely communicate the one-time pad to Bob in person. Ethereum implements public-key cryptography, so she uses Bob's public key to send him the one-time pad's key. But now we're at the chicken and egg problem: we've just witnessed secure communication, so why do we want to use a one-time pad in the first place?
Alice and Bob might respond, "so we can have perfect secrecy at some point in the future!" Which...alright, sure, let's go with it. So now to implement the one-time pad in Ethereum, Alice needs to feed a source of true randomness as a seed for a secret key which is as long as the plaintext. This is not only a genuinely hard problem, but it's grossly inefficient to encrypt something using a secret key as long as the plaintext itself. But wait - for every new plaintext, Alice has to do this true random seed song and dance each time to generate a new secret key. And every secret key ever used needs to be kept perfectly secret as well.
You really just don't want to do this. One-time pads barely made sense in pre-modern cryptography; they don't solve any practical problems in modern cryptography, and their demands require steep usability sacrifices that are quite easy to screw up.
"A large fraction of the flaws in software development are due to programmers not fully understanding all the possible states their code may execute in." http://www.gamasutra.com/view/news/169296/Indepth_Functional...
As long as ethereum contracts support stateful OO contracts, they are bound to run into these kinds of bugs.
If he was alive today, perhaps he would have said:
"There is no avoiding professional security audit; it can only be postponed to the advantage of cybercriminals."
Their statement is the biggest joke[0]:
"This body of code continues to have no known security issues."
This reminds me of:
"Beware of bugs in the above code; I have only proved it correct, not tried it." - Donald Knuth
[0] https://blog.ethcore.io/the-multi-sig-hack-a-postmortem/
Does ethereum/ether allow me offline wallets? Can i have multiple accounts/wallets and easily administrate them? Is any agency insuring this yet? If so, then isn't this also user-error here? Don't allow a wallet of $X size that you can't afford to have disappear?
That's probably the most secure method of managing keys yourself, assuming access to physical security. A good approximation of this solution is the use of a hardware wallet, which keeps the private key behind a secure enclave (USB interface, transaction signing occurs within the enclave)
There's no insurance or anything like that, either privately offered or via government regulation. The crypto market is still immature, so I wouldn't be surprised to see protections emerge in the coming decade. In the meantime, there is no equivalent to a bank for crypto assets—the best practice is currently to manage offline wallets oneself. Certainly be careful, though, user error is a big risk!
- return them exactly as they were, with the unlucky people completely losing funds
- distribute them back among everyone based on the % of total funds that were in their wallets
http://www.telegraph.co.uk/news/2017/04/25/brazilian-bandits...
What does it mean for the dollar?
Answer: Nothing, but people improved their security so it doesn't happen again.
That said, any form of eval should also be a red flag for security. It seems like in this case cost won over security. And that is fundamentally the biggest threat to security.
In fact, it's a testament to the poor technical capability of most people involved in Ethereum that the whitehat was even able to do this, in any other environment you'd have had other blackhats clean out the remaining $90m within minutes, all it took was to fire up a web3 console (ethereum's javascript interface) and call the initWallet method with your own address on it.
Then you could drain the contract at will.
I have little faith in this kind of system. Could anyone here explain to a noob how Eth would be any better than Bitcoin?
https://ericrafaloff.com/introducing-the-solidity-function-p...
Having said that, the actual article is pretty good...
What would be the valid use case, why author decided he should put it there beforehand?
Yes the price has increased by 4000% in couple of months this year but most reasonable people agree it is a pure speculation / gambling.
I'm sure you would agree that by this definition any cyberheist can be called an "unsolicited 3rd party security audit".
A hard fork would be impractical–what do you do about all of the transactions that occur downstream? What about the people who innocently traded assets with the attacker? Once the ether they’ve stolen gets laundered and enters general circulation, it’s like counterfeit bills circulating in the economy — it’s easy to stop when it’s all in one briefcase, but once everyone’s potentially holding a counterfeit bill, you can’t really turn back the clock anymore.
Also, a tweet from Vitalik:
https://twitter.com/VitalikButerin/status/887782650026631168
ethereum oldskool?
Our community cannot continue operating in the hacker mode wherever money is involved.
I'm also sure that nobody will act to artificially limit the supply of legally employable programmers just to enrich the few at the expense of the rest of us.
I'm also sure that such guilds wont be run by the least talented bureaucrats possible unfit to produce code themselves!
Further I guess we can just cancel open source software.
This is a terrible terrible terrible idea. The cure is worse than the disease.
I am an engineer. There are codified regulations that I am required to comply with by law. Hypothetically if I certify the design of a structure and later on I was found to be have been negligent in performing my duties as a practicing professional engineer then Me, the company I work for (or both of us) are up for huge liabilities.
You can't build a $31M Bridge without the design being certified yet you can build software to handle $31M dollars of transactions just fine.
None of this would stop open source contributions. If you want to contribute code to some financial processing software submit your pull request and have the (professionally certified) reviewer sign off on it after doing his job (i.e reviewing it).
Edit: Here's a quote from William LeMessurier it's part of an ethics case study I learnt about at university (http://www.theaiatrust.com/whitepapers/ethics/study.php)
"If you’ve got a license from the State and a certification from the University first and now you’re gonna [sic] use the license to hold yourself out as a professional, you have a responsibility beyond yourself, if you see something that is a social risk...good heavens this thing would kill thousands! You must do something. You must do something"
Now a bug in this particular piece of code isn't going to kill someone but $31M is a lot of money to have stolen. No one in this topic is even thinking of the consequences. It could ruin multiple peoples lives losing that much money. A lot of people just seem to be content with this lawless "wild west" world of programming. Personally I think we should be striving for a higher level of professional and ethical standards.
The discretion you desire ought to be enforced by the people who are responsible for that 31 million dollars not a set of standards imposed from on high.
If they fail and lose other peoples money or even lives the court is in the best position to correct this on a case by case basis.
Any set of standards imposed from on high are likely to evolve slowly and work poorly as it is difficult to fully specify the problem without in each case fully using understanding the code, the problem space, and the risks.
Ex a standard codified a few years ago would probably specify safe ways to write c but forbid rust.
We can fully specify safe and proper ways to build bridges because we have been building bridges for thousands of years while software development is less understood and still in Flux.
I don't think we could effectively turn software development into engineering even if this was desirable.
This is already the case. Try working in aerospace.
But how else will we rope in foolish devs from doing foolish things like eval() in the context of a user's wallet except by policing our community?
You can expect businesses to do it...
And people should demand for such static analysis like now we do ask https connections
(1) Is bad economics. In most cases, getting rid of occupational licensing would create wealth. To take law/lawyers as an example, see http://www.econtalk.org/archives/2011/09/winston_on_lawy.htm...
(2) Would have the practical effect of taking away my livelihood and ability to work. Would have radically altered my life, personally, for the worse.
I just want to posit that the world doesn't care about what we, the developer community, thinks. All they care about is what we DO. And, if we're going to keep acting like unethical mercenaries, and then something truly tragic happens (like mass deaths) as a result of our mistakes or malice, then your livelihood will be affected anyways.
So, do you want to get ahead of this thing and define the parameters of our reordering? Or, would you like some clueless politicians and bureaucracies to decide our fate?
Maybe such a system would keep out the very worst programmers but I doubt someone hacking on Ethereum smart contracts falls into that bucket anyways.
What exactly are you arguing for here? Obviously, humans are imperfect and corrupt - but you can impose some order and ethics and error correction into any community when you get organized.
OP said one of the creators of Etherium was responsible for the bug, how much more 'expert' can you get? The problem is one of programmer craft, or the lack thereof.
A guild or professional association keeps quacks and idiots out, it doesn't solve the problem of experienced competent people occasionally making subtle mistakes.
I have a bachelors degree in CS and was working in banking and finance firms with <1 year of experience. No, it wasn't aerospace or quantum physics, but I did have to get cleared by a few 3-letter agencies before I could touch the codebase.
Things haven't changed, programmers are in high demand everywhere.
Any Germans care to comment? They have the closest systems, I would think.