This hunt targets adversaries deploying the FastPOS malware to simultaneously capture keystrokes and scrape sensitive data from endpoints within the Azure Sentinel environment. Proactively searching for this specific combination of behaviors is essential because early detection of these low-severity activities can prevent the exfiltration of critical credentials before they are compromised at scale.
rule PoS_Malware_fastpos : FastPOS POS keylogger
{
meta:
author = "Trend Micro, Inc."
date = "2016-05-18"
description = "Used to detect FastPOS keyloggger + scraper"
reference = "http://documents.trendmicro.com/assets/fastPOS-quick-and-easy-credit-card-theft.pdf"
sample_filetype = "exe"
strings:
$string1 = "uniqyeidclaxemain"
$string2 = "http://%s/cdosys.php"
$string3 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion"
$string4 = "\\The Hook\\Release\\The Hook.pdb" nocase
condition:
all of ($string*)
}
This YARA rule can be deployed in the following contexts:
This rule contains 4 string patterns in its detection logic.
Here are 5 specific false positive scenarios for the FastPOS Keylogger + Scraper detection rule in an enterprise environment, including suggested filters and exclusions:
Endpoint Protection Agent Telemetry Collection
C:\Program Files\CrowdStrike\fsagent.exe or MsMpEng.exe) inspects a legitimate user session, it may mimic the memory footprint and API hooking patterns of the FastPOS scraper.fsagent.exe hash) or filter alerts where the process path resides within the vendor’s installation directory (C:\Program Files\*) rather than user-specific directories like %APPDATA%.Automated IT Asset Inventory Scans
DOMAIN\svc_inventory_agent) that execute these inventory tasks.Remote Support Session Initialization