Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Unk_Dex_China_Freedom_Trap_Spyware

Detects China Freedom Trap spyware dex file

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
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

apt-unk-dex-china-freedom-trap-spyware.yarDetection Rule License 1.1
rule SEKOIA_Apt_Unk_Dex_China_Freedom_Trap_Spyware : FILE
{
	meta:
		description = "Detects China Freedom Trap spyware dex file"
		author = "Sekoia.io"
		id = "3d66b6b8-8397-441a-a337-4a282df39591"
		date = "2022-09-07"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_unk_dex_china_freedom_trap_spyware.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		hash = "ceb70fce74898ea64ded6880a978441c"
		logic_hash = "f85f78a1a58fa8b2698637f8c540877ea1c5141ff7f74e8c2f2755f5aba5a599"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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)

Original rule

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

version1.0
classificationTLP:CLEAR

Tags:FILE