Skip to content

DKIM

noun · also DomainKeys Identified Mail · RFC 6376

An email authentication method in which the sending domain signs messages with a private key, and receivers verify the signature with a public key in DNS.

DomainKeys Identified Mail (DKIM) adds a cryptographic signature to outgoing messages, covering selected headers and the body. The receiving server reads the signing domain (d=) and selector from the signature, fetches the public key from DNS and verifies it. A valid signature shows that the signing domain vouches for the message and that the signed parts were not changed in transit. Unlike SPF, it usually survives forwarding.

Example

A message carries DKIM-Signature: v=1; a=rsa-sha256; d=contoso.com; s=selector1; .... The receiver looks up the key at selector1._domainkey.contoso.com and the result appears as dkim=pass header.d=contoso.com.

Why it matters for a SOC analyst

A DKIM pass only means some domain signed the message. Check header.d: if it is not the From domain or a domain you expect, the pass tells you little. DMARC is what requires the signing domain to align with the From address.

  • SPF

    An email authentication method that lets a domain publish in DNS which servers may send mail using it as the envelope sender.

  • DMARC

    An email policy that requires SPF or DKIM to pass for a domain aligned with the visible From address, and tells receivers what to do when it does not.

  • Phishing

    A message that impersonates someone trustworthy to trick the recipient into clicking a link, opening a file, sharing credentials or sending money.

  • Business email compromise

    Fraud in which an attacker impersonates or takes over a trusted business email account to redirect payments or obtain sensitive data.