A DKIM record is a DNS record that publishes the public key used to verify domain-signed email. Mail servers use it to check that a message was authorised by the domain owner and was not altered in transit. The record supports email authentication and reduces spoofing of messages that appear to come from that domain.
What the DKIM record does
A DKIM record publishes the public key that receiving mail systems use to validate a domain’s email signature. That makes the record part of the trust signal that says, “this message really came from the domain it claims to represent.”
In practice, the record is only one half of the mechanism. The sender signs the message with the matching private key, and the receiver looks up the DKIM record in DNS to verify the signature. If the signature fails, the message may still be delivered, but it loses an important authentication signal and is easier to spoof or tamper with.
Why DKIM depends on DNS integrity
DKIM is only as strong as the DNS data that publishes the key. If an attacker can alter the record, or if the wrong selector is published, receivers may validate the wrong key or fail to validate legitimate mail. That makes DNS administration, record hygiene, and key rotation part of the security model, not just operational details.
Because DKIM records are public, the risk is not secrecy of the record itself. The security value comes from protecting the private signing key and ensuring the DNS record correctly matches the key in use. A stale record, broken selector, or inconsistent key rotation can create mail delivery problems and weaken authentication coverage.
Teams usually read DKIM alongside SPF and DMARC, because DKIM helps prove message authenticity while DMARC uses that authentication result to guide policy and reporting. The three controls work together, but they solve different parts of the email trust problem.
How DKIM is used in email authentication
Receiving servers inspect the DKIM signature, retrieve the corresponding public key from DNS, and check whether the signed parts of the message still match. If the message has been altered after signing, the verification fails. If it validates, the receiver gets evidence that the domain owner authorised the message, or at least that the sender had access to the domain’s signing key.
That validation does not prove the human sender is trustworthy, and it does not guarantee the message is safe. It only confirms domain-level message integrity and sender authenticity at the cryptographic level. Organisations still need mailbox controls, anti-phishing filtering, and policy enforcement to reduce business email compromise.
When DKIM is deployed well, it helps preserve domain reputation and reduces the chance that external mail systems treat legitimate mail as suspicious or forged. When it is deployed poorly, it can give a false sense of safety while attackers still exploit lookalike domains, compromised accounts, or weak downstream controls.
Operational considerations for key rotation and review
DKIM records are not “set and forget” infrastructure. Selectors, key length choices, rotation cadence, and DNS publishing practices all affect how reliably the authentication layer works over time. A domain that never rotates keys increases long-term exposure if a signing key is ever exposed or misused.
For a practical rollout, organisations should verify that the published record matches the active mail-sending path, confirm that all sending systems sign consistently, and check that DMARC alignment behaves as intended across legitimate mail streams. This is especially important for large sender ecosystems, outsourced mail platforms, and brands that send from multiple subdomains.
When mail security failures are being investigated, DKIM records and signatures should be checked alongside SPF and DMARC reports, because the failure might be caused by key mismatch, message rewriting, selector errors, or a third-party sending platform that was never fully configured.
Risk and Threat Considerations
DKIM reduces spoofing, but it also creates a high-value trust dependency: if the signing key is compromised, an attacker can send mail that looks domain-authorised and may pass downstream checks. Misconfigured records, stale selectors, or broken rotation can also create openings for impersonation or disrupt legitimate mail authentication.
Failure mechanism: Attackers abuse the trust receivers place in a valid DKIM signature, or they exploit record and key management mistakes that weaken message authentication.
Impact: Fraudulent email may gain credibility, phishing campaigns become harder to distinguish, and compromised or misconfigured mail infrastructure can damage delivery, reputation, and incident response confidence.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | DKIM record use depends on lifecycle control of the signing key published through DNS. |
| SC-12 — Cryptographic Key Establishment and Management | DKIM relies on managed public-private key pairs for message verification. | |
| AU-10 — Non-repudiation | DKIM provides provenance evidence for signed email and supports message authenticity assurances. | |
| Recommendation — Rotate and govern DKIM signing keys as authenticators with a defined lifecycle and revocation process. Manage DKIM key generation, distribution, rotation, and retirement under a formal key management process. Preserve DKIM evidence needed to support message authenticity and non-repudiation investigations. | ||
| CIS Controls v8 | CIS-5 — Account Management | Email authentication relies on governed accounts and mail-sending identities that must stay controlled. |
| Recommendation — Restrict who can manage outbound mail identities and authentication settings. | ||
| OWASP API Security Top 10 | API2 — Broken Authentication | DKIM is an authentication control, and broken email authentication enables spoofing. |
| Recommendation — Validate that authentication checks cannot be bypassed or incorrectly trusted in email workflows. | ||
Practitioner Guidance
What to watch for: Treat DKIM as a living control, not a one-time DNS entry. Review selector use, key rotation, and alignment with the actual outbound mail path whenever mail providers change, domains are added, or authentication results start to drift.
Governance implication: Ownership should sit with the team that can manage both DNS and outbound mail authentication end to end, because DKIM failures usually emerge at the boundary between mail operations, identity trust, and DNS administration.
Related resources from NHI Mgmt Group
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org