SYMBOLCOMMON_NAMEaka. SYNONYMS
win.onionduke (Back to overview)

OnionDuke

Actor(s): APT29


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-06F-Secure LabsMelissa Michael, Artturi Lehtiö
@online{michael:20200506:039:49d4744, author = {Melissa Michael and Artturi Lehtiö}, title = {{039| Deconstructing the Dukes: A Researcher’s Retrospective of APT29}}, date = {2020-05-06}, organization = {F-Secure Labs}, url = {https://blog.f-secure.com/podcast-dukes-apt29/}, language = {English}, urldate = {2020-07-06} } 039| Deconstructing the Dukes: A Researcher’s Retrospective of APT29
OnionDuke
2020-03-26VMWare Carbon BlackScott Knight
@online{knight:20200326:dukes:df85f94, author = {Scott Knight}, title = {{The Dukes of Moscow}}, date = {2020-03-26}, organization = {VMWare Carbon Black}, url = {https://www.carbonblack.com/2020/03/26/the-dukes-of-moscow/}, language = {English}, urldate = {2020-05-18} } The Dukes of Moscow
Cobalt Strike LiteDuke MiniDuke OnionDuke PolyglotDuke PowerDuke
2020SecureworksSecureWorks
@online{secureworks:2020:iron:59396c7, author = {SecureWorks}, title = {{IRON HEMLOCK}}, date = {2020}, organization = {Secureworks}, url = {https://www.secureworks.com/research/threat-profiles/iron-hemlock}, language = {English}, urldate = {2020-05-23} } IRON HEMLOCK
FatDuke MiniDuke OnionDuke PolyglotDuke APT29
2014-11-15Contagio DumpMila Parkour
@online{parkour:20141115:onionduke:6c548c4, author = {Mila Parkour}, title = {{OnionDuke samples}}, date = {2014-11-15}, organization = {Contagio Dump}, url = {http://contagiodump.blogspot.com/2014/11/onionduke-samples.html}, language = {English}, urldate = {2019-12-20} } OnionDuke samples
OnionDuke
2014-11-14F-SecureF-Secure Labs
@online{labs:20141114:onionduke:dc56d5c, author = {F-Secure Labs}, title = {{OnionDuke: APT Attacks Via the Tor Network}}, date = {2014-11-14}, organization = {F-Secure}, url = {https://www.f-secure.com/weblog/archives/00002764.html}, language = {English}, urldate = {2020-01-09} } OnionDuke: APT Attacks Via the Tor Network
OnionDuke
Yara Rules
[TLP:WHITE] win_onionduke_auto (20230125 | Detects win.onionduke.)
rule win_onionduke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-01-25"
        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 = "20230124"
        malpedia_hash = "2ee0eebba83dce3d019a90519f2f972c0fcf9686"
        malpedia_version = "20230125"
        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 = { 3bc8 7424 8b55fc 53 57 52 50 }
            // n = 7, score = 200
            //   3bc8                 | cmp                 ecx, eax
            //   7424                 | je                  0x26
            //   8b55fc               | mov                 edx, dword ptr [ebp - 4]
            //   53                   | push                ebx
            //   57                   | push                edi
            //   52                   | push                edx
            //   50                   | push                eax

        $sequence_1 = { 8b7de8 8b55d4 83ff10 7303 8d55d4 8a00 33c9 }
            // n = 7, score = 200
            //   8b7de8               | mov                 edi, dword ptr [ebp - 0x18]
            //   8b55d4               | mov                 edx, dword ptr [ebp - 0x2c]
            //   83ff10               | cmp                 edi, 0x10
            //   7303                 | jae                 5
            //   8d55d4               | lea                 edx, [ebp - 0x2c]
            //   8a00                 | mov                 al, byte ptr [eax]
            //   33c9                 | xor                 ecx, ecx

        $sequence_2 = { 8d7130 90 8d56d0 3b5508 0f84fe000000 33c9 }
            // n = 6, score = 200
            //   8d7130               | lea                 esi, [ecx + 0x30]
            //   90                   | nop                 
            //   8d56d0               | lea                 edx, [esi - 0x30]
            //   3b5508               | cmp                 edx, dword ptr [ebp + 8]
            //   0f84fe000000         | je                  0x104
            //   33c9                 | xor                 ecx, ecx

        $sequence_3 = { 8b4e44 8b09 85d2 7405 4a }
            // n = 5, score = 200
            //   8b4e44               | mov                 ecx, dword ptr [esi + 0x44]
            //   8b09                 | mov                 ecx, dword ptr [ecx]
            //   85d2                 | test                edx, edx
            //   7405                 | je                  7
            //   4a                   | dec                 edx

        $sequence_4 = { 2bc2 8d440002 50 6a00 57 }
            // n = 5, score = 200
            //   2bc2                 | sub                 eax, edx
            //   8d440002             | lea                 eax, [eax + eax + 2]
            //   50                   | push                eax
            //   6a00                 | push                0
            //   57                   | push                edi

        $sequence_5 = { eb37 3b4b08 7507 8bcb e8???????? 8b7304 }
            // n = 6, score = 200
            //   eb37                 | jmp                 0x39
            //   3b4b08               | cmp                 ecx, dword ptr [ebx + 8]
            //   7507                 | jne                 9
            //   8bcb                 | mov                 ecx, ebx
            //   e8????????           |                     
            //   8b7304               | mov                 esi, dword ptr [ebx + 4]

        $sequence_6 = { 50 53 e8???????? 83c40c 33c9 eb08 }
            // n = 6, score = 200
            //   50                   | push                eax
            //   53                   | push                ebx
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   33c9                 | xor                 ecx, ecx
            //   eb08                 | jmp                 0xa

        $sequence_7 = { 8d5fec c7070f000000 c60300 3bd1 745b 833f10 720e }
            // n = 7, score = 200
            //   8d5fec               | lea                 ebx, [edi - 0x14]
            //   c7070f000000         | mov                 dword ptr [edi], 0xf
            //   c60300               | mov                 byte ptr [ebx], 0
            //   3bd1                 | cmp                 edx, ecx
            //   745b                 | je                  0x5d
            //   833f10               | cmp                 dword ptr [edi], 0x10
            //   720e                 | jb                  0x10

        $sequence_8 = { 895114 895910 668901 89566c 33d2 }
            // n = 5, score = 200
            //   895114               | mov                 dword ptr [ecx + 0x14], edx
            //   895910               | mov                 dword ptr [ecx + 0x10], ebx
            //   668901               | mov                 word ptr [ecx], ax
            //   89566c               | mov                 dword ptr [esi + 0x6c], edx
            //   33d2                 | xor                 edx, edx

        $sequence_9 = { 80fa05 7704 0457 eb02 32c0 884601 }
            // n = 6, score = 200
            //   80fa05               | cmp                 dl, 5
            //   7704                 | ja                  6
            //   0457                 | add                 al, 0x57
            //   eb02                 | jmp                 4
            //   32c0                 | xor                 al, al
            //   884601               | mov                 byte ptr [esi + 1], al

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