avatarTeri Radichel

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

5945

Abstract

D) contains top-level domains, which are those domains in the DNS root zone…</h3></div> <div><p>en.wikipedia.org</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*azVcJJ66W0KQ12mi)"></div> </div> </div> </a> </div><p id="5a45"><b>Choosing a top level domain (TLD)</b></p><p id="4af3">Beware that choosing an odd TLD might get your domain blocked by some security systems. I wrote about the use of odd TLDs by malware here:</p><div id="6d51" class="link-block"> <a href="https://www.itbriefcase.net/indicators-of-compromise-in-dns-logs"> <div> <div> <h2>Indicators of Compromise in DNS Logs | IT Briefcase</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*5dPt0C0kg3eLXDrY)"></div> </div> </div> </a> </div><p id="592c">Since most legitimate domains do not end in these odd extensions some DNS administrators will reject requests to resolve them, thereby eliminating some potential malware. If you choose one of these odd domain names it may seem cool but requests to visit your web site might be blocked.</p><p id="2ba0">There are a lot of other marketing and intellectual property considerations I’m not going to get into here. Before you choose a domain name, you might want to consult with an IP lawyer and marketing person or do some research online at least so you don’t pick a domain name you regret later.</p><p id="5b8c"><b>Using a domain name on AWS that is registered somewhere else</b></p><p id="3846">If you already have a domain name registered somewhere you can use it on AWS. You just need to configure the domain name properly at the DNS registrar. Consult the documentation for the place where you registered your domain name to figure out how to do that. Generally you will login and provide the “name servers” that will tell the Internet how to get to the server or system that hosts your web site, application, or page.</p><p id="2f40">Here’s how you would configure Google Domains to use AWS DNS Servers:</p><div id="7fc1" class="link-block"> <a href="https://support.google.com/domains/answer/3290309?hl=en"> <div> <div> <h2>Manage domain name servers</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><p id="4cc2">The following instructions explain how to create a hosted zone in Route 53.</p><div id="0c0e" class="link-block"> <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/CreatingHostedZone.html"> <div> <div> <h2>Creating a public hosted zone</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><p id="aca7">Once you create this hosted zone you can use that information to configure the DNS servers over at Google Domains (or whatever domain name registrar you are using).</p><p id="3a94"><b>Moving or transferring a domain name</b></p><p id="1b90">You may or may not want to move a domain you registered somewhere else over to AWS. These instructions explain how to set up DNS for an existing domain name with minimal service interruptions.</p><div id="00c1" class="link-block"> <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/dns-configuring.html"> <div> <div> <h2>Configuring Amazon Route 53 as your DNS service</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*z7K0_KQxPnYoHEAy.)"></div> </div> </div> </a> </div><p id="7a34">Note that you could skip the steps to actually move the domain to AWS, but if you want to transfer the domain over to manage it all in once place you can. Note that if you move your domain in the middle of your annual renewal cycle you’ll pay overlapping fees. Additionally, you’ll want to check the cost for the particular domain you’re moving over and make sure AWS supports the TLD.</p><p id="5947">When you transfer a domain you’ll have to unlock at it at your registrar in order to allow the transfer and follow the instructions both at your existing registrar and on AWS to facilitate the transfer. There may be some downtime depending on how your registrar handles the transfer.</p><p id="b7b9"><b>Moving a domain between AWS accounts</b></p><p id="62fe">You can also transfer domains between AWS accounts. Perhaps you created domains over the years and you want to consolidate them into a single account for simpler management. These instructions will help.</p><div id="f918" class="link-block"> <a href="https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/domain-transfer-between-aws-accounts.html"> <div> <div> <h2>Transferring a domain to a different AWS account</h2> <div><h3>undefined</h3></div> <div><p>undefined</p></div> </div> <div> <div style="background-

Options

