Skip to content

armgit / AiSOC

Public Imported from GitHub
0

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.

4.2 KB
Raw Blame
id: chronicle-detection-rules-o365-login-activity-to-uncommon-mscloud-apps
name: o365_login_activity_to_uncommon_mscloud_apps
description: o365_login_activity_to_uncommon_mscloud_apps
severity: medium
enabled: false
tags:
  mitre: []
  categories:
  - endpoint
references: []
logsource:
  product: chronicle
detection:
  chronicle_yaral: "/*\n * Copyright 2025 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_login_activity_to_uncommon_mscloud_apps {\n\n  meta:\n    author =\
    \ \"Google Cloud Security\"\n    description = \"This rule detects O365 login\
    \ activity to apps other than a defined list of first party MS Cloud Apps. Note\
    \ that Azure Active Directory PowerShell and custom Azure apps are not in this\
    \ list by default\"\n    rule_id = \"mr_eca0cd3d-7d65-47f6-9df2-1a16664819ae\"\
    \n    rule_name = \"O365 Login Activity To Uncommon Microsoft Cloud Apps\"\n \
    \   assumption = \"The list first_party_ms_cloud_apps is populated as needed\"\
    \n    tactic = \"TA0001\"\n    technique = \"T1078.004\"\n    reference = \"https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/verify-first-party-apps-sign-in\"\
    \n    type = \"alert\"\n    platform = \"azure\"\n    data_source = \"o365\"\n\
    \    severity = \"Medium\"\n    priority = \"Medium\"\n\n  events:\n    $login.metadata.event_type\
    \ = \"USER_LOGIN\"\n    $login.metadata.product_event_type = \"UserLoggedIn\"\n\
    \    $login.metadata.product_name = \"Office 365\"\n    NOT $login.target.resource.product_object_id\
    \ in %first_party_ms_cloud_apps\n    /* Additional AppIds that are not in this\
    \ list but have appeared benign during testing include the following:\n    7eadcef8-456d-4611-9480-4fff72b8b9e2\
    \ Microsoft Account Controls V2\n    8e0e8db5-b713-4e91-98e6-470fed0aa4c2 Microsoft\
    \ Azure Signup Portal\n    f9818e52-50bd-463e-8932-a1650bd3fad2 MSAL Configuration\n\
    \    There are additional lists on GitHub that are compiled that would be added\
    \ for additional tuning as needed\n    */\n    $login.metadata.vendor_name = \"\
    Microsoft\"\n    $login.security_result.action = \"ALLOW\"\n    $login.target.user.userid\
    \ = $userid\n\n    //If you are using ADFS, you may want to consider something\
    \ like this to filter out Synchronization Login Traffic - Your userid will be\
    \ different\n    $login.target.user.userid != /Sync_/ nocase\n\n  match:\n   \
    \ $userid over 5m\n\n  outcome:\n    $risk_score = 65\n    $event_count = count_distinct($login.metadata.id)\n\
    \    $target_application = array_distinct($login.target.resource.product_object_id)\n\
    \    $security_summary = array_distinct($login.security_result.summary)\n    $user_agent\
    \ = array_distinct($login.network.http.user_agent)\n    $country_region_login_attempt\
    \ = array_distinct($login.principal.ip_geo_artifact.location.country_or_region)\n\
    \    //added to populate alert graph with additional context\n    $principal_ip\
    \ = array_distinct($login.principal.ip)\n    $target_user_userid = array_distinct($login.target.user.userid)\n\
    \n  condition:\n    $login\n}"
  chronicle_rule_name: o365_login_activity_to_uncommon_mscloud_apps
provenance:
  source: chronicle/detection-rules
  source_id: o365_login_activity_to_uncommon_mscloud_apps
  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_login_activity_to_uncommon_mscloud_apps.yaral
notes:
  chronicle_meta: {}
  quarantine_reason: raw YARA-L — needs translation to AiSOC schema