Skip to content

Commit

Permalink
Fixed ssh_potentialBruteForce.yaml Account field
Browse files Browse the repository at this point in the history
Account was checking ComputerList instead of UserList.
This has been fixed.
  • Loading branch information
tduarte14 authored Oct 17, 2024
1 parent 3bca631 commit 451ed3e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Solutions/Syslog/Analytic Rules/ssh_potentialBruteForce.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ query: |
| summarize StartTime = min(EventTimes), EndTime = max(EventTimes), UserList = make_set(user), ComputerList = make_set(Computer), ResourceIdList = make_set(_ResourceId), sum(PerHourCount) by IPAddress = ip
// bringing through single computer and user if array only has 1, otherwise, referencing the column and hashing the ComputerList or UserList so we don't get accidental entity matches when reviewing alerts
| extend HostName = iff(array_length(ComputerList) == 1, tostring(ComputerList[0]), strcat("SeeComputerListField","_", tostring(hash(tostring(ComputerList)))))
| extend Account = iff(array_length(ComputerList) == 1, tostring(UserList[0]), strcat("SeeUserListField","_", tostring(hash(tostring(UserList)))))
| extend Account = iff(array_length(UserList) == 1, tostring(UserList[0]), strcat("SeeUserListField","_", tostring(hash(tostring(UserList)))))
| extend ResourceId = iff(array_length(ResourceIdList) == 1, tostring(ResourceIdList[0]), strcat("SeeResourceIdListField","_", tostring(hash(tostring(ResourceIdList)))))
entityMappings:
- entityType: Account
Expand All @@ -54,5 +54,5 @@ entityMappings:
fieldMappings:
- identifier: ResourceId
columnName: ResourceId
version: 1.1.5
version: 1.1.6
kind: Scheduled

0 comments on commit 451ed3e

Please sign in to comment.