Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Snatch

Detects Snatch / GoRansome / MauriGo ransomware

MalwareSnatchditekSHen 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 Snatch / GoRansome / MauriGo ransomware

Associated malware family: Snatch.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-snatch.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Snatch : FILE
{
	meta:
		description = "Detects Snatch / GoRansome / MauriGo ransomware"
		author = "ditekSHen"
		id = "00dce673-b909-571f-8117-c5d4ce73fb31"
		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#L5062-L5091"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "bf8c33a7203458c80a43944c3117bb897b1702f0024271904d9be682cbd695fc"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "main.encryptFile" ascii
		$s2 = "main.encryptFileExt" ascii
		$s3 = "main.deleteShadowCopy" ascii
		$s4 = "main.Shadow" fullword ascii
		$s5 = "main.RecoverMe" fullword ascii
		$s6 = "main.EncryptWithPublicKey" ascii
		$s7 = "main.EncoderLookupDir" fullword ascii
		$s8 = "main.ALIGNUP" fullword ascii
		$s9 = "main.encrypt" fullword ascii
		$s10 = "github.com/mauri870/ransomware" ascii
		$m1 = "Dear You, ALl Your files On YOUR network computers are encrypted" ascii
		$m2 = "You have to pay the ransom of %s USD in bitcoins to the address" ascii
		$m3 = "REMEMBER YOU FILES ARE IN SAVE HANDS AND WILL BE RESTORED OR RECOVERED ONCE PAYMENT IS DONE" ascii
		$m4 = ":HELP FEEED A CHILD:" ascii
		$m5 = ">SYSTEM NETWORK ENCRYPTED<" ascii
		$m6 = "YOUR IDENTIFICATION : %s" ascii
		$m7 = "convince you of our honesty" ascii
		$m8 = "use TOR browser to talk with support" ascii
		$m9 = "encrypted and attackers are taking" ascii
		$p1 = "/Go/src/kitty/kidrives/" ascii
		$p2 = "/LGoGo/encoder.go" ascii nocase
		$p3 = "/Go/src/kitty/kidata/" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 2 of ( $m* ) or ( 1 of ( $m* ) and 1 of ( $s* ) ) or ( all of ( $p* ) and ( 1 of ( $s* ) or 1 of ( $m* ) ) ) )
}

Strings (22 patterns)

IdentifierTypeValueModifiers
$s1text"main.encryptFile"ascii
$s2text"main.encryptFileExt"ascii
$s3text"main.deleteShadowCopy"ascii
$s4text"main.Shadow"fullword ascii
$s5text"main.RecoverMe"fullword ascii
$s6text"main.EncryptWithPublicKey"ascii
$s7text"main.EncoderLookupDir"fullword ascii
$s8text"main.ALIGNUP"fullword ascii
$s9text"main.encrypt"fullword ascii
$s10text"github.com/mauri870/ransomware"ascii
$m1text"Dear You, ALl Your files On YOUR network computers are encrypted"ascii
$m2text"You have to pay the ransom of %s USD in bitcoins to the address"ascii
$m3text"REMEMBER YOU FILES ARE IN SAVE HANDS AND WILL BE RESTORED OR RECOVERED ONCE PAYMENT IS DONE"ascii
$m4text":HELP FEEED A CHILD:"ascii
$m5text">SYSTEM NETWORK ENCRYPTED<"ascii
$m6text"YOUR IDENTIFICATION : %s"ascii
$m7text"convince you of our honesty"ascii
$m8text"use TOR browser to talk with support"ascii
$m9text"encrypted and attackers are taking"ascii
$p1text"/Go/src/kitty/kidrives/"ascii
$p2text"/LGoGo/encoder.go"ascii nocase
$p3text"/Go/src/kitty/kidata/"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 3 of ( $s* ) or 2 of ( $m* ) or ( 1 of ( $m* ) and 1 of ( $s* ) ) or ( all of ( $p* ) and ( 1 of ( $s* ) or 1 of ( $m* ) ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $p* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 2 patterns in ( $m* ) must match.
  • At least 1 patterns in ( $m* ) must match.
  • At least 1 patterns in ( $s* ) 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: 00dce673-b909-571f-8117-c5d4ce73fb31

Tags:FILE