Vidar is a forked malware based on Arkei. It seems this stealer is one of the first that is grabbing information on 2FA Software and Tor Browser.
rule win_vidar_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-12-06" version = "1" description = "Detects win.vidar." 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.vidar" malpedia_rule_date = "20231130" malpedia_hash = "fc8a0e9f343f6d6ded9e7df1a64dac0cc68d7351" malpedia_version = "20230808" 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 = { 25ff7f0000 c3 e8???????? 8b486c 3b0d???????? 7410 } // n = 6, score = 2600 // 25ff7f0000 | and eax, 0x7fff // c3 | ret // e8???????? | // 8b486c | mov ecx, dword ptr [eax + 0x6c] // 3b0d???????? | // 7410 | je 0x12 $sequence_1 = { 05c39e2600 894114 c1e810 25ff7f0000 c3 e8???????? } // n = 6, score = 2600 // 05c39e2600 | add eax, 0x269ec3 // 894114 | mov dword ptr [ecx + 0x14], eax // c1e810 | shr eax, 0x10 // 25ff7f0000 | and eax, 0x7fff // c3 | ret // e8???????? | $sequence_2 = { 8d8d68fdffff 51 50 ff15???????? } // n = 4, score = 2500 // 8d8d68fdffff | lea ecx, [ebp - 0x298] // 51 | push ecx // 50 | push eax // ff15???????? | $sequence_3 = { 7202 8b00 8d8d68fdffff 51 } // n = 4, score = 2500 // 7202 | jb 4 // 8b00 | mov eax, dword ptr [eax] // 8d8d68fdffff | lea ecx, [ebp - 0x298] // 51 | push ecx $sequence_4 = { 740a b800000500 e9???????? 57 } // n = 4, score = 2400 // 740a | je 0xc // b800000500 | mov eax, 0x50000 // e9???????? | // 57 | push edi $sequence_5 = { 56 8b742408 8b865caf0100 57 } // n = 4, score = 2400 // 56 | push esi // 8b742408 | mov esi, dword ptr [esp + 8] // 8b865caf0100 | mov eax, dword ptr [esi + 0x1af5c] // 57 | push edi $sequence_6 = { 895dd0 c746140f000000 895e10 8975cc } // n = 4, score = 2400 // 895dd0 | mov dword ptr [ebp - 0x30], ebx // c746140f000000 | mov dword ptr [esi + 0x14], 0xf // 895e10 | mov dword ptr [esi + 0x10], ebx // 8975cc | mov dword ptr [ebp - 0x34], esi $sequence_7 = { 8b8648af0100 c1e803 038644af0100 5e 5d c3 } // n = 6, score = 2400 // 8b8648af0100 | mov eax, dword ptr [esi + 0x1af48] // c1e803 | shr eax, 3 // 038644af0100 | add eax, dword ptr [esi + 0x1af44] // 5e | pop esi // 5d | pop ebp // c3 | ret $sequence_8 = { 895dfc e8???????? 83781408 c645fc01 } // n = 4, score = 2400 // 895dfc | mov dword ptr [ebp - 4], ebx // e8???????? | // 83781408 | cmp dword ptr [eax + 0x14], 8 // c645fc01 | mov byte ptr [ebp - 4], 1 $sequence_9 = { 8b7508 33ff 89b55cfdffff 89bd60fdffff } // n = 4, score = 2400 // 8b7508 | mov esi, dword ptr [ebp + 8] // 33ff | xor edi, edi // 89b55cfdffff | mov dword ptr [ebp - 0x2a4], esi // 89bd60fdffff | mov dword ptr [ebp - 0x2a0], edi $sequence_10 = { 5f c6043300 8bc6 5e 5b c20400 } // n = 6, score = 2400 // 5f | pop edi // c6043300 | mov byte ptr [ebx + esi], 0 // 8bc6 | mov eax, esi // 5e | pop esi // 5b | pop ebx // c20400 | ret 4 $sequence_11 = { 50 ff15???????? 8b4da0 8901 85c0 } // n = 5, score = 2300 // 50 | push eax // ff15???????? | // 8b4da0 | mov ecx, dword ptr [ebp - 0x60] // 8901 | mov dword ptr [ecx], eax // 85c0 | test eax, eax $sequence_12 = { 83781410 7202 8b00 50 8b45a0 } // n = 5, score = 2300 // 83781410 | cmp dword ptr [eax + 0x14], 0x10 // 7202 | jb 4 // 8b00 | mov eax, dword ptr [eax] // 50 | push eax // 8b45a0 | mov eax, dword ptr [ebp - 0x60] $sequence_13 = { eb02 33c0 5f 5e c9 c3 6a04 } // n = 7, score = 2300 // eb02 | jmp 4 // 33c0 | xor eax, eax // 5f | pop edi // 5e | pop esi // c9 | leave // c3 | ret // 6a04 | push 4 $sequence_14 = { 5e c20400 ff742408 e8???????? 59 83f8ff 7503 } // n = 7, score = 2300 // 5e | pop esi // c20400 | ret 4 // ff742408 | push dword ptr [esp + 8] // e8???????? | // 59 | pop ecx // 83f8ff | cmp eax, -1 // 7503 | jne 5 $sequence_15 = { c9 c3 8b542408 85d2 7503 } // n = 5, score = 2300 // c9 | leave // c3 | ret // 8b542408 | mov edx, dword ptr [esp + 8] // 85d2 | test edx, edx // 7503 | jne 5 $sequence_16 = { 0fb605???????? 50 0fb605???????? 50 0fb605???????? 50 6a01 } // n = 7, score = 2200 // 0fb605???????? | // 50 | push eax // 0fb605???????? | // 50 | push eax // 0fb605???????? | // 50 | push eax // 6a01 | push 1 $sequence_17 = { 53 50 899e6caf0600 e8???????? } // n = 4, score = 2100 // 53 | push ebx // 50 | push eax // 899e6caf0600 | mov dword ptr [esi + 0x6af6c], ebx // e8???????? | $sequence_18 = { 53 68???????? 8d8da8000000 e8???????? } // n = 4, score = 2100 // 53 | push ebx // 68???????? | // 8d8da8000000 | lea ecx, [ebp + 0xa8] // e8???????? | $sequence_19 = { c3 55 8bec 83ec0c 8365fc00 8365f400 8365f800 } // n = 7, score = 1900 // c3 | ret // 55 | push ebp // 8bec | mov ebp, esp // 83ec0c | sub esp, 0xc // 8365fc00 | and dword ptr [ebp - 4], 0 // 8365f400 | and dword ptr [ebp - 0xc], 0 // 8365f800 | and dword ptr [ebp - 8], 0 $sequence_20 = { c20400 56 8bf1 e8???????? 6a00 ff74240c 8bce } // n = 7, score = 1800 // c20400 | ret 4 // 56 | push esi // 8bf1 | mov esi, ecx // e8???????? | // 6a00 | push 0 // ff74240c | push dword ptr [esp + 0xc] // 8bce | mov ecx, esi $sequence_21 = { 0faf450c 50 e8???????? 59 } // n = 4, score = 1800 // 0faf450c | imul eax, dword ptr [ebp + 0xc] // 50 | push eax // e8???????? | // 59 | pop ecx $sequence_22 = { 8b4508 8906 8b450c 894608 } // n = 4, score = 1800 // 8b4508 | mov eax, dword ptr [ebp + 8] // 8906 | mov dword ptr [esi], eax // 8b450c | mov eax, dword ptr [ebp + 0xc] // 894608 | mov dword ptr [esi + 8], eax $sequence_23 = { 8b4120 8910 8b4130 8910 c3 56 } // n = 6, score = 1800 // 8b4120 | mov eax, dword ptr [ecx + 0x20] // 8910 | mov dword ptr [eax], edx // 8b4130 | mov eax, dword ptr [ecx + 0x30] // 8910 | mov dword ptr [eax], edx // c3 | ret // 56 | push esi $sequence_24 = { e8???????? c9 c3 55 8bec 83ec18 8b450c } // n = 7, score = 1800 // e8???????? | // c9 | leave // c3 | ret // 55 | push ebp // 8bec | mov ebp, esp // 83ec18 | sub esp, 0x18 // 8b450c | mov eax, dword ptr [ebp + 0xc] $sequence_25 = { 8d852cffffff 50 8d459c 50 } // n = 4, score = 1800 // 8d852cffffff | lea eax, [ebp - 0xd4] // 50 | push eax // 8d459c | lea eax, [ebp - 0x64] // 50 | push eax $sequence_26 = { 6860ea0000 6a00 ff15???????? 50 } // n = 4, score = 800 // 6860ea0000 | push 0xea60 // 6a00 | push 0 // ff15???????? | // 50 | push eax $sequence_27 = { 50 ff15???????? 6a1a e8???????? } // n = 4, score = 800 // 50 | push eax // ff15???????? | // 6a1a | push 0x1a // e8???????? | $sequence_28 = { 5f c21000 8bff 55 8bec 6a0a } // n = 6, score = 700 // 5f | pop edi // c21000 | ret 0x10 // 8bff | mov edi, edi // 55 | push ebp // 8bec | mov ebp, esp // 6a0a | push 0xa $sequence_29 = { e8???????? 83c410 85c0 7404 6a99 ebcc } // n = 6, score = 600 // e8???????? | // 83c410 | add esp, 0x10 // 85c0 | test eax, eax // 7404 | je 6 // 6a99 | push -0x67 // ebcc | jmp 0xffffffce $sequence_30 = { 7410 84c0 7406 3ac8 7c14 } // n = 5, score = 500 // 7410 | je 0x12 // 84c0 | test al, al // 7406 | je 8 // 3ac8 | cmp cl, al // 7c14 | jl 0x16 $sequence_31 = { 7408 ff36 e8???????? 59 834e04ff 8b06 } // n = 6, score = 500 // 7408 | je 0xa // ff36 | push dword ptr [esi] // e8???????? | // 59 | pop ecx // 834e04ff | or dword ptr [esi + 4], 0xffffffff // 8b06 | mov eax, dword ptr [esi] $sequence_32 = { e8???????? 83c408 84c0 740e 68???????? } // n = 5, score = 300 // e8???????? | // 83c408 | add esp, 8 // 84c0 | test al, al // 740e | je 0x10 // 68???????? | $sequence_33 = { 6a0b 6a10 e8???????? 83c41c 8be5 } // n = 5, score = 200 // 6a0b | push 0xb // 6a10 | push 0x10 // e8???????? | // 83c41c | add esp, 0x1c // 8be5 | mov esp, ebp $sequence_34 = { eb0b 8b45f4 0500040000 8945f4 } // n = 4, score = 200 // eb0b | jmp 0xd // 8b45f4 | mov eax, dword ptr [ebp - 0xc] // 0500040000 | add eax, 0x400 // 8945f4 | mov dword ptr [ebp - 0xc], eax $sequence_35 = { 83ec08 dd4508 dd1c24 6a0b 6a08 } // n = 5, score = 200 // 83ec08 | sub esp, 8 // dd4508 | fld qword ptr [ebp + 8] // dd1c24 | fstp qword ptr [esp] // 6a0b | push 0xb // 6a08 | push 8 $sequence_36 = { 8bc6 8b35???????? 99 2bc2 } // n = 4, score = 100 // 8bc6 | mov eax, esi // 8b35???????? | // 99 | cdq // 2bc2 | sub eax, edx $sequence_37 = { 8bc6 5f 5e 5d 5b 81c460010000 c3 } // n = 7, score = 100 // 8bc6 | mov eax, esi // 5f | pop edi // 5e | pop esi // 5d | pop ebp // 5b | pop ebx // 81c460010000 | add esp, 0x160 // c3 | ret condition: 7 of them and filesize < 2793472 }
rule win_vidar_w0 { meta: description = "Yara rule for detecting Vidar stealer" author = "Fumik0_" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.vidar" malpedia_version = "20190106" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $s1 = { 56 69 64 61 72 } $s2 = { 31 42 45 46 30 41 35 37 42 45 31 31 30 46 44 34 36 37 41 } condition: all of them }
If your designated proposal does not fit in any other category, feel free to write a free-text in the comment field below.
Please propose all changes regarding references on the Malpedia library page
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY