YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Abubasbanditbot
Detects Abubasbandit Bot. Observed to drop cryptocurrency miner detected by MALWARE_Win_CoinMiner02
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Abubasbandit Bot. Observed to drop cryptocurrency miner detected by MALWARE_Win_CoinMiner02
Associated malware family: Abubasbanditbot.
Targets: Windows PE.
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule DITEKSHEN_MALWARE_Win_Abubasbanditbot : FILE
{
meta:
= "Detects Abubasbandit Bot. Observed to drop cryptocurrency miner detected by MALWARE_Win_CoinMiner02"
= "ditekSHen"
= "8bedd1f7-bd77-5f26-8665-1d23fe56100f"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10524-L10541"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "aae40178dadff720b42d211a025fd696eabdcc91761c6a91809f5f088c588c31"
= 75
= 75
= "FILE"
strings:
$x1 = "magickeycmd" ascii
$x2 = "chat_id" ascii
$x3 = "GetTempPathW" ascii
$x4 = "Add-MpPreference" ascii
$x5 = "-Command" ascii
$s1 = "application/x-www-form-urlencoded" ascii
$s2 = "gzip, deflate/index.html" ascii
$s3 = "powershellAdd-MpPreference -ExclusionPath" ascii
$s4 = "tar-xf-C" ascii
$s5 = "temp_file.bin" ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 4 of ( $x* ) and 2 of ( $s* ) ) or ( ( all of ( $s* ) and 3 of ( $x* ) ) ) or ( 8 of them ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "magickeycmd" | ascii |
| $x2 | text | "chat_id" | ascii |
| $x3 | text | "GetTempPathW" | ascii |
| $x4 | text | "Add-MpPreference" | ascii |
| $x5 | text | "-Command" | ascii |
| $s1 | text | "application/x-www-form-urlencoded" | ascii |
| $s2 | text | "gzip, deflate/index.html" | ascii |
| $s3 | text | "powershellAdd-MpPreference -ExclusionPath" | ascii |
| $s4 | text | "tar-xf-C" | ascii |
| $s5 | text | "temp_file.bin" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 4 of ( $x* ) and 2 of ( $s* ) ) or ( ( all of ( $s* ) and 3 of ( $x* ) ) ) or ( 8 of them ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- All patterns in ( $s* ) must match.
- At least 4 patterns in ( $x* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 3 patterns in ( $x* ) must match.
- At least 8 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
Licence & attribution
Author: ditekSHen
Source repository: ditekSHen detection @ e76c93dcde
Licence: BSD 2-Clause License (repository licence)
Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 8bedd1f7-bd77-5f26-8665-1d23fe56100f
Tags:FILE
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06