Merge pull request #1800 from SolitudePy/develop

add functions to etwpatch
This commit is contained in:
ikelos
2025-05-07 22:03:37 +01:00
committed by GitHub
@@ -12,6 +12,8 @@ from volatility3.plugins.windows import pslist, pe_symbols
vollog = logging.getLogger(__name__)
# EtwpEventWriteFull -> https://github.com/SolitudePy/Stealthy-ETW-Patch
# CAPA rule -> https://github.com/mandiant/capa-rules/blob/master/anti-analysis/anti-av/patch-event-tracing-for-windows-function.yml
class EtwPatch(interfaces.plugins.PluginInterface):
"""Identifies ETW (Event Tracing for Windows) patching techniques used by malware to evade detection.
@@ -30,10 +32,14 @@ class EtwPatch(interfaces.plugins.PluginInterface):
"EtwEventWrite",
"EtwEventWriteFull",
"NtTraceEvent",
"ZwTraceEvent",
"NtTraceControl",
"ZwTraceControl",
"EtwpEventWriteFull",
],
},
"advapi32.dll": {
pe_symbols.wanted_names_identifier: ["EventWrite"],
pe_symbols.wanted_names_identifier: ["EventWrite", "TraceEvent"],
},
}
@@ -75,7 +81,6 @@ class EtwPatch(interfaces.plugins.PluginInterface):
kernel_module_name=self.config["kernel"],
filter_func=filter_func,
):
try:
proc_id = proc.UniqueProcessId
proc_name = utility.array_to_string(proc.ImageFileName)