EASM Domain Security

Properly configured email authentication records help protect your organization’s domains against threats such as spoofing and phishing. Domain Security in EASM allows you to assess domains by monitoring the DomainKeys Identified Mail (DKIM) and Sender Policy Framework (SPF) records of your internet-facing domains. Any missing or misconfigured record is categorized and displayed as an SPF or DKIM finding type.

In addition to SPF and DKIM records, Domain Security evaluates the Domain-based Message Authentication, Reporting, and Conformance (DMARC), Brand Indicators for Message Identification (BIMI), Mail Exchange (MX), and Name Server (NS) records of your domains. This helps you identify gaps that expose your organization to email spoofing, phishing, email delivery failures, and DNS resolution failures. For more information, refer to Records Evaluated by Domain Security.

Each finding in the SPF and DKIM records is assigned a QDS (pre-defined by Qualys) score that indicates the level of risk associated with that finding. This helps you prioritize which domains need immediate remediation.

Before You Begin

Domain Security findings are displayed on the Domain Security tab under Inventory > EASM > Domains. To access this tab, ensure that the Domain Security toggle is enabled for the EASM Profile.

For more information on the EASM profile, refer to Configuring External Attack Surface Management.

How Email Authentication Records Work Together

Email authentication records are published in DNS and are checked by receiving mail servers when they accept email that claims to be sent from your domain. Each record has a specific role, and the records depend on each other:

  • SPF authorizes the mail servers that can send email on behalf of your domain.
  • DKIM allows receiving mail servers to verify that an email is signed by your domain and is not modified in transit.
  • DMARC instructs receiving mail servers how to handle email that fails SPF and DKIM checks, and where to send reports about such email. Without DMARC, SPF and DKIM failures do not result in a consistent action.
  • BIMI displays your verified brand logo in supported mail clients. Mail clients display the logo only when the domain enforces DMARC.

Flow of SPF, DKIM, DMARC, and BIMI checks performed by receiving mail servers.

A weakness in one record reduces the protection that the other records provide. For example, a domain with valid SPF and DKIM records but a DMARC policy set to none can still be spoofed, because failed email is only monitored and not blocked.

In addition to email authentication, the MX and NS records determine whether email is delivered to your domain and whether your domain can be resolved. Misconfigured records can cause email delivery failures or DNS outages.

How Domain Security Evaluates Your Domains

When the Domain Security toggle is enabled for an EASM profile, Domain Security evaluates the DNS records of the domains discovered for that profile. The records are evaluated as follows:

Domain Security evaluation flow: enable, discover, evaluate, report, and track.

  • SPF and DKIM: The TXT records of the domain are evaluated against a set of rules for each record.
  • DMARC and BIMI: The TXT records at _dmarc.<domain> and default._bimi.<domain> are queried from public DNS resolvers at the time of evaluation.
  • MX and NS: Each mail server and name server listed for the domain is resolved to check its aliases and IP addresses.

Each issue detected in a record is reported as a separate finding with a QDS score. When the domain is evaluated again, the status of the finding is updated, for example, to Fixed when the issue is no longer detected. For more information, refer to Detection Finding Statuses.

Records Evaluated by Domain Security

Domain Security evaluates the following DNS records of each domain discovered for the EASM profile. Each missing or misconfigured record is displayed as a finding of the corresponding finding type.

Record Purpose What Domain Security Evaluates
SPF Lists the mail servers that are authorized to send email on behalf of the domain. Evaluates the SPF TXT record of the domain, including the format of the record, the domains referenced in the include mechanism and redirect modifier, recursion, the ptr mechanism, and the all mechanism.
DKIM Publishes the public key that mail servers use to verify the DKIM signature of email sent from the domain. Evaluates the DKIM TXT record of the domain, including the v, p, k, t, h, s, g, and q tags, and the size of the public key.
DMARC Defines how mail servers handle email that fails SPF and DKIM checks, and where reports about such email are sent. Queries the TXT record at _dmarc.<domain> and evaluates the p (policy), pct (percentage), and rua (aggregate report) tags.
BIMI Displays the verified brand logo of your organization in recipient inboxes. Queries the TXT record at default._bimi.<domain>. The BIMI record is evaluated only when the DMARC policy of the domain is set to quarantine or reject, because mail clients display the BIMI logo only for domains that enforce DMARC.
MX Identifies the mail servers that receive email for the domain. Resolves each mail server listed in the MX record and checks whether the mail server is an alias (CNAME), has a public A or AAAA record, and has a private or reserved IP address or an internal host name.
NS Identifies the name servers that are authoritative for the domain. Resolves each name server listed in the NS record and checks the number of name servers, whether each name server has a public A or AAAA record, and whether multiple name servers resolve to the same IP address.

