YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Janelarat
Detects JanelaRAT
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects JanelaRAT
Associated malware family: Janelarat.
Targets: Windows PE.
It defines 13 patterns (13 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-janelarat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Janelarat : FILE
{
meta:
= "Detects JanelaRAT"
= "ditekSHen"
= "6a49eeda-307f-5429-aa24-658223360239"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10919-L10939"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "9f10112b6ffa382b03511e7b6c8757438d5910ee2c24d650d05bb53abfff3860"
= 75
= 75
= "FILE"
strings:
$x1 = "<Janela>k__" ascii
$x2 = "janela" fullword ascii
$x3 = "\\CSHARP\\RAT\\" ascii
$s1 = "<SystemInfos>k__" ascii
$s2 = "<SendKeepAlives>b__" ascii
$s3 = "hookStruct" fullword ascii
$s4 = "[^a-zA-Z]" fullword wide
$s5 = "GetRecycled" fullword ascii
$s6 = "import \"bcl.proto\";" wide
$s7 = "\\KL_FINAL\\" ascii
$s8 = "\\KL_FASEAVAST" ascii
$s9 = "\\kl c++" ascii
$s10 = "VisaoAPP" ascii wide
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "<Janela>k__" | ascii |
| $x2 | text | "janela" | fullword ascii |
| $x3 | text | "\\CSHARP\\RAT\\" | ascii |
| $s1 | text | "<SystemInfos>k__" | ascii |
| $s2 | text | "<SendKeepAlives>b__" | ascii |
| $s3 | text | "hookStruct" | fullword ascii |
| $s4 | text | "[^a-zA-Z]" | fullword wide |
| $s5 | text | "GetRecycled" | fullword ascii |
| $s6 | text | "import \"bcl.proto\";" | wide |
| $s7 | text | "\\KL_FINAL\\" | ascii |
| $s8 | text | "\\KL_FASEAVAST" | ascii |
| $s9 | text | "\\kl c++" | ascii |
| $s10 | text | "VisaoAPP" | ascii wide |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $x* ) or ( 2 of ( $x* ) and 3 of ( $s* ) ) or ( 1 of ( $x* ) and 5 of ( $s* ) ) or ( 6 of ( $s* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $x* ) must match.
- At least 2 patterns in ( $x* ) must match.
- At least 3 patterns in ( $s* ) must match.
- At least 1 patterns in ( $x* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 6 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: 6a49eeda-307f-5429-aa24-658223360239
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-08-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
- MalwareditekSHen detection· ditekSHen· 2020-11-06