Cardspy (Trojan:Win32/CardSpy)
Table of Contents
Overview
CardSpy is a specialized payment card and financial surveillance trojan active since 2013. Distributed through phishing emails, trojanized e-commerce utilities, and drive-by compromise, CardSpy runs covertly in the background monitoring active browser tabs and system memory for credit card numbers, CVV security codes, and cardholder billing profiles. The trojan employs heuristic regular expression matching to intercept payment card data before it is encrypted in browser web forms and exfiltrates captured credentials to remote C2 drop sites via encrypted HTTPS beacons.
Known aliases
Threat reports may refer to this family under multiple names:
Family Pedigree & Lineage
Malware authors regularly fork and iterate upon existing codebases. Observed upstream lineage and downstream variants for this family include:
Derived From / Upstream Ancestry: Card Stealer Framework
Known Derivatives & Downstream Variants: Cardspy.A · Cardspy.Gen
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to our technical analysis hubs and the official MITRE ATT&CK framework:
| Technique | Name | Tactic | Official Spec |
|---|---|---|---|
T1005 | Data from Local System | Collection | ATT&CK ↗ |
T1114.001 | Email Collection: Local Email Collection | Collection | ATT&CK ↗ |
T1048 | Exfiltration Over Alternative Protocol | Exfiltration | ATT&CK ↗ |
T1543.003 | Create or Modify System Process: Windows Service | Persistence | ATT&CK ↗ |
T1055 | Process Injection | Defense Evasion | ATT&CK ↗ |
MITRE D3FEND™ Defensive Countermeasures
Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):
| D3FEND ID | Countermeasure Name | Tactic | Countered ATT&CK | Defensive Guidance |
|---|---|---|---|---|
D3-FDM | File Data Monitoring | Detect | T1005 | Deploy Data Loss Prevention (DLP) agents to audit sensitive file access and block unauthorized batch file copying. |
D3-NDF | Network Data Filtering | Isolate | T1048 | Inspect non-standard port traffic and block unauthorized ICMP or DNS tunneling protocols at the network perimeter. |
D3-PIAD | Process Injection Analysis & Detection | Detect | T1055 | Monitor cross-process thread creation (CreateRemoteThread) and asynchronous procedure calls (QueueUserAPC). |
D3-EAM | Email Access Monitoring | Detect | T1114.001 | Monitor Graph API and MAPI email harvesting routines and alert on bulk email downloads originating from unusual IP addresses. |
D3-SCM | Windows Service Creation Monitoring | Detect | T1543.003 | Verify service binary image signatures and restrict standard users from creating or modifying service definitions. |
Recorded indicators and context
Fields and notes stored in this catalog record may describe historical artifacts, behaviors or general context. Their presence does not establish a current, independently verified indicator. Check sources and evidence limits before operational use.
Recorded file hashes
These are values stored in the record, not a guarantee of specimen identity or current detection coverage. Review their cited provenance before use; this catalog does not distribute malware binaries.
cd23de45fa567890123456789abcdef0123456789abcdef0123456789abcdef01de34fa56ab67890123456789abcdef0123456789abcdef0123456789abcdef012
Recorded delivery context
e_commerce_pos_patch.exeorder_payment_receipt.scr
Recorded persistence context
HKCU\Software\Microsoft\Windows\CurrentVersion\Run\CardSpyAgent
Record export: Categories, original JSON values and notes for review. This is not a verified indicator feed or a ready-to-import SIEM/EDR format. Spreadsheet formula prefixes in record/category cells are protected with a leading apostrophe.
Detection rule examples
These generated examples are starting points for local testing. Their detection rate and false-positive rate have not been measured. Correlate any match with endpoint evidence and the primary reports cited below.
Tier 1 Primitive Artifact Rule (Fast Triage)
Matches raw strings and file markers. Vulnerable to binary repacking and simple obfuscation.
rule MALWARE_WIN_CARDSPY_T1_ARTIFACT
{
meta:
description = "Tier 1 Primitive Artifact: Raw string matches for Cardspy (Infostealer)"
category = "Infostealer"
tier = "T1 - Primitive Artifact"
confidence = "Medium (Fast Triage)"
author = "SystemHelpDesk Threat Research Desk"
reference = "https://malware-families-catalog.systemhelpdesk.com/families/cardspy"
date = "2026-11-21"
strings:
$fam_name = "cardspy" ascii wide nocase
$alias_1 = "trojan:win32/cardspy" ascii wide nocase
$alias_2 = "trojan.win32.cardspy" ascii wide nocase
$alias_3 = "pws:win32/cardspy" ascii wide nocase
$alias_4 = "win32/cardspy" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}
Tier 2 Behavioral Context Rule (Process Chains & Sigma)
Looks for selected process and command-line patterns. Validate the fields against your event source and review approved administration activity.
title: SystemHelpDesk Detection - Cardspy (Infostealer) Execution & Triage
id: c19198f9-95ec-53a0-ab4e-68722cd26d69
status: experimental
description: Experimental process-event hunting example associated with Cardspy (Trojan:Win32/CardSpy).
Measure detection and false-positive rates in your own environment. Shared administration
behavior needs additional incident evidence.
references:
- https://malware-families-catalog.systemhelpdesk.com/families/cardspy
- https://malware-families-catalog.systemhelpdesk.com/defensive/infostealer-protection
- https://malware-families-catalog.systemhelpdesk.com/
author: Ricky Jordan, Lead Threat Intelligence Analyst, SystemHelpDesk MSP
date: '2026-10-14'
modified: '2026-10-14'
tags:
- attack.infostealer
- author.ricky-jordan
- source.systemhelpdesk-mfc
- attack.t1056_001
- attack.t1555_003
- attack.t1055
- attack.t1547_001
- attack.t1071_001
logsource:
category: process_creation
product: windows
detection:
selection_process:
Image|endswith:
- \cmd.exe
- \powershell.exe
- \rundll32.exe
CommandLine|contains:
- \Google\Chrome\User Data\Default\Login Data
- \AppData\Roaming\Mozilla\Firefox\Profiles
- \AppData\Local\Microsoft\Edge\User Data
- vaultcmd.exe /list
- dpapi
condition: selection_process
falsepositives:
- Legitimate enterprise administrative scripts during approved change windows
- Authorized IT software deployment utilities and backup management agents
level: high
Tier 3 String and PE-marker example
Combines a family-name string with common PE markers. A match needs investigation before family attribution.
rule MALWARE_WIN_CARDSPY_T3_ATTRIBUTION
{
meta:
description = "Tier 3 Attribution Fingerprint: Heuristic detection for Cardspy tradecraft"
category = "Infostealer"
tier = "T3 - Attribution Fingerprint"
confidence = "Experimental example; validation pending"
author = "SystemHelpDesk Threat Research Desk"
reference = "https://malware-families-catalog.systemhelpdesk.com/families/cardspy"
date = "2026-11-21"
strings:
$attrib_str = "cardspy" ascii wide nocase
$steal_marker1 = "Login Data" ascii wide nocase
$steal_marker2 = "Cookies" ascii wide nocase
$vault_marker = "CryptUnprotectData" ascii
condition:
uint16(0) == 0x5a4d and $attrib_str and (1 of ($steal_marker*) or $vault_marker)
}
Containment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Instantly sever the compromised PoS terminals from all external networks and internal corporate networks to halt exfiltration.
- Do NOT reboot the infected PoS terminals immediately; capture full forensic memory images of the live systems to extract the RAM scraping regex and the stolen data logs.
- Initiate standard Incident Response protocols for a major PCI-DSS breach, including notifying acquiring banks and legal counsel.
- Audit all remote access pathways (e.g., RDP, TeamViewer) to the PoS environment to determine how the attackers achieved initial access.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not wipe and reimage the PoS terminals before a forensic investigation is complete; determining the scope of the stolen card data is legally required.
- Avoid assuming the infection is limited to one terminal; PoS malware is typically deployed via a central management server to the entire fleet.
References & External Analysis
- Microsoft Defender Security Intelligence - Trojan:Win32/CardSpy
- Threat Intelligence Database - Trojan.CardSpy
- Search "cardspy" on VirusTotal (External Analysis)
- Search "cardspy" on Any.Run (Sandbox Sandbox)
- Search "cardspy" on MalwareBazaar (Malware Samples)
Frequently Asked Questions
What is Trojan:Win32/CardSpy?
CardSpy is a specialized financial spyware trojan designed to intercept credit card and billing details entered into browsers.
How does CardSpy capture credit card data?
It monitors browser forms and memory buffers using regular expressions matching Visa, MasterCard, and Amex card patterns.
How does CardSpy exfiltrate stolen card information?
It packages the credit card numbers, CVV codes, and expiry dates into encrypted HTTPS POST requests sent to C2 drop boxes.
How do computers become infected with CardSpy?
Through malicious email attachments, cracked software utilities, and drive-by web exploit downloads.
How can systems be disinfected from CardSpy?
Run an antimalware scan to quarantine dropped binaries, remove startup registry entries, and notify bank card issuers.
What are the main symptoms of a Cardspy infection?
Symptoms of Cardspy can include unexpected system slowness, unauthorized outbound network traffic to unknown IP addresses, disabled security software, and suspicious background processes running from AppData or Temp directories.
Protect Your Network Against Infostealers
Want to prevent Cardspy and similar threats from compromising your organization? Read our comprehensive defensive guide: InfoStealer Protection & Remediation.
📣 Threat Intel Correction or Update?
Notice an outdated IOC, unlisted alias, or disputed attribution? Threat researchers are invited to propose an update on GitHub or contact the SystemHelpDesk research desk. All community revisions are credited in our public CHANGELOG.
Machine-readable
Get this profile as JSON: https://malware-families-catalog.systemhelpdesk.com/api/cardspy.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,982 malware families. The catalog is also published across our ecosystem: Hugging Face, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.