YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Betabot
BetaBot payload
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
BetaBot payload
Associated malware family: Betabot.
Targets: Windows PE.
It defines 5 patterns (5 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-betabot.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Betabot : FILE
{
meta:
= "BetaBot payload"
= "ditekSHen"
= "377c500c-5727-5bea-ac46-cb69c868a607"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1654-L1666"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e594d01874ee622169d6708ddc6cfde7f1d26d2bea1604961dc860700e8a1d5d"
= 75
= 73
= "FILE"
strings:
$s1 = "__restart" fullword ascii
$s2 = "%SystemRoot%\\SysWOW64\\tapi3.dll" fullword wide
$s3 = "%SystemRoot%\\system32\\tapi3.dll" fullword wide
$s4 = "publicKeyToken=\"6595b64144ccf1df\"" ascii
$s5 = "VirtualProtectEx" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 600KB and all of them
}
Strings (5 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "__restart" | fullword ascii |
| $s2 | text | "%SystemRoot%\\SysWOW64\\tapi3.dll" | fullword wide |
| $s3 | text | "%SystemRoot%\\system32\\tapi3.dll" | fullword wide |
| $s4 | text | "publicKeyToken=\"6595b64144ccf1df\"" | ascii |
| $s5 | text | "VirtualProtectEx" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 600KB and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 600KB (a cheap guard that skips large files).
- All 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: 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: 377c500c-5727-5bea-ac46-cb69c868a607
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