YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Iceid
Detects IceID / Bokbot variants
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects IceID / Bokbot variants
Associated malware family: Iceid.
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-iceid.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Iceid : FILE
{
meta:
= "Detects IceID / Bokbot variants"
= "ditekSHen"
= "0da94737-0f82-5892-a0eb-f9f3c0a114cc"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5157-L5176"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "204b4c297806a36ca14bb3e659824f4eb49b18308af7090f0db1194705f1e2c9"
= 75
= 75
= "FILE"
strings:
$n1 = "POST" fullword wide
$n2 = "; _gat=" fullword wide
$n3 = "; _ga=" fullword wide
$n4 = "; _u=" fullword wide
$n5 = "; __io=" fullword wide
$n6 = "; _gid=" fullword wide
$n7 = "Cookie: __gads=" fullword wide
$s1 = "c:\\ProgramData" ascii
$s2 = "loader_dll_64.dll" fullword ascii
$s3 = "loader_dll_32.dll" fullword ascii
$s4 = "/?id=%0.2X%0.8X%0.8X%s" ascii
$s5 = "%0.2X%0.2X%0.2X%0.2X%0.2X%0.2X%0.8X" ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( all of ( $n* ) and 1 of ( $s* ) ) or ( 3 of ( $s* ) and 1 of ( $n* ) ) )
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $n1 | text | "POST" | fullword wide |
| $n2 | text | "; _gat=" | fullword wide |
| $n3 | text | "; _ga=" | fullword wide |
| $n4 | text | "; _u=" | fullword wide |
| $n5 | text | "; __io=" | fullword wide |
| $n6 | text | "; _gid=" | fullword wide |
| $n7 | text | "Cookie: __gads=" | fullword wide |
| $s1 | text | "c:\\ProgramData" | ascii |
| $s2 | text | "loader_dll_64.dll" | fullword ascii |
| $s3 | text | "loader_dll_32.dll" | fullword ascii |
| $s4 | text | "/?id=%0.2X%0.8X%0.8X%s" | ascii |
| $s5 | text | "%0.2X%0.2X%0.2X%0.2X%0.2X%0.2X%0.8X" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( all of ( $n* ) and 1 of ( $s* ) ) or ( 3 of ( $s* ) and 1 of ( $n* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $n* ) must match.
- At least 1 patterns in ( $s* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 1 patterns in ( $n* ) must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 0da94737-0f82-5892-a0eb-f9f3c0a114cc
Tags:FILE
Related rules
- TELEKOM_SECURITY_Win_Iceid_Core_202104Metadata onlyMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-04-12
- TELEKOM_SECURITY_Win_Iceid_Core_Ldr_202104Metadata onlyMalwareTelekom Security malware analysis· Thomas Barabosch, Telekom Security· 2021-04-13
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06