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 (20201014 | autogenerated rule brought to you by yara-signator)
rule win_onionduke_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2020-10-14"
        version = "1"
        description = "autogenerated rule brought to you by yara-signator"
        tool = "yara-signator v0.5.0"
        tool_config = "callsandjumps;datarefs;binvalue"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.onionduke"
        malpedia_rule_date = "20201014"
        malpedia_hash = "a7e3bd57eaf12bf3ea29a863c041091ba3af9ac9"
        malpedia_version = "20201014"
        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 = { 51 e8???????? 83c404 837b3408 8d4320 }
            // n = 5, score = 200
            //   51                   | push                ecx
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   837b3408             | cmp                 dword ptr [ebx + 0x34], 8
            //   8d4320               | lea                 eax, [ebx + 0x20]

        $sequence_1 = { 8bf3 c645fc03 e8???????? c645fc01 837de810 720c }
            // n = 6, score = 200
            //   8bf3                 | mov                 esi, ebx
            //   c645fc03             | mov                 byte ptr [ebp - 4], 3
            //   e8????????           |                     
            //   c645fc01             | mov                 byte ptr [ebp - 4], 1
            //   837de810             | cmp                 dword ptr [ebp - 0x18], 0x10
            //   720c                 | jb                  0xe

        $sequence_2 = { ffd2 3bc3 8b06 8bce }
            // n = 4, score = 200
            //   ffd2                 | call                edx
            //   3bc3                 | cmp                 eax, ebx
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8bce                 | mov                 ecx, esi

        $sequence_3 = { 894ed0 8b56e0 8957e0 8b56e4 8957e4 894ee0 894ee4 }
            // n = 7, score = 200
            //   894ed0               | mov                 dword ptr [esi - 0x30], ecx
            //   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
            //   894ee4               | mov                 dword ptr [esi - 0x1c], ecx

        $sequence_4 = { 83c404 6a00 6a00 56 57 6a00 }
            // n = 6, score = 200
            //   83c404               | add                 esp, 4
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   56                   | push                esi
            //   57                   | push                edi
            //   6a00                 | push                0

        $sequence_5 = { 84c9 75f4 5f 5e 5b }
            // n = 5, score = 200
            //   84c9                 | test                cl, cl
            //   75f4                 | jne                 0xfffffff6
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   5b                   | pop                 ebx

        $sequence_6 = { 6a01 ffd2 8b06 8b10 6a01 8bce ffd2 }
            // n = 7, score = 200
            //   6a01                 | push                1
            //   ffd2                 | call                edx
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8b10                 | mov                 edx, dword ptr [eax]
            //   6a01                 | push                1
            //   8bce                 | mov                 ecx, esi
            //   ffd2                 | call                edx

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

        $sequence_8 = { 33c5 50 8d45f4 64a300000000 8b450c 8d7830 }
            // n = 6, score = 200
            //   33c5                 | xor                 eax, ebp
            //   50                   | push                eax
            //   8d45f4               | lea                 eax, [ebp - 0xc]
            //   64a300000000         | mov                 dword ptr fs:[0], eax
            //   8b450c               | mov                 eax, dword ptr [ebp + 0xc]
            //   8d7830               | lea                 edi, [eax + 0x30]

        $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