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 = "2022-05-16" 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 = "20220513" malpedia_hash = "7f4b2229e6ae614d86d74917f6d5b41890e62a26" malpedia_version = "20220516" 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 = { 8b742408 8b06 8b4804 6a0a } // n = 4, score = 1800 // 8b742408 | mov esi, dword ptr [esp + 8] // 8b06 | mov eax, dword ptr [esi] // 8b4804 | mov ecx, dword ptr [eax + 4] // 6a0a | push 0xa $sequence_1 = { 8d7801 8a10 40 84d2 75f9 2bc7 83c104 } // n = 7, score = 1800 // 8d7801 | lea edi, [eax + 1] // 8a10 | mov dl, byte ptr [eax] // 40 | inc eax // 84d2 | test dl, dl // 75f9 | jne 0xfffffffb // 2bc7 | sub eax, edi // 83c104 | add ecx, 4 $sequence_2 = { 83f8ff 7503 32c0 c3 8b4c2404 8801 b001 } // n = 7, score = 1800 // 83f8ff | cmp eax, -1 // 7503 | jne 5 // 32c0 | xor al, al // c3 | ret // 8b4c2404 | mov ecx, dword ptr [esp + 4] // 8801 | mov byte ptr [ecx], al // b001 | mov al, 1 $sequence_3 = { 8b4804 6a0a 03ce e8???????? 0fb6c0 50 ff742410 } // n = 7, score = 1800 // 8b4804 | mov ecx, dword ptr [eax + 4] // 6a0a | push 0xa // 03ce | add ecx, esi // e8???????? | // 0fb6c0 | movzx eax, al // 50 | push eax // ff742410 | push dword ptr [esp + 0x10] $sequence_4 = { c9 c3 8b542408 85d2 7503 33c0 } // n = 6, score = 1800 // c9 | leave // c3 | ret // 8b542408 | mov edx, dword ptr [esp + 8] // 85d2 | test edx, edx // 7503 | jne 5 // 33c0 | xor eax, eax $sequence_5 = { a900400000 7407 8bc6 e8???????? } // n = 4, score = 1800 // a900400000 | test eax, 0x4000 // 7407 | je 9 // 8bc6 | mov eax, esi // e8???????? | $sequence_6 = { 8d8d40feffff 51 50 e8???????? } // n = 4, score = 1800 // 8d8d40feffff | lea ecx, [ebp - 0x1c0] // 51 | push ecx // 50 | push eax // e8???????? | $sequence_7 = { 5e c20400 b001 c3 33c0 } // n = 5, score = 1800 // 5e | pop esi // c20400 | ret 4 // b001 | mov al, 1 // c3 | ret // 33c0 | xor eax, eax $sequence_8 = { c20800 56 57 8b7c240c 8b07 8bf1 } // n = 6, score = 1800 // c20800 | ret 8 // 56 | push esi // 57 | push edi // 8b7c240c | mov edi, dword ptr [esp + 0xc] // 8b07 | mov eax, dword ptr [edi] // 8bf1 | mov esi, ecx $sequence_9 = { 8d4644 6804010000 50 e8???????? 8b4638 83c410 33c9 } // n = 7, score = 1800 // 8d4644 | lea eax, [esi + 0x44] // 6804010000 | push 0x104 // 50 | push eax // e8???????? | // 8b4638 | mov eax, dword ptr [esi + 0x38] // 83c410 | add esp, 0x10 // 33c9 | xor ecx, ecx $sequence_10 = { c20400 56 8bf1 8b4e20 33c0 3901 7405 } // n = 7, score = 1800 // c20400 | ret 4 // 56 | push esi // 8bf1 | mov esi, ecx // 8b4e20 | mov ecx, dword ptr [esi + 0x20] // 33c0 | xor eax, eax // 3901 | cmp dword ptr [ecx], eax // 7405 | je 7 $sequence_11 = { c20400 ff742408 e8???????? 59 83f8ff } // n = 5, score = 1800 // c20400 | ret 4 // ff742408 | push dword ptr [esp + 8] // e8???????? | // 59 | pop ecx // 83f8ff | cmp eax, -1 $sequence_12 = { a1???????? 33c5 8985f8210000 53 } // n = 4, score = 1800 // a1???????? | // 33c5 | xor eax, ebp // 8985f8210000 | mov dword ptr [ebp + 0x21f8], eax // 53 | push ebx $sequence_13 = { 8d4dd0 e8???????? 8d8570fdffff 68???????? } // n = 4, score = 1800 // 8d4dd0 | lea ecx, [ebp - 0x30] // e8???????? | // 8d8570fdffff | lea eax, [ebp - 0x290] // 68???????? | $sequence_14 = { 8b4508 8906 8b450c 894608 8b4510 } // n = 5, score = 1700 // 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 // 8b4510 | mov eax, dword ptr [ebp + 0x10] $sequence_15 = { dd45f0 dd1c24 83ec08 dd4508 dd1c24 6a0b 6a10 } // n = 7, score = 200 // dd45f0 | fld qword ptr [ebp - 0x10] // dd1c24 | fstp qword ptr [esp] // 83ec08 | sub esp, 8 // dd4508 | fld qword ptr [ebp + 8] // dd1c24 | fstp qword ptr [esp] // 6a0b | push 0xb // 6a10 | push 0x10 $sequence_16 = { dd4508 dd1c24 6a0b 6a08 e8???????? 83c41c } // n = 6, score = 200 // dd4508 | fld qword ptr [ebp + 8] // dd1c24 | fstp qword ptr [esp] // 6a0b | push 0xb // 6a08 | push 8 // e8???????? | // 83c41c | add esp, 0x1c $sequence_17 = { e8???????? 83c408 84c0 740e 68???????? } // n = 5, score = 200 // e8???????? | // 83c408 | add esp, 8 // 84c0 | test al, al // 740e | je 0x10 // 68???????? | $sequence_18 = { 75f9 8b4c2410 2bc6 50 52 e8???????? } // n = 6, score = 200 // 75f9 | jne 0xfffffffb // 8b4c2410 | mov ecx, dword ptr [esp + 0x10] // 2bc6 | sub eax, esi // 50 | push eax // 52 | push edx // e8???????? | $sequence_19 = { 745f 660f6e05???????? 0f5bc0 51 f30f110424 e8???????? } // n = 6, score = 100 // 745f | je 0x61 // 660f6e05???????? | // 0f5bc0 | cvtdq2ps xmm0, xmm0 // 51 | push ecx // f30f110424 | movss dword ptr [esp], xmm0 // e8???????? | $sequence_20 = { 745f 8b35???????? 0f57c0 2b35???????? } // n = 4, score = 100 // 745f | je 0x61 // 8b35???????? | // 0f57c0 | xorps xmm0, xmm0 // 2b35???????? | 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