YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Nermer
Detects Nermer ransomware
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Nermer ransomware
Associated malware family: Nermer.
Targets: Windows PE.
It defines 19 patterns (19 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-nermer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nermer : FILE
{
meta:
= "Detects Nermer ransomware"
= "ditekSHen"
= "fce4f178-8e98-53b0-ae09-2ce876ad524e"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6036-L6062"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "e885b1b908b256ee07f5cb144d63f5ad65e5bf746b70efe168b0ac742a246ab3"
= 75
= 75
= "FILE"
strings:
$x1 = "gPROTECT_INFO.TXT" fullword wide
$x2 = ".nermer" fullword wide
$s1 = "db_journal" fullword wide
$s2 = "quicken2015backup" fullword wide
$s3 = "mysql" fullword wide
$s4 = "sas7bdat" fullword wide
$s5 = "httpd.exe" fullword wide
$s6 = "Intuit.QuickBooks.FCS" fullword wide
$s7 = "convimage" fullword wide
$s8 = ".?AV?$_Binder@U_Unforced@std@@P8shares_t@" ascii
$s9 = "BgIAAACkAABSU0ExAAgAAAEAAQCt" ascii
$m1 = "YOUR FILES WERE ENCRYPTED" ascii
$m2 = "MARKED BY EXTENSION .nermer" ascii
$m3 = "send us your id: >> {id} <<" ascii
$m4 = "email us: >> {email} <<" ascii
$c1 = "/repeater.php" ascii
$c2 = "HTTPClient/0.1" fullword ascii
$c3 = "94.156.35.227" ascii
$c4 = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $m* ) or all of ( $c* ) or all of ( $s* ) or ( 4 of ( $s* ) and ( 1 of ( $x* ) or 1 of ( $m* ) or 2 of ( $c* ) ) ) or 14 of them )
}
Strings (19 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "gPROTECT_INFO.TXT" | fullword wide |
| $x2 | text | ".nermer" | fullword wide |
| $s1 | text | "db_journal" | fullword wide |
| $s2 | text | "quicken2015backup" | fullword wide |
| $s3 | text | "mysql" | fullword wide |
| $s4 | text | "sas7bdat" | fullword wide |
| $s5 | text | "httpd.exe" | fullword wide |
| $s6 | text | "Intuit.QuickBooks.FCS" | fullword wide |
| $s7 | text | "convimage" | fullword wide |
| $s8 | text | ".?AV?$_Binder@U_Unforced@std@@P8shares_t@" | ascii |
| $s9 | text | "BgIAAACkAABSU0ExAAgAAAEAAQCt" | ascii |
| $m1 | text | "YOUR FILES WERE ENCRYPTED" | ascii |
| $m2 | text | "MARKED BY EXTENSION .nermer" | ascii |
| $m3 | text | "send us your id: >> {id} <<" | ascii |
| $m4 | text | "email us: >> {email} <<" | ascii |
| $c1 | text | "/repeater.php" | ascii |
| $c2 | text | "HTTPClient/0.1" | fullword ascii |
| $c3 | text | "94.156.35.227" | ascii |
| $c4 | text | "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $m* ) or all of ( $c* ) or all of ( $s* ) or ( 4 of ( $s* ) and ( 1 of ( $x* ) or 1 of ( $m* ) or 2 of ( $c* ) ) ) or 14 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $m* ) must match.
- All patterns in ( $c* ) must match.
- All patterns in ( $s* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 1 patterns in ( $m* ) must match.
- At least 2 patterns in ( $c* ) must match.
- At least 14 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: fce4f178-8e98-53b0-ae09-2ce876ad524e
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