@@ -447,6 +447,8 @@ const (
447447 FileName Field = "file.name"
448448 // FilePath represents the file full path (e.g. C:\Windows\System32\cmd.exe)
449449 FilePath Field = "file.path"
450+ // FilePathStem represents the full file path without extension (e.g. C:\Windows\System32\cmd)
451+ FilePathStem Field = "file.path.stem"
450452 // FileExtension represents the file extension (e.g. .exe or .dll)
451453 FileExtension Field = "file.extension"
452454 // FileOperation represents the file operation (e.g. create)
@@ -557,6 +559,8 @@ const (
557559 DllSize Field = "dll.size"
558560 // DllPath is the DLL full path
559561 DllPath Field = "dll.path"
562+ // DllPath is the DLL path stem field
563+ DllPathStem Field = "dll.path.stem"
560564 // DllName is the DLL name
561565 DllName Field = "dll.name"
562566 // DllPID is the pid of the process where the DLL was loaded
@@ -593,6 +597,8 @@ const (
593597 ModuleDefaultAddress Field = "module.default_address"
594598 // ModulePath is the module full path
595599 ModulePath Field = "module.path"
600+ // ModulePathStem is the module path stem field
601+ ModulePathStem Field = "module.path.stem"
596602 // ModuleName is the module name
597603 ModuleName Field = "module.name"
598604 // ModulePID is the pid of the process where the module was loaded
@@ -1124,6 +1130,7 @@ var fields = map[Field]FieldInfo{
11241130 ImageIsExecutable : {ImageIsExecutable , "indicates if the loaded image is an executable" , params .Bool , []string {"image.is_exec'" }, & Deprecation {Since : "3.0.0" , Fields : []Field {ModuleIsExecutable }}, nil },
11251131 ImageIsDotnet : {ImageIsDotnet , "indicates if the loaded image is a .NET assembly" , params .Bool , []string {"image.is_dotnet'" }, & Deprecation {Since : "3.0.0" , Fields : []Field {ModuleIsDotnet }}, nil },
11261132 ModulePath : {ModulePath , "full module path" , params .UnicodeString , []string {"module.path = 'C:\\ Windows\\ System32\\ advapi32.dll'" }, nil , nil },
1133+ ModulePathStem : {ModulePathStem , "module path stem" , params .UnicodeString , []string {"module.path.stem = 'C:\\ Windows\\ System32\\ advapi32'" }, nil , nil },
11271134 ModuleName : {ModuleName , "module name" , params .UnicodeString , []string {"module.name = 'advapi32.dll'" }, nil , nil },
11281135 ModuleBase : {ModuleBase , "the base address of process in which the module is loaded" , params .Address , []string {"module.base.address = 'a65d800000'" }, nil , nil },
11291136 ModuleChecksum : {ModuleChecksum , "module checksum" , params .Uint32 , []string {"module.checksum = 746424" }, nil , nil },
@@ -1146,6 +1153,7 @@ var fields = map[Field]FieldInfo{
11461153 ModuleIsExecutable : {ModuleIsExecutable , "indicates if the loaded module is an executable" , params .Bool , []string {"module.is_exec'" }, nil , nil },
11471154 ModuleIsDotnet : {ModuleIsDotnet , "indicates if the loaded module is a .NET assembly" , params .Bool , []string {"module.pe.is_dotnet'" }, nil , nil },
11481155 DllPath : {DllPath , "full dll path" , params .UnicodeString , []string {"dll.path = 'C:\\ Windows\\ System32\\ advapi32.dll'" }, nil , nil },
1156+ DllPathStem : {DllPathStem , "dll path stem" , params .UnicodeString , []string {"dll.path.stem = 'C:\\ Windows\\ System32\\ advapi32'" }, nil , nil },
11491157 DllName : {DllName , "module name" , params .UnicodeString , []string {"dll.name = 'advapi32.dll'" }, nil , nil },
11501158 DllBase : {DllBase , "the base address of process in which the DLL is loaded" , params .Address , []string {"dll.base = 'a65d800000'" }, nil , nil },
11511159 DllSize : {DllSize , "dll virtual mapped size" , params .Uint32 , []string {"dll.size > 1024" }, nil , nil },
@@ -1163,6 +1171,7 @@ var fields = map[Field]FieldInfo{
11631171
11641172 FileObject : {FileObject , "file object address" , params .Uint64 , []string {"file.object = 18446738026482168384" }, nil , nil },
11651173 FilePath : {FilePath , "full file path" , params .UnicodeString , []string {"file.path = 'C:\\ Windows\\ System32'" }, nil , nil },
1174+ FilePathStem : {FilePathStem , "full file path without extension" , params .UnicodeString , []string {"file.path.stem = 'C:\\ Windows\\ System32\\ cmd'" }, nil , nil },
11661175 FileName : {FileName , "full file name" , params .UnicodeString , []string {"file.name contains 'mimikatz'" }, nil , nil },
11671176 FileOperation : {FileOperation , "file operation" , params .AnsiString , []string {"file.operation = 'open'" }, nil , nil },
11681177 FileShareMask : {FileShareMask , "file share mask" , params .AnsiString , []string {"file.share.mask = 'rw-'" }, nil , nil },
0 commit comments