diff --git a/rules/azure/persistence_azure_pim_user_added_global_admin.toml b/rules/azure/persistence_azure_pim_user_added_global_admin.toml new file mode 100644 index 000000000..bdd728c36 --- /dev/null +++ b/rules/azure/persistence_azure_pim_user_added_global_admin.toml @@ -0,0 +1,58 @@ +[metadata] +creation_date = "2020/09/24" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/09/24" + +[rule] +author = ["Elastic"] +description = """ +Identifies an Azure Active Directory (AD) Global Administrator role addition to a Privileged Identity Management (PIM) +user account. PIM is a service that enables you to manage, control, and monitor access to important resources in an +organization. Users who are assigned to the Global administrator role can read and modify any administrative setting in +your Azure AD organization. +""" +false_positives = [ + """ + Global administrator additions may be done by a system or network administrator. Verify whether the username, + hostname, and/or resource name should be making changes in your environment. Global administrator additions from + unfamiliar users or hosts should be investigated. If known behavior is causing false positives, it can be exempted + from the rule. + """, +] +index = ["filebeat-*"] +language = "kuery" +license = "Elastic License" +name = "Azure Global Administrator Role Addition to PIM User" +note = "The Azure Filebeat module must be enabled to use this rule." +references = [ + "https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/directory-assign-admin-roles", +] +risk_score = 73 +rule_id = "ed9ecd27-e3e6-4fd9-8586-7754803f7fc8" +severity = "high" +tags = ["Elastic", "Azure", "Continuous Monitoring", "SecOps", "Identity and Access"] +type = "query" + +query = ''' +event.module:azure and azure.auditlogs.properties.category:RoleManagement and + azure.auditlogs.operation_name:("Add eligible member to role in PIM completed (permanent)" or + "Add member to role in PIM completed (timebound)") and + azure.auditlogs.properties.target_resources.*.display_name:"Global Administrator" and + event.outcome:Success +''' + + +[[rule.threat]] +framework = "MITRE ATT&CK" +[[rule.threat.technique]] +id = "T1098" +name = "Account Manipulation" +reference = "https://attack.mitre.org/techniques/T1098/" + + +[rule.threat.tactic] +id = "TA0003" +name = "Persistence" +reference = "https://attack.mitre.org/tactics/TA0003/" +