Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Iceid

Detects IceID / Bokbot variants

MalwareIceidditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects IceID / Bokbot variants"
		author = "ditekSHen"
		id = "0da94737-0f82-5892-a0eb-f9f3c0a114cc"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5157-L5176"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "204b4c297806a36ca14bb3e659824f4eb49b18308af7090f0db1194705f1e2c9"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$n1text"POST"fullword wide
$n2text"; _gat="fullword wide
$n3text"; _ga="fullword wide
$n4text"; _u="fullword wide
$n5text"; __io="fullword wide
$n6text"; _gid="fullword wide
$n7text"Cookie: __gads="fullword wide
$s1text"c:\\ProgramData"ascii
$s2text"loader_dll_64.dll"fullword ascii
$s3text"loader_dll_32.dll"fullword ascii
$s4text"/?id=%0.2X%0.8X%0.8X%s"ascii
$s5text"%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.

Open in editor

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).

Original rule

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

More Iceid rules