Cardspy (Trojan:Win32/CardSpy)

Category: infostealer · Aliases: Trojan:Win32/CardSpy, Trojan.Win32.CardSpy, PWS:Win32/CardSpy, Win32/CardSpy · Sample count (EMBER 2018): 44 · Enrichment: curated_sourced · Updated: 2026-10-15
Category: InfostealerStatus: Automated SignaturePlatform: WINDOWS_PEStage: Execution, PersistenceFirst seen: 2013Actor: Unknown / CybercriminalIndustry: Global / OpportunisticMotivation: Financial Theft & Payment Card Fraud🕸 Explore Relationship Graph⚙ API JSON⚡ Sigma Rule💾 YARA RuleOS: Windows 11, Windows 10, Windows 8.1
Executive Summary
CardSpy is a specialized payment card and financial surveillance trojan active since 2013.

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:

→ Explore the complete 226-Technique ATT&CK Threat Matrix

MITRE D3FEND™ Defensive Countermeasures

Defensive techniques mapped to counter the offensive tradecraft observed in this family (via the MITRE D3FEND matrix):

D3FEND IDCountermeasure NameTacticCountered ATT&CKDefensive Guidance
D3-FDMFile Data MonitoringDetectT1005Deploy Data Loss Prevention (DLP) agents to audit sensitive file access and block unauthorized batch file copying.
D3-NDFNetwork Data FilteringIsolateT1048Inspect non-standard port traffic and block unauthorized ICMP or DNS tunneling protocols at the network perimeter.
D3-PIADProcess Injection Analysis & DetectionDetectT1055Monitor cross-process thread creation (CreateRemoteThread) and asynchronous procedure calls (QueueUserAPC).
D3-EAMEmail Access MonitoringDetectT1114.001Monitor Graph API and MAPI email harvesting routines and alert on bulk email downloads originating from unusual IP addresses.
D3-SCMWindows Service Creation MonitoringDetectT1543.003Verify 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.

Recorded delivery context

Recorded persistence context

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)
}
SOC & SIEM Rule Downloads: ⬇ Download YARA Rule (.yar) ⬇ Download Sigma Rule (YAML) ⬇ Download Sigma Rule (JSON) ⚙ Threat Profile API (JSON)

Containment & Response Steps

Choose a response for the evidence you have. Start with the suspected-infection triage guide and credential-exposure and account-recovery guide. Record what is suspected, what is confirmed and who can approve containment or recovery before taking disruptive action. Adapt the technical steps below to your devices, accounts and incident scope.

Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.

  1. Instantly sever the compromised PoS terminals from all external networks and internal corporate networks to halt exfiltration.
  2. 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.
  3. Initiate standard Incident Response protocols for a major PCI-DSS breach, including notifying acquiring banks and legal counsel.
  4. 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.

  1. 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.
  2. 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

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.

Need help with an active incident? Published by the SystemHelpdesk Threat Intelligence Team.

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.