{"id":1264,"date":"2019-02-15T10:32:02","date_gmt":"2019-02-15T10:32:02","guid":{"rendered":"http:\/\/kusuaks7\/?p=869"},"modified":"2023-07-19T14:00:26","modified_gmt":"2023-07-19T14:00:26","slug":"privacy-and-security-on-blockchains","status":"publish","type":"post","link":"https:\/\/www.experfy.com\/blog\/fintech\/privacy-and-security-on-blockchains\/","title":{"rendered":"Privacy and Security on Blockchains"},"content":{"rendered":"<p><strong><em>Ready to learn Blockchain?\u00a0<a href=\"https:\/\/www.experfy.com\/training\/courses\">Browse courses<\/a>\u00a0like\u00a0<a href=\"https:\/\/www.experfy.com\/training\/courses\/blockchain-for-finance-professionals\">Blockchain for Finance Professionals<\/a> developed by industry thought leaders and Experfy in Harvard Innovation Lab.<\/em><\/strong><\/p>\n<h3><strong>Privacy and Security on Blockchains: What Protection Measures the Networks Are Adopting to Secure Their Users<\/strong><\/h3>\n<p><a href=\"https:\/\/perfectial.com\/blog\/blockchain-transforms-finance-healthcare-music-industry\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"ignore\">Decentralization of everything<\/a>, the great new idea of which the web can\u2019t stop babbling, might still seem a bit utopian if you inspect it closely.<\/p>\n<p>Yes, blockchains are likely to reshape our economy, or a huge part of it, and benefit considerably those who are currently unbanked.<\/p>\n<p>They might also facilitate the creation of rating\/reputation systems that are not controlled by any single entity and thus allow people (say Uber drivers who\u2019d like to work for Lyft) to switch employers without having to establish their credibility anew.<\/p>\n<p>They might give users complete control over their assets; protect them, to a degree, from being robbed and provide tools to sustain privacy even when a state-level actor \u2013 a bank or a government \u2013 is after their identity.<\/p>\n<p>But before these things start to happen the issues of privacy and security, which are currently pressing on blockchains, must be dealt with.<\/p>\n<p>In this article, we\u2019ll discuss how some major networks are trying to tackle the problems of safety and dispense advice to those using decentralized ledgers as to how to keep their assets protected at all times.<\/p>\n<h3><em>Let\u2019s get started!<\/em><\/h3>\n<p>The concept we should introduce first before we proceed to talk about security is that of\u00a0<strong>digital wallets.<\/strong><\/p>\n<p>In layman\u2019s terms, a wallet is a software program in which public and private keys are stored. After accessing it, one could manage the crypto assets it contains, and carry out, seamlessly, all sorts of transactions.<\/p>\n<p>Currently, there are four types of digital wallets in the blockchain ecosystem \u2013 desktop, web, mobile, and hardware ones. And to protect them, users encrypt the wallets with long, complicated passwords.<\/p>\n<p>So, what might go wrong?<\/p>\n<p>In 2011, a member of bitcointalk forum (someone \u201callinvain\u201d)\u00a0<a href=\"https:\/\/bitcointalk.org\/index.php?topic=16457.0\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">wrote a panicky post<\/a>\u2013 a cry for help \u2013 to his fellow forum members after finding out that he\u2019d been hacked and robbed of 25,000 BTC (which now, in October 2017, would be worth about $150m).<\/p>\n<p>Evidently, the attacker had managed to gain access to allinvein\u2019s PC and had, somehow, emptied out his digital wallet. He (or she) had either sent the transaction directly from the victim\u2019s machine or copied the wallet.dat file and ran it from his (or her) own.<\/p>\n<p>Another noteworthy theft was\u00a0<a href=\"https:\/\/www.reddit.com\/r\/Bitcoin\/comments\/1czrua\/just_lost_160_btc_from_address_managed_with\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">reported on the Bitcoin subreddit<\/a>. The user, asoltys, was fairly careful with his\u00a0<a href=\"https:\/\/blockchain.info\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">blockchain.info wallet<\/a>, so it came as an utter shock to him to discover, one day, that 160 bitcoins had been stolen from it.<\/p>\n<p>The vulnerability that made the theft possible lay with blockchain.info mobile app; it had to do with the user\u2019s rooting his Android phone.<\/p>\n<p>Generally, when one attempts to enter their blockchain.info wallet (from a desktop computer) they are asked to type in two passwords \u2013 a long one (16-20 digits) to access the entire wallet, and a shorter one (typically 8 digits) to get ahold of private keys.<\/p>\n<p>However, since typing lengthy passwords is tiresome on a smartphone, the wallet app will often have it memorized, and only require you to enter the second one.<\/p>\n<p>Therefore, if someone hacks into your phone, the one that\u2019s been rooted, they might find out where the main password is stored and decrypt it. Afterward, they can crack the second PIN code (hackers often use GPU or cloud-based computing clusters to brute force an 8 digit password promptly) and gain complete control over your wallet.<\/p>\n<p><strong><em>A few smart contracts on Ethereum, the second largest blockchain in the world, were attacked as well..<\/em><\/strong><\/p>\n<p>Ethereum isn\u2019t just a cryptocurrency. It is also a platform on which one could build decentralized apps.<\/p>\n<p>The software that\u2019s hosted on the network, therefore, must be designed impeccably: its code must contain zero vulnerabilities. Or else, it\u2019s bound to fall prey to clever attackers.<\/p>\n<p>Here are some famous (or should we say infamous) instances of hacking on the Ethereum network:<\/p>\n<p><strong>The DAO hack<\/strong>. One of the first major ICOs had a bug in its smart contract, of which attackers took advantage. Nearly $50m worth of ether was stolen and, though the assets were eventually returned to the DAO token holders (the blockchain developers performed a hard-fork), the hack led to a network split.<\/p>\n<p><strong>The\u00a0<a href=\"https:\/\/etherscan.io\/address\/0xb3764761e297d6f121e79c32a65829cd1ddb4d32#internaltx\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">Parity hack<\/a><\/strong>. The second biggest hack in the history of Ethereum happened a few months ago and resulted in a 153,037 ETH loss (~$32m at the time of theft). The vulnerability, which hackers managed to exploit, lay in the source code which Parity, a wallet \u201cvendor\u201d on Ethereum, had been giving out to users who wanted to create a personal multi-sig wallet.<\/p>\n<p>We won\u2019t be delving deeply into the technical aspects of the robbery; we\u2019ll just say that, in a nutshell, bad actors sent two transactions to the affected contracts \u2013 one to obtain ownership of the wallets and another to drain them; they were able to do so due to a tiny flaw in the multi-sigs\u2019 code.<\/p>\n<p>What happened next, however, was even more amazing. A group of\u00a0<a href=\"https:\/\/www.reddit.com\/r\/ethereum\/comments\/6obofq\/a_modified_version_of_a_common_multisig_had_a\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">white cap hackers promptly emptied out the rest of the wallets<\/a>\u00a0to prevent further damage. They saved over $75m worth of ether and then\u00a0<a href=\"https:\/\/www.reddit.com\/r\/ethereum\/comments\/6qrjr5\/the_whg_has_returned_100_of_the_rescued_funds_to\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">returned the funds to the rightful owners<\/a>\u00a0once the vulnerability was removed.<\/p>\n<p>The weak spot, according to the Parity blog, had been fixed; the new, improved version of their implementation of a multi-sig wallet was deployed after June 20.<\/p>\n<p>But on November 8, just a few months later, it, too, got hacked due to a bug in the multi-sig\u2019s code.This time, the loss of funds amounted to ~$155m worth of Ether.<\/p>\n<p>Both Parity and Ethereum itself have yet to make a decision as to how to return the funds to rightful owners. Most likely, we\u2019ll see another fork.<\/p>\n<p>But, as of now, things are still a bit unclear.<\/p>\n<h3><strong>How Can Developers Improve Security on Blockchains?<\/strong><\/h3>\n<h4><strong><em>ZKP protocols<\/em><\/strong><\/h4>\n<p>Since security on public networks depends largely on whether private data is accessed by a malicious actor or not, some major blockchains are planning to adopt something known as zero-knowledge proof (ZKP) protocols.<\/p>\n<p>To understand what ZKP is, imagine this: you\u2019re at a bar, your phone has just died; you\u2019re standing alone, sipping at a cocktail, when, suddenly, a guy shows up from nowhere and starts talking, anxiously, about how your close friend has gotten in some serious trouble.<\/p>\n<p>He invites you to walk a few blocks with him, to the place where she\u2019s currently at, so you can rescue her together. And says persuasively that there\u2019s no time left for stalling.<\/p>\n<p>You realize you\u2019ve never met the guy, but, again, your phone is shut off, there\u2019s no way of finding out whether he\u2019s telling the truth and, frankly, you are worried.<\/p>\n<h3>So, what do you do?<\/h3>\n<p>Well, you could interrogate him. Ask specific and complicated questions \u2013 the ones only a person who has really seen her would be able to answer \u2013 and keep requesting more info, again and again, until it\u2019s clear to you that he\u2019s not lying.<\/p>\n<p>In this equation you are the verifier whose making a prover, the other participant in the interaction, jump through hoops to convince you of the validity of his claims. He can\u2019t transmit a memory of meeting your friend from his head to yours \u2013 he\u2019s no telepath \u2013 so answering correctly to your questions, which you\u2019re making up on the spot, is the only way to make you believe him. This is, essentially, how ZKP works.<\/p>\n<p>In the world of blockchains, a prover isn\u2019t incapable of disclosing sensitive information; he\u2019s just not willing to. He wants to indicate, for example, that a certain transaction has taken place and keep in secret the transaction details. He wants to establish privacy and thus ensure security.<\/p>\n<p>Such level of confidentiality is precisely what\u00a0<a href=\"http:\/\/zerocash-project.org\/how_zerocash_works\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">Zcash<\/a>, along with some other blockchain applications, is meant to provide. And after ZKP is adopted widely, experts say, the number of malicious activities on distributed networks will drastically drop.<\/p>\n<h3><strong>Formal verification<\/strong><\/h3>\n<p>The smallest bug in an otherwise perfectly written smart contract can still lead to substantial losses \u2013 the Parity incident has proved that vividly.<\/p>\n<p>Therefore, having a system on blockchains that checks if a piece of software does what it claims to do, and scans whether its code is buggy, would potentially prevent a great deal of smart contract hacking.<\/p>\n<p>The idea behind this concept comes from math, and it is called formal verification.<\/p>\n<p>Blockchain networks, huge and small ones, are now thinking to launch a piece of code that can formally verify, with mathematical proof, that other pieces of code satisfy predefined fairness properties.<\/p>\n<p><a href=\"https:\/\/www.tezos.com\/\" target=\"_blank\" rel=\"noopener noreferrer\" data-wpel-link=\"external\">Tezos<\/a>, for example, a project that has recently raised over $200m via an ICO, is a smart contract technology that\u2019s meant to facilitate formal verification.<\/p>\n<p>And if it succeeds in doing so \u2013 if it creates a system that will prevent software with poorly written code from ever being deployed \u2013 that might become a game changer for the entire blockchain world.<\/p>\n<h3><strong>Summing up<\/strong><\/h3>\n<p>Decentralization has its flaws; the complete security and privacy are yet to be achieved.<\/p>\n<p>It doesn\u2019t mean, however, that blockchains are unsafe: substantial progress has been made already in the security area and clever developers keep on improving the technology on a regular basis.<\/p>\n<p>The losses, which are, of course, no insignificant ones, still don\u2019t approach even closely the amounts of money that have been stolen from centralized value storages such as banks and centralized exchanges. And, if anything, the trust in blockchains has now even grown.<br \/>\nEthereum, which used to be perceived as Bitcoin\u2019s less celebrated cousin, could soon be worth more than Silicon Valley. So there\u2019s every reason for blockchain enthusiasts to be optimistic.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ready to learn Blockchain?\u00a0Browse courses\u00a0like\u00a0Blockchain for Finance Professionals developed by industry thought leaders and Experfy in Harvard Innovation Lab. Privacy and Security on Blockchains: What Protection Measures the Networks Are Adopting to Secure Their Users Decentralization of everything, the great new idea of which the web can\u2019t stop babbling, might still seem a bit utopian<\/p>\n","protected":false},"author":159,"featured_media":2722,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[192],"tags":[98],"ppma_author":[2778],"class_list":["post-1264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-fintech","tag-blockchain"],"authors":[{"term_id":2778,"user_id":159,"is_guest":0,"slug":"rostyslav-demush","display_name":"Rostyslav Demush","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","user_url":"","last_name":"Demush","first_name":"Rostyslav","job_title":"","description":"Rostyslav Demush is a head content writer and technology researcher at Perfectial, one of Europe&rsquo;s leading full-cycle software development companies. He is also a well respected freelance IT journalist with experience of covering Blockchain, Big Data, and Analytics, Topological Data Analysis, IoT, &nbsp;Mobile App Development."}],"_links":{"self":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/1264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/users\/159"}],"replies":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/comments?post=1264"}],"version-history":[{"count":3,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/1264\/revisions"}],"predecessor-version":[{"id":29396,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/posts\/1264\/revisions\/29396"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/media\/2722"}],"wp:attachment":[{"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/media?parent=1264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/categories?post=1264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/tags?post=1264"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.experfy.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=1264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}