Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Reverserat

Detects ReverseRAT

MalwareReverseratditekSHen 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 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:
		description = "Detects ReverseRAT"
		author = "ditekSHen"
		id = "df13fc6c-025a-54db-809d-4f3c27b8aa7a"
		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#L6495-L6514"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "87ab00a5588bfce04ec47a07b184fffe359e472ac8bf561b02a8b070edf2e014"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$pdb1text"\\ReverseRat.pdb"ascii nocase
$pdb2text"\\ReverseRat\\obj\\"ascii nocase
$s1text"processCmd"fullword ascii
$s2text"CmdOutputDataHandler"fullword ascii
$s3text"sendingProcess"fullword ascii
$s4text"SetStartup"fullword ascii
$s5text"RunServer"fullword ascii
$s6text"_OutputDataReceived"ascii
$s7hex{ 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.

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: df13fc6c-025a-54db-809d-4f3c27b8aa7a

Tags:FILE

More Reverserat rules