win_bid_ransomware_auto
YARA-2024-0742
Critical
general
Active
Detects win.bid_ransomware.
win_bid_ransomware_auto.yar
Valid Syntax
rule win_bid_ransomware_auto {
meta:
author = "Felix Bilstein - yara-signator at cocacoding dot com"
date = "2024-10-31"
version = "1"
description = "Detects win.bid_ransomware."
info = "autogenerated rule brought to you by yara-signator"
tool = "yara-signator v0.6.0"
signator_config = "callsandjumps;datarefs;binvalue"
malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.bid_ransomware"
malpedia_rule_date = "20241030"
malpedia_hash = "26e26953c49c8efafbf72a38076855d578e0a2e4"
malpedia_version = "20241030"
malpedia_license = "CC BY-SA 4.0"
malpedia_sharing = "TLP:WHITE"
/* DISCLAIMER
* The strings used in this rule have been automatically selected from the
* disassembly of memory dumps and unpacked files, using YARA-Signator.
* The code and documentation is published here:
* https://github.com/fxb-cocacoding/yara-signator
* As Malpedia is used as data source, please note that for a given
* number of families, only single samples are documented.
* This likely impacts the degree of generalization these rules will offer.
* Take the described generation method also into consideration when you
* apply the rules in your use cases and assign them confidence levels.
*/
strings:
$sequence_0 = { e8???????? 6a00 6a00 68???????? ff75a8 }
// n = 5, score = 200
// e8???????? |
// 6a00 | push 0
// 6a00 | push 0
// 68???????? |
// ff75a8 | push dword ptr [ebp - 0x58]
$sequence_1 = { 83e03f 8a80f6434000 aa 4e }
// n = 4, score = 200
// 83e03f | and eax, 0x3f
// 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]
// aa | stosb byte ptr es:[edi], al
// 4e | dec esi
$sequence_2 = { c20400 55 8bec 83c4fc e8???????? b919000000 bb01000000 }
// n = 7, score = 200
// c20400 | ret 4
// 55 | push ebp
// 8bec | mov ebp, esp
// 83c4fc | add esp, -4
// e8???????? |
// b919000000 | mov ecx, 0x19
// bb01000000 | mov ebx, 1
$sequence_3 = { eb15 ff75f4 e8???????? ff75fc e8???????? }
// n = 5, score = 200
// eb15 | jmp 0x17
// ff75f4 | push dword ptr [ebp - 0xc]
// e8???????? |
// ff75fc | push dword ptr [ebp - 4]
// e8???????? |
$sequence_4 = { 8bc2 c1e80e 83e03f 8a80f6434000 aa 49 7418 }
// n = 7, score = 200
// 8bc2 | mov eax, edx
// c1e80e | shr eax, 0xe
// 83e03f | and eax, 0x3f
// 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]
// aa | stosb byte ptr es:[edi], al
// 49 | dec ecx
// 7418 | je 0x1a
$sequence_5 = { 8a80f6434000 aa 8bc2 c1e814 83e03f }
// n = 5, score = 200
// 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]
// aa | stosb byte ptr es:[edi], al
// 8bc2 | mov eax, edx
// c1e814 | shr eax, 0x14
// 83e03f | and eax, 0x3f
$sequence_6 = { ff75a8 e8???????? c7458405000000 c705????????00000000 }
// n = 4, score = 200
// ff75a8 | push dword ptr [ebp - 0x58]
// e8???????? |
// c7458405000000 | mov dword ptr [ebp - 0x7c], 5
// c705????????00000000 |
$sequence_7 = { 6a00 e8???????? 55 8bec 8b450c }
// n = 5, score = 200
// 6a00 | push 0
// e8???????? |
// 55 | push ebp
// 8bec | mov ebp, esp
// 8b450c | mov eax, dword ptr [ebp + 0xc]
$sequence_8 = { 8d85d8fdffff 50 68???????? e8???????? 85c0 0f84e2010000 }
// n = 6, score = 200
// 8d85d8fdffff | lea eax, [ebp - 0x228]
// 50 | push eax
// 68???????? |
// e8???????? |
// 85c0 | test eax, eax
// 0f84e2010000 | je 0x1e8
$sequence_9 = { bb01000000 d3e3 23d8 7421 50 51 }
// n = 6, score = 200
// bb01000000 | mov ebx, 1
// d3e3 | shl ebx, cl
// 23d8 | and ebx, eax
// 7421 | je 0x23
// 50 | push eax
// 51 | push ecx
condition:
7 of them and filesize < 57344
}
Rule Metadata
author
Felix Bilstein - yara-signator at cocacoding dot com
date
2024-10-31
version
1
description
Detects win.bid_ransomware.
info
autogenerated rule brought to you by yara-signator
tool
yara-signator v0.6.0
signator_config
callsandjumps;datarefs;binvalue
malpedia_reference
https://malpedia.caad.fkie.fraunhofer.de/details/win.bid_ransomware
malpedia_rule_date
20241030
malpedia_hash
26e26953c49c8efafbf72a38076855d578e0a2e4
malpedia_version
20241030
malpedia_license
CC BY-SA 4.0
malpedia_sharing
TLP:WHITE
String Definitions
{"name":"$sequence_0","value":"{ e8???????? 6a00 6a00 68???????? ff75a8 }\n \/\/ n = 5, score = 200\n \/\/ e8???????? | \n \/\/ 6a00 | push 0\n \/\/ 6a00 | push 0\n \/\/ 68???????? | \n \/\/ ff75a8 | push dword ptr [ebp - 0x58]"}
{"name":"$sequence_1","value":"{ 83e03f 8a80f6434000 aa 4e }\n \/\/ n = 4, score = 200\n \/\/ 83e03f | and eax, 0x3f\n \/\/ 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]\n \/\/ aa | stosb byte ptr es:[edi], al\n \/\/ 4e | dec esi"}
{"name":"$sequence_2","value":"{ c20400 55 8bec 83c4fc e8???????? b919000000 bb01000000 }\n \/\/ n = 7, score = 200\n \/\/ c20400 | ret 4\n \/\/ 55 | push ebp\n \/\/ 8bec | mov ebp, esp\n \/\/ 83c4fc | add esp, -4\n \/\/ e8???????? | \n \/\/ b919000000 | mov ecx, 0x19\n \/\/ bb01000000 | mov ebx, 1"}
{"name":"$sequence_3","value":"{ eb15 ff75f4 e8???????? ff75fc e8???????? }\n \/\/ n = 5, score = 200\n \/\/ eb15 | jmp 0x17\n \/\/ ff75f4 | push dword ptr [ebp - 0xc]\n \/\/ e8???????? | \n \/\/ ff75fc | push dword ptr [ebp - 4]\n \/\/ e8???????? |"}
{"name":"$sequence_4","value":"{ 8bc2 c1e80e 83e03f 8a80f6434000 aa 49 7418 }\n \/\/ n = 7, score = 200\n \/\/ 8bc2 | mov eax, edx\n \/\/ c1e80e | shr eax, 0xe\n \/\/ 83e03f | and eax, 0x3f\n \/\/ 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]\n \/\/ aa | stosb byte ptr es:[edi], al\n \/\/ 49 | dec ecx\n \/\/ 7418 | je 0x1a"}
{"name":"$sequence_5","value":"{ 8a80f6434000 aa 8bc2 c1e814 83e03f }\n \/\/ n = 5, score = 200\n \/\/ 8a80f6434000 | mov al, byte ptr [eax + 0x4043f6]\n \/\/ aa | stosb byte ptr es:[edi], al\n \/\/ 8bc2 | mov eax, edx\n \/\/ c1e814 | shr eax, 0x14\n \/\/ 83e03f | and eax, 0x3f"}
{"name":"$sequence_6","value":"{ ff75a8 e8???????? c7458405000000 c705????????00000000 }\n \/\/ n = 4, score = 200\n \/\/ ff75a8 | push dword ptr [ebp - 0x58]\n \/\/ e8???????? | \n \/\/ c7458405000000 | mov dword ptr [ebp - 0x7c], 5\n \/\/ c705????????00000000 |"}
{"name":"$sequence_7","value":"{ 6a00 e8???????? 55 8bec 8b450c }\n \/\/ n = 5, score = 200\n \/\/ 6a00 | push 0\n \/\/ e8???????? | \n \/\/ 55 | push ebp\n \/\/ 8bec | mov ebp, esp\n \/\/ 8b450c | mov eax, dword ptr [ebp + 0xc]"}
{"name":"$sequence_8","value":"{ 8d85d8fdffff 50 68???????? e8???????? 85c0 0f84e2010000 }\n \/\/ n = 6, score = 200\n \/\/ 8d85d8fdffff | lea eax, [ebp - 0x228]\n \/\/ 50 | push eax\n \/\/ 68???????? | \n \/\/ e8???????? | \n \/\/ 85c0 | test eax, eax\n \/\/ 0f84e2010000 | je 0x1e8"}
{"name":"$sequence_9","value":"{ bb01000000 d3e3 23d8 7421 50 51 }\n \/\/ n = 6, score = 200\n \/\/ bb01000000 | mov ebx, 1\n \/\/ d3e3 | shl ebx, cl\n \/\/ 23d8 | and ebx, eax\n \/\/ 7421 | je 0x23\n \/\/ 50 | push eax\n \/\/ 51 | push ecx"}
Threat Analysis
This YARA rule is designed to detect general threats.
Severity Level: Critical
The rule uses pattern matching to identify specific byte sequences, strings, or behavioral patterns associated with malicious activity.
Detection Capabilities
- File-based detection for executables and documents
- Memory scanning for running processes
- Network traffic analysis support
Command Line Usage
# Scan a single file yara win_bid_ransomware_auto.yar /path/to/suspicious/file # Scan a directory recursively yara -r win_bid_ransomware_auto.yar /path/to/directory/ # Scan with metadata output yara -m win_bid_ransomware_auto.yar target_file # Scan process memory (Linux) yara win_bid_ransomware_auto.yar /proc/[pid]/exe
Integration Examples
Python (yara-python)
import yara
rules = yara.compile(filepath='win_bid_ransomware_auto.yar')
matches = rules.match('/path/to/file')
ClamAV Integration
clamscan --yara-rules=win_bid_ransomware_auto.yar /path/to/scan
Rule Information
YARA ID
YARA-2024-0742
Repository
Created
August 19, 2025
Last Updated
August 19, 2025
Last Imported
Never
Threat Intelligence
Risk Level
Critical
Category
general
Detection Confidence
Analysis Pending
False Positive Rate
Not Available
Last Seen in Wild
No Data
Related Rules
Export Options
Similar Rules in general
YARA-2023-0001
CRI
Detect_Mimic_Ransomware
Detect_Mimic_Ransomware
YARA-2023-0002
MED
SystemBC_malware
Detect_SystemBC
YARA-2023-0003
MED
detect_catB
detect_CatB_ransomware
YARA-2022-0001
MED
detect_Typhon_Stealer
detect_Typhon_Stealer
YARA-2023-0004
MED
Nosu_stealer
Detect_Nosu_stealer
YARA-2022-0002
MED
detect_Lumma_stealer
detect_Lumma_stealer
YARA-2022-0003
MED
detect_StrelaStealer
detect_StrelaStealer
YARA-2022-0004
MED
detect_silence_Downloader
detect_silence_Downloader