YARA · SEKOIA.IO Community
SEKOIA_Trojan_Android_Xenomorph
Detect samples of the Android banking trojan Xenomorph
- 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:
= "Detect samples of the Android banking trojan Xenomorph"
= "Sekoia.io"
= "ec65ca1b-e71f-4772-8be0-2a2b6a690987"
= "2022-02-25"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_android_xenomorph.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d44e5742449cd9c19b50ab23f452378d5627e19140554d12086994d820df9c64"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ass0 | text | "assets/shadows/knife_shadow_" | |
| $ass1 | text | "assets/knife_" | |
| $ass2 | text | "okhttp3" |
Condition
uint32be( 0 ) == 0x504B0304 and filesize > 1MB and filesize < 4MB and #ass0 > 10 and #ass1 > 10 and $ass2In 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20