o365_teams_member_removed
Description
Detects when a user is removed from a group in Microsoft Teams.
Query · yara_l
events:
$app.metadata.product_name = "Office 365"
$app.metadata.vendor_name = "Microsoft"
$app.metadata.log_type = "OFFICE_365"
$app.metadata.product_event_type = "MemberRemoved"
$app.about.user.user_display_name = $userid
$app.target.application = "MicrosoftTeams"
$app.metadata.event_type = "USER_CHANGE_PERMISSIONS"
$app.security_result.action = "UNKNOWN_ACTION"
match:
$userid over 5m
outcome:
$risk_score = 35
$event_count = count_distinct($app.metadata.id)
$target_application = array_distinct($app.target.application)
$principal_user_userid = array_distinct($app.principal.user.userid)
$group_name = array_distinct($app.target.group.group_display_name)
$group_id = array_distinct($app.target.group.product_object_id)
$removed_user_email = array_distinct($app.about.user.email_addresses)
$removed_user_name = array_distinct($app.about.user.user_display_name)
condition:
$app