Skip to content

Commit da49cc4

Browse files
committed
Socks5Systemz update: detection & config extraction, parser update also required (CAPE-parsers repo)
1 parent 994dc11 commit da49cc4

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

analyzer/windows/data/yara/Socks5Systemz.yar

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ rule Socks5Systemz
33
meta:
44
author = "kevoreilly"
55
description = "Socks5Systemz config extraction"
6-
cape_options = "br0=user32::wsprintfA,action1=string:[esp],count=0,typestring=Socks5Systemz Config"
6+
cape_options = "br0=user32::wsprintfA,br1=ntdll::sprintf,action2=string:[esp],action3=string:[esp],count=0,typestring=Socks5Systemz Config"
77
packed = "9b997d0de3fe83091726919a0dc653e22f8f8b20b1bb7d0b8485652e88396f29"
88
strings:
99
$chunk1 = {0F B6 84 8A [4] E9 [3] (00|FF)}
1010
$chunk2 = {0F B6 04 8D [4] E9 [3] (00|FF)}
11-
$chunk3 = {0F B6 04 8D [4] E9 [3] (00|FF)}
12-
$chunk4 = {0F B6 04 8D [4] E9 [3] (00|FF)}
13-
$chunk5 = {66 0F 6F 05 [4] E9 [3] (00|FF)}
14-
$chunk6 = {F0 0F B1 95 [4] E9 [3] (00|FF)}
15-
$chunk7 = {83 FA 04 E9 [3] (00|FF)}
11+
$chunk3 = {66 0F 6F 05 [4] E9 [3] (00|FF)}
12+
$chunk4 = {F0 0F B1 95 [4] E9 [3] (00|FF)}
13+
$chunk5 = {83 FA 04 E9 [3] (00|FF)}
14+
$chunk6 = {8A 04 8D [4] E9 [3] (00|FF)}
15+
$chunk7 = {83 C4 04 83 C4 04 E9}
16+
$chunk8 = {83 C2 04 87 14 24 5C E9}
1617
condition:
17-
uint16(0) == 0x5A4D and 6 of them
18+
uint16(0) == 0x5A4D and 5 of them
1819
}

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
### [23.05.2025]
2+
* Socks5Systemz update: detection & config extraction, parser update also required (CAPE-parsers repo)
23
* Monitor updates:
34
* Trace: do not wrap GetExportNameByAddress() in try/catch and do not use StepOverRegister in BreakOnReturnCallback()
45
* Debugger: fix br1 (break on return) config option parsing (config.c)

data/yara/CAPE/Socks5Systemz.yar

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ rule Socks5Systemz
88
strings:
99
$chunk1 = {0F B6 84 8A [4] E9 [3] (00|FF)}
1010
$chunk2 = {0F B6 04 8D [4] E9 [3] (00|FF)}
11-
$chunk3 = {0F B6 04 8D [4] E9 [3] (00|FF)}
12-
$chunk4 = {0F B6 04 8D [4] E9 [3] (00|FF)}
13-
$chunk5 = {66 0F 6F 05 [4] E9 [3] (00|FF)}
14-
$chunk6 = {F0 0F B1 95 [4] E9 [3] (00|FF)}
15-
$chunk7 = {83 FA 04 E9 [3] (00|FF)}
11+
$chunk3 = {66 0F 6F 05 [4] E9 [3] (00|FF)}
12+
$chunk4 = {F0 0F B1 95 [4] E9 [3] (00|FF)}
13+
$chunk5 = {83 FA 04 E9 [3] (00|FF)}
14+
$chunk6 = {8A 04 8D [4] E9 [3] (00|FF)}
15+
$chunk7 = {83 C4 04 83 C4 04 E9}
16+
$chunk8 = {83 C2 04 87 14 24 5C E9}
1617
condition:
17-
uint16(0) == 0x5A4D and 6 of them
18+
uint16(0) == 0x5A4D and 5 of them
1819
}

0 commit comments

Comments
 (0)