YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Cicada3301
Detects Cicada3301
- Author
- ditekshen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Cicada3301
Associated malware family: Cicada3301.
Targets: Windows PE.
It defines 17 patterns (16 text, 0 hex, 1 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-cicada3301.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Cicada3301 : FILE
{
meta:
= "Detects Cicada3301"
= "ditekshen"
= "0aebee9f-177d-5a1b-87e0-8797fb6f6823"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11860-L11885"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "b8b7596bc8ae01b89742e17bd3dbfcc1e2fad486cc6ea19c8de813fc677509f4"
= 75
= 75
= "FILE"
= "MALWARE.Win.Ransomware.Cicada3301"
strings:
$s1 = "cmd/Cchcp 65001 >nulnet view \\\\"
$s2 = "create_file_recovery"
$s3 = "ecnrypted_files_full"
$s4 = "get_excluded_directories"
$s5 = "collect_files_except"
$s6 = ".exe4d5a" ascii
$s7 = "-accepteula -s -d \"\" --" ascii
$s8 = "[*.exe*.EXE*.DLL*.ini*.inf*.pol*.cmd*.ps1*.vbs*.bat*.pagefile.sys*.hiberfil.sys*.drv" ascii
$s9 = "memtasveeamsvc$backupsqlvssmsexchangesql$mysqlmysql$sophosMSExchange" ascii
$s10 = "-DATA.txt" ascii
$s11 = /--no_(local|net|impl)/ fullword ascii
$c1 = "fsutil" ascii
$c2 = "iisreset" ascii
$c3 = "vssadmin" ascii
$c4 = "wmic" ascii
$c5 = "bcdedit" ascii
$c6 = "wevtutil" ascii
condition:
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( 4 of ( $c* ) and 4 of ( $s* ) ) or ( all of ( $c* ) and 2 of ( $s* ) ) or 9 of them )
}
Strings (17 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "cmd/Cchcp 65001 >nulnet view \\\\" | |
| $s2 | text | "create_file_recovery" | |
| $s3 | text | "ecnrypted_files_full" | |
| $s4 | text | "get_excluded_directories" | |
| $s5 | text | "collect_files_except" | |
| $s6 | text | ".exe4d5a" | ascii |
| $s7 | text | "-accepteula -s -d \"\" --" | ascii |
| $s8 | text | "[*.exe*.EXE*.DLL*.ini*.inf*.pol*.cmd*.ps1*.vbs*.bat*.pagefile.sys*.hiberfil.sys*.drv" | ascii |
| $s9 | text | "memtasveeamsvc$backupsqlvssmsexchangesql$mysqlmysql$sophosMSExchange" | ascii |
| $s10 | text | "-DATA.txt" | ascii |
| $s11 | regex | /--no_(local|net|impl)/ | fullword ascii |
| $c1 | text | "fsutil" | ascii |
| $c2 | text | "iisreset" | ascii |
| $c3 | text | "vssadmin" | ascii |
| $c4 | text | "wmic" | ascii |
| $c5 | text | "bcdedit" | ascii |
| $c6 | text | "wevtutil" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or ( 4 of ( $c* ) and 4 of ( $s* ) ) or ( all of ( $c* ) and 2 of ( $s* ) ) or 9 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $c* ) must match.
- At least 6 patterns in ( $s* ) must match.
- At least 4 patterns in ( $c* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 9 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: 0aebee9f-177d-5a1b-87e0-8797fb6f6823
Metadata
| clamav1 | MALWARE.Win.Ransomware.Cicada3301 |
|---|
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- 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