View your Domain Security Details

You can view this information in the Domain Security tab under Inventory > EASM > Domains. You can 

The Domain Security tab displays the following information:

Data Description
Finding Type Displays the type of record where a misconfiguration or missing detail is detected, such as DKIM or SPF.

The following finding types are available: SPF, DKIM, DMARC, BIMI, MX, and NS.

Detection Displays the specific issue detected in the record. For example, No DKIM TXT record found, and Multiple SPF records.

This column also displays the status of each detection. For more information on these statuses, refer to Detection Finding Statuses.

Identifier Displays the unique identifier of the SPF or DKIM records.

For DMARC, BIMI, MX, and NS findings, the identifier is the domain name.

QDS Displays the Qualys Detection Score (QDS) assigned to the finding. This indicates the severity or risk level associated with the misconfiguration.

For more information on the QDS scores, refer to QDS Scores.

First Detected Displays the date and time when the issue is first discovered.
Last Detected Displays the date and time when the issue was last discovered.
Domain Displays the domain name where the issue is detected.
Asset Displays the assets associated with the domain.

Detection Summary

You can view a detailed summary of a finding by clicking the issue listed in the Detection column. The summary provides additional details about the detection, including the description and detection result.

Detection Finding Status

You can view the specific statuses of domain security findings detected in your domains during DNS resolution. These statuses provide information on the progress of detection and remediation of findings:

A finding can go through the following statuses:

  • New: The finding is detected for the first time.
  • Active: The finding is detected again.
  • Fixed: The finding is remediated.
  • Reopened: A fixed finding is detected again.

Domain Security Findings and QDS Scores

The following table describes all Domain Security findings, grouped by finding type. The Detection Summary of each finding displays the record value and a description of the detected issue. Recommended actions are general guidance; validate changes with your DNS and email administrators before you apply them.

Qualys assigns a QDS score to each finding based on the detected issue. The table below shows the QDS scores for the SPF and DKIM findings.

The table also shows the QDS scores for the DMARC, BIMI, MX, and NS findings. A score of 0 (Good) indicates that the record follows the recommended configuration.

Use the QDS score to prioritize remediation. The QDS scores correspond to the following severity levels:

  • 90: Critical. The issue poses the highest risk to the domain. Remediate these findings first.
  • 80: High. The issue poses a serious risk to email security or DNS availability.
  • 55: Medium. The issue weakens the protection or reliability of the domain.
  • 30: Low. The issue is a best-practice gap with limited direct risk.
  • 0: Good. The record follows the recommended configuration.
  • -1: Not Applicable. The check does not apply to the record.
Finding Description QDS Score Recommended Action
SPF
Recursion Error / Maximum recursion depth exceeded The SPF record references the domain itself in an include directive, which causes a recursion error. 90 Remove the include directive that references the domain itself or creates a loop.
No SPF Record for Redirect Modifier The domain specified in the redirect modifier of the SPF record does not have an SPF record. 90 Publish an SPF record for the redirect domain, or correct the redirect value.
No SPF Record for Include Mechanism The domain listed in the include mechanism of the SPF record does not have an SPF record. 90 Publish an SPF record for the included domain, or correct or remove the include mechanism.
No SPF TXT record for domain The domain does not have an SPF record. Mail servers cannot verify which servers are authorized to send email on behalf of the domain. 90 Publish an SPF TXT record that lists the servers authorized to send email on behalf of the domain and ends with -all or ~all.
Multiple SPF Records Found The domain has more than one SPF record. An SPF record must be unique for a domain, so mail servers cannot evaluate SPF. 90 Merge the SPF records into a single record.
Improperly formatted record The SPF record contains a mechanism or modifier that is not valid. 90 Correct the syntax of the SPF record, and use only valid mechanisms and modifiers.
PTR mechanism used in SPF record The SPF record uses the ptr mechanism. RFC 7208 recommends against using this mechanism because it is slow, less reliable when DNS errors occur, and places a load on the reverse DNS servers. 30 Replace the ptr mechanism with ip4, ip6, a, or include mechanisms that explicitly list your sending servers.
SPF all mechanism Displays the default policy that the all mechanism of the SPF record sets for servers that the record does not list. The QDS score depends on the qualifier:
  • +all (Pass): Every server is authorized to send email on behalf of the domain.
  • ?all (Neutral): No assertion is made about which servers are authorized. Receiving mail servers treat the domain as if it has no SPF record.
  • ~all (SoftFail): Servers that are not listed are probably not authorized.
  • -all (Fail): Servers that are not listed are not authorized.
  • +all: 90
  • ?all: 80
  • ~all or -all: 0
