{"id":19560,"date":"2016-06-21T16:23:52","date_gmt":"2016-06-21T15:23:52","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=19560"},"modified":"2016-06-22T10:08:25","modified_gmt":"2016-06-22T09:08:25","slug":"block-dodgy-admins-botnets-and-data-leakage-on-azure-vms","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=19560","title":{"rendered":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs"},"content":{"rendered":"<p>In this post I will explain how you can use Azure Network Security Groups (NSGs) to\u00a0prevent unwanted or dangerous traffic from leaving your Azure virtual machines.<\/p>\n<p>Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried that some malware will encrypt the data on your file or database servers? Or worse; is there a chance that some hacker will download sensitive data from your machines in the cloud?<\/p>\n<p>I have a solution for you: Network Security Groups, aka NSGs. An NSG is a policy that contains a number of distributed firewall rules that either allow or block traffic. The rules (featuring stateful inspection) are simple enough:<\/p>\n<ul>\n<li>Source address\/location\/ and port range.<\/li>\n<li>Destination address\/location and port range.<\/li>\n<li>Allow or block.<\/li>\n<\/ul>\n<p>Using a priority value (low is high, and high is low), we can stack rules to create a granular policy. For example, a low priority rule can block all inbound traffic and a high priority rule can allow TCP 3389 (remote desktop aka RDP) in.<\/p>\n<p>The below rule allows HTTP traffic into a virtual subnet.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image4.png\"><img loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image_thumb2.png\" alt=\"image\" width=\"250\" height=\"577\" border=\"0\" \/><\/a><\/p>\n<p>We can associate an NSG with:<\/p>\n<ul>\n<li>A virtual machine (Azure V1 \/ Service Management \/ Classic)<\/li>\n<li>A virtual machine NIC (Azure V2 \/ Azure Resource Manager \/ ARM \/ CSP)<\/li>\n<li>A subnet in a virtual network<\/li>\n<\/ul>\n<p>The preferred option is to enforce the rule at the subnet level, therefore a subnet is a security boundary and all machines in a subnet should have the same rules. If you need different rules for different machines, then add subnets. The stated best practice by Microsoft is to associate an NSG with a subnet.<\/p>\n<p>An NSG contains a collection of default rules. For example:<\/p>\n<ul>\n<li>All inbound traffic from the Internet is blocked, via stacking of inbound rules.<\/li>\n<li>All traffic to the Internet is allowed.<\/li>\n<\/ul>\n<p>It\u2019s that last rule that I\u2019m concerned with in this post. You can see the rule with a priority of 65001 below; it allows all traffic, from anywhere, to route via Azure to the Internet.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image5.png\"><img loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image_thumb3.png\" alt=\"image\" width=\"550\" height=\"206\" border=\"0\" \/><\/a><\/p>\n<p>What does that mean?<\/p>\n<ul>\n<li>Traffic can leave my Azure virtual machines and go to the Internet.<\/li>\n<li>If I have ExpressRoute or a VPN, traffic could (if routing is enabled) route via that site-to-site connection from my office to the Internet (through Azure).<\/li>\n<\/ul>\n<p>That worries me. And here\u2019s why:<\/p>\n<ul>\n<li>Admins can log into my Azure machines and browse the Internet. I don\u2019t want that. My machines have no need to connect directly to the net; I\u2019m going to proxy\/inspect everything or I\u2019m running an ultra-secure environment, WSUS will provide my updates, or I\u2019ll download\/upload anything I need via my PC.<\/li>\n<li>Malware can talk to it\u2019s controller to receive activation orders.<\/li>\n<li>A hacker that gets onto my servers can initiate a download from my servers.<\/li>\n<\/ul>\n<p>There\u2019s one great big hammer you can swing to stop all of the above. Warning: this is a hammer and should be evaluated and tested. I can put an additional outbound NSG rule to block all outbound traffic that sources from anywhere and routes to the Internet. This rule has a higher priority (lower number) than the default rules so it will override the &#8220;allow all outbound&#8221; rule and lock down my environment.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image6.png\"><img loading=\"lazy\" decoding=\"async\" style=\"float: none; margin-left: auto; display: block; margin-right: auto; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/image_thumb4.png\" alt=\"image\" width=\"250\" height=\"526\" border=\"0\" \/><\/a><\/p>\n<p>A variation on this approach would be to use a much higher priority, such as 4000, for this new rule, and create\u00a0other higher priority rules to allow very specific outbound access from the virtual network.<\/p>\n<p>Thanks to stateful inspection, my inbound application traffic can still function via the inbound rules in the NSG, but the above rule denies all traffic from leaving this subnet for the Internet. Me 1, dodgy stuff 0.<\/p>\n<h2>A Word of Warning<\/h2>\n<p>I did compare the above to a hammer, and hammers can break things. If you follow the above, you will &#8230; <a href=\"https:\/\/blogs.msdn.microsoft.com\/mast\/2016\/04\/27\/vm-stuck-in-updating-when-nsg-rule-restricts-outbound-internet-connectivity\" target=\"_blank\">break things<\/a> \ud83d\ude42 Azure requires that Azure VMs have the ability to reach the &#8220;Internet&#8221; zone to get updates from &#8230; Azure IP addresses (which are regarded as &#8220;Internet&#8221; by NSGs). The real solution is actually a lot more complex requiring a lot of rules to allow a lot of Azure IP ranges. Microsoft&#8217;s Keith Mayer has a <a href=\"https:\/\/blogs.technet.microsoft.com\/keithmayer\/2016\/01\/12\/step-by-step-automate-building-outbound-network-security-groups-rules-via-azure-resource-manager-arm-and-powershell\" target=\"_blank\">solution <\/a>for identifying these IP addresses (documented by Microsoft) and creating filtered outbound access to just those IP addresses using PowerShell.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:9b87cebf-a6bc-471a-a3a8-8c87eced9b89\" class=\"wlWriterEditableSmartContent\" style=\"float: none; margin: 0px; display: inline; padding: 0px;\">Technorati Tags: <a href=\"http:\/\/technorati.com\/tags\/Azure\" rel=\"tag\">Azure<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Security\" rel=\"tag\">Security<\/a>,<a href=\"http:\/\/technorati.com\/tags\/Networking\" rel=\"tag\">Networking<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>In this post I will explain how you can use Azure Network Security Groups (NSGs) to\u00a0prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=19560\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":19553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[5],"tags":[170,80,190],"class_list":["post-19560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-azure","tag-networking","tag-security"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"AFinn\"\/>\n\t<meta name=\"google-site-verification\" content=\"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/aidanfinn.com\/?p=19560\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\" \/>\n\t\t<meta property=\"og:type\" content=\"activity\" \/>\n\t\t<meta property=\"og:title\" content=\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro\" \/>\n\t\t<meta property=\"og:description\" content=\"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/aidanfinn.com\/?p=19560\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@joe_elway\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro\" \/>\n\t\t<meta name=\"twitter:description\" content=\"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@joe_elway\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#article\",\"name\":\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro\",\"headline\":\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs\",\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/firewall.png\",\"width\":3200,\"height\":1786},\"datePublished\":\"2016-06-21T16:23:52+01:00\",\"dateModified\":\"2016-06-22T10:08:25+01:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#webpage\"},\"articleSection\":\"Azure, Azure, Networking, Security\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/aidanfinn.com\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=5#listItem\",\"name\":\"Azure\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=5#listItem\",\"position\":2,\"name\":\"Azure\",\"item\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=5\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#listItem\",\"name\":\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#listItem\",\"position\":3,\"name\":\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?cat=5#listItem\",\"name\":\"Azure\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1\",\"name\":\"AFinn\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"AFinn\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#webpage\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560\",\"name\":\"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro\",\"description\":\"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/wp-content\\\/uploads\\\/2016\\\/06\\\/firewall.png\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560\\\/#mainImage\",\"width\":3200,\"height\":1786},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/?p=19560#mainImage\"},\"datePublished\":\"2016-06-21T16:23:52+01:00\",\"dateModified\":\"2016-06-22T10:08:25+01:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#website\",\"url\":\"https:\\\/\\\/aidanfinn.com\\\/\",\"name\":\"Aidan Finn, IT Pro\",\"description\":\"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/aidanfinn.com\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro","description":"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried","canonical_url":"https:\/\/aidanfinn.com\/?p=19560","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"TDKjbi2McB2eLIfL6KwPB3aQqv5E-mbcb2QYIcovGaI","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/aidanfinn.com\/?p=19560#article","name":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro","headline":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs","author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"publisher":{"@id":"https:\/\/aidanfinn.com\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/firewall.png","width":3200,"height":1786},"datePublished":"2016-06-21T16:23:52+01:00","dateModified":"2016-06-22T10:08:25+01:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=19560#webpage"},"isPartOf":{"@id":"https:\/\/aidanfinn.com\/?p=19560#webpage"},"articleSection":"Azure, Azure, Networking, Security"},{"@type":"BreadcrumbList","@id":"https:\/\/aidanfinn.com\/?p=19560#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","position":1,"name":"Home","item":"https:\/\/aidanfinn.com","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=5#listItem","name":"Azure"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=5#listItem","position":2,"name":"Azure","item":"https:\/\/aidanfinn.com\/?cat=5","nextItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=19560#listItem","name":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs"},"previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?p=19560#listItem","position":3,"name":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs","previousItem":{"@type":"ListItem","@id":"https:\/\/aidanfinn.com\/?cat=5#listItem","name":"Azure"}}]},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/#person","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=19560#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"Person","@id":"https:\/\/aidanfinn.com\/?author=1#author","url":"https:\/\/aidanfinn.com\/?author=1","name":"AFinn","image":{"@type":"ImageObject","@id":"https:\/\/aidanfinn.com\/?p=19560#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/65fde4aa9f2ab1cf1514ae320a37ec682d9398ce5791d3c2dd1e8670a71ceea0?s=96&d=mm&r=g","width":96,"height":96,"caption":"AFinn"}},{"@type":"WebPage","@id":"https:\/\/aidanfinn.com\/?p=19560#webpage","url":"https:\/\/aidanfinn.com\/?p=19560","name":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro","description":"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/aidanfinn.com\/#website"},"breadcrumb":{"@id":"https:\/\/aidanfinn.com\/?p=19560#breadcrumblist"},"author":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"creator":{"@id":"https:\/\/aidanfinn.com\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/firewall.png","@id":"https:\/\/aidanfinn.com\/?p=19560\/#mainImage","width":3200,"height":1786},"primaryImageOfPage":{"@id":"https:\/\/aidanfinn.com\/?p=19560#mainImage"},"datePublished":"2016-06-21T16:23:52+01:00","dateModified":"2016-06-22T10:08:25+01:00"},{"@type":"WebSite","@id":"https:\/\/aidanfinn.com\/#website","url":"https:\/\/aidanfinn.com\/","name":"Aidan Finn, IT Pro","description":"A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","inLanguage":"en-GB","publisher":{"@id":"https:\/\/aidanfinn.com\/#person"}}]},"og:locale":"en_GB","og:site_name":"Aidan Finn, IT Pro - A blog covering Azure, Hyper-V, Windows Server, desktop, systems management, deployment, and so on ...","og:type":"activity","og:title":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro","og:description":"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried","og:url":"https:\/\/aidanfinn.com\/?p=19560","twitter:card":"summary","twitter:site":"@joe_elway","twitter:title":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs | Aidan Finn, IT Pro","twitter:description":"In this post I will explain how you can use Azure Network Security Groups (NSGs) to prevent unwanted or dangerous traffic from leaving your Azure virtual machines. Have you a written policy that prevents administrators from browsing the Internet from servers? Have you found that they find creative ways to bypass your policies? Are you worried","twitter:creator":"@joe_elway"},"aioseo_meta_data":{"post_id":"19560","title":null,"description":null,"keywords":[{"label":"Azure","value":"Azure"},{"label":"Network","value":"Network"},{"label":"Security","value":"Security"},{"label":"Firewall","value":"Firewall"},{"label":"Block","value":"Block"},{"label":"Malware","value":"Malware"},{"label":"Browsing","value":"Browsing"},{"label":"Virtual Machines","value":"Virtual Machines"},{"label":"VMs","value":"VMs"},{"label":"Rules","value":"Rules"},{"label":"NSG","value":"NSG"},{"label":"Network Security Group","value":"Network Security Group"},{"label":"Policy","value":"Policy"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":"","og_description":"","og_object_type":"activity","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":"","og_article_tags":"","twitter_use_og":false,"twitter_card":"summary","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 03:53:23","updated":"2025-06-04 17:08:01","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/aidanfinn.com\/?cat=5\" title=\"Azure\">Azure<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBlock Dodgy Admins, BotNets, and Data Leakage on Azure VMs\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/aidanfinn.com"},{"label":"Azure","link":"https:\/\/aidanfinn.com\/?cat=5"},{"label":"Block Dodgy Admins, BotNets, and Data Leakage on Azure VMs","link":"https:\/\/aidanfinn.com\/?p=19560"}],"jetpack_featured_media_url":"https:\/\/aidanfinn.com\/wp-content\/uploads\/2016\/06\/firewall.png","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19560"}],"version-history":[{"count":6,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19560\/revisions"}],"predecessor-version":[{"id":19566,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/19560\/revisions\/19566"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/media\/19553"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}