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
Author
Repository
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
Related Rules
Export Options
Similar Rules in general
YARA-2023-0001
CRI
Detect_Mimic_Ransomware
Detect_Mimic_Ransomware
YARA-2023-0002
MED
SystemBC_malware
Detect_SystemBC
YARA-2023-0003
MED
detect_catB
detect_CatB_ransomware
YARA-2022-0001
MED
detect_Typhon_Stealer
detect_Typhon_Stealer
YARA-2023-0004
MED
Nosu_stealer
Detect_Nosu_stealer
YARA-2022-0002
MED
detect_Lumma_stealer
detect_Lumma_stealer
YARA-2022-0003
MED
detect_StrelaStealer
detect_StrelaStealer
YARA-2022-0004
MED
detect_silence_Downloader
detect_silence_Downloader