o365_group_creation_success
Description
Detects when a group is created in Office 365.
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 = "ALLOW"
$group.principal.user.userid = $user
match:
$user over 5m
outcome:
$risk_score = 35
$event_count = count_distinct($group.metadata.id)
$user_agent = array_distinct($group.network.http.user_agent)
$security_summary = array_distinct($group.security_result.summary)
$target_application = array_distinct($group.target.application)
//$principal_user_userid = array_distinct($group.principal.user.userid)
$group_name = array_distinct($group.target.group.group_display_name)
$group_guid = array_distinct(re.replace($group.security_result.detection_fields["target_2"], `^Group_`, ""))
condition:
$group