SYMBOLCOMMON_NAMEaka. SYNONYMS
win.onionduke (Back to overview)

OnionDuke

Actor(s): APT 29


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 APT 29
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 (20220516 | Detects win.onionduke.)
rule win_onionduke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-05-16"
        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 = "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 = { 5b 8be5 5d c20c00 8b13 8b4204 }
            // n = 6, score = 200
            //   5b                   | pop                 ebx
            //   8be5                 | mov                 esp, ebp
            //   5d                   | pop                 ebp
            //   c20c00               | ret                 0xc
            //   8b13                 | mov                 edx, dword ptr [ebx]
            //   8b4204               | mov                 eax, dword ptr [edx + 4]

        $sequence_1 = { 7303 8d45d4 8b4d18 8b5514 51 8b4d10 52 }
            // n = 7, score = 200
            //   7303                 | jae                 5
            //   8d45d4               | lea                 eax, [ebp - 0x2c]
            //   8b4d18               | mov                 ecx, dword ptr [ebp + 0x18]
            //   8b5514               | mov                 edx, dword ptr [ebp + 0x14]
            //   51                   | push                ecx
            //   8b4d10               | mov                 ecx, dword ptr [ebp + 0x10]
            //   52                   | push                edx

        $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 = { 8946e0 8b57e4 8956e4 894fe0 894fe4 eb02 }
            // n = 6, score = 200
            //   8946e0               | mov                 dword ptr [esi - 0x20], eax
            //   8b57e4               | mov                 edx, dword ptr [edi - 0x1c]
            //   8956e4               | mov                 dword ptr [esi - 0x1c], edx
            //   894fe0               | mov                 dword ptr [edi - 0x20], ecx
            //   894fe4               | mov                 dword ptr [edi - 0x1c], ecx
            //   eb02                 | jmp                 4

        $sequence_4 = { 8bec 57 8b7d0c 8d443f01 }
            // n = 4, score = 200
            //   8bec                 | mov                 ebp, esp
            //   57                   | push                edi
            //   8b7d0c               | mov                 edi, dword ptr [ebp + 0xc]
            //   8d443f01             | lea                 eax, [edi + edi + 1]

        $sequence_5 = { 897e4c 6689463c 837e3408 720c 8b4e20 51 }
            // n = 6, score = 200
            //   897e4c               | mov                 dword ptr [esi + 0x4c], edi
            //   6689463c             | mov                 word ptr [esi + 0x3c], ax
            //   837e3408             | cmp                 dword ptr [esi + 0x34], 8
            //   720c                 | jb                  0xe
            //   8b4e20               | mov                 ecx, dword ptr [esi + 0x20]
            //   51                   | push                ecx

        $sequence_6 = { 8d4304 7202 8b00 8b4df4 }
            // n = 4, score = 200
            //   8d4304               | lea                 eax, [ebx + 4]
            //   7202                 | jb                  4
            //   8b00                 | mov                 eax, dword ptr [eax]
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]

        $sequence_7 = { 40 3b06 72e3 8b45fc 50 e8???????? }
            // n = 6, score = 200
            //   40                   | inc                 eax
            //   3b06                 | cmp                 eax, dword ptr [esi]
            //   72e3                 | jb                  0xffffffe5
            //   8b45fc               | mov                 eax, dword ptr [ebp - 4]
            //   50                   | push                eax
            //   e8????????           |                     

        $sequence_8 = { 83c638 89450c 83c738 e9???????? 8b4df4 64890d00000000 }
            // n = 6, score = 200
            //   83c638               | add                 esi, 0x38
            //   89450c               | mov                 dword ptr [ebp + 0xc], eax
            //   83c738               | add                 edi, 0x38
            //   e9????????           |                     
            //   8b4df4               | mov                 ecx, dword ptr [ebp - 0xc]
            //   64890d00000000       | mov                 dword ptr fs:[0], ecx

        $sequence_9 = { 3bf0 7414 8b7d10 c746140f000000 }
            // n = 4, score = 200
            //   3bf0                 | cmp                 esi, eax
            //   7414                 | je                  0x16
            //   8b7d10               | mov                 edi, dword ptr [ebp + 0x10]
            //   c746140f000000       | mov                 dword ptr [esi + 0x14], 0xf

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