diff --git a/rules/integrations/o365/persistence_new_or_modified_federation_domain.toml b/rules/integrations/o365/persistence_new_or_modified_federation_domain.toml new file mode 100644 index 000000000..10c0f2b82 --- /dev/null +++ b/rules/integrations/o365/persistence_new_or_modified_federation_domain.toml @@ -0,0 +1,56 @@ +[metadata] +creation_date = "2021/05/17" +maturity = "production" +updated_date = "2021/05/17" + +[rule] +author = ["Austin Songer"] +description = """ +Identifies a new or modified federation domain, which can be used to create a trust between O365 and an external identity +provider. +""" +index = ["filebeat-*", "logs-o365*"] +language = "kuery" +license = "Elastic License v2" +name = "New or Modified Federation Domain" +note = """## Config + +The Microsoft 365 Fleet integration, Filebeat module, or similarly structured data is required to be compatible with this rule.""" +references = [ + "https://docs.microsoft.com/en-us/powershell/module/exchange/remove-accepteddomain?view=exchange-ps", + "https://docs.microsoft.com/en-us/powershell/module/exchange/remove-federateddomain?view=exchange-ps", + "https://docs.microsoft.com/en-us/powershell/module/exchange/new-accepteddomain?view=exchange-ps", + "https://docs.microsoft.com/en-us/powershell/module/exchange/add-federateddomain?view=exchange-ps", + "https://docs.microsoft.com/en-us/powershell/module/exchange/set-accepteddomain?view=exchange-ps", + "https://docs.microsoft.com/en-us/powershell/module/msonline/set-msoldomainfederationsettings?view=azureadps-1.0", +] +risk_score = 21 +rule_id = "684554fc-0777-47ce-8c9b-3d01f198d7f8" +severity = "low" +tags = ["Elastic", "Cloud", "Microsoft 365", "Continuous Monitoring", "SecOps", "Identity and Access"] +timestamp_override = "event.ingested" +type = "query" + +query = ''' +event.dataset:o365.audit and event.provider:Exchange and event.category:web and event.action:("Set-AcceptedDomain" or +"Set-MsolDomainFederationSettings" or "Add-FederatedDomain" or "New-AcceptedDomain" or "Remove-AcceptedDomain" or "Remove-FederatedDomain") and +event.outcome:success +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +reference = "https://attack.mitre.org/techniques/T1484/" +name = "Domain Policy Modification" +id = "T1484" +[[rule.threat.technique.subtechnique]] +id = "T1484.002" +name = "Domain Trust Modification" +reference = "https://attack.mitre.org/techniques/T1484/002/" + + +[rule.threat.tactic] +reference = "https://attack.mitre.org/tactics/TA0004/" +name = "Privilege Escalation" +id = "TA0004"