Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Orion

Orion Keylogger payload

MalwareOrionditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 73

What this rule detects

Orion Keylogger payload

Associated malware family: Orion.

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-orion.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Orion : FILE
{
	meta:
		description = "Orion Keylogger payload"
		author = "ditekSHen"
		id = "b380b93b-6ceb-5244-aeca-b1f8f9a5b553"
		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#L985-L1005"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9e5521ebaf9bdef6dadd2a2a093bd6f87ded023d9a74db126ac8ec9a5f1f9744"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "\\Ranger.BrowserLogging" ascii wide nocase
		$s2 = "GrabAccounts" fullword ascii
		$s3 = "DownloadFile" fullword ascii
		$s4 = "Internet Explorer Recovery" wide
		$s5 = "Outlook Recovery" wide
		$s6 = "Thunderbird Recovery" wide
		$s7 = "Keylogs -" wide
		$s8 = "WebCam_Capture.dll" wide
		$s9 = " is not installed on this computer!" wide
		$s10 = "cmd /c bfsvc.exe \"" wide
		$s11 = "/Keylogs - PC:" fullword wide
		$s12 = "/PC:" fullword wide
		$s13 = "<p style=\"color:#CC7A00\">[" wide

	condition:
		( uint16( 0 ) == 0x5a4d and 5 of ( $s* ) ) or ( 6 of ( $s* ) )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$s1text"\\Ranger.BrowserLogging"ascii wide nocase
$s2text"GrabAccounts"fullword ascii
$s3text"DownloadFile"fullword ascii
$s4text"Internet Explorer Recovery"wide
$s5text"Outlook Recovery"wide
$s6text"Thunderbird Recovery"wide
$s7text"Keylogs -"wide
$s8text"WebCam_Capture.dll"wide
$s9text" is not installed on this computer!"wide
$s10text"cmd /c bfsvc.exe \""wide
$s11text"/Keylogs - PC:"fullword wide
$s12text"/PC:"fullword wide
$s13text"<p style=\"color:#CC7A00\">["wide

Condition

( uint16( 0 ) == 0x5a4d and 5 of ( $s* ) ) or ( 6 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • 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: b380b93b-6ceb-5244-aeca-b1f8f9a5b553

Tags:FILE