YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Osno
Osno ransomware and infostealer payload
- 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:
= "Osno ransomware and infostealer payload"
= "ditekSHen"
= "25ed5ad4-804a-5608-b6fe-a811ca6744d8"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1617-L1652"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "3df59c306017001467a5f237db2ab37d97c34116558e18420a6a1f01f08f520f"
= 75
= 73
= "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 = "×tamp=" 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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | ".HolyGate+<>c+<<FinalBoss>" | ascii |
| $s2 | regex | /Osno(Keylogger|Stealer|Ransom)/ | wide |
| $s3 | text | "password,executeWebhook('Account credentials" | wide |
| $s4 | text | "-Name Osno -PropertyType" | wide |
| $s5 | text | "process.env.hook" | ascii |
| $s6 | text | "Stealer.JSON.JsonValue" | ascii |
| $s7 | text | "<DetectBrowserss>b_" | ascii |
| $s8 | text | "<TryGetDiscordPath>b_" | ascii |
| $s9 | text | "antiVM" | fullword ascii |
| $s10 | text | "downloadurl" | fullword ascii |
| $s11 | text | "set_sPassword" | fullword ascii |
| $txt0 | text | "{0} {1} .txt" | fullword wide |
| $txt1 | text | "\\ScanningNetworks.txt" | fullword wide |
| $txt2 | text | "\\SteamApps.txt" | fullword wide |
| $txt3 | text | "-ErrorsLogs.txt" | fullword wide |
| $txt4 | text | "-keylogs.txt" | fullword wide |
| $txt5 | text | "Hardware & Soft.txt" | fullword wide |
| $cnc0 | text | "/csharp/" | ascii wide |
| $cnc1 | text | "token=" | ascii wide |
| $cnc2 | text | "×tamp=" | ascii wide |
| $cnc3 | text | "&session_id=" | ascii wide |
| $cnc4 | text | "&aid=" | ascii wide |
| $cnc5 | text | "&secret=" | ascii wide |
| $cnc6 | text | "&api_key" | ascii wide |
| $cnc7 | text | "&session_key=" | ascii wide |
| $cnc8 | text | "&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.
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: 25ed5ad4-804a-5608-b6fe-a811ca6744d8
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06