Review the qualifier of the all mechanism. Use -all or ~all to restrict email to the servers that the SPF record lists. Do not use +all, which allows any server to send email on behalf of the domain.
DKIM
Misconfigured DKIM record The DKIM record of the domain is incorrectly formatted. 90 Correct the format of the DKIM record.
No DKIM TXT record found The domain does not have a DKIM TXT record. 90 Publish a DKIM record for each selector that is used to sign email from the domain.
Missing p tag The DKIM record does not include the required p (public key) tag. Mail servers cannot validate the authenticity of email from the domain. 90 Add the p tag with the Base64-encoded public key.
Empty p tag value The p (public key) tag of the DKIM record is empty. No public key is available to verify DKIM signatures. 90 Publish the public key in the p tag.
Malformed p tag value The p (public key) tag of the DKIM record contains an incorrectly formatted value. 90 Replace the value with a valid Base64-encoded public key.
Public key size The public key in the DKIM record is shorter than the recommended minimum length of 2048 bits.
  • 2048 bits or more: 0
  • 1024 to 2047 bits: 55
  • Less than 1024 bits: 80
Generate a DKIM key pair of 2048 bits or more, and publish the new public key.
Missing k tag The DKIM record does not include the k (key type) tag. If omitted, the key type defaults to rsa as per RFC 6376. 90 Add the k tag with the key type, for example, k=rsa.
Malformed k tag value The k (key type) tag of the DKIM record contains an incorrectly formatted value. 90 Set the k tag to a supported key type, for example, rsa.
Intended for testing purpose The t tag of the DKIM record indicates that the domain is in testing mode. 30 Remove the y flag from the t tag after testing is complete.
Missing v tag The DKIM record does not include the v (version) tag. Mail servers cannot recognize the record as a valid DKIM record. 55 Add v=DKIM1 at the beginning of the DKIM record.
Malformed v tag value The v (version) tag of the DKIM record contains an incorrectly formatted value. The value must be exactly v=DKIM1. 90 Set the v tag to v=DKIM1.
Missing tag/malformed tags The DKIM record is missing tags or contains malformed tag values. 90 Add the missing tags and correct the malformed tag values.
Weak hash algorithm The h tag of the DKIM record does not include sha256. Signing is restricted to weaker hash algorithms. 55 Include sha256 in the h tag, or remove the h tag so that all supported algorithms are allowed.
Malformed service type The s (service type) tag of the DKIM record contains a value other than * (all services) or email. The key cannot be used for email. 55 Set the s tag to * or email, or remove the tag.
Deprecated g tag The DKIM record contains the g (granularity) tag. This tag is removed from the DKIM specification (RFC 6376) and is ignored by mail servers. Its presence indicates an outdated record. 30 Remove the g tag from the DKIM record.
Invalid query method The q (query method) tag of the DKIM record does not include dns/txt. Mail servers cannot retrieve the public key, so DKIM signatures cannot be validated. 30 Set the q tag to dns/txt, or remove the tag so that the default value is used.
DMARC
No DMARC TXT record for domain The domain does not have a DMARC TXT record. Mail servers have no policy for handling email that fails SPF and DKIM checks, which leaves the domain exposed to spoofing. 90 Publish a DMARC TXT record at _dmarc.<domain>, for example, v=DMARC1; p=none; rua=mailto:<address>, and then move to an enforcing policy after you review the reports.
Misconfigured DMARC record The domain publishes a TXT record at _dmarc that does not start with v=DMARC1. Mail servers cannot read the record as a DMARC policy. 90 Correct the TXT record at _dmarc.<domain> so that it starts with v=DMARC1.
Missing DMARC policy tag The DMARC record does not include the required p (policy) tag. The record has no effect, and the domain is not protected against spoofing. 90 Add the p tag to the DMARC record and set it to quarantine or reject.
DMARC policy Displays the policy set in the p tag. The none policy only monitors email that fails authentication, the quarantine policy partially enforces the policy, and the reject policy blocks unauthorized email. The QDS score depends on the policy.
  • none: 80
  • quarantine: 30
  • reject: 0
  • Any other value: 90
