YARA · SEKOIA.IO Community
SEKOIA_Trojan_And_Keepspy
Finds KeepSpy samples based on specific strings
- Author
- Sekoia.io
- Date
- 2023-06-28
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Finds KeepSpy samples based on specific strings
Targets: ZIP / Office Open XML.
It defines 7 patterns (7 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
trojan-and-keepspy.yarDetection Rule License 1.1
rule SEKOIA_Trojan_And_Keepspy : FILE
{
meta:
= "Finds KeepSpy samples based on specific strings"
= "Sekoia.io"
= "9390e7c8-a996-45cc-b642-c23d4b7dcf34"
= "2023-06-28"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/trojan_and_keepspy.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "03a954a5585a9a80fdc5a0cd2644a819c540d43b260e040b627530ca88ee08fa"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$str01 = "Characters entered %1$d of %2$d" ascii
$str02 = "com.google.android.material.behavior.HideBottomViewOnScrollBehavior" ascii
$str03 = "com/j256/ormlite/core/VERSION.txt" ascii
$str04 = "res/raw/empty.wav" ascii
$str05 = "res/mipmap/ic_launcher.png" ascii
$str06 = "res/interpolator/fast_out_slow_in.xml" ascii
$str07 = "OnePixelActivity" ascii
condition:
uint32be( 0 ) == 0x504B0304 and 6 of them and filesize > 2MB
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $str01 | text | "Characters entered %1$d of %2$d" | ascii |
| $str02 | text | "com.google.android.material.behavior.HideBottomViewOnScrollBehavior" | ascii |
| $str03 | text | "com/j256/ormlite/core/VERSION.txt" | ascii |
| $str04 | text | "res/raw/empty.wav" | ascii |
| $str05 | text | "res/mipmap/ic_launcher.png" | ascii |
| $str06 | text | "res/interpolator/fast_out_slow_in.xml" | ascii |
| $str07 | text | "OnePixelActivity" | ascii |
Condition
uint32be( 0 ) == 0x504B0304 and 6 of them and filesize > 2MBIn plain words (Heuristic)
- The file must start with “PK” — a ZIP archive (also Office Open XML, JAR, APK).
- The file must be larger than 2MB.
- At least 6 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.
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: 9390e7c8-a996-45cc-b642-c23d4b7dcf34
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