Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
id: chronicle-detection-rules-o365-add-user-to-admin-role
name: o365_add_user_to_admin_role
description: o365_add_user_to_admin_role
severity: medium
enabled: false
tags:
mitre: []
categories:
- endpoint
references: []
logsource:
product: chronicle
detection:
chronicle_yaral: "/*\n * Copyright 2023 Google LLC\n *\n * Licensed under the Apache\
\ License, Version 2.0 (the \"License\");\n * you may not use this file except\
\ in compliance with the License.\n * You may obtain a copy of the License at\n\
\ *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required\
\ by applicable law or agreed to in writing, software\n * distributed under the\
\ License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS\
\ OF ANY KIND, either express or implied.\n * See the License for the specific\
\ language governing permissions and\n * limitations under the License.\n */\n\
\nrule o365_add_user_to_admin_role {\n\n meta:\n author = \"Google Cloud Security\"\
\n description = \"Adding users to administrative roles is not malicious, but\
\ due to the sensitivity of certain roles, validation should occur when this occurs\"\
\n rule_id = \"mr_ee28c257-d2c7-490c-addf-aef35d07f29d\"\n rule_name = \"\
O365 Add User To Admin Role\"\n assumption = \"The list msgraph_watchlist_roles\
\ is populated with role names, example: Application Administrator\"\n mitre_attack_tactic\
\ = \"TA0003\"\n mitre_attack_technique = \"T1098.003\"\n type = \"alert\"\
\n platform = \"azure\"\n data_source = \"o365\"\n severity = \"Medium\"\
\n priority = \"Medium\"\n\n events:\n $app.metadata.event_type = \"USER_UNCATEGORIZED\"\
\n $app.metadata.product_event_type = \"Add member to role.\"\n $app.metadata.product_name\
\ = \"Office 365\"\n $app.metadata.vendor_name = \"Microsoft\"\n $app.security_result.action\
\ = \"ALLOW\"\n $app.target.resource.attribute.roles.name in %msgraph_watchlist_roles\n\
\ $app.principal.user.userid = $userid\n\n match:\n $userid over 5m\n\n\
\ outcome:\n $risk_score = 65\n $event_count = count_distinct($app.metadata.id)\n\
\ $security_summary = array_distinct($app.security_result.summary)\n $user_agent\
\ = array_distinct($app.network.http.user_agent)\n $assigned_role = array_distinct($app.target.resource.attribute.roles.name)\n\
\ //added to populate alert graph with additional context\n //$principal_user_userid\
\ = array_distinct($app.principal.user.userid)\n $target_user_userid = array_distinct($app.target.user.userid)\n\
\n condition:\n $app\n}"
chronicle_rule_name: o365_add_user_to_admin_role
provenance:
source: chronicle/detection-rules
source_id: o365_add_user_to_admin_role
source_commit: 74dd490
license: Apache-2.0
license_url: https://github.com/chronicle/detection-rules/blob/main/LICENSE
imported_at: '2026-05-04'
imported_by: chronicle_importer
upstream_path: rules/community/microsoft/o365/o365_add_user_to_admin_role.yaral
notes:
chronicle_meta: {}
quarantine_reason: raw YARA-L — needs translation to AiSOC schema