image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div><p id="6265"><b>The importance of securing your domain name</b></p><p id="cfe7">Too many people do not understand the importance of securing and protecting their domain names. Sometimes people sign up for hosting providers who register the domain name for the customer. The customer may not understand they do not have access to or control over their own domain name. Make sure you register your own domain name and you know who can transfer it or change the configuration settings.</p><p id="85b8">Here are some of the reasons you want to be careful with domain name registrations and configurations:</p><ul><li>If someone can get ahold of your domain name they can<b> set up a Google Workspace for your domain</b>:</li></ul><div id="69de" class="link-block"> <a href="https://support.google.com/a/answer/183895?hl=en"> <div> <div> <h2>Protect your domain with a TXT record</h2> <div><h3>We don't want someone else to use your domain to sign up for Google Workspace. You can help us keep your domain safe by…</h3></div> <div><p>support.google.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*KsdYyLrD-TUhxizs)"></div> </div> </div> </a> </div><ul><li>Conversely, someone could<b> remove the required TXT records </b>for services you have authorized via your DNS configuration services may fail.</li><li><b>If someone can change where email is directed for your domain they may have access to reset passwords and take over cloud accounts.</b></li><li>Another DNS related attack I discussed at RSA 2020 is called <b>subdomain takeover.</b> You’ll want to make sure your subdomains point to accurate resources.</li><li>You also don’t want people setting up <b>unauthorized subdomains</b> to or <b>authorizing unwanted services</b> by having access to your DNS configuration.</li></ul><p id="6742">Now you understand why I always ask customers during a <a href="https://2ndsightlab.com/cloud-security-assessment.html">cloud security assessment</a> who has access to the DNS configuration for their domain names. On one G<a href="https://readmedium.com/google-security-43ab82156840">oogle Cloud Platform (GCP) Security</a> Assessment, the new CISO and staff involved in the assessment had no idea where the domain was registered or who had access to it. Of course they immediately communicated with the executives at the company and addressed that problem when I asked them about it.</p><p id="e967"><b>Locking down DNS configurations on AWS</b></p><p id="22dd">You can lock down DNS configurations on AWS by restricting access to Route 53 using IAM and organizational policies. However, you may need certain people to be able to configure some aspects of DNS, but not be able to delete and de-register your domain names.</p><p id="fc70">One strategy would be to put all your domain names in a single account that is accessible by limited people who are responsible for domain name configurations. You might even require that users use a separate login when handling domain names and closing monitor those logins.</p><p id="732d">Then, create NS records in separate accounts to handle subdomains and web hosting. I’ve used that strategy for penetration testing resources and subdomains associated with cloud security classes. We’ll look at how to automate that in an upcoming post, but first we’ll consider governance for DNS records.</p><div id="caf0" class="link-block"> <a href="https://readmedium.com/governance-for-dns-on-aws-ffbc84592486"> <div> <div> <h2>Governance for DNS on AWS</h2> <div><h3>ACM.125: Strategy for protecting domain names and DNS configurations in your AWS Organization</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*mqJVFSV9sP1dy2d92RTb6A.png)"></div> </div> </div> </a> </div><p id="15c5">Follow for updates.</p><p id="4a3a">Teri Radichel | <i>© <a href="https://2ndsightlab.com/?source=post_page---------------------------">2nd Sight Lab</a> 2023</i></p><div id="8b5f"><pre><span class="hljs-section">About Teri Radichel:

⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab</pre></div><div id="caae"><pre><span class="hljs-section">Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</span>
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation</pre></div><div id="5a42"><pre>Follow <span class="hljs-keyword">for</span> more stories like <span class="hljs-keyword">this</span>:

❤️ Sign Up my Medium Email List ❤️ Twitter: <span class="hljs-meta">@teriradichel</span> ❤️ LinkedIn: https:<span class="hljs-comment">//www.linkedin.com/in/teriradichel</span> ❤️ Mastodon: <span class="hljs-meta">@teriradichel</span><span class="hljs-meta">@infosec</span>.exchange ❤️ Facebook: 2nd Sight Lab ❤️ YouTube: @2ndsightlab</pre></div><figure id="faf5"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/0*H9Ew1KCl-29nZiPR.jpeg"><figcaption></figcaption></figure></article></body>

Domain Name Registration Security

ACM.124: Setting up a domain name for our batch job authentication flow

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

⚙️ Check out my series on Automating Cybersecurity Metrics. The Code.

🔒 Related Stories: AWS Security | Network Security | DNS Security

💻 Free Content on Jobs in Cybersecurity | ✉️ Sign up for the Email List

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

In my last post, I analyzed the Oktapus attacks in 2022 and we considered some mechanisms for preventing a similar attack on our own system that we are building.

It seems like we are going to need a website to facilitate the authentication workflow I’ve been describing, and that generally starts with a domain name. Since I mentioned in the last post that we want users to be able to easily remember the URL for our batch job administration work flow we’ll want to create something simple and memorable.

I’m thinking about using the following domain — which is a subdomain of 2ndsightlab.com (my top level domain).

https://batch.2ndsightlab.com

Registering a top-level domain name

In order to use that domain I first need to register the top level domain name (2ndsightlab.com) which I’ve already done. The domain I listed above is a subdomain. I can create many subdomains for 2ndsightlab.com. One of the most common subdomains is www (in my case www.2ndsightlab.com) though these days most people drop the www and go straight to the top-level domain (TLD) without the www.

If you want to register a domain name you can do that at AWS:

You could also register a domain through a third party domain name registrar like Google Domains:

NOTE: Google Domains was purchased by SquareSpace since I wrote this. I am not sure how that will work out for security. Square Space does have a bug bounty at least so they do are about security.

One place I cannot recommend for domain name registration is Name Cheap, given that my home network keeps getting hit by rogue traffic from their network.

Why would you want to use one domain name registrar over another?

One of the benefits of using AWS for everything is that you can get all your support in one place. The benefit of registering a domain at a third-party domain name registrar is that Amazon is not in control of your entire stack top to bottom. The other reason you might use one registrar over another is cost — though cheaper registrars might not provide the support you need if your domain is somehow transferred through unauthorized means.

In addition, some registrars will offer TLDs that others do not. For example, one registrar offers domain names that end in .biz or .dev and another offers .cloud, .blog, or .news.

