Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Trojan_Android_Xenomorph

Detect samples of the Android banking trojan Xenomorph

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

What this rule detects

Detect samples of the Android banking trojan Xenomorph

Targets: ZIP / Office Open XML.

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

Summary generated from the rule's metadata and condition.

Rule source

trojan-android-xenomorph.yarDetection Rule License 1.1
rule SEKOIA_Trojan_Android_Xenomorph : FILE
{
	meta:
		description = "Detect samples of the Android banking trojan Xenomorph"
		author = "Sekoia.io"
		id = "ec65ca1b-e71f-4772-8be0-2a2b6a690987"
		date = "2022-02-25"
		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_xenomorph.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "d44e5742449cd9c19b50ab23f452378d5627e19140554d12086994d820df9c64"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ass0 = "assets/shadows/knife_shadow_"
		$ass1 = "assets/knife_"
		$ass2 = "okhttp3"

	condition:
		uint32be( 0 ) == 0x504B0304 and filesize > 1MB and filesize < 4MB and #ass0 > 10 and #ass1 > 10 and $ass2
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$ass0text"assets/shadows/knife_shadow_"
$ass1text"assets/knife_"
$ass2text"okhttp3"

Condition

uint32be( 0 ) == 0x504B0304 and filesize > 1MB and filesize < 4MB and #ass0 > 10 and #ass1 > 10 and $ass2

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.
  • Pattern $ass0 must occur > 10 times.
  • Pattern $ass1 must occur > 10 times.
  • Pattern $ass2 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: 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: ec65ca1b-e71f-4772-8be0-2a2b6a690987

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE