YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_G0Crypt
Detects G0Crypt / BRG0SNet / NovaGP ransomware
- 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:
= "Detects G0Crypt / BRG0SNet / NovaGP ransomware"
= "ditekSHen"
= "c0dd8a1b-1aa6-50be-92c4-125eabaf3f9f"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10123-L10156"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a678bbb02b82c34fb5e7bdce2e60b0da88f12b094e7ca3b74345814d0da5ce42"
= 75
= 73
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "G0Crypt/go/" | ascii |
| $x2 | text | "BRG0SNet" | ascii |
| $x3 | text | "/NovaGroup" | ascii |
| $x4 | text | "novagroup@onionmail.org" | ascii nocase |
| $x5 | text | "# Nova Group" | ascii |
| $f1 | text | "main.HaveRun" | ascii |
| $f2 | text | "main.FindFile" | ascii |
| $f3 | text | "main.deriveKey" | ascii |
| $f4 | text | "main.Pwd" | fullword ascii |
| $f5 | text | "/ClearBashFile" | ascii |
| $f6 | text | "/ClearUserTempFiles" | ascii |
| $f7 | text | "/KillProccess" | ascii |
| $f8 | text | "/Encryptor" | ascii |
| $f9 | text | "/NoDirEncrypt" | ascii |
| $f10 | text | "/RunCmdEexecutable" | ascii |
| $f11 | text | "/StopImportantServices" | ascii |
| $f12 | text | "/GetPwd" | ascii |
| $s1 | text | "\\$Recycle.Bin" | |
| $s2 | text | ".README.txt" | |
| $s3 | text | "\\BRSPATH.exe" | |
| $s4 | text | "taskkill /F /IM sql*" | |
| $s5 | text | "C:\\inetpub\\logs\\" | |
| $s6 | text | "shutdown /r" | |
| $s7 | text | ":\\Program Files\\VMware\\" | |
| $s8 | text | "reg add HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Message /t REG_SZ /d" | |
| $s9 | text | "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.
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: c0dd8a1b-1aa6-50be-92c4-125eabaf3f9f
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