Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Fonix

Detects Fonix ransomware

MalwareFonixditekSHen 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 Fonix ransomware

Associated malware family: Fonix.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-fonix.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Fonix : FILE
{
	meta:
		description = "Detects Fonix ransomware"
		author = "ditekSHen"
		id = "d67cce49-5f4f-59f6-b2a9-9c4dd1c6c0f6"
		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#L3459-L3481"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "159b8946f7772c76271de821eb12897689bf73d96fc6a1d7c4a65cdc50b877c7"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Ransomware.Fonix"

	strings:
		$s1 = "dontcryptanyway" fullword wide
		$s2 = "Cpriv.key" ascii wide
		$s3 = "Cpub.key" ascii wide
		$s4 = "NetShareEnum() failed!Error: % ld" fullword wide
		$s5 = "<div class='title'> Attention!</div><ul><li><u><b>DO NOT</b> pay" wide
		$s6 = "Encryption Completed !!!" fullword wide
		$s7 = "kill process" fullword ascii
		$s8 = "Copy SystemID C:\\ProgramData\\SystemID" ascii
		$id1 = "].FONIX" fullword wide
		$id2 = "xinofconfig.txt" fullword ascii wide
		$id3 = "XINOF4MUTEX" wide
		$id4 = ":\\Fonix\\cryptoPP\\" ascii
		$id5 = "schtasks /CREATE /SC ONLOGON /TN fonix" ascii
		$id6 = "Ransomware\\Fonix" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 3 of ( $id* ) or ( 1 of ( $id* ) and 3 of ( $s* ) ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"dontcryptanyway"fullword wide
$s2text"Cpriv.key"ascii wide
$s3text"Cpub.key"ascii wide
$s4text"NetShareEnum() failed!Error: % ld"fullword wide
$s5text"<div class='title'> Attention!</div><ul><li><u><b>DO NOT</b> pay"wide
$s6text"Encryption Completed !!!"fullword wide
$s7text"kill process"fullword ascii
$s8text"Copy SystemID C:\\ProgramData\\SystemID"ascii
$id1text"].FONIX"fullword wide
$id2text"xinofconfig.txt"fullword ascii wide
$id3text"XINOF4MUTEX"wide
$id4text":\\Fonix\\cryptoPP\\"ascii
$id5text"schtasks /CREATE /SC ONLOGON /TN fonix"ascii
$id6text"Ransomware\\Fonix"ascii

Condition

uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 3 of ( $id* ) or ( 1 of ( $id* ) and 3 of ( $s* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $id* ) must match.
  • At least 1 patterns in ( $id* ) must match.
  • At least 3 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: d67cce49-5f4f-59f6-b2a9-9c4dd1c6c0f6

Metadata

clamav_sigMALWARE.Win.Ransomware.Fonix

Tags:FILE

More Fonix rules