Choosing a top level domain (TLD)

Beware that choosing an odd TLD might get your domain blocked by some security systems. I wrote about the use of odd TLDs by malware here:

Since most legitimate domains do not end in these odd extensions some DNS administrators will reject requests to resolve them, thereby eliminating some potential malware. If you choose one of these odd domain names it may seem cool but requests to visit your web site might be blocked.

There are a lot of other marketing and intellectual property considerations I’m not going to get into here. Before you choose a domain name, you might want to consult with an IP lawyer and marketing person or do some research online at least so you don’t pick a domain name you regret later.

Using a domain name on AWS that is registered somewhere else

If you already have a domain name registered somewhere you can use it on AWS. You just need to configure the domain name properly at the DNS registrar. Consult the documentation for the place where you registered your domain name to figure out how to do that. Generally you will login and provide the “name servers” that will tell the Internet how to get to the server or system that hosts your web site, application, or page.

Here’s how you would configure Google Domains to use AWS DNS Servers:

The following instructions explain how to create a hosted zone in Route 53.

Once you create this hosted zone you can use that information to configure the DNS servers over at Google Domains (or whatever domain name registrar you are using).

Moving or transferring a domain name

You may or may not want to move a domain you registered somewhere else over to AWS. These instructions explain how to set up DNS for an existing domain name with minimal service interruptions.

Note that you could skip the steps to actually move the domain to AWS, but if you want to transfer the domain over to manage it all in once place you can. Note that if you move your domain in the middle of your annual renewal cycle you’ll pay overlapping fees. Additionally, you’ll want to check the cost for the particular domain you’re moving over and make sure AWS supports the TLD.

When you transfer a domain you’ll have to unlock at it at your registrar in order to allow the transfer and follow the instructions both at your existing registrar and on AWS to facilitate the transfer. There may be some downtime depending on how your registrar handles the transfer.

Moving a domain between AWS accounts

You can also transfer domains between AWS accounts. Perhaps you created domains over the years and you want to consolidate them into a single account for simpler management. These instructions will help.

The importance of securing your domain name

Too many people do not understand the importance of securing and protecting their domain names. Sometimes people sign up for hosting providers who register the domain name for the customer. The customer may not understand they do not have access to or control over their own domain name. Make sure you register your own domain name and you know who can transfer it or change the configuration settings.

Here are some of the reasons you want to be careful with domain name registrations and configurations:

  • If someone can get ahold of your domain name they can set up a Google Workspace for your domain:
  • Conversely, someone could remove the required TXT records for services you have authorized via your DNS configuration services may fail.
  • If someone can change where email is directed for your domain they may have access to reset passwords and take over cloud accounts.
  • Another DNS related attack I discussed at RSA 2020 is called subdomain takeover. You’ll want to make sure your subdomains point to accurate resources.
  • You also don’t want people setting up unauthorized subdomains to or authorizing unwanted services by having access to your DNS configuration.

Now you understand why I always ask customers during a cloud security assessment who has access to the DNS configuration for their domain names. On one Google Cloud Platform (GCP) Security Assessment, the new CISO and staff involved in the assessment had no idea where the domain was registered or who had access to it. Of course they immediately communicated with the executives at the company and addressed that problem when I asked them about it.

Locking down DNS configurations on AWS

You can lock down DNS configurations on AWS by restricting access to Route 53 using IAM and organizational policies. However, you may need certain people to be able to configure some aspects of DNS, but not be able to delete and de-register your domain names.

One strategy would be to put all your domain names in a single account that is accessible by limited people who are responsible for domain name configurations. You might even require that users use a separate login when handling domain names and closing monitor those logins.

Then, create NS records in separate accounts to handle subdomains and web hosting. I’ve used that strategy for penetration testing resources and subdomains associated with cloud security classes. We’ll look at how to automate that in an upcoming post, but first we’ll consider governance for DNS records.

Follow for updates.

Teri Radichel | © 2nd Sight Lab 2023

About Teri Radichel:
~~~~~~~~~~~~~~~~~~~~
⭐️ Author: Cybersecurity Books
⭐️ Presentations: Presentations by Teri Radichel
⭐️ Recognition: SANS Award, AWS Security Hero, IANS Faculty
⭐️ Certifications: SANS ~ GSE 240
⭐️ Education: BA Business, Master of Software Engineering, Master of Infosec
⭐️ Company: Penetration Tests, Assessments, Phone Consulting ~ 2nd Sight Lab
Need Help With Cybersecurity, Cloud, or Application Security?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
🔒 Request a penetration test or security assessment
🔒 Schedule a consulting call
🔒 Cybersecurity Speaker for Presentation
Follow for more stories like this:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
❤️ Sign Up my Medium Email List
❤️ Twitter: @teriradichel
❤️ LinkedIn: https://www.linkedin.com/in/teriradichel
❤️ Mastodon: @teriradichel@infosec.exchange
❤️ Facebook: 2nd Sight Lab
❤️ YouTube: @2ndsightlab
Domain Name
DNS
AWS
Transfer
Route 53
Recommended from ReadMedium