View a markdown version of this page

Verifying target domains - AWS Continuum

Verifying target domains

AWS Continuum only runs penetration tests against domains that you have verified. You verify only the domains that you actively test. Supporting domains, such as a hosted login page or a content delivery network, don't need verification.

Target domains are a shared resource in your account, and several environments can use one domain. A domain keeps its verification status in every environment that uses it. You manage all of your domains on the Target Domains page. You can also add a domain from an environment's Target domains tab. Removing a domain from an environment doesn't delete it.

Subdomains of a verified domain don't need separate verification. For example, after you verify example.com, you can test api.example.com.

Adding a target domain

Add a target domain before you verify it and use it in a penetration test. You choose one of the following verification methods for each domain:

  • DNS TXT Record – You add a TXT record to the domain's DNS configuration. If the domain is hosted in Amazon Route 53 in the same account, AWS Continuum can add the record for you.

  • HTTP Route – You host a file that contains a token on the domain's web server.

  • Private VPC – For applications in a VPC. AWS Continuum checks that the domain resolves to an IP address in a private CIDR range. This option might not be available in your account.

To add a target domain
  1. Open the AWS Continuum console at https://console.aws.amazon.com/continuum/.

  2. In the navigation pane, under Shared resources, choose Target domains.

  3. Choose Add domain.

  4. Enter the domain, such as billing.example.com.

  5. For Verification method, choose a method.

  6. Choose Add domain.

The domain appears in the Target domains table. The table shows the record name or route path and the verification token to use.

Verifying with a DNS TXT record

If the domain is hosted in Amazon Route 53 in the same account, select the domain and choose One-click verification. AWS Continuum creates the DNS record. Then choose Verify.

To verify a domain hosted by another DNS provider
  1. In the Target domains table, copy the record name and verification token for the domain.

  2. With your DNS provider, add a TXT record that uses this name and value.

  3. In the Target domains table, select the domain.

  4. Choose Verify.

The domain status changes to Verified.

Verifying with an HTTP route

With this method, you host a JSON file on your web server at the following path.

.well-known/aws/securityagent-domain-verification.json

The file contains the verification token from the Target domains table. In the following example, replace token with that token.

{ "tokens": ["token"] }

If several environments or accounts verify the same domain, add each token to the tokens array.

To verify a domain with an HTTP route
  1. On your web server, create the file at the path shown earlier, and add the token.

  2. In the Target domains table, select the domain.

  3. Choose Verify.

If the token in the file matches, the domain status changes to Verified. Before you verify a domain that is reachable from the internet, make sure that it has a valid Transport Layer Security (TLS) certificate.

Requesting manual verification

If you are authorized to test an endpoint but can't verify ownership, you can request manual verification. Open a case with AWS Support. In the case, describe your business use case and why you are authorized to test the endpoint.

After AWS approves your request, your domains show a status of Auto verified until you verify them. When you start a run against an Auto verified domain, you confirm that you are authorized to test it.