SYMBOLCOMMON_NAMEaka. SYNONYMS
win.ondritols (Back to overview)

Ondritols

aka: Onedrivetools
VTCollection    

According to Symantec, this malware has been deployed against IT services companies in the U.S. and Europe. A multi-stage backdoor, the first stage is a downloader that authenticates to Microsoft Graph API and downloads the second stage payload from OneDrive and executes it. The main payload will download a publicly available file from GitHub. It will then create a folder in OneDrive named deviceId_n_<ip address> for each infected machine and upload a file to OneDrive to signal the attackers the status of a new infection.

References
2024-08-07 ⋅ Symantec ⋅ Threat Hunter Team
Cloud Cover: How Malicious Actors Are Leveraging Cloud Services
GoGra Grager MOONTAG Ondritols TONERJAM
Yara Rules
[TLP:WHITE] win_ondritols_auto (20260917 | Detects win.ondritols.)
rule win_ondritols_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.ondritols."
        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.ondritols"
        malpedia_rule_date = "20260916"
        malpedia_hash = "53a643781c18e08f4a50949af60172d837a0b6f6"
        malpedia_version = "20260917"
        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 = { e8???????? 83c414 e8???????? 83c040 50 e8???????? 83c404 }
            // n = 7, score = 100
            //   e8????????           |                     
            //   83c414               | add                 esp, 0x14
            //   e8????????           |                     
            //   83c040               | add                 eax, 0x40
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4

        $sequence_1 = { 50 e8???????? 83c404 8b8d28ffffff c7848d60ffffff00000000 c7852cffffff00000000 8b956cffffff }
            // n = 7, score = 100
            //   50                   | push                eax
            //   e8????????           |                     
            //   83c404               | add                 esp, 4
            //   8b8d28ffffff         | mov                 ecx, dword ptr [ebp - 0xd8]
            //   c7848d60ffffff00000000     | mov    dword ptr [ebp + ecx*4 - 0xa0], 0
            //   c7852cffffff00000000     | mov    dword ptr [ebp - 0xd4], 0
            //   8b956cffffff         | mov                 edx, dword ptr [ebp - 0x94]

        $sequence_2 = { 894108 8b45ec c7400c00000000 8b45ec 8b4808 c1e118 c1f918 }
            // n = 7, score = 100
            //   894108               | mov                 dword ptr [ecx + 8], eax
            //   8b45ec               | mov                 eax, dword ptr [ebp - 0x14]
            //   c7400c00000000       | mov                 dword ptr [eax + 0xc], 0
            //   8b45ec               | mov                 eax, dword ptr [ebp - 0x14]
            //   8b4808               | mov                 ecx, dword ptr [eax + 8]
            //   c1e118               | shl                 ecx, 0x18
            //   c1f918               | sar                 ecx, 0x18

        $sequence_3 = { 395804 7415 8d4900 8b4804 8919 8b5004 }
            // n = 6, score = 100
            //   395804               | cmp                 dword ptr [eax + 4], ebx
            //   7415                 | je                  0x17
            //   8d4900               | lea                 ecx, [ecx]
            //   8b4804               | mov                 ecx, dword ptr [eax + 4]
            //   8919                 | mov                 dword ptr [ecx], ebx
            //   8b5004               | mov                 edx, dword ptr [eax + 4]

        $sequence_4 = { 8d9518ffffff 8910 89b530ffffff 899d2cffffff 889d1cffffff 8d8d78ffffff 51 }
            // n = 7, score = 100
            //   8d9518ffffff         | lea                 edx, [ebp - 0xe8]
            //   8910                 | mov                 dword ptr [eax], edx
            //   89b530ffffff         | mov                 dword ptr [ebp - 0xd0], esi
            //   899d2cffffff         | mov                 dword ptr [ebp - 0xd4], ebx
            //   889d1cffffff         | mov                 byte ptr [ebp - 0xe4], bl
            //   8d8d78ffffff         | lea                 ecx, [ebp - 0x88]
            //   51                   | push                ecx

        $sequence_5 = { 52 6a01 8b4508 50 8b4dec e8???????? 8b8df4feffff }
            // n = 7, score = 100
            //   52                   | push                edx
            //   6a01                 | push                1
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   50                   | push                eax
            //   8b4dec               | mov                 ecx, dword ptr [ebp - 0x14]
            //   e8????????           |                     
            //   8b8df4feffff         | mov                 ecx, dword ptr [ebp - 0x10c]

        $sequence_6 = { 83c40c 8b06 8b4804 8b4c3138 33ff 897dec 8975e4 }
            // n = 7, score = 100
            //   83c40c               | add                 esp, 0xc
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8b4804               | mov                 ecx, dword ptr [eax + 4]
            //   8b4c3138             | mov                 ecx, dword ptr [ecx + esi + 0x38]
            //   33ff                 | xor                 edi, edi
            //   897dec               | mov                 dword ptr [ebp - 0x14], edi
            //   8975e4               | mov                 dword ptr [ebp - 0x1c], esi

        $sequence_7 = { 8b9518ffffff 8b4204 8d8d70ffffff c7840518ffffffd4534600 51 c78570ffffffdc534500 e8???????? }
            // n = 7, score = 100
            //   8b9518ffffff         | mov                 edx, dword ptr [ebp - 0xe8]
            //   8b4204               | mov                 eax, dword ptr [edx + 4]
            //   8d8d70ffffff         | lea                 ecx, [ebp - 0x90]
            //   c7840518ffffffd4534600     | mov    dword ptr [ebp + eax - 0xe8], 0x4653d4
            //   51                   | push                ecx
            //   c78570ffffffdc534500     | mov    dword ptr [ebp - 0x90], 0x4553dc
            //   e8????????           |                     

        $sequence_8 = { 7504 c6451400 8b45e8 8b4d08 894850 8b45e8 8b4d0c }
            // n = 7, score = 100
            //   7504                 | jne                 6
            //   c6451400             | mov                 byte ptr [ebp + 0x14], 0
            //   8b45e8               | mov                 eax, dword ptr [ebp - 0x18]
            //   8b4d08               | mov                 ecx, dword ptr [ebp + 8]
            //   894850               | mov                 dword ptr [eax + 0x50], ecx
            //   8b45e8               | mov                 eax, dword ptr [ebp - 0x18]
            //   8b4d0c               | mov                 ecx, dword ptr [ebp + 0xc]

        $sequence_9 = { 3bc3 7519 8b45e0 83f801 7305 }
            // n = 5, score = 100
            //   3bc3                 | cmp                 eax, ebx
            //   7519                 | jne                 0x1b
            //   8b45e0               | mov                 eax, dword ptr [ebp - 0x20]
            //   83f801               | cmp                 eax, 1
            //   7305                 | jae                 7

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