Module
OpenAEV
How-to guide

Use your own domain for phishing links

Register a hostname you own for phishing links, prove it with a DNS TXT record, give it a certificate at your edge, and serve a landing page on it.

OpenAEVFor administrators and platform engineers

By default, the link of a phishing email points at the address of your OpenAEV instance. A custom domain lets the link and the address bar show a hostname you own instead, such as reservations.grand-meridian.example, so the lure looks real and the testing platform stays out of sight. This page registers the hostname, proves you own it in DNS, sets up its certificate, and links it to a landing page. The domain changes the link only: the sender of the email is set on the email template.

Warning

Register only hostnames your organization owns and has authorized for awareness exercises.

Before you start

  • Your role has Manage tenant settings: custom domains are a tenant setting. It covers adding, verifying and deleting them.
  • You can publish DNS records in the zone of the hostname.
  • An edge in front of the platform, such as a reverse proxy, can serve HTTPS for the new hostname: the links always use https://.

Register the domain

  1. Open Settings, then Customization, then Custom domains.
  2. Click Add a custom domain, enter the hostname in Domain, and click Create. Enter the bare hostname: no https://, path, port or wildcard.
  3. The Configure DNS panel opens with the two records to publish. Copy them.
  4. At your DNS provider, publish both records (see The two DNS records).
  5. Back in the panel, click Verify domain. If the records have not reached DNS yet, wait a few minutes and click again.
OpenAEV 3.261118.0

The domain is Verified when the panel shows This domain is verified and can be linked to phishing landing pages., with the date. The domain list shows its Status and Verified on; its actions menu reopens DNS setup & verification, runs Verify now, or deletes it.

YOUR DNS ZONEOPENAEVYOUR EDGEYOUR PEOPLECNAME recordHostname to the platformTXT record_openaev-challenge tokenVerify domainLooks the token upDomain check200 if verified, 404 if notLanding pageServe on domainReverse proxyHTTPS for the hostnamePerson's browserOpens the link
  1. TXT record → Verify domain: read
  2. CNAME record → Reverse proxy: resolves to
  3. Person's browser → Reverse proxy: https link
  4. Reverse proxy → Domain check: before a certificate
  5. Reverse proxy → Landing page: forwards
A custom domain points at the platform with a CNAME record, proves its owner with a TXT record, and gets its certificate from your edge once OpenAEV says it is verified

The two DNS records

OpenAEV 3.261118.0
RecordRecord typeName / hostValue
Point your domain to the platform (CNAME record)CNAMEThe hostnameThe host of the platform's address, openaev.base-url
Prove ownership (TXT record)TXT_openaev-challenge. followed by the hostnameA token that starts with openaev-domain-verification=

The TXT record is what proves you control the zone: anyone can point a name at the platform, but only the zone's owner can publish the token. It is required, and a hostname belongs to one tenant only: another tenant that tries to add it gets This domain is already registered.

When your provider cannot create a CNAME at that name, at the apex of a zone for instance, publish an A record to the address of your edge instead. The CNAME value is the host of openaev.base-url: if that address only resolves inside your network, point the record at the public address of your edge.

When the verification fails

The platform looks the TXT record up with the DNS resolvers of the machine it runs on, and stops after a few seconds. The panel says why the last attempt failed and when it ran (Last checked):

MessageWhat to do
No TXT record found at _openaev-challenge.…The record is missing, or has not reached the platform's resolvers yet: check its name, then try again
TXT record at _openaev-challenge.… does not match the expected value yetCopy the value again from the panel, without spaces or extra quotes
DNS lookup failedThe platform could not reach a resolver: check the DNS setup of its host

The status moves from Pending verification to Verified, or to Verification failed after a failed attempt. Verification runs only when you click: nothing checks the domain again on its own. A verified domain stays verified even if a later check fails, so a DNS hiccup never breaks a running exercise.

Give the domain a certificate

The platform does not serve HTTPS for your hostnames itself: your edge does, and forwards the requests to the platform. To let the edge obtain a certificate only for your verified domains, OpenAEV answers an ownership check:

GET /api/hosted/domain-check?domain=reservations.grand-meridian.example

It answers 200 for a verified custom domain, and 404 for any other hostname. It needs no authentication. An edge that issues certificates on demand, such as Caddy with on_demand_tls, calls it before each new certificate, so a hostname nobody verified never gets one.

Let the edge pass the X-Forwarded-For header to the platform: the results show the first address it holds as the origin of a click.

Serve a landing page on the domain

  1. Open the landing page from Components, then Phishing, then Update in its actions menu.
  2. In Serve on domain, choose the hostname. Only verified domains are listed.
  3. Click Update.

The emails sent from then on carry links such as https://reservations.grand-meridian.example/auth/ followed by each person's token. Emails already sent keep the links they were sent with.

Deleting a custom domain does not delete its landing pages: they go back to the Platform default domain. Delete a domain once the exercises that use it are over, since the links already sent still point at it.

ExampleServe the summit booking portal on a Grand Meridian hostname

Grand Meridian Hotels serves its phishing pages on reservations.grand-meridian.example, behind a Caddy edge. Its OpenAEV instance answers at https://aev.grand-meridian.example (openaev.base-url), and the Caddy edge reaches it at openaev:8080.

The administrator adds the domain, then publishes the records the Configure DNS panel gives:

reservations.grand-meridian.example.                     CNAME  aev.grand-meridian.example.
_openaev-challenge.reservations.grand-meridian.example.  TXT    "openaev-domain-verification=…"

The value of the TXT record is the whole token the panel shows, cut short here. After Verify domain, the domain is Verified. The platform engineer adds the hostname to the Caddy edge, which asks OpenAEV before each certificate:

{
	on_demand_tls {
		ask http://openaev:8080/api/hosted/domain-check
	}
}

https:// {
	tls {
		on_demand
	}
	reverse_proxy openaev:8080
}

The awareness manager sets Serve on domain to reservations.grand-meridian.example on the landing page EHS 2026 booking portal. The next exercise's emails link to https://reservations.grand-meridian.example/auth/…, and the first visit gets its certificate from the edge.

What's next

NextWrite the lure email of a phishing exercise
OpenAEV
Adversarial exposure validation: scenarios, simulations, atomic tests.

Published

Overview
Use
Build dashboards of your validation results
OverviewCreate the widgets of a dashboard
Check one attack technique with an atomic testConnect OpenAEV to OpenCTI to test security coveragesHow collectors measure what your security tools saw
How injectors deliver your injects
OverviewBuilt-in injectors and their injects
Install the OpenAEV agent on your endpointsReview what your injects discovered
Run a simulation and read its results
OverviewShare simulation results in a report
Set up your profile