From 43f657ac4e7f586b6d2e04cfa8e2b3cb6502737b Mon Sep 17 00:00:00 2001 From: David French <56409778+threat-punter@users.noreply.github.com> Date: Thu, 3 Sep 2020 12:15:33 -0600 Subject: [PATCH] [New Rule] User Added as Owner for Azure Application (#191) * new-rule-user-added-as-owner-for-azure-application * Update rule name and description * Update rules/azure/defense_evasion_user_added_as_owner_for_azure_application.toml Update query to remove superfluous quotes Co-authored-by: Justin Ibarra * Update rules/azure/defense_evasion_user_added_as_owner_for_azure_application.toml Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com> * Add ATT&CK metadata to rule Co-authored-by: Justin Ibarra Co-authored-by: Andrew Pease <7442091+peasead@users.noreply.github.com> --- ..._added_as_owner_for_azure_application.toml | 43 +++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 rules/azure/persistence_user_added_as_owner_for_azure_application.toml diff --git a/rules/azure/persistence_user_added_as_owner_for_azure_application.toml b/rules/azure/persistence_user_added_as_owner_for_azure_application.toml new file mode 100644 index 000000000..d76a46cd8 --- /dev/null +++ b/rules/azure/persistence_user_added_as_owner_for_azure_application.toml @@ -0,0 +1,43 @@ +[metadata] +creation_date = "2020/08/20" +ecs_version = ["1.6.0"] +maturity = "production" +updated_date = "2020/08/20" + +[rule] +author = ["Elastic"] +description = """ +Identifies when a user is added as an owner for an Azure application. An adversary may add a user account as an owner +for an Azure application in order to grant additional permissions and modify the application's configuration using +another account. +""" +from = "now-25m" +index = ["filebeat-*"] +language = "kuery" +license = "Elastic License" +name = "User Added as Owner for Azure Application" +note = "The Azure Filebeat module must be enabled to use this rule." +risk_score = 21 +rule_id = "774f5e28-7b75-4a58-b94e-41bf060fdd86" +severity = "low" +tags = ["Elastic", "Azure", "Continuous Monitoring", "SecOps", "Configuration Audit"] +type = "query" + +query = ''' +event.module:azure and event.dataset:azure.auditlogs and event.category:AuditLogs and azure.auditlogs.operation_name:"Add owner to application" 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/" +