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

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2021-06-10"
        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 = "20210604"
        malpedia_hash = "be09d5d71e77373c0f538068be31a2ad4c69cfbd"
        malpedia_version = "20210616"
        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 = { 837d0800 0f848d000000 8b4e24 2b4e20 }
            // n = 4, score = 200
            //   837d0800             | cmp                 dword ptr [ebp + 8], 0
            //   0f848d000000         | je                  0x93
            //   8b4e24               | mov                 ecx, dword ptr [esi + 0x24]
            //   2b4e20               | sub                 ecx, dword ptr [esi + 0x20]

        $sequence_1 = { 8b45e4 40 50 8d4dd4 51 53 }
            // n = 6, score = 200
            //   8b45e4               | mov                 eax, dword ptr [ebp - 0x1c]
            //   40                   | inc                 eax
            //   50                   | push                eax
            //   8d4dd4               | lea                 ecx, dword ptr [ebp - 0x2c]
            //   51                   | push                ecx
            //   53                   | push                ebx

        $sequence_2 = { 7410 47 3bfb 72ac }
            // n = 4, score = 200
            //   7410                 | je                  0x12
            //   47                   | inc                 edi
            //   3bfb                 | cmp                 edi, ebx
            //   72ac                 | jb                  0xffffffae

        $sequence_3 = { 894204 837e1c10 720c 8b4e08 51 e8???????? }
            // n = 6, score = 200
            //   894204               | mov                 dword ptr [edx + 4], eax
            //   837e1c10             | cmp                 dword ptr [esi + 0x1c], 0x10
            //   720c                 | jb                  0xe
            //   8b4e08               | mov                 ecx, dword ptr [esi + 8]
            //   51                   | push                ecx
            //   e8????????           |                     

        $sequence_4 = { 85c0 7402 33ff 837d1400 }
            // n = 4, score = 200
            //   85c0                 | test                eax, eax
            //   7402                 | je                  4
            //   33ff                 | xor                 edi, edi
            //   837d1400             | cmp                 dword ptr [ebp + 0x14], 0

        $sequence_5 = { 75f9 2bc2 33c9 40 ba02000000 }
            // n = 5, score = 200
            //   75f9                 | jne                 0xfffffffb
            //   2bc2                 | sub                 eax, edx
            //   33c9                 | xor                 ecx, ecx
            //   40                   | inc                 eax
            //   ba02000000           | mov                 edx, 2

        $sequence_6 = { eb02 32c0 c0e104 0ac8 8b4508 8b10 880c16 }
            // n = 7, score = 200
            //   eb02                 | jmp                 4
            //   32c0                 | xor                 al, al
            //   c0e104               | shl                 cl, 4
            //   0ac8                 | or                  cl, al
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   8b10                 | mov                 edx, dword ptr [eax]
            //   880c16               | mov                 byte ptr [esi + edx], cl

        $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 = { 397de8 7303 8d45d4 8bd6 2bd0 8a08 }
            // n = 6, score = 200
            //   397de8               | cmp                 dword ptr [ebp - 0x18], edi
            //   7303                 | jae                 5
            //   8d45d4               | lea                 eax, dword ptr [ebp - 0x2c]
            //   8bd6                 | mov                 edx, esi
            //   2bd0                 | sub                 edx, eax
            //   8a08                 | mov                 cl, byte ptr [eax]

        $sequence_9 = { 8b7508 a1???????? 8945f0 33db 895dfc c706???????? ba07000000 }
            // n = 7, score = 200
            //   8b7508               | mov                 esi, dword ptr [ebp + 8]
            //   a1????????           |                     
            //   8945f0               | mov                 dword ptr [ebp - 0x10], eax
            //   33db                 | xor                 ebx, ebx
            //   895dfc               | mov                 dword ptr [ebp - 4], ebx
            //   c706????????         |                     
            //   ba07000000           | mov                 edx, 7

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