Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nermer

Detects Nermer ransomware

MalwareNermerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects Nermer ransomware"
		author = "ditekSHen"
		id = "fce4f178-8e98-53b0-ae09-2ce876ad524e"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6036-L6062"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e885b1b908b256ee07f5cb144d63f5ad65e5bf746b70efe168b0ac742a246ab3"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$x1text"gPROTECT_INFO.TXT"fullword wide
$x2text".nermer"fullword wide
$s1text"db_journal"fullword wide
$s2text"quicken2015backup"fullword wide
$s3text"mysql"fullword wide
$s4text"sas7bdat"fullword wide
$s5text"httpd.exe"fullword wide
$s6text"Intuit.QuickBooks.FCS"fullword wide
$s7text"convimage"fullword wide
$s8text".?AV?$_Binder@U_Unforced@std@@P8shares_t@"ascii
$s9text"BgIAAACkAABSU0ExAAgAAAEAAQCt"ascii
$m1text"YOUR FILES WERE ENCRYPTED"ascii
$m2text"MARKED BY EXTENSION .nermer"ascii
$m3text"send us your id: >> {id} <<"ascii
$m4text"email us: >> {email} <<"ascii
$c1text"/repeater.php"ascii
$c2text"HTTPClient/0.1"fullword ascii
$c3text"94.156.35.227"ascii
$c4text"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.

Open in editor

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).

Original rule

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