YARA · SEKOIA.IO Community
SEKOIA_Apt_Unk_Dex_China_Freedom_Trap_Spyware
Detects China Freedom Trap spyware dex file
- Author
- Sekoia.io
- Date
- 2022-09-07
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects China Freedom Trap spyware dex file
It defines 14 patterns (14 text, 0 hex, 0 regex).
YARA-X says: warning[duplicate_pattern_value]: duplicate pattern value
Summary generated from the rule's metadata and condition.
Rule source
rule SEKOIA_Apt_Unk_Dex_China_Freedom_Trap_Spyware : FILE
{
meta:
= "Detects China Freedom Trap spyware dex file"
= "Sekoia.io"
= "3d66b6b8-8397-441a-a337-4a282df39591"
= "2022-09-07"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_unk_dex_china_freedom_trap_spyware.yar#L1-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "ceb70fce74898ea64ded6880a978441c"
= "f85f78a1a58fa8b2698637f8c540877ea1c5141ff7f74e8c2f2755f5aba5a599"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "INSTALL" base64
$ = "FAILED" base64
$ = "TEST" base64
$ = "ONLY" base64
$ = "INSTALL" base64
$ = "INCONSISTENT" base64
$ = "CERTIFICATES" base64
$ = "Network country iso:" base64
$ = "Network operator name:" base64
$ = "SIM operator name:" base64
$ = "SIM country iso:" base64
$ = "SIM state:" base64
$ = "PIN REQUIRED" base64
$ = "PUK REQUIRED" base64
condition:
uint32be( 0 ) == 0x6465780A and filesize < 100KB and 4 of them
}
Strings (14 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "INSTALL" | base64 |
| $ | text | "FAILED" | base64 |
| $ | text | "TEST" | base64 |
| $ | text | "ONLY" | base64 |
| $ | text | "INSTALL" | base64 |
| $ | text | "INCONSISTENT" | base64 |
| $ | text | "CERTIFICATES" | base64 |
| $ | text | "Network country iso:" | base64 |
| $ | text | "Network operator name:" | base64 |
| $ | text | "SIM operator name:" | base64 |
| $ | text | "SIM country iso:" | base64 |
| $ | text | "SIM state:" | base64 |
| $ | text | "PIN REQUIRED" | base64 |
| $ | text | "PUK REQUIRED" | base64 |
Condition
uint32be( 0 ) == 0x6465780A and filesize < 100KB and 4 of themIn plain words (Heuristic)
- The file must be smaller than 100KB (a cheap guard that skips large files).
- At least 4 patterns in the rule 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- ceb70fce74898ea64ded6880a978441c
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: 3d66b6b8-8397-441a-a337-4a282df39591
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06