<style id="elementor-post-35449">.elementor-widget-text-editor{font-family:var( --e-global-typography-text-font-family ), Sans-serif;font-weight:var( --e-global-typography-text-font-weight );color:var( --e-global-color-text );}.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:var( --e-global-color-primary );}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap, .elementor-widget-text-editor.elementor-drop-cap-view-default .elementor-drop-cap{color:var( --e-global-color-primary );border-color:var( --e-global-color-primary );}.elementor-35449 .elementor-element.elementor-element-1c4c3258 > .tippy-popper .tippy-tooltip .tippy-content{text-align:center;}</style>{"id":35449,"date":"2021-07-19T10:22:41","date_gmt":"2021-07-19T02:22:41","guid":{"rendered":"https:\/\/version-2.com.sg\/?p=35449"},"modified":"2021-07-19T10:22:41","modified_gmt":"2021-07-19T02:22:41","slug":"the-most-frequent-dns-management-errors-and-how-to-fix-them","status":"publish","type":"post","link":"https:\/\/greycortex.hk\/zh\/2021\/07\/19\/the-most-frequent-dns-management-errors-and-how-to-fix-them\/","title":{"rendered":"The Most Frequent DNS Management Errors and How to Fix Them"},"content":{"rendered":"<div data-elementor-type=\"wp-post\" data-elementor-id=\"35449\" class=\"elementor elementor-35449\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4da8c5f9 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4da8c5f9\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-133ba185\" data-id=\"133ba185\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1c4c3258 elementor-widget elementor-widget-text-editor\" data-id=\"1c4c3258\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><strong>As an integral part of our job, we have the opportunity to look into the network communication of many different types of companies. During audits, we have come across all sorts of different misconfigurations and malicious activities. Today, we will look at what to look out for in the area of\u00a0<span class=\"caps\">DNS<\/span>.<\/strong><\/p><p>When you type\u00a0<a href=\"http:\/\/www.greycortex.com\/\"><em>www.greycortex.com<\/em><\/a>\u00a0into your web browser, you assume that you are accessing our\u00a0<span class=\"caps\">GREYCORTEX<\/span>\u00a0website.<\/p><p>What you see depends, among other things, on the\u00a0<span class=\"caps\">DNS<\/span>\u00a0translation, which translates the name\u00a0<em><a href=\"http:\/\/www.greycortex.com\/\">www.greycortex.com<\/a><\/em>\u00a0into the numeric form of the\u00a0<span class=\"caps\">IP<\/span>\u00a0address:\u00a0<em>91.239.201.14<\/em>.<\/p><p>The\u00a0<span class=\"caps\">DNS<\/span>\u00a0server that controls this translation also controls the destination\u00a0<span class=\"caps\">IP<\/span>\u00a0address and the server to which the user is redirected. Whoever sees the\u00a0<span class=\"caps\">DNS<\/span>\u00a0queries for a\u00a0particular device can see what servers the device connects to \u2013 what services it uses or what it\u00a0does.<\/p><p>The following are the most common problems we see in\u00a0<span class=\"caps\">DNS<\/span>\u00a0management:<\/p><ul><li><strong>An open port 53 without any restrictions<\/strong>\u00a0allows the transmission of any of your data. It can be misused not only by attackers but also by legitimate applications.<\/li><li><strong>You\u2019re not the administrator of your own domain<\/strong>\u00a0\u2013 your network can then become the target of a\u00a0Man-in-the-Middle attack.<\/li><li><strong>Misspellings in\u00a0<span class=\"caps\">DNS<\/span>\u00a0server\u00a0<span class=\"caps\">IP<\/span>\u00a0addresses<\/strong>\u00a0\u2013 devices that are manually configured are particularly vulnerable, for example, the prevention of security updates.<\/li><\/ul><h2><strong>An Unlimited Open Port\u00a053<\/strong><\/h2><p>In many networks, we see an\u00a0<strong>open port 53<\/strong>\u00a0from the internal network to the Internet without any restrictions. This means that any device on the internal network can connect to any other device on the Internet. This is used by both attackers and legitimate applications, which can be a\u00a0problem from a\u00a0security perspective.<\/p><p>Attackers can use an open port 53 to the Internet<strong>\u00a0to create a\u00a0<span class=\"caps\">DNS<\/span>\u00a0tunnel<\/strong>. They can then\u00a0<strong>send any data<\/strong>\u00a0through it. For example, using\u00a0<a href=\"https:\/\/github.com\/yarrick\/iodine\">Iodine<\/a>\u00a0software, they can create an\u00a0<span class=\"caps\">IP<\/span>\u00a0layer on top of the application\u2019s\u00a0<span class=\"caps\">DNS<\/span>\u00a0protocol and then use port 53 to transmit arbitrary data or create a\u00a0reverse\u00a0<span class=\"caps\">SSH<\/span>\u00a0tunnel from the Internet to the internal network. This creates\u00a0<strong>permanent access<\/strong>, which\u00a0<strong>allows an attacker to return to the internal network<\/strong>\u00a0at any\u00a0time.<\/p><p>Specifically, in the case of Iodine software, the created\u00a0<span class=\"caps\">IP<\/span>\u00a0layer is transmitted hidden in strings that represent a\u00a0third-order domain. From the perspective of a\u00a0network communications analyst, the client is communicating with a\u00a0legitimate\u00a0<span class=\"caps\">DNS<\/span>\u00a0server on the internal network, but a\u00a0closer look at the transmitted data will show that this is not the\u00a0case.<\/p><p>Let\u2019s have a\u00a0look at this data in\u00a0<span class=\"caps\">GREYCORTEX<\/span>\u00a0Mendel. As an example, there\u2019s a\u00a0device with the\u00a0<span class=\"caps\">IP<\/span>\u00a0address 10.0.2.30 that is sending\u00a0<span class=\"caps\">DNS<\/span>\u00a0queries to an internal\u00a0<span class=\"caps\">DNS<\/span>\u00a0server with the\u00a0<span class=\"caps\">IP<\/span>\u00a0address 10.0.2.20. In the figure below, you can see an example of several queries in the application\u2019s log data itself that query the domain name\u00a0<em>pirate.sea<\/em>. The third-order domain name changes in each query and also looks very strange at first glance. Note also that the\u00a0<a href=\"https:\/\/www.iana.org\/assignments\/dns-parameters\/dns-parameters.xhtml\">rrtype<\/a>\u00a0attribute contains an unusual\u00a0<em><span class=\"caps\">NULL<\/span><\/em>\u00a0value.<\/p><p><a href=\"https:\/\/i0.wp.com\/www.greycortex.com\/sites\/default\/files\/perm\/image\/unlimited-open-port-53.png?ssl=1\"><img decoding=\"async\" data-recalc-dims=\"1\" class=\"img-fluid\" src=\"https:\/\/i0.wp.com\/www.greycortex.com\/sites\/default\/files\/perm\/image\/unlimited-open-port-53.png?w=1200&#038;ssl=1\" \/><\/a><\/p><h3>When to Have an Open Port\u00a053?<\/h3><p>An example of a\u00a0legitimate use of an open port 53 is some antivirus products. For example, one of Avast\u2019s products has a\u00a0<strong><span class=\"caps\">DNS<\/span>\u00a0secure<\/strong>\u00a0(now Real Site) feature. This is\u00a0<strong>designed to prevent\u00a0<span class=\"caps\">DNS<\/span>\u00a0hijacking attacks<\/strong>\u00a0in which an attacker spoofs a\u00a0<span class=\"caps\">DNS<\/span>\u00a0record of a\u00a0user, which then leads the user to a\u00a0malicious server. When the\u00a0<span class=\"caps\">DNS<\/span>\u00a0secure feature is enabled, the antivirus sends\u00a0<span class=\"caps\">DNS<\/span>\u00a0requests to its own\u00a0<span class=\"caps\">DNS<\/span>\u00a0servers, thereby preventing\u00a0<span class=\"caps\">DNS<\/span>\u00a0record spoofing.<\/p><p>Thus, the<strong>\u00a0client device bypasses the internal\u00a0<span class=\"caps\">DNS<\/span>\u00a0server<\/strong>\u00a0and sends\u00a0<span class=\"caps\">DNS<\/span>\u00a0queries to the server directly via the Internet. From a\u00a0network traffic perspective, you then see outbound traffic to the external server on port 53. Since the communication is encrypted, you will not see the\u00a0<span class=\"caps\">DNS<\/span>\u00a0name that the client requested resolving.<\/p><p>This functionality may be desirable when connecting devices to public wi-fi networks, but\u00a0<strong>in a\u00a0corporate environment, it can pose a\u00a0problem<\/strong>\u00a0when tracking and monitoring\u00a0<span class=\"caps\">DNS<\/span>\u00a0traffic.<\/p><p>For auditing\u00a0<span class=\"caps\">DNS<\/span>\u00a0communication and the long-term monitoring and data collection needed to address security events, we recommend you:<\/p><ul><li>Block all outbound traffic to the destination port 53 to the Internet from networks that contain critical information systems that need to be monitored. Only create exceptions for legitimate internal\u00a0<span class=\"caps\">DNS<\/span>\u00a0servers.<\/li><li>Audit devices that attempt to resolve\u00a0<span class=\"caps\">DNS<\/span>\u00a0names directly against\u00a0<span class=\"caps\">DNS<\/span>\u00a0servers on the Internet. The communication is either generated by specific applications or by malware trying to communicate directly to the Internet.<\/li><\/ul><h2><strong>You Do Not Really Own Your Own Domain<\/strong><\/h2><p>During audits, we encountered a\u00a0situation where\u00a0<strong>two domains were being<\/strong>\u00a0used on the internal network. This happened when it was not possible to migrate the old domain to the new systems. So, the administrators decided to create a\u00a0new domain. The old domain was\u00a0<em>company.com,<\/em>\u00a0then the new version was created with a\u00a02v extension:\u00a0<em>company2v.com<\/em>.<\/p><p>At first glance, this may seem like a\u00a0harmless change. However, the problem was that the\u00a0<strong>administrators did not register the new domain<\/strong>\u00a0with the domain administrator, then another entity registered it.<\/p><p>What implications might this case\u00a0have?<\/p><p>One day, the administrator decides they want to see the web traffic going out to the Internet. They use a\u00a0proxy server and set it up automatically using a\u00a0Windows\u00a0<span class=\"caps\">GPO<\/span>\u00a0(Group Policy Object). In this case, the stations start trying to connect to a\u00a0server named\u00a0<em>wpad.company2v.com<\/em>\u00a0for their new domain. Devices with an external\u00a0<span class=\"caps\">DNS<\/span>\u00a0server set up, which the firewall lets onto the Internet, redirect the device to a\u00a0<span class=\"caps\">DNS<\/span>\u00a0server that is authorized for the\u00a0<em>company2v.com<\/em>\u00a0domain. These servers are on the Internet and are not owned by the customer.<\/p><p>The problem is that the\u00a0<strong>actual owner<\/strong>\u00a0of the\u00a0<em>company2v.com<\/em>\u00a0domain\u00a0<strong>manages all\u00a0<span class=\"caps\">DNS<\/span>\u00a0records<\/strong>\u00a0for that domain. Therefore, they can ensure that devices from the internal network connect to a\u00a0proxy server on the Internet when trying to obtain a\u00a0proxy configuration. It is then possible to carry out, for example, a\u00a0<strong><span class=\"caps\">MITM<\/span>\u00a0attack<\/strong>. Now, the attacker is only one step away from\u00a0<strong>delivering ransomware<\/strong>\u00a0to this client. And the ransomware can look like an executable file that the user originally wanted to download, for example,\u00a0<em>firefox.exe<\/em>.<\/p><p>During an audit, we recommend looking into:<\/p><ul><li>Which domains are present on the network.<\/li><li>Whom these domains are registered to.<\/li><li>How they are used on the network.<\/li><\/ul><h2><strong>Misspellings in\u00a0<span class=\"caps\">DNS<\/span>\u00a0Server\u00a0<span class=\"caps\">IP<\/span>\u00a0Addresses<\/strong><\/h2><p>We frequently encounter typos in these\u00a0<span class=\"caps\">DNS<\/span>\u00a0server\u00a0<span class=\"caps\">IP<\/span>\u00a0addresses:<\/p><ul><li>Google\u2019s publicly available servers with addresses\u00a0<em>8.8.8.8<\/em>\u00a0and\u00a0<em>8.8.4.4<\/em>\u00a0are often written as\u00a0<em>4.4.4.4 or 8.8.6.6.<\/em><\/li><li>Addresses like\u00a0<em>192.168.X.X<\/em>\u00a0usually omit the number 1\u00a0at the beginning of the\u00a0<span class=\"caps\">IP<\/span>\u00a0address.<\/li><\/ul><p>If the\u00a0<span class=\"caps\">DNS<\/span>\u00a0server is configured incorrectly, the device cannot perform a\u00a0<span class=\"caps\">DNS<\/span>\u00a0translation. For devices that are used daily, the problem will be quickly detected. But the problem can occur with devices where the\u00a0<span class=\"caps\">DNS<\/span>\u00a0is configured manually, like cameras or sensor systems. Such a\u00a0<strong>configuration error can prevent security updates<\/strong>\u00a0of the device.<\/p><p>In the figure below, you can see an example from the Mendel system where it detected thirteen devices trying to send\u00a0<span class=\"caps\">DNS<\/span>\u00a0queries to the\u00a0<span class=\"caps\">IP<\/span>\u00a0address\u00a0<em>8.8.6.6.\u00a0<\/em>However, there is no\u00a0<span class=\"caps\">DNS<\/span>\u00a0server at this\u00a0<span class=\"caps\">IP<\/span>\u00a0address and, therefore, the translations are unsuccessful.<\/p><p><a href=\"https:\/\/i0.wp.com\/www.greycortex.com\/sites\/default\/files\/perm\/image\/ip-address-typos.png?ssl=1\"><img decoding=\"async\" data-recalc-dims=\"1\" class=\"img-fluid\" src=\"https:\/\/i0.wp.com\/www.greycortex.com\/sites\/default\/files\/perm\/image\/ip-address-typos.png?w=1200&#038;ssl=1\" \/><\/a><\/p><p>It could also happen that an administrator or user manages to hit an\u00a0<span class=\"caps\">IP<\/span>\u00a0address that is used on the Internet and provides a\u00a0<span class=\"caps\">DNS<\/span>\u00a0service. Then internal\u00a0<span class=\"caps\">DNS<\/span>\u00a0names can also be sent to a\u00a0public server on the Internet.<\/p><p>These misconfigurations can occur at random. Therefore, constantly monitor and record the\u00a0<span class=\"caps\">DNS<\/span>\u00a0traffic going through your network.<\/p><h2><strong>Look For Any Anomalies in Your Traffic<\/strong><\/h2><p>A\u00a0<span class=\"caps\">DNS<\/span>\u00a0system is one of the cornerstones of any computer network.\u00a0<strong>Only a\u00a0regular audit can ensure that the network is secure.<\/strong><\/p><p>For auditing purposes,\u00a0 communication needs to be recorded and stored for some period (<a href=\"https:\/\/www.greycortex.com\/mendel\">Mendel<\/a>\u00a0stores data for up to several years). Since a\u00a0<span class=\"caps\">DNS<\/span>\u00a0system is capable of generating a\u00a0large amount of data in a\u00a0single day, we recommend using a\u00a0system that can look for deviations from normal traffic in this vast volume of data or is able to answer basic questions about the traffic in your infrastructure.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>","protected":false},"excerpt":{"rendered":"<p>As an integral part of our job, we have the opportunity to look into the network communication of many different types of companies. During audits, we have come across all sorts of different misconfigurations and malicious activities. Today, we will look at what to look out for in the area of\u00a0DNS. When you type\u00a0www.greycortex.com\u00a0into your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_seo_schema_type":"","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_wpcom_ai_launchpad_first_post":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[23,20,21],"tags":[24,22],"class_list":["post-35449","post","type-post","status-publish","format-standard","hentry","category-year2021","category-greycortex","category-press-release","tag-24","tag-greycortex"],"jetpack_shortlink":"https:\/\/wp.me\/paZ0Rf-9dL","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/posts\/35449","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/comments?post=35449"}],"version-history":[{"count":0,"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/posts\/35449\/revisions"}],"wp:attachment":[{"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/media?parent=35449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/categories?post=35449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greycortex.hk\/zh\/wp-json\/wp\/v2\/tags?post=35449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}