Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Acridrain_Mar23

Finds AcridRain samples

MalwareAcridrainSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-03-21
Modified
2024-12-19
Score / Quality
75 / 78

What this rule detects

Finds AcridRain samples

Associated malware family: Acridrain.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-acridrain-mar23.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Acridrain_Mar23 : FILE
{
	meta:
		description = "Finds AcridRain samples"
		author = "Sekoia.io"
		id = "049b502a-0fb6-4fa9-a1ce-f01a40269bdb"
		date = "2023-03-21"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_acridrain_mar23.yar#L1-L40"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "7fa1822acc6264a3a58fffef3fc572f8818d99037b20d5abb8bfb41f025949d4"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "\",\"r\":" ascii
		$str02 = "\",\"s\":\"" ascii
		$str03 = "\",\"p\":\"" ascii
		$str04 = "\",\"a\":\"" ascii
		$str05 = ",\"c\":" ascii
		$str06 = ",\"g\" :" ascii
		$str07 = "v7166637466625297979 t2537736810932639330 ath5ee645e0 altpriv cvcv=2 cexpw=1 smf=0" ascii
		$str08 = "Content-Type: multipart/form-data; boundary=----974767299852498929531610575" ascii
		$str09 = "\\Roaming\\Bitwarden\\data\\bitwarden.sqlite3" ascii
		$ste01 = "\\Roaming\\Exodus\\exodus.wallet" ascii
		$ste02 = "\\Roaming\\Electron Cash\\wallets" ascii
		$ste03 = "\\Roaming\\com.liberty.jaxx\\IndexedDB\\file__0.indexeddb.leveldb" ascii
		$ste04 = "\\Local Extension Settings\\" ascii
		$ste05 = "cnmamaachppnkjgnildpdmkaakejnhae" ascii
		$ste06 = "ffnbelfdoeiohenkjibnmadjiehjhajb" ascii
		$ste07 = "\\formhistory.sqlite" ascii
		$ste08 = "\\logins.json" ascii
		$ste09 = "encrypted_key" ascii
		$ste10 = "\\Login Data" ascii
		$enc01 = "bX5cVw8FKyAKZVxXXUAdSTUXCXdCV0FoOxoSF0ZEUEZS" ascii
		$enc02 = "bX5cVw8FKywUaVVbRlkyPAQAFCB1U0dV" ascii
		$enc03 = "bX5cVw8FKzQvUBFhRkYINSIWA3IRdlJADw==" ascii
		$enc04 = "bX5cVw8FKzYWdUVcWl8iCBU5NXBERl1dBTUiFgNyEXZSQA8=" ascii
		$enc05 = "bWBcVQMAGQI6UEJbGGgeGxgDD2xUQW9QCw8WEAp0" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 5 of ( $str* ) and 7 of ( $ste* ) and 1 of ( $enc* )
}

Strings (24 patterns)

IdentifierTypeValueModifiers
$str01text"\",\"r\":"ascii
$str02text"\",\"s\":\""ascii
$str03text"\",\"p\":\""ascii
$str04text"\",\"a\":\""ascii
$str05text",\"c\":"ascii
$str06text",\"g\" :"ascii
$str07text"v7166637466625297979 t2537736810932639330 ath5ee645e0 altpriv cvcv=2 cexpw=1 smf=0"ascii
$str08text"Content-Type: multipart/form-data; boundary=----974767299852498929531610575"ascii
$str09text"\\Roaming\\Bitwarden\\data\\bitwarden.sqlite3"ascii
$ste01text"\\Roaming\\Exodus\\exodus.wallet"ascii
$ste02text"\\Roaming\\Electron Cash\\wallets"ascii
$ste03text"\\Roaming\\com.liberty.jaxx\\IndexedDB\\file__0.indexeddb.leveldb"ascii
$ste04text"\\Local Extension Settings\\"ascii
$ste05text"cnmamaachppnkjgnildpdmkaakejnhae"ascii
$ste06text"ffnbelfdoeiohenkjibnmadjiehjhajb"ascii
$ste07text"\\formhistory.sqlite"ascii
$ste08text"\\logins.json"ascii
$ste09text"encrypted_key"ascii
$ste10text"\\Login Data"ascii
$enc01text"bX5cVw8FKyAKZVxXXUAdSTUXCXdCV0FoOxoSF0ZEUEZS"ascii
$enc02text"bX5cVw8FKywUaVVbRlkyPAQAFCB1U0dV"ascii
$enc03text"bX5cVw8FKzQvUBFhRkYINSIWA3IRdlJADw=="ascii
$enc04text"bX5cVw8FKzYWdUVcWl8iCBU5NXBERl1dBTUiFgNyEXZSQA8="ascii
$enc05text"bWBcVQMAGQI6UEJbGGgeGxgDD2xUQW9QCw8WEAp0"ascii

Condition

uint16( 0 ) == 0x5A4D and 5 of ( $str* ) and 7 of ( $ste* ) and 1 of ( $enc* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 5 patterns in ( $str* ) must match.
  • At least 7 patterns in ( $ste* ) must match.
  • At least 1 patterns in ( $enc* ) 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: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

Rule id: 049b502a-0fb6-4fa9-a1ce-f01a40269bdb

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Acridrain rules