{"id":874,"date":"2015-01-31T17:20:50","date_gmt":"2015-01-31T22:20:50","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=874"},"modified":"2017-01-31T17:37:28","modified_gmt":"2017-01-31T22:37:28","slug":"response-policy-zone-rpz","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=874","title":{"rendered":"Response Policy Zone (RPZ)"},"content":{"rendered":"<p>Years ago,\u00a0Paul Vixie developed a component of the BIND DNS server that allowed server owners to easily override specific hostnames. We had done something similar for particularly bad hostnames &#8212; if your workstations use your DNS servers, you just have to declare yourself the name server for a domain that has the same name as the hostname you want to block (i.e. I become the NS record for forbidden.google.com and my clients are able to resolve all\u00a0other records within the google.com zone, but when they resolve forbidden.google.com &#8230; they get whatever I provide). I usually did this to route traffic over a B2B VPN &#8211; provided the private\u00a0IP address instead of the public IP provided by the domain owner&#8217;s name servers. But for a few really bad malware variants, I overrode their hostname. Problem was the technique wasn&#8217;t exactly easy. Every single host required a new DNS zone be created, configured on your DNS servers, and (at least in BIND) the service restarted.<\/p>\n<p>Response Policy Zone was pushed as a functionality that would allow service providers (ISPs). That&#8217;s not a use case I forsee (it&#8217;s a lot of manual work),\u00a0but it has become an important component of our company&#8217;s network security. Hosting an RPZ domain allows us to easily add new overrides for B2B VPN connected hosts. But it also means we can override\u00a0hostnames that appear in phishing e-mail campaigns, malware hosts, infected web sites &#8230; basically anything we don&#8217;t want employees accessing.<\/p>\n<p>Stopping clients from accessing infected sites is a great thing; but for\u00a0hostnames that are indicative of a compromised box (i.e. there&#8217;s a difference between an employee clicking on a link within their e-mail that links them to a specific host and someone having malware on their box that automatically contacts a specific host), we\u00a0set the IP address for the hostname to a honeypot.<\/p>\n<p>The honeypot is bound to all unused ports on the host (there aren&#8217;t a lot of\u00a0<em>used<\/em> ports on it), logs all contact to a database, then basically hangs the connection. We have a scheduled job that looks at the contact log and opens a ticket to the desktop support team to investigate the compromised host.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Years ago,\u00a0Paul Vixie developed a component of the BIND DNS server that allowed server owners to easily override specific hostnames. We had done something similar for particularly bad hostnames &#8212; if your workstations use your DNS servers, you just have to declare yourself the name server for a domain that has the same name as &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30,29],"tags":[99,100,101],"class_list":["post-874","post","type-post","status-publish","format-standard","hentry","category-system-administration","category-technology","tag-bind","tag-dns","tag-rpz"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=874"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/874\/revisions"}],"predecessor-version":[{"id":875,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/874\/revisions\/875"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}