SYMBOLCOMMON_NAMEaka. SYNONYMS
win.dmsniff (Back to overview)

DMSniff


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
2019-03-13FlashpointJason Reaves, Joshua Platt
@online{reaves:20190313:dmsniff:47a2734, author = {Jason Reaves and Joshua Platt}, title = {{‘DMSniff’ POS Malware Actively Leveraged to Target Small-, Medium-Sized Businesses}}, date = {2019-03-13}, organization = {Flashpoint}, url = {https://www.flashpoint-intel.com/blog/dmsniff-pos-malware-actively-leveraged-target-medium-sized-businesses/}, language = {English}, urldate = {2019-12-18} } ‘DMSniff’ POS Malware Actively Leveraged to Target Small-, Medium-Sized Businesses
DMSniff
Yara Rules
[TLP:WHITE] win_dmsniff_auto (20230407 | Detects win.dmsniff.)
rule win_dmsniff_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2023-03-28"
        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 = "20230328"
        malpedia_hash = "9d2d75cef573c1c2d861f5197df8f563b05a305d"
        malpedia_version = "20230407"
        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???????? 83c410 3dffff0000 0f8586010000 68???????? e8???????? }
            // n = 6, score = 400
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10
            //   3dffff0000           | cmp                 eax, 0xffff
            //   0f8586010000         | jne                 0x18c
            //   68????????           |                     
            //   e8????????           |                     

        $sequence_1 = { 68???????? e8???????? 6a01 50 8d95f8fdffff 52 }
            // n = 6, score = 400
            //   68????????           |                     
            //   e8????????           |                     
            //   6a01                 | push                1
            //   50                   | push                eax
            //   8d95f8fdffff         | lea                 edx, [ebp - 0x208]
            //   52                   | push                edx

        $sequence_2 = { d1e7 83c706 897dfc 83ff06 7476 0fbe4304 8845fb }
            // n = 7, score = 400
            //   d1e7                 | shl                 edi, 1
            //   83c706               | add                 edi, 6
            //   897dfc               | mov                 dword ptr [ebp - 4], edi
            //   83ff06               | cmp                 edi, 6
            //   7476                 | je                  0x78
            //   0fbe4304             | movsx               eax, byte ptr [ebx + 4]
            //   8845fb               | mov                 byte ptr [ebp - 5], al

        $sequence_3 = { 50 8d95f8fdffff 52 e8???????? 83c410 3dffff0000 0f859a050000 }
            // n = 7, score = 400
            //   50                   | push                eax
            //   8d95f8fdffff         | lea                 edx, [ebp - 0x208]
            //   52                   | push                edx
            //   e8????????           |                     
            //   83c410               | add                 esp, 0x10
            //   3dffff0000           | cmp                 eax, 0xffff
            //   0f859a050000         | jne                 0x5a0

        $sequence_4 = { ff15???????? 89c7 09ff 7425 }
            // n = 4, score = 400
            //   ff15????????         |                     
            //   89c7                 | mov                 edi, eax
            //   09ff                 | or                  edi, edi
            //   7425                 | je                  0x27

        $sequence_5 = { 39c6 761a 68???????? e8???????? 50 68???????? }
            // n = 6, score = 400
            //   39c6                 | cmp                 esi, eax
            //   761a                 | jbe                 0x1c
            //   68????????           |                     
            //   e8????????           |                     
            //   50                   | push                eax
            //   68????????           |                     

        $sequence_6 = { 89c6 83feff 0f84b5030000 8d85b0fbffff 50 56 }
            // n = 6, score = 400
            //   89c6                 | mov                 esi, eax
            //   83feff               | cmp                 esi, -1
            //   0f84b5030000         | je                  0x3bb
            //   8d85b0fbffff         | lea                 eax, [ebp - 0x450]
            //   50                   | push                eax
            //   56                   | push                esi

        $sequence_7 = { 0f855d060000 68???????? e8???????? 6a01 50 8d95f8fdffff }
            // n = 6, score = 400
            //   0f855d060000         | jne                 0x663
            //   68????????           |                     
            //   e8????????           |                     
            //   6a01                 | push                1
            //   50                   | push                eax
            //   8d95f8fdffff         | lea                 edx, [ebp - 0x208]

        $sequence_8 = { 56 57 8b5d14 6a00 6880000000 }
            // n = 5, score = 400
            //   56                   | push                esi
            //   57                   | push                edi
            //   8b5d14               | mov                 ebx, dword ptr [ebp + 0x14]
            //   6a00                 | push                0
            //   6880000000           | push                0x80

        $sequence_9 = { 81e3ff000000 89de 83c661 89f3 }
            // n = 4, score = 400
            //   81e3ff000000         | and                 ebx, 0xff
            //   89de                 | mov                 esi, ebx
            //   83c661               | add                 esi, 0x61
            //   89f3                 | mov                 ebx, esi

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