YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Crimsonrat
Detects CrimsonRAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects CrimsonRAT
Associated malware family: Crimsonrat.
Targets: Windows PE.
It defines 17 patterns (17 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-crimsonrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Crimsonrat : FILE
{
meta:
= "Detects CrimsonRAT"
= "ditekSHen"
= "54c9bbb2-9fa6-5c1f-9272-13255357ddbf"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6896-L6920"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "a40cf09dbaafb2e7b9130af1b40e46b4c38fed6185b16435ad4c118f9e6d56c7"
= 75
= 75
= "FILE"
strings:
$s1 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run|" fullword wide
$s2 = "system volume information|" fullword wide
$s3 = "program files (x86)|" fullword wide
$s4 = "program files|" fullword wide
$s5 = "<SAVE_AUTO<|" fullword wide
$s6 = "add_up_files" fullword ascii
$s7 = "see_folders" ascii
$s8 = "see_files" ascii
$s9 = "see_scren" ascii
$s10 = "see_recording" ascii
$s11 = "see_responce" ascii
$s12 = "pull_data" ascii
$s13 = "do_process" ascii
$s14 = "do_updated" ascii
$s15 = "IPSConfig" fullword ascii
$s16 = "#Runing|ver#" wide
$s17 = "|fileslog=" wide
condition:
uint16( 0 ) == 0x5a4d and 6 of them
}
Strings (17 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run|" | fullword wide |
| $s2 | text | "system volume information|" | fullword wide |
| $s3 | text | "program files (x86)|" | fullword wide |
| $s4 | text | "program files|" | fullword wide |
| $s5 | text | "<SAVE_AUTO<|" | fullword wide |
| $s6 | text | "add_up_files" | fullword ascii |
| $s7 | text | "see_folders" | ascii |
| $s8 | text | "see_files" | ascii |
| $s9 | text | "see_scren" | ascii |
| $s10 | text | "see_recording" | ascii |
| $s11 | text | "see_responce" | ascii |
| $s12 | text | "pull_data" | ascii |
| $s13 | text | "do_process" | ascii |
| $s14 | text | "do_updated" | ascii |
| $s15 | text | "IPSConfig" | fullword ascii |
| $s16 | text | "#Runing|ver#" | wide |
| $s17 | text | "|fileslog=" | wide |
Condition
uint16( 0 ) == 0x5a4d and 6 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 6 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: 54c9bbb2-9fa6-5c1f-9272-13255357ddbf
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