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

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2022-11-21"
        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 = "20221118"
        malpedia_hash = "e0702e2e6d1d00da65c8a29a4ebacd0a4c59e1af"
        malpedia_version = "20221125"
        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 = { 66890477 85f6 741c 8d9b00000000 }
            // n = 4, score = 200
            //   66890477             | mov                 word ptr [edi + esi*2], ax
            //   85f6                 | test                esi, esi
            //   741c                 | je                  0x1e
            //   8d9b00000000         | lea                 ebx, [ebx]

        $sequence_1 = { c745fc00000000 8b4e04 85c9 7408 8b01 8b10 }
            // n = 6, score = 200
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   8b4e04               | mov                 ecx, dword ptr [esi + 4]
            //   85c9                 | test                ecx, ecx
            //   7408                 | je                  0xa
            //   8b01                 | mov                 eax, dword ptr [ecx]
            //   8b10                 | mov                 edx, dword ptr [eax]

        $sequence_2 = { 3b33 7437 57 837e1c10 8b3e 720c }
            // n = 6, score = 200
            //   3b33                 | cmp                 esi, dword ptr [ebx]
            //   7437                 | je                  0x39
            //   57                   | push                edi
            //   837e1c10             | cmp                 dword ptr [esi + 0x1c], 0x10
            //   8b3e                 | mov                 edi, dword ptr [esi]
            //   720c                 | jb                  0xe

        $sequence_3 = { 2bcb 51 8d4dd4 e8???????? }
            // n = 4, score = 200
            //   2bcb                 | sub                 ecx, ebx
            //   51                   | push                ecx
            //   8d4dd4               | lea                 ecx, [ebp - 0x2c]
            //   e8????????           |                     

        $sequence_4 = { 83c408 5f 895e20 895e24 895e28 837e1810 }
            // n = 6, score = 200
            //   83c408               | add                 esp, 8
            //   5f                   | pop                 edi
            //   895e20               | mov                 dword ptr [esi + 0x20], ebx
            //   895e24               | mov                 dword ptr [esi + 0x24], ebx
            //   895e28               | mov                 dword ptr [esi + 0x28], ebx
            //   837e1810             | cmp                 dword ptr [esi + 0x18], 0x10

        $sequence_5 = { 66890e 8bc8 8d7902 8d642400 668b11 83c102 663bd3 }
            // n = 7, score = 200
            //   66890e               | mov                 word ptr [esi], cx
            //   8bc8                 | mov                 ecx, eax
            //   8d7902               | lea                 edi, [ecx + 2]
            //   8d642400             | lea                 esp, [esp]
            //   668b11               | mov                 dx, word ptr [ecx]
            //   83c102               | add                 ecx, 2
            //   663bd3               | cmp                 dx, bx

        $sequence_6 = { 8d4604 50 83c8ff 8d7dd4 c745fc00000000 }
            // n = 5, score = 200
            //   8d4604               | lea                 eax, [esi + 4]
            //   50                   | push                eax
            //   83c8ff               | or                  eax, 0xffffffff
            //   8d7dd4               | lea                 edi, [ebp - 0x2c]
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0

        $sequence_7 = { 5e c3 33c0 894608 8b4608 }
            // n = 5, score = 200
            //   5e                   | pop                 esi
            //   c3                   | ret                 
            //   33c0                 | xor                 eax, eax
            //   894608               | mov                 dword ptr [esi + 8], eax
            //   8b4608               | mov                 eax, dword ptr [esi + 8]

        $sequence_8 = { c21000 8b4b04 8b01 8b502c ffd2 8bf0 }
            // n = 6, score = 200
            //   c21000               | ret                 0x10
            //   8b4b04               | mov                 ecx, dword ptr [ebx + 4]
            //   8b01                 | mov                 eax, dword ptr [ecx]
            //   8b502c               | mov                 edx, dword ptr [eax + 0x2c]
            //   ffd2                 | call                edx
            //   8bf0                 | mov                 esi, eax

        $sequence_9 = { 8d4202 c645fc04 8945ec 668b02 83c202 663bc3 75f5 }
            // n = 7, score = 200
            //   8d4202               | lea                 eax, [edx + 2]
            //   c645fc04             | mov                 byte ptr [ebp - 4], 4
            //   8945ec               | mov                 dword ptr [ebp - 0x14], eax
            //   668b02               | mov                 ax, word ptr [edx]
            //   83c202               | add                 edx, 2
            //   663bc3               | cmp                 ax, bx
            //   75f5                 | jne                 0xfffffff7

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