o365_group_creation_failure


Description

Detects when a group is attempted to be created but fails in Office 365. This could be due to insufficient permissions or other errors

Query · yara_l

events:
    $group.metadata.event_type = "GROUP_CREATION"
    $group.metadata.product_event_type = "Add group."
    $group.metadata.product_name = "Office 365"
    $group.metadata.vendor_name = "Microsoft"
    $group.security_result.action = "BLOCK"
    $group.principal.user.userid = $user

  match:
    $user over 5m

  outcome:
    $risk_score = 35
    $event_count = count_distinct($group.metadata.id)
    $security_summary = array_distinct($group.security_result.summary)
    $user_agent = array_distinct($group.network.http.user_agent)
    $target_application = array_distinct($group.target.application)
    //$principal_user_userid = array_distinct($group.principal.user.userid)
    $proposed_group_name = array_distinct($group.target.group.group_display_name)
    $reason = array_distinct($group.target.labels["MethodExecutionResult."])

  condition:
    $group
Raw source o365_group_creation_failure · YARA-L
Esc
Published by chronicle/detection-rules ↗, licensed under Apache 2.0 ↗. Reproduced here unmodified.
rule o365_group_creation_failure {

  meta:
    author = "Google Cloud Security"
    description = "Detects when a group is attempted to be created but fails in Office 365. This could be due to insufficient permissions or other errors"
    rule_id = "mr_964c36cd-cf07-446d-bc85-68a937d4441a"
    rule_name = "Hunt for Office 365 group creation failures"
    type = "hunt"
    platform = "azure"
    data_source = "o365"
    severity = "Low"
    priority = "Low"

  events:
    $group.metadata.event_type = "GROUP_CREATION"
    $group.metadata.product_event_type = "Add group."
    $group.metadata.product_name = "Office 365"
    $group.metadata.vendor_name = "Microsoft"
    $group.security_result.action = "BLOCK"
    $group.principal.user.userid = $user

  match:
    $user over 5m

  outcome:
    $risk_score = 35
    $event_count = count_distinct($group.metadata.id)
    $security_summary = array_distinct($group.security_result.summary)
    $user_agent = array_distinct($group.network.http.user_agent)
    $target_application = array_distinct($group.target.application)
    //$principal_user_userid = array_distinct($group.principal.user.userid)
    $proposed_group_name = array_distinct($group.target.group.group_display_name)
    $reason = array_distinct($group.target.labels["MethodExecutionResult."])

  condition:
    $group
}

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.