Skip to content

Commit

Permalink
The pcre for the second instances of Account Name and Account Domain
Browse files Browse the repository at this point in the history
were grabbing too much. So modify them to only grab the username
and domain name.
  • Loading branch information
ddpbsd committed May 22, 2020
1 parent d49a9c1 commit 811bdfc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions etc/decoder.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2022,18 +2022,17 @@ Jan 8 19:32:41 tp.lan dropbear[15165]: Pubkey auth succeeded for 'root' with ke
<decoder name="windows1">
<type>windows</type>
<parent>windows</parent>
<pcre2> Account Name:[ ]+?([A-Za-z0-9@_-]+?.+)[ ]+?Account</pcre2>
<pcre2> Account Name:[ ]+?([A-Za-z0-9@_-]+?)[ ]+?Account</pcre2>
<order>user</order>
</decoder>

<decoder name="windows1">
<type>windows</type>
<parent>windows</parent>
<pcre2>Account Domain:[ ][ ]+?([A-Za-z0-9@_-].+)[ ][ ]+?Logon ID:</pcre2>
<pcre2>Account Domain:[ ]+?([A-Za-z0-9@_-]+?)[ ]+?Logon ID:</pcre2>
<order>extra_data</order>
</decoder>


<!-- Windows decoder -NTsyslog format
- Will extract extra_data (as win source),action (as win category), id,
- username and computer name (as url).
Expand Down

0 comments on commit 811bdfc

Please sign in to comment.