From 2fbb1d3330b9afeb3a7fe927142e895c9969f709 Mon Sep 17 00:00:00 2001 From: theflakes Date: Mon, 30 Jan 2017 10:34:16 -0500 Subject: [PATCH] added 5140 parser Noticed that event ID 5140s exhibit odd behavior when reporting source IP by including it in the log's source port field on file access. Therefore added a parser to handle this. --- contrib/parsers/windows | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/contrib/parsers/windows b/contrib/parsers/windows index 4a51edc..9554769 100644 --- a/contrib/parsers/windows +++ b/contrib/parsers/windows @@ -360,7 +360,7 @@ - + ossec_archive @@ -414,6 +414,9 @@ @NUMBER::@@ESTRING::) @@IPv4::->@@ESTRING::(@@ESTRING:i0:): @@ESTRING:::@@ESTRING:::@@ESTRING::: @@ESTRING:s0:: @Network Policy Server @ESTRING::\\@@ESTRING:s1: Account Domain: @@ESTRING:s2: Fully@@ESTRING::Client IP Address: @@IPv4:i1: @ @NUMBER::@@ESTRING::) @@IPv4::->@@ESTRING::(@@ESTRING:i0:): @@ESTRING:::@@ESTRING:::@@ESTRING::: @@ESTRING:s0:: @Network Policy Server @ESTRING::Account Name: @@ESTRING:s1: Account Domain: @@ESTRING:s2: Fully@@ESTRING::Client IP Address: @@IPv4:i1: @ + + @NUMBER::@@ESTRING::) @@IPv4::->@@ESTRING::(@@ESTRING:i0:): @@ESTRING:::@@ESTRING:::@@ESTRING::: @@ESTRING:s0:: @@ESTRING::A network share object was accessed.@@ESTRING::Account Name: @@ESTRING:s1: @@ESTRING::Account Domain: @@ESTRING:s2: @@ESTRING::Source Address: File Source Port: @@IPv4:i1: @ + @NUMBER::@@ESTRING::) @@IPv4::->@@ESTRING::(@@ESTRING:i0:): @@ESTRING:::@@ESTRING:::@@ESTRING::: @@ESTRING:s0:: @@ESTRING::User Name: |@@ESTRING:s1: |@@ESTRING::Domain: |@@ESTRING:s2: |@@ESTRING::Source Network Address: @@IPv4:i1: @ @@ -439,6 +442,19 @@ + + 2017 Jan 29 19:22:29 (TEST) 1.1.1.1->WinEvtLog 2017 Jan 29 13:22:26 WinEvtLog: Security: AUDIT_SUCCESS(5140): Microsoft-Windows-Security-Auditing: (no user): no domain: test.contoso.com: A network share object was accessed. Subject: Security ID: S-1-5-21-126432666-12709346926-3688153413-10989949 Account Name: USER01 Account Domain: DOMAIN01 Logon ID: 0xdfa34d2 Network Information: Source Address: File Source Port: 10.1.1.13 Share Name: 63305 + + 5140 + + test.contoso.com + + USER01 + + DOMAIN01 + + 10.1.1.13 + 2015 Nov 03 19:57:01 (SERVER01) 10.1.1.1->WinEvtLog 2015 Nov 03 20:56:58 WinEvtLog: Security: AUDIT_SUCCESS(4776): Microsoft-Windows-Security-Auditing: (no user): no domain: SERVER01.contoso.com: The domain controller attempted to validate the credentials for an account. Authentication Package: MICROSOFT_AUTHENTICATION_PACKAGE_V1_0 Logon Account: user01 Source Workstation: WORKSTATION01 Error Code: 0x0