Skip to content

Commit 2373ecc

Browse files
committed
fix(yara): Use file name to distinguish alert title
1 parent 2c7609e commit 2373ecc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/yara/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func (c Config) ShouldSkipFile(file string) bool {
165165
// whether the process scan took place or a file/registry
166166
// key was scanned.
167167
func (c Config) AlertTitle(e *kevent.Kevent) string {
168-
if (e.Category == ktypes.File && e.Kparams.Contains(kparams.FileName)) || e.Category == ktypes.Registry {
168+
if (e.Category == ktypes.File && e.GetParamAsString(kparams.FileName) != "") || e.Category == ktypes.Registry {
169169
return FileThreatAlertTitle
170170
}
171171
return MemoryThreatAlertTitle

0 commit comments

Comments
 (0)