{"id":761,"date":"2019-03-19T21:36:21","date_gmt":"2019-03-19T16:06:21","guid":{"rendered":"https:\/\/bitcoinik.com\/?st-import=b7b5a8bf509bce68e63c0254b6d6258e"},"modified":"2019-03-19T21:36:21","modified_gmt":"2019-03-19T16:06:21","slug":"what-is-a-replay-attack-how-can-blockchains-be-protected","status":"publish","type":"post","link":"https:\/\/bitcoinik.com\/?p=761","title":{"rendered":"What is a Replay Attack? How Can Blockchains Be Protected Against These Attacks?"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"http:\/\/bitcoinik.com\/how-to-secure-your-bitcoin-privacy-make-your-btc-safu\/\">Security<\/a> is not easy as much as you expected. There are new and unique types of attacks comes into action by hackers every new day. Replay Attack is one of them.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_91 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/bitcoinik.com\/?p=761\/#What_is_Replay_Attack\" >What is Replay Attack?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/bitcoinik.com\/?p=761\/#How_a_Reply_Attack_works\" >How a Reply Attack works?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/bitcoinik.com\/?p=761\/#How_Can_Blockchains_Be_Protected_Against_These_Attacks\" >How Can Blockchains Be Protected Against These Attacks?<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_Replay_Attack\"><\/span>What is Replay Attack?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Replay attack is a type of network attack in which an attacker first detects a data transmission on the network then repeats or delayed that data transmission. This attack is also known as playback attack.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In simple words, a replay attack is performed to bypass security protocol by fooling the honest participants using duplicated data or by repeating the original data on the network. It helps the attackers to gain access to the network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_a_Reply_Attack_works\"><\/span>How a Reply Attack works?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Lets Anna wants to prove his identity to Monty. Monty requests his password as proof of identity, which Anna dutifully provides ( like a <a href=\"http:\/\/learnmeabitcoin.com\/glossary\/hash-function\">hash function<\/a>) meanwhile, Attacker is looking on the conversation and keeps the password (or the hash). After the connection is over, Attacker ( as Anna) connects to Monty, when he asked for a proof of identity, Attacker sends Anna&#8217;s password (or hash) read from the last session which is accepted by Monty and thus granting access to the Attacker. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Can_Blockchains_Be_Protected_Against_These_Attacks\"><\/span>How Can Blockchains Be Protected Against These Attacks?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Blockchain ledger can be attacked when there are some changes occur through chain like hardfork. Hardfork splits the chain into two in which one is original chain and second one is new updated code chain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whenever these hardfork occured, the Blockchain ledger can be go through replay attack by attackers.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> Mostly there are some some security protocols are included to protect the blockchain from these replay attacks during hardfork.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Blockchain can be protected from replay attacks by using two types of security measure. These are known as strong replay protection and opt-in replay protection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In strong Replay protection , a special rule is defined on new forked chain by which it checks that the any transaction happened on it will not be valid on the original chain, as well as the other way around. This type of protection was used in first Bitcoin hardfork, BitcoinCash. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Opt-in replay protection is used when there is some network upgrade occurred in the <g class=\"gr_ gr_7 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins replaceWithoutSep\" id=\"7\" data-gr-id=\"7\">main<\/g> chain but there is no chain split. It was used in <a href=\"http:\/\/bitcoinik.com\/ethereum-constantinople-hardfork-is-successful\/\">Ethereum Constantinople Hardfork<\/a> occurred on 28 Feb. 2019.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The main difference between these two protections is strong replay protection is executed automatically whenever hardfork occurred and opt-in replay is executed manually by users to protect chain from replay attacks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The most commonly used technique to protect yourself from a replay attack is to block the transfers of coins until blockchain creates certain blocks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Also read : <a href=\"http:\/\/bitcoinik.com\/what-is-dusting-attack-is-your-btc-secure\/\">What is Dusting Attack? Is your BTC secure?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Replay attack is a type of network attack in which an attacker first detects a data transmission on the network then repeats or delayed that data transmission. This attack is also known as playback attack.<\/p>\n","protected":false},"author":1,"featured_media":840,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[42],"tags":[],"class_list":["post-761","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-security"],"acf":[],"jetpack_featured_media_url":"https:\/\/bitcoinik.com\/wp-content\/uploads\/2019\/03\/step0002-1.jpg","_links":{"self":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts\/761","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=761"}],"version-history":[{"count":0,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/posts\/761\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=\/wp\/v2\/media\/840"}],"wp:attachment":[{"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=761"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=761"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bitcoinik.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=761"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}