Move the policy from none to quarantine, and then to reject, after you confirm that legitimate email passes SPF and DKIM checks.
Partial DMARC enforcement The DMARC policy is set to quarantine or reject, and the pct tag is set to a value less than 100. The policy applies to only that percentage of email. 90 Set the pct tag to 100, or remove the tag, so that the policy applies to all email.
Malformed pct value The DMARC policy is set to quarantine or reject, and the pct tag contains a value that is not an integer between 0 and 100.
  • Integer outside 0 to 100: 55
  • Value that is not an integer: 90
Set the pct tag to an integer between 0 and 100.
DMARC aggregate reports not configured The DMARC record does not include the rua tag. The domain owner does not receive aggregate reports about email that fails SPF and DKIM checks. 30 Add the rua tag with an address that receives aggregate reports, for example, rua=mailto:<address>.
BIMI
No BIMI TXT Record for domain The domain enforces DMARC, but does not publish a BIMI TXT record (v=BIMI1) at default._bimi. The brand logo is not displayed in recipient inboxes. 30 Publish a BIMI TXT record at default._bimi.<domain> that references your brand logo, if you want the logo displayed in supported mail clients.
Misconfigured BIMI record The domain publishes a TXT record at default._bimi that does not start with v=BIMI1. Mail servers cannot read the record, and the brand logo is not displayed. 90 Correct the TXT record at default._bimi.<domain> so that it starts with v=BIMI1.
MX
Detected aliases in MX record A mail server listed in the MX record is a DNS alias (CNAME) instead of a hostname. RFC 2181 does not allow an MX record to point to an alias. Routing email through an alias can affect email reliability. 55 Update the MX record to point directly to the hostname of the mail server instead of an alias.
Internal email server exposure in MX record A mail server listed in the MX record has a private or reserved IP address, such as an RFC 1918, loopback, link-local, or IPv6 unique local address, or a host name that ends with .local, .localhost, .invalid, or .test. This exposes internal email infrastructure, and the mail server cannot receive email from the internet. 90 Remove internal mail servers from the public MX record, and list only mail servers that have public IP addresses.
MX Host is not publicly resolvable A mail server listed in the MX record does not have an A or AAAA record in public DNS. Email sent to the domain cannot be delivered to that mail server. 90 Publish an A or AAAA record for the mail server, or remove the mail server from the MX record.
NS
Minimum two name servers required The domain is delegated to only one name server. RFC 1035 recommends at least two name servers on separate networks, so that the failure of a single server does not make the domain unreachable. 55 Delegate the domain to at least two name servers, preferably on separate networks.
Name server is not resolvable A name server of the domain does not have an A or AAAA record in public DNS. Resolvers that select this name server fail to resolve the domain. 80 Publish an A or AAAA record for the name server, or remove the name server from the delegation.
Duplicate name server addresses Multiple name servers of the domain resolve to the same IP address. The name servers are the same system, so a single failure can make the domain unreachable. 55 Configure each name server on a separate IP address, preferably on separate networks.

The h, s, g, and q tags of a DKIM record are not evaluated when the record is reported as a Misconfigured DKIM record. Similarly, the ptr mechanism is not evaluated when the SPF record is reported as Multiple SPF Records Found or Improperly formatted record.

Download Domain Security Data

To download your domain security data, navigate to the Domain Security tab and click Download. On the Download Format window, you can select one of the following formats: CSV, HTML, XML, and PDF.

To create a detailed report, click Create a Report on the Download Formats window or navigate to the Reports tab and click Create Report. Select the Domain Security report under the Externally Exposed Asset Details category. 

For more information on creating a report, refer to External Attack Surface Reports.