SYMBOLCOMMON_NAMEaka. SYNONYMS
win.xfsadm (Back to overview)

XFSADM

VTCollection    

There is no description at this point.

References
2019-07-12 ⋅ Twitter (@VK_intel) ⋅ Vitali Kremez
ATM Malware Pin/PAN Card Offline Skimmer XFSADM
XFSADM
2019-07-10 ⋅ Twitter (@r3c0nst) ⋅ Frank Boldewin
Tweet on XFS ATM malware
XFSADM
Yara Rules
[TLP:WHITE] win_xfsadm_auto (20260917 | Detects win.xfsadm.)
rule win_xfsadm_auto {

    meta:
        author = "Felix Bilstein - yara-signator at cocacoding dot com"
        date = "2026-09-17"
        version = "1"
        description = "Detects win.xfsadm."
        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.xfsadm"
        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 = { 8d55e4 c745fc00000000 8b07 52 51 8bcf ff5040 }
            // n = 7, score = 100
            //   8d55e4               | lea                 edx, [ebp - 0x1c]
            //   c745fc00000000       | mov                 dword ptr [ebp - 4], 0
            //   8b07                 | mov                 eax, dword ptr [edi]
            //   52                   | push                edx
            //   51                   | push                ecx
            //   8bcf                 | mov                 ecx, edi
            //   ff5040               | call                dword ptr [eax + 0x40]

        $sequence_1 = { 23c1 83c008 5d c3 8b04c54c0c4200 5d c3 }
            // n = 7, score = 100
            //   23c1                 | and                 eax, ecx
            //   83c008               | add                 eax, 8
            //   5d                   | pop                 ebp
            //   c3                   | ret                 
            //   8b04c54c0c4200       | mov                 eax, dword ptr [eax*8 + 0x420c4c]
            //   5d                   | pop                 ebp
            //   c3                   | ret                 

        $sequence_2 = { 660f7e8170feffff 660f73d804 660f7e8198feffff 660f73d804 660f7e81c0feffff 660f73d804 660f7e81e8feffff }
            // n = 7, score = 100
            //   660f7e8170feffff     | movd                dword ptr [ecx - 0x190], xmm0
            //   660f73d804           | psrldq              xmm0, 4
            //   660f7e8198feffff     | movd                dword ptr [ecx - 0x168], xmm0
            //   660f73d804           | psrldq              xmm0, 4
            //   660f7e81c0feffff     | movd                dword ptr [ecx - 0x140], xmm0
            //   660f73d804           | psrldq              xmm0, 4
            //   660f7e81e8feffff     | movd                dword ptr [ecx - 0x118], xmm0

        $sequence_3 = { 750a 57 8bc8 e8???????? eb67 8b4f08 85c9 }
            // n = 7, score = 100
            //   750a                 | jne                 0xc
            //   57                   | push                edi
            //   8bc8                 | mov                 ecx, eax
            //   e8????????           |                     
            //   eb67                 | jmp                 0x69
            //   8b4f08               | mov                 ecx, dword ptr [edi + 8]
            //   85c9                 | test                ecx, ecx

        $sequence_4 = { 74c3 5f 5e 48 5b 8be5 5d }
            // n = 7, score = 100
            //   74c3                 | je                  0xffffffc5
            //   5f                   | pop                 edi
            //   5e                   | pop                 esi
            //   48                   | dec                 eax
            //   5b                   | pop                 ebx
            //   8be5                 | mov                 esp, ebp
            //   5d                   | pop                 ebp

        $sequence_5 = { ff35???????? ff15???????? 6aec ff35???????? ff15???????? 0d00000800 50 }
            // n = 7, score = 100
            //   ff35????????         |                     
            //   ff15????????         |                     
            //   6aec                 | push                -0x14
            //   ff35????????         |                     
            //   ff15????????         |                     
            //   0d00000800           | or                  eax, 0x80000
            //   50                   | push                eax

        $sequence_6 = { 57 ff4e44 ff4e38 807e0400 8b5638 8b4608 8b3c90 }
            // n = 7, score = 100
            //   57                   | push                edi
            //   ff4e44               | dec                 dword ptr [esi + 0x44]
            //   ff4e38               | dec                 dword ptr [esi + 0x38]
            //   807e0400             | cmp                 byte ptr [esi + 4], 0
            //   8b5638               | mov                 edx, dword ptr [esi + 0x38]
            //   8b4608               | mov                 eax, dword ptr [esi + 8]
            //   8b3c90               | mov                 edi, dword ptr [eax + edx*4]

        $sequence_7 = { 50 ff15???????? ffb534fdffff 8bf0 ff15???????? 0fb60d???????? }
            // n = 6, score = 100
            //   50                   | push                eax
            //   ff15????????         |                     
            //   ffb534fdffff         | push                dword ptr [ebp - 0x2cc]
            //   8bf0                 | mov                 esi, eax
            //   ff15????????         |                     
            //   0fb60d????????       |                     

        $sequence_8 = { 8b7b20 8b7324 6a00 ff10 8b06 8bce 53 }
            // n = 7, score = 100
            //   8b7b20               | mov                 edi, dword ptr [ebx + 0x20]
            //   8b7324               | mov                 esi, dword ptr [ebx + 0x24]
            //   6a00                 | push                0
            //   ff10                 | call                dword ptr [eax]
            //   8b06                 | mov                 eax, dword ptr [esi]
            //   8bce                 | mov                 ecx, esi
            //   53                   | push                ebx

        $sequence_9 = { 55 8bec 8b4508 57 8d3c8504d44200 8b07 }
            // n = 6, score = 100
            //   55                   | push                ebp
            //   8bec                 | mov                 ebp, esp
            //   8b4508               | mov                 eax, dword ptr [ebp + 8]
            //   57                   | push                edi
            //   8d3c8504d44200       | lea                 edi, [eax*4 + 0x42d404]
            //   8b07                 | mov                 eax, dword ptr [edi]

    condition:
        7 of them and filesize < 566272
}
[TLP:WHITE] win_xfsadm_w0   (20190712 | Detects ATM Malware XFSADM)
rule win_xfsadm_w0 {
    meta:
        description = "Detects ATM Malware XFSADM"
        author = "Frank Boldewin (@r3c0nst)"
        reference = "https://twitter.com/r3c0nst/status/1149043362244308992"
        date = "2019-06-21"
        hash1 = "2740bd2b7aa0eaa8de2135dd710eb669d4c4c91d29eefbf54f1b81165ad2da4d"
        malpedia_reference = "https://malpedia.caad.fkie.fraunhofer.de/details/win.xfsadm"
        malpedia_version = "20190712"
        malpedia_license = "CC BY-SA 4.0"
        malpedia_sharing = "TLP:WHITE"

    strings:
        $Code1 = {68 88 13 00 00 FF 35 ?? ?? ?? ?? 68 CF 00 00 00 50 FF 15} // Read Card Data
        $Code2 = {68 98 01 00 00 50 FF 15} // Get PIN Data
        $Mutex = "myXFSADM" nocase wide
        $MSXFSDIR = "C:\\Windows\\System32\\msxfs.dll" nocase ascii
        $XFSCommand1 = "WfsExecute" nocase ascii
        $XFSCommand2 = "WfsGetInfo" nocase ascii
        $PDB = "C:\\Work64\\ADM\\XFS\\Release\\XFS.pdb" nocase ascii
        $WindowName = "XFS ADM" nocase wide
        $FindWindow = "ADM rec" nocase wide
        $LogFile = "xfs.log" nocase ascii
        $TmpFile = "~pipe.tmp" nocase ascii

    condition:
        uint16(0) == 0x5A4D and filesize < 500KB and 4 of them
}
Download all Yara Rules