Detect an Unexpected DKIM Key Rotation
Understanding how to detect when a legitimate domain’s DKIM key has been rotated without notice means separating routine mail-system maintenance from unauthorised DNS or account access. DKIM uses a private key to sign messages and a public key published in DNS, so changing that public key can alter the fingerprints seen on otherwise familiar email.
Rotation by itself is not proof of spoofing. Providers migrate signing infrastructure, refresh keys after exposure, and introduce new selectors. The useful signal is whether the change matches the domain owner’s stated process, whether messages still align with SPF and DMARC, and whether it appears in historical DNS and authentication records.
Distinguish routine rotation from compromise
Start by identifying what changed: a new selector, a replaced TXT record, or the removal of an old key. Planned rotations often overlap two selectors so messages signed with either key remain valid until caches expire. Security teams may also shorten a key’s life or move signing to a different platform.
An unauthorised change has different indicators. It may appear without a maintenance announcement, outside the provider’s usual release cycle, or alongside changes to administrator accounts, forwarding rules, and sending IPs. However, publishing an attacker’s public key does not automatically grant the ability to send accepted email; the attacker also needs the corresponding private key or control of the legitimate signing service.
Trace the change through DNS
Extract the selector from the raw DKIM-Signature header, then inspect selector._domainkey.domain.com.au or the equivalent record for the actual sending domain. Compare the current public key with archived DNS data and provider change logs. A current lookup alone cannot reveal whether a selector was recently added or an existing record was replaced.
For Australian organisations, check both the registered .com.au or .au domain and delegated sending subdomains. A change to mail.example.com.au, for example, may occur without altering the apex domain. Run a reverse MX lookup on suspicious source IPs to identify other domains claiming those hosts as mail exchangers. Shared cloud infrastructure can produce benign overlaps, so the result needs context.
Read signatures and DMARC evidence
Inspect the complete authentication chain in each message. Check the DKIM d= domain, selector, body hash, and whether that domain aligns with the visible From address. Also review SPF results and the Authentication-Results header. A valid DKIM signature proves that a holder of the private key signed the content; it does not prove that the mailbox itself is safe.
DMARC reports can show source IPs, counts, dispositions, and changing authentication results. Aggregate reports provide useful trends, while forensic reports can expose message-level details when the reporting organisation has enabled them. Compare these signals with the DKIM history: an unfamiliar selector combined with a new source range is more concerning than a documented provider migration.
Monitor the domain continuously
Create a baseline containing every active selector, public-key fingerprint, mail exchanger, SPF configuration, and DMARC policy. Record DNS TTLs so cached records are not mistaken for live changes. Alerts should distinguish additions, removals, and replacements rather than treating any DNS modification as equally serious.
Scheduled checks through Trusted Sender Score can help flag reputation or authentication changes. Teams can also API trust checks into an email gateway, where unusual results can trigger quarantine or additional review. Trust scores should support, rather than replace, DNS history and provider confirmation. A mailbox hijack guide is also useful because a hijacked account can generate perfectly valid DKIM and DMARC results.
Confirm the change through independent channels
Contact the domain owner using a known phone number, existing security contact, provider console, or contractual support channel rather than replying to the message that prompted the investigation. Ask whether a selector was added, which dates it became active, and whether the mail platform or DNS administrator performed the change. Review account-access logs and recent support-ticket activity.
This distinction matters in the Australian market, where many small businesses in Sydney, Melbourne, and regional centres operate Microsoft 365 or Google Workspace through managed service providers. A provider may rotate keys centrally without emailing every customer. Messages claiming to originate from major banks such as Commonwealth Bank, NAB, or Westpac should likewise be checked against their independently published sending domains and security notices.
Contain and document the incident
If unauthorised access is likely, preserve DNS snapshots, raw headers, DMARC reports, account logs, and provider tickets before making changes. Coordinate with the registrar, DNS host, and mail provider to revoke exposed credentials, remove unauthorised records, and publish fresh authorised selectors. Avoid deleting evidence or blocking shared infrastructure that legitimate services still require.
Record events in UTC and Australian local time, noting whether they occurred during AEST or AEDT, alongside the relevant business-day context. Australian recipients can report consumer phishing through ACSC Report Scams, while affected organisations should notify customers, partners, and cyber-response channels using verified addresses. The final record should show which key was authorised, when it became active, and which messages or senders were affected.