Skip to content

Commit

Permalink
Fixed RemoteIP field parsing in FailedLogonAttempts_UnknownUser.yaml
Browse files Browse the repository at this point in the history
Since few events were missing, fixed the RemoteIP field extraction by using `extract` function.
  • Loading branch information
0ccupi3R authored Sep 12, 2023
1 parent 3aee076 commit 708f9d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ query: |
Syslog
| where Facility =~ "authpriv"
| where SyslogMessage has "authentication failure" and SyslogMessage has " uid=0"
| parse SyslogMessage with * "rhost=" RemoteIP
| extend RemoteIP = extract(@".*?rhost=([\d.]+).*?", 1,SyslogMessage)
| project TimeGenerated, Computer, ProcessName, HostIP, RemoteIP, ProcessID
| join kind=innerunique (
// Below pulls messages from syslog-authpriv logs that show each instance an unknown user tried to logon.
Expand Down

0 comments on commit 708f9d2

Please sign in to comment.