SYMBOLCOMMON_NAMEaka. SYNONYMS
win.oni (Back to overview)

Oni

VTCollection    

Ransomware.

References
2017-10-31Bleeping ComputerLawrence Abrams
ONI Ransomware Used in Month-Long Attacks Against Japanese Companies
Oni
Yara Rules
[TLP:WHITE] win_oni_auto (20260504 | Detects win.oni.)
rule win_oni_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.oni."
        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.oni"
        malpedia_rule_date = "20260422"
        malpedia_hash = "a182e35da64e6d71cb55f125c4d4225196523f14"
        malpedia_version = "20260504"
        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 = { 7253 83f923 7753 8bc8 51 e8???????? }
            // n = 6, score = 200
            //   7253                 | jb                  0x55
            //   83f923               | cmp                 ecx, 0x23
            //   7753                 | ja                  0x55
            //   8bc8                 | mov                 ecx, eax
            //   51                   | push                ecx
            //   e8????????           |                     

        $sequence_1 = { 50 ff15???????? 85c0 740f e8???????? 6a01 ff15???????? }
            // n = 7, score = 200
            //   50                   | push                eax
            //   ff15????????         |                     
            //   85c0                 | test                eax, eax
            //   740f                 | je                  0x11
            //   e8????????           |                     
            //   6a01                 | push                1
            //   ff15????????         |                     

        $sequence_2 = { 83c404 8b85dcfdffff c785c4fdffff0f000000 c785c0fdffff00000000 c685b0fdffff00 }
            // n = 5, score = 200
            //   83c404               | add                 esp, 4
            //   8b85dcfdffff         | mov                 eax, dword ptr [ebp - 0x224]
            //   c785c4fdffff0f000000     | mov    dword ptr [ebp - 0x23c], 0xf
            //   c785c0fdffff00000000     | mov    dword ptr [ebp - 0x240], 0
            //   c685b0fdffff00       | mov                 byte ptr [ebp - 0x250], 0

        $sequence_3 = { c3 c744243c0f000000 c744243800000000 c644242800 }
            // n = 4, score = 200
            //   c3                   | ret                 
            //   c744243c0f000000     | mov                 dword ptr [esp + 0x3c], 0xf
            //   c744243800000000     | mov                 dword ptr [esp + 0x38], 0
            //   c644242800           | mov                 byte ptr [esp + 0x28], 0

        $sequence_4 = { 8955ec 3b5310 0f8261ffffff 8d4df0 e8???????? }
            // n = 5, score = 200
            //   8955ec               | mov                 dword ptr [ebp - 0x14], edx
            //   3b5310               | cmp                 edx, dword ptr [ebx + 0x10]
            //   0f8261ffffff         | jb                  0xffffff67
            //   8d4df0               | lea                 ecx, [ebp - 0x10]
            //   e8????????           |                     

        $sequence_5 = { 8d4ff8 395310 0f869f000000 837b1410 7204 8b03 eb02 }
            // n = 7, score = 200
            //   8d4ff8               | lea                 ecx, [edi - 8]
            //   395310               | cmp                 dword ptr [ebx + 0x10], edx
            //   0f869f000000         | jbe                 0xa5
            //   837b1410             | cmp                 dword ptr [ebx + 0x14], 0x10
            //   7204                 | jb                  6
            //   8b03                 | mov                 eax, dword ptr [ebx]
            //   eb02                 | jmp                 4

        $sequence_6 = { 6aff 40 c745dc0f000000 50 8d45e0 c745d800000000 50 }
            // n = 7, score = 200
            //   6aff                 | push                -1
            //   40                   | inc                 eax
            //   c745dc0f000000       | mov                 dword ptr [ebp - 0x24], 0xf
            //   50                   | push                eax
            //   8d45e0               | lea                 eax, [ebp - 0x20]
            //   c745d800000000       | mov                 dword ptr [ebp - 0x28], 0
            //   50                   | push                eax

        $sequence_7 = { c645b400 83f810 723e 8b4dcc 40 3d00100000 722a }
            // n = 7, score = 200
            //   c645b400             | mov                 byte ptr [ebp - 0x4c], 0
            //   83f810               | cmp                 eax, 0x10
            //   723e                 | jb                  0x40
            //   8b4dcc               | mov                 ecx, dword ptr [ebp - 0x34]
            //   40                   | inc                 eax
            //   3d00100000           | cmp                 eax, 0x1000
            //   722a                 | jb                  0x2c

        $sequence_8 = { 7241 8b8d98fdffff 40 3d00100000 722a f6c11f }
            // n = 6, score = 200
            //   7241                 | jb                  0x43
            //   8b8d98fdffff         | mov                 ecx, dword ptr [ebp - 0x268]
            //   40                   | inc                 eax
            //   3d00100000           | cmp                 eax, 0x1000
            //   722a                 | jb                  0x2c
            //   f6c11f               | test                cl, 0x1f

        $sequence_9 = { 2bc8 83f904 0f8231010000 83f923 0f872d010000 }
            // n = 5, score = 200
            //   2bc8                 | sub                 ecx, eax
            //   83f904               | cmp                 ecx, 4
            //   0f8231010000         | jb                  0x137
            //   83f923               | cmp                 ecx, 0x23
            //   0f872d010000         | ja                  0x133

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