{"id":5802,"date":"2018-02-01T11:37:03","date_gmt":"2018-02-01T16:37:03","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=5802"},"modified":"2020-12-09T16:19:11","modified_gmt":"2020-12-09T21:19:11","slug":"man-in-the-middle-attack","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/man-in-the-middle-attack\/","title":{"rendered":"What is a Man-in-the-Middle Attack? How do you prevent one?"},"content":{"rendered":"<h2>Don\u2019t let the man in the middle fool you<\/h2>\n<p>You may have heard the term \u2018Man-in-the-middle (MiTM) Attack.\u2019 You may even have a blurred idea of it. But you\u2019re still wondering \u2018What exactly is a Man-in-the-middle attack?\u2019 Right? Let us hash it out for you. As implied in the name itself, this kind of attack occurs when an unauthorized entity places him\/herself in between two communicating systems and tries to intercept the ongoing transfer of information. To put it simply, an MiTM attack is a modern-day version of bugging. <span id=\"newline\"><\/span><\/p>\n<p>We\u2019ll get more into the man-in-the-middle (MiTM) attacks in a minute but first look around you. Look at your smartphone, look at the apps in it, look at your PC, look at those smart-connected devices gossiping with each other, look at the website you\u2019re on right now. Had a good look at them? Good. Now take a step back and think about everything you just looked at. What\u2019s driving all these things? The answer would be data\/information. The thing about data is that it travels. Whether it\u2019s from one PC to another, one server to another, one country to another \u2013 data knows no bounds.<\/p>\n<p>Unfortunately, all this traveling brings in the inevitable questions of security and privacy. When data leaves from one end-point to another, the period of transmission is where the control over it is somewhat lost. When an attacker positions him\/herself in between the end-points and intercepts and\/or tampers with this data-in-transit, it\u2019s called a man-in-the-middle (MiTM) attack. In layman\u2019s terms, it\u2019s a lot like eavesdropping.<\/p>\n<span style=\"display:none\" class=\"tl-placeholder-f-type-shortcode_12753\"><\/span>\n<p>That&#8217;s right, when you try to overhear a conversation between two people without them knowing, it\u2019s kind of like a man-in-the-middle attack. I personally like to do my snooping with my headphones over my ears, but turned off. And just to be clear with my colleagues, I don\u2019t do this in the office\u2026 for the most part.<\/p>\n<figure id=\"attachment_5804\" aria-describedby=\"caption-attachment-5804\" style=\"width: 1145px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5804\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-872067596.jpg\" alt=\"man-in-the-middle attack\" width=\"1145\" height=\"916\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-872067596.jpg 1145w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-872067596-300x240.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-872067596-768x614.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-872067596-1024x819.jpg 1024w\" sizes=\"auto, (max-width: 1145px) 100vw, 1145px\" \/><figcaption id=\"caption-attachment-5804\" class=\"wp-caption-text\">Have you seen this man? No. Probably not.<\/figcaption><\/figure>\n<h2>So, What Exactly is a Man-in-the-middle Attack?<\/h2>\n<p>While data transmission is taking place between a device (PC\/Phone) and web server, an attacker using his skills and tools places him\/herself between two endpoints and intercepts the data. While the two parties believe that they&#8217;re talking to each other, they&#8217;re communicating with (and through) the perpetrator in reality. That\u2019s what a man-in-the-middle attack is.<\/p>\n<p>Basically, it\u2019s a con trick.<\/p>\n<p>These attacks not only take place during device-server communication, but they also can occur wherever two systems are exchanging data virtually.<\/p>\n<h2>How does it work?<\/h2>\n<p>When it comes to MiTM attacks, there isn\u2019t just one single method that can cause damage\u2014there are four! Generally speaking, there are Sniffing, Packet Injection, <a href=\"https:\/\/www.thesslstore.com\/blog\/the-ultimate-guide-to-session-hijacking-aka-cookie-hijacking\/\">Session Hijacking<\/a>, and SSL Stripping. Let\u2019s have a brief look at them.<\/p>\n<ul>\n<li><strong>Sniffing: <\/strong>Sniffing or Packet Sniffing is a technique used to capture the packets of data flowing in and out of a system\/network. Packet Sniffing in networks is equivalent to wiretapping in telephones. Keep in mind that Packet Sniffing is legal if employed correctly, and many enterprises do it for \u201csecurity purposes.\u201d<\/li>\n<li><strong>Packet Injection: <\/strong>In this technique, an attacker injects malicious packets of data along with regular data. This way a user doesn\u2019t even notice the files\/malware because they come as a part of a legitimate communication stream. These files are a common commodity in man-in-the-middle attacks as well as denial-of-service attacks.<\/li>\n<li><strong>Session Hijacking: <\/strong>Have you ever come across a \u201cSession Expired\u201d error? If you\u2019ve ever made an online payment or filled out a form, you\u2019d know this term. The time between when you log in to your bank account and log out of it is called a session. These sessions are often the targets of hackers as they potentially contain discreet information. In most instances, a hacker establishes his\/her presence in the session, and ultimately takes control of it. These attacks can be executed in various ways.<\/li>\n<li><strong>SSL Stripping: <\/strong>SSL Stripping or SSL Downgrade attacks are a rare species when it comes to MiTM attacks, but also the most dangerous one. As we all know, SSL\/TLS certificates keep our communication safe online via encryption. In SSL Stripping attacks, attacker strips off the SSL\/TLS connection and the protocol is turned from secure HTTPS to insecure HTTP.<\/li>\n<\/ul>\n<h2>How to prevent man-in-the-middle attacks?<\/h2>\n<p>Keep in mind that these attacks are not as easy as turning your headphones off, they\u2019re highly complicated in nature. You need to have some serious skills and must be aided by right tools. But just because a MiTM attack is difficult to pull off, doesn\u2019t mean you shouldn\u2019t actively protect against them.<\/p>\n<p><em><strong>RELATED:<\/strong> <a href=\"https:\/\/www.thesslstore.com\/blog\/5-ways-to-determine-if-a-website-is-fake-fraudulent-or-a-scam\/\">How to spot a fake website<\/a><\/em><\/p>\n<p>Here are our recommended practices to protect against man-in-the-middle attacks:<\/p>\n<ul>\n<li>Make sure that the websites you visit have HTTPS in front of the URL<\/li>\n<li>Before clicking on emails, check the sender of the email<\/li>\n<li>If you\u2019re a website admin, you should implement HSTS<\/li>\n<li>DO NOT make a purchase or send sensitive data on a public Wi-Fi network.<\/li>\n<li>Make sure your website doesn\u2019t have any mixed content<\/li>\n<li>If your website is using SSL, make sure you have disabled insecure SSL\/TLS protocols. You should only have enabled TLS 1.1 and TLS 1.2<\/li>\n<li>Don\u2019t click on malicious links or emails<\/li>\n<li>Do not download pirated content<\/li>\n<li>Secure your home\/work network<\/li>\n<li>Have proper security tools installed on your systems<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Don\u2019t let the man in the middle fool you You may have heard the term \u2018Man-in-the-middle (MiTM) Attack.\u2019 You may even have a blurred idea of it. But you\u2019re still&#8230;<\/p>\n","protected":false},"author":10,"featured_media":5803,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[16],"tags":[3291],"class_list":["post-5802","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hashing-out-cyber-security","tag-mitm-attacks","post-with-tags"],"views":48514,"jetpack_featured_media_url":"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/02\/iStock-187387054.jpg","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/5802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=5802"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/5802\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media\/5803"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=5802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=5802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=5802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}