YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Smokeloader
Detects SmokeLoader variants
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects SmokeLoader variants
Associated malware family: Smokeloader.
Targets: Windows PE.
It defines 12 patterns (12 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-smokeloader.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Smokeloader : FILE
{
meta:
= "Detects SmokeLoader variants"
= "ditekSHen"
= "e8f28f89-3a79-5d78-8c0a-bad16a57df84"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6516-L6539"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "65c56ed11a3cb4e4bcf8fd2a6be097545cb96e84ba4c4202969d1d163a2a36ed"
= 75
= 75
= "FILE"
strings:
$x1 = "G2A/CLP/05/RYS" fullword wide
$x2 = "0N1Y/53R10U5/BU51N355" fullword wide
$x3 = "CH4PG3PB-6HT2VI9C-O2NL2NO5-QP1BW0EG" fullword wide
$s1 = "Azure-Update-Task" fullword wide
$s2 = "C:\\Windows\\System32\\schtasks.exe" fullword wide
$s3 = "/C /create /F /sc minute /mo 1 /tn \"" fullword wide
$s4 = "\\Microsoft\\Network" fullword wide
$s5 = "\\Microsoft\\TelemetryServices" fullword wide
$s6 = "\" /tr \"" fullword wide
$e1 = "\\sqlcmd.exe" fullword wide
$e2 = "\\sihost.exe" fullword wide
$e3 = "\\fodhelper.exe" fullword wide
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 4 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $e* ) ) )
}
Strings (12 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "G2A/CLP/05/RYS" | fullword wide |
| $x2 | text | "0N1Y/53R10U5/BU51N355" | fullword wide |
| $x3 | text | "CH4PG3PB-6HT2VI9C-O2NL2NO5-QP1BW0EG" | fullword wide |
| $s1 | text | "Azure-Update-Task" | fullword wide |
| $s2 | text | "C:\\Windows\\System32\\schtasks.exe" | fullword wide |
| $s3 | text | "/C /create /F /sc minute /mo 1 /tn \"" | fullword wide |
| $s4 | text | "\\Microsoft\\Network" | fullword wide |
| $s5 | text | "\\Microsoft\\TelemetryServices" | fullword wide |
| $s6 | text | "\" /tr \"" | fullword wide |
| $e1 | text | "\\sqlcmd.exe" | fullword wide |
| $e2 | text | "\\sihost.exe" | fullword wide |
| $e3 | text | "\\fodhelper.exe" | fullword wide |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 4 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $e* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $x* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 1 patterns in ( $e* ) 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: e8f28f89-3a79-5d78-8c0a-bad16a57df84
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