Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Osno

Osno ransomware and infostealer payload

MalwareOsnoditekSHen 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

Osno ransomware and infostealer payload

Associated malware family: Osno.

Targets: Windows PE.

It defines 26 patterns (25 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-osno.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Osno : FILE
{
	meta:
		description = "Osno ransomware and infostealer payload"
		author = "ditekSHen"
		id = "25ed5ad4-804a-5608-b6fe-a811ca6744d8"
		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#L1617-L1652"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "3df59c306017001467a5f237db2ab37d97c34116558e18420a6a1f01f08f520f"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = ".HolyGate+<>c+<<FinalBoss>" ascii
		$s2 = /Osno(Keylogger|Stealer|Ransom)/ wide
		$s3 = "password,executeWebhook('Account credentials" wide
		$s4 = "-Name Osno -PropertyType" wide
		$s5 = "process.env.hook" ascii
		$s6 = "Stealer.JSON.JsonValue" ascii
		$s7 = "<DetectBrowserss>b_" ascii
		$s8 = "<TryGetDiscordPath>b_" ascii
		$s9 = "antiVM" fullword ascii
		$s10 = "downloadurl" fullword ascii
		$s11 = "set_sPassword" fullword ascii
		$txt0 = "{0} {1} .txt" fullword wide
		$txt1 = "\\ScanningNetworks.txt" fullword wide
		$txt2 = "\\SteamApps.txt" fullword wide
		$txt3 = "-ErrorsLogs.txt" fullword wide
		$txt4 = "-keylogs.txt" fullword wide
		$txt5 = "Hardware & Soft.txt" fullword wide
		$cnc0 = "/csharp/" ascii wide
		$cnc1 = "token=" ascii wide
		$cnc2 = "&timestamp=" ascii wide
		$cnc3 = "&session_id=" ascii wide
		$cnc4 = "&aid=" ascii wide
		$cnc5 = "&secret=" ascii wide
		$cnc6 = "&api_key" ascii wide
		$cnc7 = "&session_key=" ascii wide
		$cnc8 = "&type=" ascii wide

	condition:
		( uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 4 of ( $txt* ) or ( 4 of ( $s* ) and 2 of ( $txt* ) ) ) ) or ( 7 of ( $cnc* ) )
}

Strings (26 patterns)

IdentifierTypeValueModifiers
$s1text".HolyGate+<>c+<<FinalBoss>"ascii
$s2regex/Osno(Keylogger|Stealer|Ransom)/wide
$s3text"password,executeWebhook('Account credentials"wide
$s4text"-Name Osno -PropertyType"wide
$s5text"process.env.hook"ascii
$s6text"Stealer.JSON.JsonValue"ascii
$s7text"<DetectBrowserss>b_"ascii
$s8text"<TryGetDiscordPath>b_"ascii
$s9text"antiVM"fullword ascii
$s10text"downloadurl"fullword ascii
$s11text"set_sPassword"fullword ascii
$txt0text"{0} {1} .txt"fullword wide
$txt1text"\\ScanningNetworks.txt"fullword wide
$txt2text"\\SteamApps.txt"fullword wide
$txt3text"-ErrorsLogs.txt"fullword wide
$txt4text"-keylogs.txt"fullword wide
$txt5text"Hardware & Soft.txt"fullword wide
$cnc0text"/csharp/"ascii wide
$cnc1text"token="ascii wide
$cnc2text"&timestamp="ascii wide
$cnc3text"&session_id="ascii wide
$cnc4text"&aid="ascii wide
$cnc5text"&secret="ascii wide
$cnc6text"&api_key"ascii wide
$cnc7text"&session_key="ascii wide
$cnc8text"&type="ascii wide

Condition

( uint16( 0 ) == 0x5a4d and ( 6 of ( $s* ) or 4 of ( $txt* ) or ( 4 of ( $s* ) and 2 of ( $txt* ) ) ) ) or ( 7 of ( $cnc* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 patterns in ( $s* ) must match.
  • At least 4 patterns in ( $txt* ) must match.
  • At least 4 patterns in ( $s* ) must match.
  • At least 2 patterns in ( $txt* ) must match.
  • At least 7 patterns in ( $cnc* ) 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: 25ed5ad4-804a-5608-b6fe-a811ca6744d8

Tags:FILE