-
Notifications
You must be signed in to change notification settings - Fork 3.8k
created new rule for NRT Authentication Methods Changed for VIP Users #4679
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
Merged
Merged
Changes from 2 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
cb9e303
created new rule for NRT Authentication Methods Changed for VIP Users
samikroy f496a8a
Update NRT_AuthenticationMethodsChangedforVIPUsers.yaml
samikroy c01315e
Update NRT_AuthenticationMethodsChangedforVIPUsers.yaml
aprakash13 dea7c99
Update NRT_AuthenticationMethodsChangedforVIPUsers.yaml
samikroy 5bd4d75
Applied small tweaks to run validations
v-mchatla f0db6ea
Fixed validation failure
v-rucdu 7724501
Resolved conflicts
v-rucdu 9b3e41b
Revert "Resolved conflicts"
v-rucdu a6c9838
Revert "Fixed validation failure"
v-rucdu 0d81416
Update SkipValidationsTemplates.json
samikroy e91da45
Merge branch 'master' into patch-24
samikroy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
Detections/AuditLogs/NRT_AuthenticationMethodsChangedforVIPUsers.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| id: 29e99017-e28d-47be-8b9a-c8c711f8a903 | ||
| name: NRT Authentication Methods Changed for VIP Users | ||
| description: | | ||
| 'Identifies authentication methods being changed for a list of VIP users watchlist. This could be an indication of an attacker adding an auth method to the account so they can have continued access.' | ||
| severity: Medium | ||
| requiredDataConnectors: | ||
| - connectorId: AzureActiveDirectory | ||
| dataTypes: | ||
| - AuditLogs | ||
| tactics: | ||
| - Persistence | ||
| relevantTechniques: | ||
| - T1098 | ||
| tags: | ||
| - AADSecOpsGuide | ||
| query: | | ||
| let security_info_actions = dynamic(["User registered security info", "User changed default security info", "User deleted security info", "Admin updated security info", "User reviewed security info", "Admin deleted security info", "Admin registered security info"]); | ||
| let VIPUsers = _GetWatchlist('VIPUsers') | distinct ["User Principal Name"]; | ||
| AuditLogs | ||
| | where Category =~ "UserManagement" | ||
| | where ActivityDisplayName in (security_info_actions) | ||
| | extend Initiator = tostring(InitiatedBy.user.userPrincipalName) | ||
| | extend IP = tostring(InitiatedBy.user.ipAddress) | ||
| | extend Target = tolower(tostring(TargetResources[0].userPrincipalName)) | ||
| | where Target in (VIPUsers) | ||
| | summarize Start=min(TimeGenerated), End=max(TimeGenerated), Actions = make_set(ResultReason, MaxSize=8), Targets=make_set(Target, MaxSize=256) by Initiator, IP, Result | ||
| | mv-expand Targets | ||
| entityMappings: | ||
| - entityType: Account | ||
| fieldMappings: | ||
| - identifier: FullName | ||
| columnName: Targets | ||
| - entityType: IP | ||
| fieldMappings: | ||
| - identifier: Address | ||
| columnName: IP | ||
| version: 1.0.0 | ||
| kind: NRT | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.