YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Fonix
Detects Fonix ransomware
- 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:
= "Detects Fonix ransomware"
= "ditekSHen"
= "d67cce49-5f4f-59f6-b2a9-9c4dd1c6c0f6"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3459-L3481"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "159b8946f7772c76271de821eb12897689bf73d96fc6a1d7c4a65cdc50b877c7"
= 75
= 75
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "dontcryptanyway" | fullword wide |
| $s2 | text | "Cpriv.key" | ascii wide |
| $s3 | text | "Cpub.key" | ascii wide |
| $s4 | text | "NetShareEnum() failed!Error: % ld" | fullword wide |
| $s5 | text | "<div class='title'> Attention!</div><ul><li><u><b>DO NOT</b> pay" | wide |
| $s6 | text | "Encryption Completed !!!" | fullword wide |
| $s7 | text | "kill process" | fullword ascii |
| $s8 | text | "Copy SystemID C:\\ProgramData\\SystemID" | ascii |
| $id1 | text | "].FONIX" | fullword wide |
| $id2 | text | "xinofconfig.txt" | fullword ascii wide |
| $id3 | text | "XINOF4MUTEX" | wide |
| $id4 | text | ":\\Fonix\\cryptoPP\\" | ascii |
| $id5 | text | "schtasks /CREATE /SC ONLOGON /TN fonix" | ascii |
| $id6 | text | "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.
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: d67cce49-5f4f-59f6-b2a9-9c4dd1c6c0f6
Metadata
| clamav_sig | MALWARE.Win.Ransomware.Fonix |
|---|
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareSEKOIA.IO Community· Sekoia.io· 2021-10-07
- 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