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-30 ⋅ Medium walmartglobaltech ⋅ Jason Reaves
Gazavat / Expiro DMSniff connection and DGA analysis
DMSniff Expiro Gazavat
2019-03-13 ⋅ Flashpoint ⋅ Jason Reaves, Joshua Platt
‘DMSniff’ POS Malware Actively Leveraged to Target Small-, Medium-Sized Businesses
DMSniff
Yara Rules
[TLP:WHITE] win_dmsniff_auto (20260917 | Detects win.dmsniff.)
rule win_dmsniff_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        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 = "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 = { 50 8b10 ff5220 89c7 09ff 0f8563010000 }
            // n = 6, score = 500
            //   50                   | push                eax
            //   8b10                 | mov                 edx, dword ptr [eax]
            //   ff5220               | call                dword ptr [edx + 0x20]
            //   89c7                 | mov                 edi, eax
            //   09ff                 | or                  edi, edi
            //   0f8563010000         | jne                 0x169

        $sequence_1 = { 68???????? e8???????? 50 68???????? e8???????? 83c40c 5f }
            // n = 7, score = 500
            //   68????????           |                     
            //   e8????????           |                     
            //   50                   | push                eax
            //   68????????           |                     
            //   e8????????           |                     
            //   83c40c               | add                 esp, 0xc
            //   5f                   | pop                 edi

        $sequence_2 = { 837df801 7507 b802000000 eb03 }
            // n = 4, score = 500
            //   837df801             | cmp                 dword ptr [ebp - 8], 1
            //   7507                 | jne                 9
            //   b802000000           | mov                 eax, 2
            //   eb03                 | jmp                 5

        $sequence_3 = { 68???????? 6a01 6a00 68???????? e8???????? 89c7 }
            // n = 6, score = 500
            //   68????????           |                     
            //   6a01                 | push                1
            //   6a00                 | push                0
            //   68????????           |                     
            //   e8????????           |                     
            //   89c7                 | mov                 edi, eax

        $sequence_4 = { 8945f8 50 e8???????? 89c3 81e3ff000000 89de }
            // n = 6, score = 500
            //   8945f8               | mov                 dword ptr [ebp - 8], eax
            //   50                   | push                eax
            //   e8????????           |                     
            //   89c3                 | mov                 ebx, eax
            //   81e3ff000000         | and                 ebx, 0xff
            //   89de                 | mov                 esi, ebx

        $sequence_5 = { e8???????? 83c41c 89c7 09ff 7504 31c0 }
            // n = 6, score = 500
            //   e8????????           |                     
            //   83c41c               | add                 esp, 0x1c
            //   89c7                 | mov                 edi, eax
            //   09ff                 | or                  edi, edi
            //   7504                 | jne                 6
            //   31c0                 | xor                 eax, eax

        $sequence_6 = { 57 8b5d0c 8b7510 ff7508 }
            // n = 4, score = 500
            //   57                   | push                edi
            //   8b5d0c               | mov                 ebx, dword ptr [ebp + 0xc]
            //   8b7510               | mov                 esi, dword ptr [ebp + 0x10]
            //   ff7508               | push                dword ptr [ebp + 8]

        $sequence_7 = { eb10 837df801 7507 b802000000 }
            // n = 4, score = 500
            //   eb10                 | jmp                 0x12
            //   837df801             | cmp                 dword ptr [ebp - 8], 1
            //   7507                 | jne                 9
            //   b802000000           | mov                 eax, 2

        $sequence_8 = { 89f0 48 c6040300 eb04 }
            // n = 4, score = 500
            //   89f0                 | mov                 eax, esi
            //   48                   | dec                 eax
            //   c6040300             | mov                 byte ptr [ebx + eax], 0
            //   eb04                 | jmp                 6

        $sequence_9 = { d92c24 83c404 6a00 6a00 68???????? }
            // n = 5, score = 500
            //   d92c24               | fldcw               word ptr [esp]
            //   83c404               | add                 esp, 4
            //   6a00                 | push                0
            //   6a00                 | push                0
            //   68????????           |                     

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