Skip to content

Commit

Permalink
added new filters
Browse files Browse the repository at this point in the history
  • Loading branch information
brucewayne committed Sep 3, 2020
1 parent f39043b commit 1f0f99f
Show file tree
Hide file tree
Showing 21 changed files with 59 additions and 0 deletions.
Binary file added EvtMute/.vs/EvtMuteHook/v15/.suo
Binary file not shown.
Binary file added EvtMute/.vs/EvtMuteHook/v15/Browse.VC.db
Binary file not shown.
Binary file not shown.
15 changes: 15 additions & 0 deletions EvtMute/EvtMuteHook/x64/Debug/EvtMuteHook.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
 pch.cpp
dllmain.cpp
x:\evtmute\evtmutehook\dllmain.cpp(170): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
x:\evtmute\evtmutehook\dllmain.cpp(175): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
x:\evtmute\evtmutehook\dllmain.cpp(183): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
x:\evtmute\evtmutehook\dllmain.cpp(221): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
x:\evtmute\evtmutehook\dllmain.cpp(263): warning C4101: 'oldProtect': unreferenced local variable
x:\evtmute\evtmutehook\dllmain.cpp(260): warning C4101: 'cStringBuffer': unreferenced local variable
x:\evtmute\evtmutehook\dllmain.cpp(263): warning C4101: 'oldOldProtect': unreferenced local variable
x:\evtmute\evtmutehook\dllmain.cpp(362): error C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\program files (x86)\windows kits\10\include\10.0.17763.0\ucrt\stdio.h(1774): note: see declaration of 'sprintf'
Binary file added EvtMute/EvtMuteHook/x64/Debug/EvtMuteHook.pch
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0
Debug|x64|X:\EvtMute\|
Empty file.
Binary file added EvtMute/EvtMuteHook/x64/Debug/pch.obj
Binary file not shown.
Binary file added EvtMute/EvtMuteHook/x64/Debug/vc141.idb
Binary file not shown.
Binary file added EvtMute/EvtMuteHook/x64/Debug/vc141.pdb
Binary file not shown.
Binary file modified SharpEvtMute/.vs/SharpEvtMute/v15/.suo
Binary file not shown.
Binary file modified SharpEvtMute/.vs/SharpEvtMute/v15/Browse.VC.db
Binary file not shown.
Binary file removed SharpEvtMute/.vs/SharpEvtMute/v15/Browse.VC.opendb
Binary file not shown.
Binary file modified SharpEvtMute/.vs/SharpEvtMute/v15/Server/sqlite3/storage.ide-shm
Binary file not shown.
9 changes: 9 additions & 0 deletions YaraFilters/image.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rule Block_Image {
meta:
author = "@_batsec_"
description = "Prevent an image from appering in any event logs"
strings:
$imagename = "hideme.exe"
condition:
$imagename
}
12 changes: 12 additions & 0 deletions YaraFilters/logon.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rule Block_Logon {
meta:
author = "@_batsec_"
description = "Prevent a users logon being reported"
strings:
$provider = "Microsoft-Windows-Security-Auditing"
$username = "backdoor"
$logon1 = "LogonType"
$logon2 = "TargetLogonId"
condition:
$provider and $username and $logon*
}
12 changes: 12 additions & 0 deletions YaraFilters/lsassdump.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
rule Block_Lsass_Dump {
meta:
author = "@_batsec_"
description = "Prevent lsass dumping being reported by sysmon"
strings:
$provider = "Microsoft-Windows-Sysmon"
$image = "lsass.exe" nocase
$access = "GrantedAccess"
$type = "0x1fffff"
condition:
all of them
}
9 changes: 9 additions & 0 deletions YaraFilters/sysmon.yar
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rule Block_All_Sysmon_Events {
meta:
author = "@_batsec_"
description = "Prevent all sysmon events from being reported"
strings:
$provider = "Microsoft-Windows-Sysmon"
condition:
$provider
}

0 comments on commit 1f0f99f

Please sign in to comment.