YARA · SEKOIA.IO Community
SEKOIA_Trojan_Android_Brata
Detect samples of the Android banking trojan BRATA
- Author
- Sekoia.io
- Date
- 2022-01-27
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect samples of the Android banking trojan BRATA
Targets: ZIP / Office Open XML.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
trojan-android-brata.yarDetection Rule License 1.1
rule SEKOIA_Trojan_Android_Brata : FILE
{
meta:
= "Detect samples of the Android banking trojan BRATA"
= "Sekoia.io"
= "fde9b82e-c677-44ed-b512-b225a3aba201"
= "2022-01-27"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_android_brata.yar#L1-L29"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "0c94e5e0c01d4fa9bf28603787029938a3159f468dd3876e7d25646e93dd68b8"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$goo0 = "Google Play services error"
$goo1 = "Error de Serveis de Google Play"
$goo2 = "Fehler bei Zugriff auf Google Play-Dienste"
$goo3 = "Erro nos servizos de Google Play"
$goo4 = "Fout met Google Play-services"
$goo5 = "Virhe Google Play -palveluissa"
$goo6 = "Erro do Google Play Services"
$goo7 = "Error de Google Play Services"
$res0 = "res/xml/device_admin.xml"
$res1 = "res/xml/windowchangedetectingservice.xml"
$res2 = "res/xml-v22/windowchangedetectingservice.xml"
condition:
uint32be( 0 ) == 0x504B0304 and filesize > 2MB and filesize < 6MB and 7 of ( $goo* ) and 2 of ( $res* )
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $goo0 | text | "Google Play services error" | |
| $goo1 | text | "Error de Serveis de Google Play" | |
| $goo2 | text | "Fehler bei Zugriff auf Google Play-Dienste" | |
| $goo3 | text | "Erro nos servizos de Google Play" | |
| $goo4 | text | "Fout met Google Play-services" | |
| $goo5 | text | "Virhe Google Play -palveluissa" | |
| $goo6 | text | "Erro do Google Play Services" | |
| $goo7 | text | "Error de Google Play Services" | |
| $res0 | text | "res/xml/device_admin.xml" | |
| $res1 | text | "res/xml/windowchangedetectingservice.xml" | |
| $res2 | text | "res/xml-v22/windowchangedetectingservice.xml" |
Condition
uint32be( 0 ) == 0x504B0304 and filesize > 2MB and filesize < 6MB and 7 of ( $goo* ) and 2 of ( $res* )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 6MB (a cheap guard that skips large files).
- The file must be larger than 2MB.
- At least 7 patterns in ( $goo* ) must match.
- At least 2 patterns in ( $res* ) 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.
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: fde9b82e-c677-44ed-b512-b225a3aba201
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