Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Trojan_Android_Cerberus

Detect samples of the Android banking trojan Cerberus, or its family

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-01-24
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detect samples of the Android banking trojan Cerberus, or its family

Targets: ZIP / Office Open XML.

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

Summary generated from the rule's metadata and condition.

Rule source

trojan-android-cerberus.yarDetection Rule License 1.1
rule SEKOIA_Trojan_Android_Cerberus : FILE
{
	meta:
		description = "Detect samples of the Android banking trojan Cerberus, or its family"
		author = "Sekoia.io"
		id = "3ea398bd-a80c-40f4-ad52-73b528add4ad"
		date = "2022-01-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_android_cerberus.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "18109733d15c994015646e786a7c6177a1209200fd4c80042db3d48c97c02030"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str0 = "assets/neurax.txt"
		$str1 = "assets/Card_UpPotency_UI.json"
		$str2 = "assets/Card_SignetFoster_UI.json"
		$str3 = "assets/Gene_EmpathyTrainer.png"
		$bin0 = "assets/180417.bin"
		$bin1 = "assets/180513.bin"
		$bin2 = "assets/180527.bin"
		$bin3 = "assets/180528.bin"

	condition:
		uint32be( 0 ) == 0x504B0304 and filesize > 1MB and filesize < 4MB and 3 of ( $str* ) and 3 of ( $bin* )
}

Strings (8 patterns)

IdentifierTypeValueModifiers
$str0text"assets/neurax.txt"
$str1text"assets/Card_UpPotency_UI.json"
$str2text"assets/Card_SignetFoster_UI.json"
$str3text"assets/Gene_EmpathyTrainer.png"
$bin0text"assets/180417.bin"
$bin1text"assets/180513.bin"
$bin2text"assets/180527.bin"
$bin3text"assets/180528.bin"

Condition

uint32be( 0 ) == 0x504B0304 and filesize > 1MB and filesize < 4MB and 3 of ( $str* ) and 3 of ( $bin* )

In plain words (Heuristic)

  • The file must start with “PK” — a ZIP archive (also Office Open XML, JAR, APK).
  • The file must be smaller than 4MB (a cheap guard that skips large files).
  • The file must be larger than 1MB.
  • At least 3 patterns in ( $str* ) must match.
  • At least 3 patterns in ( $bin* ) 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: 3ea398bd-a80c-40f4-ad52-73b528add4ad

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE