SYMBOLCOMMON_NAMEaka. SYNONYMS
win.dmsniff (Back to overview)

DMSniff

VTCollection    

DMSniff is a point-of-sale malware previously only privately sold. It has been used in breaches of small- and medium-sized businesses in the restaurant and entertainment industries. It uses a domain generation algorithm (DGA) to create lists of command-and-control domains on the fly.

References
2023-08-30Medium walmartglobaltechJason Reaves
Gazavat / Expiro DMSniff connection and DGA analysis
DMSniff Expiro Gazavat
2019-03-13FlashpointJason Reaves, Joshua Platt
‘DMSniff’ POS Malware Actively Leveraged to Target Small-, Medium-Sized Businesses
DMSniff
Yara Rules
[TLP:WHITE] win_dmsniff_auto (20260504 | Detects win.dmsniff.)
rule win_dmsniff_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-05-04"
        version = "1"
        description = "Detects win.dmsniff."
        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.dmsniff"
        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 = { eb15 47 39f7 72d3 ff45fc 8b45f4 3945fc }
            // n = 7, score = 500
            //   eb15                 | jmp                 0x17
            //   47                   | inc                 edi
            //   39f7                 | cmp                 edi, esi
            //   72d3                 | jb                  0xffffffd5
            //   ff45fc               | inc                 dword ptr [ebp - 4]
            //   8b45f4               | mov                 eax, dword ptr [ebp - 0xc]
            //   3945fc               | cmp                 dword ptr [ebp - 4], eax

        $sequence_1 = { 09ff 7413 81fe19000200 7507 be19010200 ebd9 31c0 }
            // n = 7, score = 500
            //   09ff                 | or                  edi, edi
            //   7413                 | je                  0x15
            //   81fe19000200         | cmp                 esi, 0x20019
            //   7507                 | jne                 9
            //   be19010200           | mov                 esi, 0x20119
            //   ebd9                 | jmp                 0xffffffdb
            //   31c0                 | xor                 eax, eax

        $sequence_2 = { 8b7510 ff7508 e8???????? 89c7 }
            // n = 4, score = 500
            //   8b7510               | mov                 esi, dword ptr [ebp + 0x10]
            //   ff7508               | push                dword ptr [ebp + 8]
            //   e8????????           |                     
            //   89c7                 | mov                 edi, eax

        $sequence_3 = { 57 be19000200 8d45fc 50 56 }
            // n = 5, score = 500
            //   57                   | push                edi
            //   be19000200           | mov                 esi, 0x20019
            //   8d45fc               | lea                 eax, [ebp - 4]
            //   50                   | push                eax
            //   56                   | push                esi

        $sequence_4 = { 8945f0 50 e8???????? 89c3 81e3ff000000 89de 83c661 }
            // n = 7, score = 500
            //   8945f0               | mov                 dword ptr [ebp - 0x10], eax
            //   50                   | push                eax
            //   e8????????           |                     
            //   89c3                 | mov                 ebx, eax
            //   81e3ff000000         | and                 ebx, 0xff
            //   89de                 | mov                 esi, ebx
            //   83c661               | add                 esi, 0x61

        $sequence_5 = { 57 e8???????? 59 be0f000000 }
            // n = 4, score = 500
            //   57                   | push                edi
            //   e8????????           |                     
            //   59                   | pop                 ecx
            //   be0f000000           | mov                 esi, 0xf

        $sequence_6 = { 83bdfcfeffff40 7316 8bbdfcfeffff 89fe 46 89b5fcfeffff }
            // n = 6, score = 500
            //   83bdfcfeffff40       | cmp                 dword ptr [ebp - 0x104], 0x40
            //   7316                 | jae                 0x18
            //   8bbdfcfeffff         | mov                 edi, dword ptr [ebp - 0x104]
            //   89fe                 | mov                 esi, edi
            //   46                   | inc                 esi
            //   89b5fcfeffff         | mov                 dword ptr [ebp - 0x104], esi

        $sequence_7 = { 8945f4 50 e8???????? 89c3 }
            // n = 4, score = 500
            //   8945f4               | mov                 dword ptr [ebp - 0xc], eax
            //   50                   | push                eax
            //   e8????????           |                     
            //   89c3                 | mov                 ebx, eax

        $sequence_8 = { 761a 68???????? e8???????? 50 }
            // n = 4, score = 500
            //   761a                 | jbe                 0x1c
            //   68????????           |                     
            //   e8????????           |                     
            //   50                   | push                eax

        $sequence_9 = { 66810c240003 d92c24 83c404 6a00 }
            // n = 4, score = 500
            //   66810c240003         | or                  word ptr [esp], 0x300
            //   d92c24               | fldcw               word ptr [esp]
            //   83c404               | add                 esp, 4
            //   6a00                 | push                0

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