Skip to content

Commit eb1570d

Browse files
committed
Fixes #2339
1 parent 0127ece commit eb1570d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

analyzer/windows/data/yara/Formbook.yar

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@ rule FormhookB
1818
meta:
1919
author = "kevoreilly"
2020
description = "Formbook Anti-hook Bypass"
21-
cape_options = "clear,bp0=$decode,action0=scan,hc0=1,bp1=$remap_ntdll+6,action1=setdst:ntdll,count=0,force-sleepskip=1"
21+
cape_options = "clear,bp0=$entry,action0=scan,hc0=1,bp1=$new_remap+6,action1=setdst:ntdll,count=0,force-sleepskip=1"
2222
packed = "08c5f44d57f5ccc285596b3d9921bf7fbbbf7f9a827bb3285a800e4c9faf6731"
2323
strings:
24-
$decode = {55 8B EC 83 EC 24 53 56 57 [480-520] 8B E5 5D C3}
25-
$remap_ntdll = {90 90 90 90 90 90 8B (86 [2] 00 00|46 ??|06) 5F 5E 5B 8B E5 5D C3}
24+
$remap_ntdll = {33 96 [2] 00 00 8D 86 [2] 00 00 68 F0 00 00 00 50 89 [2-5] E8 [4-10] 6A 00 6A 0? 8D 4D ?? 51 6A}
25+
$entry = {55 8B EC 83 EC ?4 53 56 57 [480-520] 8B E5 5D C3}
26+
$new_remap = {90 90 90 90 90 90 8B (86 [2] 00 00|46 ??|06) 5F 5E 5B 8B E5 5D C3}
2627
condition:
27-
any of them
28+
2 of them
2829
}
2930

3031
rule FormconfA

0 commit comments

Comments
 (0)