There is no description at this point.
rule win_stuxnet_auto { meta: author = "Felix Bilstein - yara-signator at cocacoding dot com" date = "2023-12-06" version = "1" description = "Detects win.stuxnet." 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.stuxnet" 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 = { e8???????? 8b5dec 8b45f0 895df4 8945f8 ff770c 8d75ec } // n = 7, score = 200 // e8???????? | // 8b5dec | mov ebx, dword ptr [ebp - 0x14] // 8b45f0 | mov eax, dword ptr [ebp - 0x10] // 895df4 | mov dword ptr [ebp - 0xc], ebx // 8945f8 | mov dword ptr [ebp - 8], eax // ff770c | push dword ptr [edi + 0xc] // 8d75ec | lea esi, [ebp - 0x14] $sequence_1 = { c20400 b8???????? e8???????? 51 6a08 e8???????? 59 } // n = 7, score = 200 // c20400 | ret 4 // b8???????? | // e8???????? | // 51 | push ecx // 6a08 | push 8 // e8???????? | // 59 | pop ecx $sequence_2 = { e8???????? 33db 895dfc 53 8d45d8 50 6802000080 } // n = 7, score = 200 // e8???????? | // 33db | xor ebx, ebx // 895dfc | mov dword ptr [ebp - 4], ebx // 53 | push ebx // 8d45d8 | lea eax, [ebp - 0x28] // 50 | push eax // 6802000080 | push 0x80000002 $sequence_3 = { 6aff 68???????? 64a100000000 50 64892500000000 83ec64 8d442420 } // n = 7, score = 200 // 6aff | push -1 // 68???????? | // 64a100000000 | mov eax, dword ptr fs:[0] // 50 | push eax // 64892500000000 | mov dword ptr fs:[0], esp // 83ec64 | sub esp, 0x64 // 8d442420 | lea eax, [esp + 0x20] $sequence_4 = { eb02 33f6 c645fc00 8b4f1c 3bf1 740a 85c9 } // n = 7, score = 200 // eb02 | jmp 4 // 33f6 | xor esi, esi // c645fc00 | mov byte ptr [ebp - 4], 0 // 8b4f1c | mov ecx, dword ptr [edi + 0x1c] // 3bf1 | cmp esi, ecx // 740a | je 0xc // 85c9 | test ecx, ecx $sequence_5 = { 837df008 8b45dc 7303 8d45dc 50 8d431c e8???????? } // n = 7, score = 200 // 837df008 | cmp dword ptr [ebp - 0x10], 8 // 8b45dc | mov eax, dword ptr [ebp - 0x24] // 7303 | jae 5 // 8d45dc | lea eax, [ebp - 0x24] // 50 | push eax // 8d431c | lea eax, [ebx + 0x1c] // e8???????? | $sequence_6 = { c706???????? e8???????? c645fc01 c6462400 834dfcff 8b4df4 8bc6 } // n = 7, score = 200 // c706???????? | // e8???????? | // c645fc01 | mov byte ptr [ebp - 4], 1 // c6462400 | mov byte ptr [esi + 0x24], 0 // 834dfcff | or dword ptr [ebp - 4], 0xffffffff // 8b4df4 | mov ecx, dword ptr [ebp - 0xc] // 8bc6 | mov eax, esi $sequence_7 = { a5 50 a5 ff5130 85c0 7cb0 8b9b48080000 } // n = 7, score = 200 // a5 | movsd dword ptr es:[edi], dword ptr [esi] // 50 | push eax // a5 | movsd dword ptr es:[edi], dword ptr [esi] // ff5130 | call dword ptr [ecx + 0x30] // 85c0 | test eax, eax // 7cb0 | jl 0xffffffb2 // 8b9b48080000 | mov ebx, dword ptr [ebx + 0x848] $sequence_8 = { ff750c ff7510 8d45e4 50 e8???????? c645fc01 8d4def } // n = 7, score = 200 // ff750c | push dword ptr [ebp + 0xc] // ff7510 | push dword ptr [ebp + 0x10] // 8d45e4 | lea eax, [ebp - 0x1c] // 50 | push eax // e8???????? | // c645fc01 | mov byte ptr [ebp - 4], 1 // 8d4def | lea ecx, [ebp - 0x11] $sequence_9 = { ff7508 8d4df4 e8???????? 837d14ff 7d04 33c0 eb12 } // n = 7, score = 200 // ff7508 | push dword ptr [ebp + 8] // 8d4df4 | lea ecx, [ebp - 0xc] // e8???????? | // 837d14ff | cmp dword ptr [ebp + 0x14], -1 // 7d04 | jge 6 // 33c0 | xor eax, eax // eb12 | jmp 0x14 condition: 7 of them and filesize < 2495488 }
rule win_stuxnet_w0 { meta: author = "JAG-S (turla@chronicle.security)" hash = "c1961e54d60e34bbec397c9120564e8d08f2f243ae349d2fb20f736510716579" description = "Stuxshop standalone sample configuration" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.stuxnet" malpedia_version = "20190418" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $cnc1 = "http://211.24.237.226/index.php?data=" ascii wide $cnc2 = "http://todaysfutbol.com/index.php?data=" ascii wide $cnc3 = "http://78.111.169.146/index.php?data=" ascii wide $cnc4 = "http://mypremierfutbol.com/index.php?data=" ascii wide $regkey1 = "Software\\Microsoft\\Windows\\CurrentVersion\\MS-DOS Emulation" ascii wide $regkey2 = "NTVDMParams" ascii wide $flowerOverlap1 = { 85 C0 75 3B 57 FF 75 1C FF 75 18 FF 75 14 50 FF 75 10 FF 75 FC FF 15 } $flowerOverlap2 = { 85 C0 75 4C 8B 45 1C 89 45 0C 8D 45 0C 50 8D 45 08 FF 75 18 50 6A 00 FF 75 10 FF 75 20 FF 15 } $flowerOverlap3 = { 55 8B EC 53 56 8B 75 20 85 F6 74 03 83 26 00 8D 45 20 5068 19 00 02 00 6A 00 FF 75 0C FF 75 08 } $flowerOverlap4 = { 55 8B EC 51 8D 4D FC 33 C0 51 50 6A 26 50 89 45 FC FF 15 } $flowerOverlap5 = { 85 DB 74 04 8B C3 EB 1A 8B 45 08 3B 45 14 74 07 B8 5D 06 00 00 EB 0B 85 F6 74 05 8B 45 0C 89 06 } $flowerOverlap6 = { 85 FF 74 12 83 7D F8 01 75 0C FF 75 0C FF 75 08 FF 15 } condition: all of ($flowerOverlap*) or 2 of ($cnc*) or all of ($regkey*) }
rule win_stuxnet_w1 { meta: author = "Silas Cutler (havex@Chronicle.Security)" desc = "Identifies the OS Check function in STUXSHOP and CheshireCat" hash = "c1961e54d60e34bbec397c9120564e8d08f2f243ae349d2fb20f736510716579" malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.stuxnet" malpedia_version = "20190418" malpedia_license = "CC BY-NC-SA 4.0" malpedia_sharing = "TLP:WHITE" strings: $ = {10 F7 D8 1B C0 83 C0 ?? E9 ?? 01 00 00 39 85 7C FF FF FF 0F 85 ?? 01 00 00 83 BD 70 FF FF FF 04 8B 8D 74 FF FF FF 75 0B 85 C9 0F 85 ?? 01 00 00 6A 05 5E } $ = {01 00 00 3B FA 0F 84 ?? 01 00 00 80 7D 80 00 B1 62 74 1D 6A 0D 8D 45 80 68 ?? ?? ?? 10 50 FF 15 ?? ?? ?? 10 83 C4 0C B1 6F 85 C0 75 03 8A 4D 8D 8B C6 } condition: any 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. Changes regarding references should be proposed on the Malpedia library page.
Your suggestion will be reviewed before being published. Thank you for contributing!
YYYY-MM-DD
YYYY-MM
YYYY