From bc45fe36e7c00da4f84f54f6ec2dd23011923100 Mon Sep 17 00:00:00 2001 From: Hare Sudhan Date: Tue, 19 Nov 2024 18:53:16 -0500 Subject: [PATCH] update --- atomics/T1562.001/T1562.001.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atomics/T1562.001/T1562.001.yaml b/atomics/T1562.001/T1562.001.yaml index 0f456d1f..54ef391a 100644 --- a/atomics/T1562.001/T1562.001.yaml +++ b/atomics/T1562.001/T1562.001.yaml @@ -217,7 +217,7 @@ atomic_tests: - description: | sysmon filter must be loaded prereq_command: | - if(fltmc.exe filters | findstr #{sysmon_driver}) { exit 0 } else { exit 1 } + fltmc.exe filters | findstr #{sysmon_driver} get_prereq_command: | if(Test-Path "PathToAtomicsFolder\..\ExternalPayloads\Sysmon\Sysmon.exe"){ & "PathToAtomicsFolder\..\ExternalPayloads\Sysmon\Sysmon.exe" -u @@ -254,7 +254,7 @@ atomic_tests: - description: | Sysmon executable must be available prereq_command: | - if(cmd /c where sysmon) {exit 0} else {exit 1} + where.exe sysmon*.exe get_prereq_command: | $parentpath = Split-Path "#{sysmon_exe}"; $zippath = "$parentpath\Sysmon.zip" New-Item -ItemType Directory $parentpath -Force | Out-Null @@ -264,7 +264,7 @@ atomic_tests: - description: | Sysmon must be installed prereq_command: | - if(cmd /c sc query sysmon) { exit 0} else { exit 1} + Get-Service -Name Sysmon* get_prereq_command: | cmd /c sysmon -i -accepteula executor: