Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Nibiru

Detects Nibiru ransomware

MalwareNibiruditekSHen 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 Nibiru ransomware

Associated malware family: Nibiru.

Targets: Windows PE.

It defines 10 patterns (10 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-nibiru.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Nibiru : FILE
{
	meta:
		description = "Detects Nibiru ransomware"
		author = "ditekSHen"
		id = "78c3bf75-1ab3-5f88-ba4b-d5a0a906d57c"
		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#L2486-L2504"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f3718e9091b09e0f47ecd6715a3a2c160ede6ab9fb144e7ed115dd5a25c8e379"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Nibiru"

	strings:
		$s1 = ".encrypt" fullword wide
		$s2 = "crypted" fullword wide
		$s3 = ".Nibiru" fullword wide
		$s4 = "Encryption Complete" fullword wide
		$s5 = "All your files,documents,important datas,mp4,mp3 and anything valuable" ascii
		$s6 = "EncryptOrDecryptFile" fullword ascii
		$s7 = "get_hacker" ascii
		$s8 = "/C choice /C Y /N /D Y /T 3 & Del \"" fullword wide
		$s9 = "Once You pay,you get the KEY to decrypt files" ascii
		$pdb = "\\Projects\\Nibiru\\Nibiru\\obj\\x86\\Release\\Nibiru.pdb" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 7 of them or ( $pdb and 2 of ( $s* ) ) )
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$s1text".encrypt"fullword wide
$s2text"crypted"fullword wide
$s3text".Nibiru"fullword wide
$s4text"Encryption Complete"fullword wide
$s5text"All your files,documents,important datas,mp4,mp3 and anything valuable"ascii
$s6text"EncryptOrDecryptFile"fullword ascii
$s7text"get_hacker"ascii
$s8text"/C choice /C Y /N /D Y /T 3 & Del \""fullword wide
$s9text"Once You pay,you get the KEY to decrypt files"ascii
$pdbtext"\\Projects\\Nibiru\\Nibiru\\obj\\x86\\Release\\Nibiru.pdb"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 7 of them or ( $pdb and 2 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 patterns in the rule must match.
  • At least 2 patterns in ( $s* ) must match.
  • Pattern $pdb must be present.

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: 78c3bf75-1ab3-5f88-ba4b-d5a0a906d57c

Metadata

clamav_sigMALWARE.Win.Ransomware.Nibiru

Tags:FILE