Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create MultipleTeamsDeletes.yaml #1068

Merged
merged 6 commits into from
Sep 17, 2020
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions Detections/OfficeActivity/MultipleTeamsDeletes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
id: 173f8699-6af5-484a-8b06-8c47ba89b380
name: Multiple Teams deleted by a single user
description: |
'This detection flags the occurrences of deleting multiple teams within an hour.
This data is a part of Office 365 Connector in Azure Sentinel.'
tactics:
samikroy marked this conversation as resolved.
Show resolved Hide resolved
- Impact
relevantTechniques:
- T1485
- T1489
query: |

// Adjust this value to change how many Teams should be deleted before including
let max_delete = 3;
// Adjust this value to change the timewindow the query runs over
let time_window = 1d;
OfficeActivity
| where OfficeWorkload == "MicrosoftTeams"
| where TimeGenerated > ago(time_window)
samikroy marked this conversation as resolved.
Show resolved Hide resolved
| where Operation =~ "MemberAdded"
samikroy marked this conversation as resolved.
Show resolved Hide resolved
| summarize make_set(ItemName) by UserId
samikroy marked this conversation as resolved.
Show resolved Hide resolved
| where set_ItemName > max_delete
samikroy marked this conversation as resolved.
Show resolved Hide resolved
| extend AccountCustomEntity = UserId
samikroy marked this conversation as resolved.
Show resolved Hide resolved