Skip to content

Commit 6faa03e

Browse files
mgreen27scudette
authored andcommitted
Add OriginalFileName to Name regex search for better hunting (Velocidex#2895)
Added OriginalFileName OR EntryName into filter to improve hunting results on renamed binaries.
1 parent 5867339 commit 6faa03e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

artifacts/definitions/Windows/Detection/Amcache.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ description: |
1313
1414
- SHA1regex - regex entries to filter by SHA1.
1515
- PathRegex - filter on path if available.
16-
- NameRegex - filter on EntryName / binary.
16+
- NameRegex - filter on EntryName OR OriginalFileName.
1717
1818
NOTE:
1919
@@ -109,9 +109,9 @@ sources:
109109
WHERE SHA1
110110
AND SHA1 =~ SHA1Regex
111111
AND if(condition= NameRegex,
112-
then= EntryName =~ NameRegex,
113-
else= True)
112+
then= EntryName =~ NameRegex OR OriginalFileName =~ NameRegex,
113+
else= True)
114114
AND if(condition= PathRegex,
115115
then= EntryPath =~ PathRegex,
116116
else= True)
117-
})
117+
})

0 commit comments

Comments
 (0)