From 9fb44e9813ccef1e00f8a4bc22a9eb3e2d29023e Mon Sep 17 00:00:00 2001 From: Bart Date: Thu, 14 Nov 2019 22:09:19 +0100 Subject: [PATCH 1/9] Add scripting filename targets Adds .sct, .wsf, .wsh. --- sysmonconfig-export.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index ba655913..133bdc71 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -482,10 +482,13 @@ .hta .pptm .ps1 + .sct .sys .scr .vbe .vbs + .wsc + .wsf .xlsm proj .sln @@ -783,14 +786,17 @@ .bat .cmd .hta + .jse .lnk .ps1 .ps2 .reg - .jse + .sct .vb .vbe .vbs + .wsc + .wsf From 36c688b723ca761f9992859db4dedbb4f1357b26 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Tue, 4 Feb 2020 21:13:09 -0500 Subject: [PATCH 2/9] Change Metasploit Alert port from 444 to 4444 Metasploit's default port is 4444 as noted in numerous blogs such as this one: https://blog.rapid7.com/2012/06/01/metasploit-exploit-failed-how-to-test-if-metasploit-is-working/ --- sysmonconfig-export.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index f6688b3f..8ecc2f42 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -331,7 +331,7 @@ 3389 5800 5900 - 444 + 4444 1080 3128 From 1228d3715d20e1d89634c4df7900c7a25e188ad9 Mon Sep 17 00:00:00 2001 From: Maxime Nadeau Date: Wed, 5 Feb 2020 11:59:43 -0500 Subject: [PATCH 3/9] Added most of the missing LOLBAS for downloading executables + removed a bit of noise comming from missing windows process exlusions --- sysmonconfig-export.xml | 36 +++++++++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 9 deletions(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index f6688b3f..a103f681 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -1,4 +1,4 @@ - + C:\Windows\system32\svchost.exe -k localServiceAndNoImpersonation + C:\Windows\system32\svchost.exe -k localServiceAndNoImpersonation -p C:\Windows\system32\svchost.exe -k localServiceNetworkRestricted -s Dhcp C:\Windows\system32\svchost.exe -k localServiceNetworkRestricted -s EventLog C:\Windows\system32\svchost.exe -k localServiceNetworkRestricted -s TimeBrokerSvc @@ -150,8 +151,8 @@ C:\Windows\system32\svchost.exe -k localSystemNetworkRestricted -s TabletInputService C:\Windows\system32\svchost.exe -k localSystemNetworkRestricted -s UmRdpService C:\Windows\system32\svchost.exe -k localSystemNetworkRestricted -s WPDBusEnum - C:\Windows\system32\svchost.exe -k localSystemNetworkRestricted -p -s NgcSvc - C:\Windows\system32\svchost.exe -k localServiceNetworkRestricted -p -s NgcCtnrSvc + C:\Windows\system32\svchost.exe -k localSystemNetworkRestricted -p -s NgcSvc + C:\Windows\system32\svchost.exe -k localServiceNetworkRestricted -p -s NgcCtnrSvc C:\Windows\system32\svchost.exe -k localServiceAndNoImpersonation -s SCardSvr C:\Windows\system32\svchost.exe -k netsvcs -p -s wuauserv C:\Windows\System32\svchost.exe -k netsvcs -p -s SessionEnv @@ -180,6 +181,7 @@ C:\Windows\system32\svchost.exe -k networkService -s NlaSvc C:\Windows\system32\svchost.exe -k networkService -s TermService C:\Windows\system32\svchost.exe -k networkService + C:\Windows\system32\svchost.exe -k networkService -p C:\Windows\system32\svchost.exe -k networkServiceNetworkRestricted C:\Windows\system32\svchost.exe -k rPCSS C:\Windows\system32\svchost.exe -k secsvcs @@ -201,10 +203,12 @@ C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\Ngen.exe + C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngentask.exe + C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\ngentask.exe C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorsvw.exe C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe C:\Windows\Microsoft.Net\Framework64\v3.0\WPF\PresentationFontCache.exe - C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngentask.exe + C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngentask.exe C:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorsvw.exe C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngentask.exe C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscorsvw.exe @@ -226,7 +230,7 @@ "C:\Program Files\Google\Chrome\Application\chrome.exe" --type= - + @@ -258,7 +262,7 @@ - + @@ -311,6 +315,20 @@ tasklist.exe wmic.exe wscript.exe + + bitsadmin.exe + esentutl.exe + expand.exe + extrac32.exe + findstr.exe + GfxDownloadWrapper.exe + ieexec.exe + makecab.exe + replace.exe + Excel.exe + Powerpnt.exe + Winword.exe + squirrel.exe nc.exe ncat.exe @@ -799,7 +817,7 @@ - + @@ -969,7 +987,7 @@ .criteo.net .crwdcntrl.net .demdex.net - .domdex.com + .domdex.com .dotomi.com .doubleclick.net .doubleverify.com From 4be02d1d59d2e1741a789eb5b42ed5955471c153 Mon Sep 17 00:00:00 2001 From: Maxime Nadeau Date: Wed, 5 Feb 2020 14:14:05 -0500 Subject: [PATCH 4/9] Added powershell_ise.exe to the list of Network connection monitoring --- sysmonconfig-export.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index a103f681..ffd86265 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -300,7 +300,8 @@ net1.exe notepad.exe nslookup.exe - powershell.exe + powershell.exe + powershell_ise.exe qprocess.exe qwinsta.exe qwinsta.exe From 867b37a48b739fbea8b0b207ea678b4de2090538 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Thu, 27 May 2021 19:42:26 +0200 Subject: [PATCH 5/9] Important and relevant NamedPipe names The events generated by an explicit matches on the listed pipe names should be few and highly relevant. --- sysmonconfig-export.xml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index f4acf26c..0a5aac86 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -820,11 +820,18 @@ - - - - - + + + paexec;remcom;csexec + \lsadump;\cachedump;\wceservicepipe + \isapi_http;\isapi_dg;\isapi_dg2;\sdlrpc;\ahexec;\winsession;\lsassw;\46a676ab7f179e511e30dd2dc41bd388;\9f81f59bc58452127884ce513865ed20;\e710f28d59aa529d6792ca6ff0ca1b34;\rpchlp_3;\NamePipe_MoreWindows;\pcheap_reuse;\gruntsvc;\583da945-62af-10e8-4902-a8f205c72b2e;\bizkaz;\svcctl;\Posh;\jaccdpqnvbrrxlaf;\csexecsvc + MSSE-;-server + \postex_ + \postex_ssh_ + \status_ + \atctl;\userpipe;\iehelper;\sdlrpc;\comnap + + @@ -1156,4 +1163,4 @@ - \ No newline at end of file + From 83b7a06ac483d8abfe6abe7c61c60500d4b795f3 Mon Sep 17 00:00:00 2001 From: Florian Roth Date: Fri, 28 May 2021 09:28:09 +0200 Subject: [PATCH 6/9] Added missing CS pipe and some comments --- sysmonconfig-export.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index 0a5aac86..93aa92e6 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -822,14 +822,19 @@ + paexec;remcom;csexec + \lsadump;\cachedump;\wceservicepipe + \isapi_http;\isapi_dg;\isapi_dg2;\sdlrpc;\ahexec;\winsession;\lsassw;\46a676ab7f179e511e30dd2dc41bd388;\9f81f59bc58452127884ce513865ed20;\e710f28d59aa529d6792ca6ff0ca1b34;\rpchlp_3;\NamePipe_MoreWindows;\pcheap_reuse;\gruntsvc;\583da945-62af-10e8-4902-a8f205c72b2e;\bizkaz;\svcctl;\Posh;\jaccdpqnvbrrxlaf;\csexecsvc + \atctl;\userpipe;\iehelper;\sdlrpc;\comnap + MSSE-;-server \postex_ \postex_ssh_ \status_ - \atctl;\userpipe;\iehelper;\sdlrpc;\comnap + \msagent_ From edd7376c2e5d963af853166ea7f00f88349bd459 Mon Sep 17 00:00:00 2001 From: SwiftOnSecurity <25470060+SwiftOnSecurity@users.noreply.github.com> Date: Wed, 8 Sep 2021 19:45:17 -0500 Subject: [PATCH 7/9] 74: CVE-2021-40444 leaves traces in this registry key, along with other office documents that load remote resources --- sysmonconfig-export.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index f4acf26c..0f936026 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -1,6 +1,6 @@  Office Test\ Security\Trusted Documents\TrustRecords + \EnableBHO Internet Explorer\Toolbar\ Internet Explorer\Extensions\ From ff0ec805df45ddebe51df8d07da86a5ea98d1998 Mon Sep 17 00:00:00 2001 From: SwiftOnSecurity <25470060+SwiftOnSecurity@users.noreply.github.com> Date: Sat, 2 Oct 2021 11:35:56 -0500 Subject: [PATCH 8/9] Update sysmonconfig-export.xml --- sysmonconfig-export.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index 37561d1a..6754007e 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -633,7 +633,7 @@ HKLM\Software\Microsoft\Windows\CurrentVersion\Authentication\Credential Provider HKLM\SYSTEM\CurrentControlSet\Control\Lsa\ - HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SecurityProviders + HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders HKLM\Software\Microsoft\Netsh Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable @@ -695,6 +695,8 @@ HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\InProgress\(Default) HKLM\Software\Microsoft\Tracing\RASAPI32 HKLM\Software\Microsoft\Windows\CurrentVersion\CapabilityAccessManager\ConsentStore\ + \Keyboard Layout\Preload + \Keyboard Layout\Substitutes \LowerCaseLongPath \Publisher From 716621879604802b1f13f8a4229e0741b404135d Mon Sep 17 00:00:00 2001 From: Tran Trung Hieu Date: Mon, 18 Oct 2021 09:25:22 +0400 Subject: [PATCH 9/9] Update the Antivirus Tampering configuration, using broader condition --- sysmonconfig-export.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sysmonconfig-export.xml b/sysmonconfig-export.xml index 028d3738..0fdf3e85 100644 --- a/sysmonconfig-export.xml +++ b/sysmonconfig-export.xml @@ -301,7 +301,7 @@ net1.exe notepad.exe nslookup.exe - powershell.exe + powershell.exe powershell_ise.exe qprocess.exe qwinsta.exe @@ -694,7 +694,7 @@ \SpynetReporting DisableRealtimeMonitoring \SubmitSamplesConsent - HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Exclusions\ + HKLM\SOFTWARE\Policies\Microsoft\Windows Defender HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\EnableLUA HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\LocalAccountTokenFilterPolicy