YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Buterat
Detects ButeRAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects ButeRAT
Associated malware family: Buterat.
Targets: Windows PE.
It defines 10 patterns (9 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-buterat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Buterat : FILE
{
meta:
= "Detects ButeRAT"
= "ditekSHen"
= "74f63d61-6589-5fb1-864a-3a02ddd57ebc"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5822-L5839"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "c3d93e8dc1bde8e77c11586c8d8b67d137ef2c4791e12269f1af310fbe14832b"
= 75
= 73
= "FILE"
strings:
$x1 = "TVqQAAMAA" ascii
$s1 = "ipinfo.io/geo" wide
$s2 = "/index.php" wide
$s3 = "Copy-Item -Path" wide
$s4 = ";Start-Process" wide
$s5 = "Microsoft\\Windows\\Start Menu\\Programs\\Startup" wide
$s6 = "LOCALAPPDATA" fullword wide
$s7 = "passwords.json" wide
$s8 = "Scripting.FileSystemObject" fullword wide
$z1 = /(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ ascii wide nocase
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "TVqQAAMAA" | ascii |
| $s1 | text | "ipinfo.io/geo" | wide |
| $s2 | text | "/index.php" | wide |
| $s3 | text | "Copy-Item -Path" | wide |
| $s4 | text | ";Start-Process" | wide |
| $s5 | text | "Microsoft\\Windows\\Start Menu\\Programs\\Startup" | wide |
| $s6 | text | "LOCALAPPDATA" | fullword wide |
| $s7 | text | "passwords.json" | wide |
| $s8 | text | "Scripting.FileSystemObject" | fullword wide |
| $z1 | regex | /(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ | ascii wide nocase |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $x* ) must match.
- At least 1 patterns in ( $z* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 6 patterns in ( $s* ) must match.
- At least 2 patterns in the rule must match.
- Pattern $z1 must occur > 4 times.
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: 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: 74f63d61-6589-5fb1-864a-3a02ddd57ebc
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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