ATM_Malware_XFSCashNCR

YARA-2019-0012 Medium general Active

Detects ATM Malware XFSCashNCR

ATM_Malware_XFSCashNCR.yar Valid Syntax
rule ATM_Malware_XFSCashNCR {
	meta:
		description = "Detects ATM Malware XFSCashNCR"
		author = "Frank Boldewin (@r3c0nst)"
		reference = "https://twitter.com/r3c0nst/status/1166773324548063232"
		date = "2019-08-28"
		hash1 = "d6dff67a6b4423b5721908bdcc668951f33b3c214e318051c96e8c158e8931c0"

	strings:
		$Code1 = {50 8b 4d e8 8b 51 10 52 6a 00 68 2d 01 00 00 8b 45 e8 0f b7 48 1c 51 e8} // CDM Status
		$Code2 = {52 8d 45 d0 50 68 2e 01 00 00 8b 4d e8 0f b7 51 1c 52 e8} // Dispense
		$StatusMessage1 = "[+] Ingrese Denominacion ISO" nocase ascii
		$StatusMessage2 = "[+] Ingrese numero de billetes" nocase ascii 
		$StatusMessage3 = "[!] FAIL.. dispensadores no encontrados" nocase ascii
		$StatusMessage4 = "[!] Unable continue, IMPOSIBLE abrir dispenser" nocase ascii
		$PDB = "C:\\Users\\cyttek\\Downloads\\xfs_cashXP\\Debug\\xfs_cash_ncr.pdb" nocase ascii
		$LogFile = "XfsLog.txt" nocase ascii
		
	condition:
		uint16(0) == 0x5A4D and filesize < 1500KB and 4 of them
}

Rule Metadata

description
Detects ATM Malware XFSCashNCR
author
Frank Boldewin (@r3c0nst)
reference
https://twitter.com/r3c0nst/status/1166773324548063232
date
2019-08-28
hash1
d6dff67a6b4423b5721908bdcc668951f33b3c214e318051c96e8c158e8931c0

String Definitions

{"name":"$Code1","value":"{50 8b 4d e8 8b 51 10 52 6a 00 68 2d 01 00 00 8b 45 e8 0f b7 48 1c 51 e8} \/\/ CDM Status"}
{"name":"$Code2","value":"{52 8d 45 d0 50 68 2e 01 00 00 8b 4d e8 0f b7 51 1c 52 e8} \/\/ Dispense"}
{"name":"$StatusMessage1","value":"\"[+] Ingrese Denominacion ISO\" nocase ascii"}
{"name":"$StatusMessage2","value":"\"[+] Ingrese numero de billetes\" nocase ascii"}
{"name":"$StatusMessage3","value":"\"[!] FAIL.. dispensadores no encontrados\" nocase ascii"}
{"name":"$StatusMessage4","value":"\"[!] Unable continue, IMPOSIBLE abrir dispenser\" nocase ascii"}
{"name":"$PDB","value":"\"C:\\\\Users\\\\cyttek\\\\Downloads\\\\xfs_cashXP\\\\Debug\\\\xfs_cash_ncr.pdb\" nocase ascii"}
{"name":"$LogFile","value":"\"XfsLog.txt\" nocase ascii"}

Threat Analysis

This YARA rule is designed to detect general threats.

Severity Level: Medium

The rule uses pattern matching to identify specific byte sequences, strings, or behavioral patterns associated with malicious activity.

Detection Capabilities

  • File-based detection for executables and documents
  • Memory scanning for running processes
  • Network traffic analysis support

Command Line Usage

# Scan a single file
yara ATM_Malware_XFSCashNCR.yar /path/to/suspicious/file

# Scan a directory recursively
yara -r ATM_Malware_XFSCashNCR.yar /path/to/directory/

# Scan with metadata output
yara -m ATM_Malware_XFSCashNCR.yar target_file

# Scan process memory (Linux)
yara ATM_Malware_XFSCashNCR.yar /proc/[pid]/exe

Integration Examples

Python (yara-python)

import yara
rules = yara.compile(filepath='ATM_Malware_XFSCashNCR.yar')
matches = rules.match('/path/to/file')

ClamAV Integration

clamscan --yara-rules=ATM_Malware_XFSCashNCR.yar /path/to/scan

Rule Information

YARA ID
YARA-2019-0012
Created
August 19, 2025
Last Updated
August 19, 2025
Last Imported
Never

Threat Intelligence

Risk Level Medium
Category general
Detection Confidence Analysis Pending
False Positive Rate Not Available
Last Seen in Wild No Data

Export Options