Skip to content

YARA · ESET malware-ioc

ESET_Apt_Windows_Invisimole_C2

InvisiMole C&C servers

APT / threat actorInvisimoleESET malware-iocBSD 2-Clause LicenseCompiles with YARA-X (with warnings)
Author
ESET Research
Date
2021-05-17
Score / Quality
75 / 78

What this rule detects

InvisiMole C&C servers

Associated malware family: Invisimole.

Targets: Windows PE.

It defines 25 patterns (25 text, 0 hex, 0 regex).

YARA-X says: warning[duplicate_pattern_value]: duplicate pattern value

Summary generated from the rule's metadata and condition.

Rule source

Includes the imports and 1 rule(s) it depends on needed to compile it on its own.

apt-windows-invisimole-c2.yarBSD 2-Clause License
private rule ESET_Invisimole_Blob_PRIVATE
{
	meta:
		description = "Detects InvisiMole blobs by magic values"
		author = "ESET Research"
		id = "6a179d91-50f1-5400-b141-0f162efd2431"
		date = "2021-05-17"
		modified = "2021-05-17"
		reference = "https://github.com/eset/malware-ioc/"
		source_url = "https://github.com/eset/malware-ioc/blob/17baf44964a77368e9149f4f593eb098beddf1c5/invisimole/invisimole.yar#L34-L52"
		license_url = "https://github.com/eset/malware-ioc/blob/17baf44964a77368e9149f4f593eb098beddf1c5/LICENSE"
		logic_hash = "8bddaf874da58fbe6362498f8979b511f39531fe2b98d4be8c099bdafb6d0067"
		score = 75
		quality = 80
		tags = ""
		license = "BSD 2-Clause"
		version = "1"

	strings:
		$magic_old_32 = {F9 FF D0 DE}
		$magic_old_64 = {64 FF D0 DE}
		$magic_new_32 = {86 DA 11 CE}
		$magic_new_64 = {64 DA 11 CE}

	condition:
		($magic_old_32 at 0 ) or ( $magic_old_64 at 0 ) or ( $magic_new_32 at 0 ) or ( $magic_new_64 at 0 )
}

rule ESET_Apt_Windows_Invisimole_C2 : FILE
{
	meta:
		description = "InvisiMole C&C servers"
		author = "ESET Research"
		id = "9279c8cd-2c16-5f90-a7f5-e668d57c805b"
		date = "2021-05-17"
		modified = "2021-05-17"
		reference = "https://github.com/eset/malware-ioc/"
		source_url = "https://github.com/eset/malware-ioc/blob/17baf44964a77368e9149f4f593eb098beddf1c5/invisimole/invisimole.yar#L257-L297"
		license_url = "https://github.com/eset/malware-ioc/blob/17baf44964a77368e9149f4f593eb098beddf1c5/LICENSE"
		logic_hash = "aff8456ce7a9ebe875c02e51c09b77ee7b1fddfc11d4ad236e12c8c5240a01a8"
		score = 75
		quality = 78
		tags = "FILE"
		license = "BSD 2-Clause"
		version = "1"

	strings:
		$s1 = "46.165.220.228" ascii wide
		$s2 = "80.255.3.66" ascii wide
		$s3 = "85.17.26.174" ascii wide
		$s4 = "185.193.38.55" ascii wide
		$s5 = "194.187.249.157" ascii wide
		$s6 = "195.154.255.211" ascii wide
		$s7 = "153.re" ascii wide fullword
		$s8 = "adstat.red" ascii wide
		$s9 = "adtrax.net" ascii wide
		$s10 = "akamai.sytes.net" ascii wide
		$s11 = "amz-eu401.com" ascii wide
		$s12 = "blabla234342.sytes.net" ascii wide
		$s13 = "mx1.be" ascii wide fullword
		$s14 = "statad.de" ascii wide
		$s15 = "time.servehttp.com" ascii wide
		$s16 = "upd.re" ascii wide fullword
		$s17 = "update.xn--6frz82g" ascii wide
		$s18 = "updatecloud.sytes.net" ascii wide
		$s19 = "updchecking.sytes.net" ascii wide
		$s20 = "wlsts.net" ascii wide
		$s21 = "ro2.host" ascii wide fullword
		$s22 = "2ld.xyz" ascii wide fullword
		$s23 = "the-haba.com" ascii wide
		$s24 = "82.202.172.134" ascii wide
		$s25 = "update.xn--6frz82g" ascii wide

	condition:
		(( uint16( 0 ) == 0x5A4D ) or ESET_Invisimole_Blob_PRIVATE ) and $s21 and any of them
}

Strings (25 patterns)

IdentifierTypeValueModifiers
$s1text"46.165.220.228"ascii wide
$s2text"80.255.3.66"ascii wide
$s3text"85.17.26.174"ascii wide
$s4text"185.193.38.55"ascii wide
$s5text"194.187.249.157"ascii wide
$s6text"195.154.255.211"ascii wide
$s7text"153.re"ascii wide fullword
$s8text"adstat.red"ascii wide
$s9text"adtrax.net"ascii wide
$s10text"akamai.sytes.net"ascii wide
$s11text"amz-eu401.com"ascii wide
$s12text"blabla234342.sytes.net"ascii wide
$s13text"mx1.be"ascii wide fullword
$s14text"statad.de"ascii wide
$s15text"time.servehttp.com"ascii wide
$s16text"upd.re"ascii wide fullword
$s17text"update.xn--6frz82g"ascii wide
$s18text"updatecloud.sytes.net"ascii wide
$s19text"updchecking.sytes.net"ascii wide
$s20text"wlsts.net"ascii wide
$s21text"ro2.host"ascii wide fullword
$s22text"2ld.xyz"ascii wide fullword
$s23text"the-haba.com"ascii wide
$s24text"82.202.172.134"ascii wide
$s25text"update.xn--6frz82g"ascii wide

Condition

(( uint16( 0 ) == 0x5A4D ) or ESET_Invisimole_Blob_PRIVATE ) and $s21 and any of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least one pattern in the rule must match.
  • Depends on the rule ESET_Invisimole_Blob_PRIVATE.
  • Pattern $s21 must be present.

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: ESET Research

Source repository: ESET malware-ioc @ 17baf44964

Licence: BSD 2-Clause License (stated in the rule's own meta)

“BSD 2-Clause”

Copyright notice: Copyright (c) 2014-2018 ESET spol. s r.o.

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: 9279c8cd-2c16-5f90-a7f5-e668d57c805b

Metadata

version1

Tags:FILE

More Invisimole rules