SYMBOLCOMMON_NAMEaka. SYNONYMS
win.onionduke (Back to overview)

OnionDuke

Actor(s): APT29

VTCollection    

OnionDuke is a new sophisticated piece of malware distributed by threat actors through a malicious exit node on the Tor anonymity network appears to be related to the notorious MiniDuke, researchers at F-Secure discovered. According to experts, since at least February 2014, the threat actors have also distributed the threat through malicious versions of pirated software hosted on torrent websites.

References
2020-05-06 ⋅ F-Secure Labs ⋅ Artturi Lehtiö, Melissa Michael
039| Deconstructing the Dukes: A Researcher’s Retrospective of APT29
OnionDuke
2020-03-26 ⋅ VMWare Carbon Black ⋅ Scott Knight
The Dukes of Moscow
Cobalt Strike LiteDuke MiniDuke OnionDuke PolyglotDuke PowerDuke
2020-01-01 ⋅ Secureworks ⋅ SecureWorks
IRON HEMLOCK
FatDuke MiniDuke OnionDuke PolyglotDuke APT29
2014-11-15 ⋅ Contagio Dump ⋅ Mila Parkour
OnionDuke samples
OnionDuke
2014-11-14 ⋅ F-Secure ⋅ F-Secure Labs
OnionDuke: APT Attacks Via the Tor Network
OnionDuke
Yara Rules
[TLP:WHITE] win_onionduke_auto (20260917 | Detects win.onionduke.)
rule win_onionduke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.onionduke."
        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.onionduke"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        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 = { 8b56e0 8957e0 8b56e4 8957e4 894ee0 }
            // n = 5, score = 200
            //   8b56e0               | mov                 edx, dword ptr [esi - 0x20]
            //   8957e0               | mov                 dword ptr [edi - 0x20], edx
            //   8b56e4               | mov                 edx, dword ptr [esi - 0x1c]
            //   8957e4               | mov                 dword ptr [edi - 0x1c], edx
            //   894ee0               | mov                 dword ptr [esi - 0x20], ecx

        $sequence_1 = { c745fc00000000 8b45e4 8907 40 50 }
            // n = 5, score = 200
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   8b45e4               | mov                 eax, dword ptr [ebp - 0x1c]
            //   8907                 | mov                 dword ptr [edi], eax
            //   40                   | inc                 eax
            //   50                   | push                eax

        $sequence_2 = { 85c0 740e 46 3b7344 72c6 5f }
            // n = 6, score = 200
            //   85c0                 | test                eax, eax
            //   740e                 | je                  0x10
            //   46                   | inc                 esi
            //   3b7344               | cmp                 esi, dword ptr [ebx + 0x44]
            //   72c6                 | jb                  0xffffffc8
            //   5f                   | pop                 edi

        $sequence_3 = { 8b4e08 85c9 740f 8b01 8b10 }
            // n = 5, score = 200
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   85c9                 | test                ecx, ecx
            //   740f                 | je                  0x11
            //   8b01                 | mov                 eax, dword ptr [ecx]
            //   8b10                 | mov                 edx, dword ptr [eax]

        $sequence_4 = { c745fc00000000 837de808 8b45d4 7303 8d45d4 56 }
            // n = 6, score = 200
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   837de808             | cmp                 dword ptr [ebp - 0x18], 8
            //   8b45d4               | mov                 eax, dword ptr [ebp - 0x2c]
            //   7303                 | jae                 5
            //   8d45d4               | lea                 eax, [ebp - 0x2c]
            //   56                   | push                esi

        $sequence_5 = { 8945f0 56 50 8d45f4 64a300000000 8d75d4 e8???????? }
            // n = 7, score = 200
            //   8945f0               | mov                 dword ptr [ebp - 0x10], eax
            //   56                   | push                esi
            //   50                   | push                eax
            //   8d45f4               | lea                 eax, [ebp - 0xc]
            //   64a300000000         | mov                 dword ptr fs:[0], eax
            //   8d75d4               | lea                 esi, [ebp - 0x2c]
            //   e8????????           |                     

        $sequence_6 = { 8b4dfc 33cd e8???????? 8be5 5d c20400 837df408 }
            // n = 7, score = 200
            //   8b4dfc               | mov                 ecx, dword ptr [ebp - 4]
            //   33cd                 | xor                 ecx, ebp
            //   e8????????           |                     
            //   8be5                 | mov                 esp, ebp
            //   5d                   | pop                 ebp
            //   c20400               | ret                 4
            //   837df408             | cmp                 dword ptr [ebp - 0xc], 8

        $sequence_7 = { 33d2 3955f0 0f94c2 837df410 8bf2 720c }
            // n = 6, score = 200
            //   33d2                 | xor                 edx, edx
            //   3955f0               | cmp                 dword ptr [ebp - 0x10], edx
            //   0f94c2               | sete                dl
            //   837df410             | cmp                 dword ptr [ebp - 0xc], 0x10
            //   8bf2                 | mov                 esi, edx
            //   720c                 | jb                  0xe

        $sequence_8 = { 8d46ec c60000 833f10 7316 8b4ffc 41 }
            // n = 6, score = 200
            //   8d46ec               | lea                 eax, [esi - 0x14]
            //   c60000               | mov                 byte ptr [eax], 0
            //   833f10               | cmp                 dword ptr [edi], 0x10
            //   7316                 | jae                 0x18
            //   8b4ffc               | mov                 ecx, dword ptr [edi - 4]
            //   41                   | inc                 ecx

        $sequence_9 = { c745e80f000000 897de4 c645d400 897dfc 8b4e24 2b4e20 }
            // n = 6, score = 200
            //   c745e80f000000       | mov                 dword ptr [ebp - 0x18], 0xf
            //   897de4               | mov                 dword ptr [ebp - 0x1c], edi
            //   c645d400             | mov                 byte ptr [ebp - 0x2c], 0
            //   897dfc               | mov                 dword ptr [ebp - 4], edi
            //   8b4e24               | mov                 ecx, dword ptr [esi + 0x24]
            //   2b4e20               | sub                 ecx, dword ptr [esi + 0x20]

    condition:
        7 of them and filesize < 671744
}
Download all Yara Rules