YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Reverserat
Detects ReverseRAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects ReverseRAT
Associated malware family: Reverserat.
Targets: Windows PE.
It defines 9 patterns (8 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-reverserat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Reverserat : FILE
{
meta:
= "Detects ReverseRAT"
= "ditekSHen"
= "df13fc6c-025a-54db-809d-4f3c27b8aa7a"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L6495-L6514"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "87ab00a5588bfce04ec47a07b184fffe359e472ac8bf561b02a8b070edf2e014"
= 75
= 75
= "FILE"
strings:
$pdb1 = "\\ReverseRat.pdb" ascii nocase
$pdb2 = "\\ReverseRat\\obj\\" ascii nocase
$s1 = "processCmd" fullword ascii
$s2 = "CmdOutputDataHandler" fullword ascii
$s3 = "sendingProcess" fullword ascii
$s4 = "SetStartup" fullword ascii
$s5 = "RunServer" fullword ascii
$s6 = "_OutputDataReceived" ascii
$s7 = { 63 00 6d 00 64 00 2e 00 65 00 78 00 65 00
00 03 0a 00 00 13 74 00 65 00 72 00 6d 00
69 00 6e 00 61 00 74 00 65 00 00 09 65 00
78 00 69 00 74 00 }
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $pdb* ) and 2 of ( $s* ) ) or 5 of ( $s* ) )
}
Strings (9 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $pdb1 | text | "\\ReverseRat.pdb" | ascii nocase |
| $pdb2 | text | "\\ReverseRat\\obj\\" | ascii nocase |
| $s1 | text | "processCmd" | fullword ascii |
| $s2 | text | "CmdOutputDataHandler" | fullword ascii |
| $s3 | text | "sendingProcess" | fullword ascii |
| $s4 | text | "SetStartup" | fullword ascii |
| $s5 | text | "RunServer" | fullword ascii |
| $s6 | text | "_OutputDataReceived" | ascii |
| $s7 | hex | { 63 00 6d 00 64 00 2e 00 65 00 78 00 65 00 00 03 0a 00 00 13 74 00 65 00 72 00 6d 00 69 00 6e 00 61 00 74 00 65 00 00 09 65 00 … |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $pdb* ) and 2 of ( $s* ) ) or 5 of ( $s* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 1 patterns in ( $pdb* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 5 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: df13fc6c-025a-54db-809d-4f3c27b8aa7a
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-02-22
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-05-11
- 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