YARA · Volexity threat-intel
VOLEXITY_Apt_Malware_Apk_Badbazaar_Stage2_Implant_May23
Detection of the second stage capability of the BadBazaar android malware that has the main malicious capabilities. Will gather various info about the user/phone and routinely send this to the C2.
- Author
- threatintel@volexity.com
- Date
- 2023-05-25
- Modified
- 2023-08-30
- Score / Quality
- 75 / 80
What this rule detects
Detection of the second stage capability of the BadBazaar android malware that has the main malicious capabilities. Will gather various info about the user/phone and routinely send this to the C2.
It defines 11 patterns (11 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule VOLEXITY_Apt_Malware_Apk_Badbazaar_Stage2_Implant_May23 : EVILBAMBOO FILE
{
meta:
= "Detection of the second stage capability of the BadBazaar android malware that has the main malicious capabilities. Will gather various info about the user/phone and routinely send this to the C2."
= "threatintel@volexity.com"
= "1f97c610-773f-5385-935a-445cb9192157"
= "2023-05-25"
= "2023-08-30"
= "https://github.com/volexity/threat-intel"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/2023/2023-09-22 EvilBamboo/indicators/rules.yar#L257-L285"
= "https://github.com/volexity/threat-intel/blob/3a9d0b52459877ee866a9a0ba06e60059b778c77/LICENSE.txt"
= "bf5f7fbf42236e89bcf663d2822d54bee89abaf3f247a54f371bf156e0e03629"
= "2186369298ebfa0b892ecb14ebacc93c6d14c9c35012e8e6cdff077634cf3773"
= 75
= 80
= "EVILBAMBOO, FILE"
= "file"
= "See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt"
strings:
$c1 = "%{\"command\":\"%s\",\"path\":\"%s\",\"files\":["
$c2 = "{\"name\":\"%s\",\"dirs\":\"%d\",\"files\":\"%d\",\"isfolder\":\"%d\",\"path\":\"%s\"},"
$s1 = "Timezon id:"
$s2 = "China Telecom"
$s3 = "China Unicom"
$s4 = "ConfigPipe"
$s5 = "ForwordTo"
$s6 = "can't get camera content"
$s7 = "cat /sys/class/net/wlan0/address"
$s8 = "_preferences_light"
$s9 = "registration_jid"
condition:
1 of ( $c* ) or 5 of ( $s* )
}
Strings (11 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $c1 | text | "%{\"command\":\"%s\",\"path\":\"%s\",\"files\":[" | |
| $c2 | text | "{\"name\":\"%s\",\"dirs\":\"%d\",\"files\":\"%d\",\"isfolder\":\"%d\",\"path\":\"%s\"}," | |
| $s1 | text | "Timezon id:" | |
| $s2 | text | "China Telecom" | |
| $s3 | text | "China Unicom" | |
| $s4 | text | "ConfigPipe" | |
| $s5 | text | "ForwordTo" | |
| $s6 | text | "can't get camera content" | |
| $s7 | text | "cat /sys/class/net/wlan0/address" | |
| $s8 | text | "_preferences_light" | |
| $s9 | text | "registration_jid" |
Condition
1 of ( $c* ) or 5 of ( $s* )In plain words (Heuristic)
- At least 1 patterns in ( $c* ) must match.
- At least 5 patterns in ( $s* ) 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).
- bf5f7fbf42236e89bcf663d2822d54bee89abaf3f247a54f371bf156e0e03629
Licence & attribution
Author: threatintel@volexity.com
Source repository: Volexity threat-intel @ 3a9d0b5245
Licence: BSD 2-Clause License (stated in the rule's own meta)
“See license at https://github.com/volexity/threat-intel/blob/main/LICENSE.txt”
Copyright notice: Copyright 2022 by Volexity, Inc.
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 1f97c610-773f-5385-935a-445cb9192157
Metadata
| scan_context | file |
|---|
Tags:EVILBAMBOOFILE
Related rules
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-06-15
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-06-01
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-06-27
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2024-07-30
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-07-21
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-08-17
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2023-03-30
- APT / threat actorVolexity threat-intel· threatintel@volexity.com· 2022-11-03