Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_G0Crypt

Detects G0Crypt / BRG0SNet / NovaGP ransomware

MalwareG0CryptditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Detects G0Crypt / BRG0SNet / NovaGP ransomware

Associated malware family: G0Crypt.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-g0crypt.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_G0Crypt : FILE
{
	meta:
		description = "Detects G0Crypt / BRG0SNet / NovaGP ransomware"
		author = "ditekSHen"
		id = "c0dd8a1b-1aa6-50be-92c4-125eabaf3f9f"
		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#L10123-L10156"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "a678bbb02b82c34fb5e7bdce2e60b0da88f12b094e7ca3b74345814d0da5ce42"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "G0Crypt/go/" ascii
		$x2 = "BRG0SNet" ascii
		$x3 = "/NovaGroup" ascii
		$x4 = "novagroup@onionmail.org" ascii nocase
		$x5 = "# Nova Group" ascii
		$f1 = "main.HaveRun" ascii
		$f2 = "main.FindFile" ascii
		$f3 = "main.deriveKey" ascii
		$f4 = "main.Pwd" fullword ascii
		$f5 = "/ClearBashFile" ascii
		$f6 = "/ClearUserTempFiles" ascii
		$f7 = "/KillProccess" ascii
		$f8 = "/Encryptor" ascii
		$f9 = "/NoDirEncrypt" ascii
		$f10 = "/RunCmdEexecutable" ascii
		$f11 = "/StopImportantServices" ascii
		$f12 = "/GetPwd" ascii
		$s1 = "\\$Recycle.Bin"
		$s2 = ".README.txt"
		$s3 = "\\BRSPATH.exe"
		$s4 = "taskkill /F /IM sql*"
		$s5 = "C:\\inetpub\\logs\\"
		$s6 = "shutdown /r"
		$s7 = ":\\Program Files\\VMware\\"
		$s8 = "reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Message /t REG_SZ /d"
		$s9 = "reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v DelLogSoft /t REG_SZ /d"

	condition:
		uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 7 of ( $f* ) or ( 1 of ( $x* ) and ( 5 of ( $f* ) or 5 of ( $s* ) ) ) or ( 6 of ( $f* ) and 4 of ( $s* ) ) or 12 of them )
}

Strings (26 patterns)

IdentifierTypeValueModifiers
$x1text"G0Crypt/go/"ascii
$x2text"BRG0SNet"ascii
$x3text"/NovaGroup"ascii
$x4text"novagroup@onionmail.org"ascii nocase
$x5text"# Nova Group"ascii
$f1text"main.HaveRun"ascii
$f2text"main.FindFile"ascii
$f3text"main.deriveKey"ascii
$f4text"main.Pwd"fullword ascii
$f5text"/ClearBashFile"ascii
$f6text"/ClearUserTempFiles"ascii
$f7text"/KillProccess"ascii
$f8text"/Encryptor"ascii
$f9text"/NoDirEncrypt"ascii
$f10text"/RunCmdEexecutable"ascii
$f11text"/StopImportantServices"ascii
$f12text"/GetPwd"ascii
$s1text"\\$Recycle.Bin"
$s2text".README.txt"
$s3text"\\BRSPATH.exe"
$s4text"taskkill /F /IM sql*"
$s5text"C:\\inetpub\\logs\\"
$s6text"shutdown /r"
$s7text":\\Program Files\\VMware\\"
$s8text"reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Message /t REG_SZ /d"
$s9text"reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v DelLogSoft /t REG_SZ /d"

Condition

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 7 of ( $f* ) or ( 1 of ( $x* ) and ( 5 of ( $f* ) or 5 of ( $s* ) ) ) or ( 6 of ( $f* ) and 4 of ( $s* ) ) or 12 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in ( $x* ) must match.
  • At least 7 patterns in ( $f* ) must match.
  • At least 1 patterns in ( $x* ) must match.
  • At least 5 patterns in ( $f* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 6 patterns in ( $f* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 12 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: c0dd8a1b-1aa6-50be-92c4-125eabaf3f9f

Tags:FILE