Microsoft 365 Exchange DKIM Signing Configuration Disabled

Identifies when a DomainKeys Identified Mail (DKIM) signing configuration is disabled in Microsoft 365. With DKIM in Microsoft 365, messages that are sent from Exchange Online will be cryptographically signed. This will allow the receiving email system to validate that the messages were generated by a server that the organization authorized and were not spoofed.

Elastic rule (View on GitHub)

 1[metadata]
 2creation_date = "2020/11/18"
 3integration = ["o365"]
 4maturity = "production"
 5min_stack_comments = "Breaking change at 8.8.0 for Microsoft 365 Integration."
 6min_stack_version = "8.8.0"
 7updated_date = "2024/04/02"
 8
 9[rule]
10author = ["Elastic"]
11description = """
12Identifies when a DomainKeys Identified Mail (DKIM) signing configuration is disabled in Microsoft 365. With DKIM in
13Microsoft 365, messages that are sent from Exchange Online will be cryptographically signed. This will allow the
14receiving email system to validate that the messages were generated by a server that the organization authorized and
15were not spoofed.
16"""
17false_positives = [
18    """
19    Disabling a DKIM configuration may be done by a system or network administrator. Verify that the configuration
20    change was expected. Exceptions can be added to this rule to filter expected behavior.
21    """,
22]
23from = "now-30m"
24index = ["filebeat-*", "logs-o365*"]
25language = "kuery"
26license = "Elastic License v2"
27name = "Microsoft 365 Exchange DKIM Signing Configuration Disabled"
28note = """## Setup
29
30The Office 365 Logs Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule."""
31references = [
32    "https://docs.microsoft.com/en-us/powershell/module/exchange/set-dkimsigningconfig?view=exchange-ps",
33]
34risk_score = 47
35rule_id = "514121ce-c7b6-474a-8237-68ff71672379"
36severity = "medium"
37tags = ["Domain: Cloud", "Data Source: Microsoft 365", "Tactic: Persistence"]
38timestamp_override = "event.ingested"
39type = "query"
40
41query = '''
42event.dataset:o365.audit and event.provider:Exchange and event.category:web and event.action:"Set-DkimSigningConfig" and o365.audit.Parameters.Enabled:False and event.outcome:success
43'''
44
45
46[[rule.threat]]
47framework = "MITRE ATT&CK"
48[[rule.threat.technique]]
49id = "T1556"
50name = "Modify Authentication Process"
51reference = "https://attack.mitre.org/techniques/T1556/"
52
53
54[rule.threat.tactic]
55id = "TA0003"
56name = "Persistence"
57reference = "https://attack.mitre.org/tactics/TA0003/"

Setup

The Office 365 Logs Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.

References

Related rules

to-top