Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Janelarat

Detects JanelaRAT

MalwareJanelaratditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects JanelaRAT"
		author = "ditekSHen"
		id = "6a49eeda-307f-5429-aa24-658223360239"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L10919-L10939"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9f10112b6ffa382b03511e7b6c8757438d5910ee2c24d650d05bb53abfff3860"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$x1text"<Janela>k__"ascii
$x2text"janela"fullword ascii
$x3text"\\CSHARP\\RAT\\"ascii
$s1text"<SystemInfos>k__"ascii
$s2text"<SendKeepAlives>b__"ascii
$s3text"hookStruct"fullword ascii
$s4text"[^a-zA-Z]"fullword wide
$s5text"GetRecycled"fullword ascii
$s6text"import \"bcl.proto\";"wide
$s7text"\\KL_FINAL\\"ascii
$s8text"\\KL_FASEAVAST"ascii
$s9text"\\kl c++"ascii
$s10text"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.

Open in editor

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).

Original rule

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