Keyboy
Overview
Backdoor:Win32/Keyboy is a sophisticated Remote Access Trojan (RAT) and backdoor heavily utilized by Chinese-speaking Advanced Persistent Threat (APT) groups, most notably 'Tropic Trooper' (also known as KeyBoy or Pirate Panda). It is deployed primarily for long-term cyber espionage, focusing on exfiltrating intellectual property and sensitive documents from government, military, and healthcare targets in Taiwan and Southeast Asia.
Understanding Keyboy (APT Espionage)
To an end-user, Keyboy operates completely silently in the background. For a threat intelligence analyst, discovering Keyboy is a major incident. It is not mass-distributed malware; it is a highly targeted tool used by professional operators to establish a persistent, stealthy foothold (`T1098`) within a specific organization's network.
Execution and Espionage Mechanics
Keyboy is traditionally delivered via highly targeted spear-phishing campaigns (`T1566.001`) utilizing weaponized Microsoft Word documents exploiting known CVEs (like CVE-2012-0158). More recent variants have utilized DLL side-loading (`T1574.002`) to execute. Once active, the backdoor gathers extensive system profiling data and communicates with its C2 infrastructure using custom, often encrypted, protocols over HTTP/HTTPS. Keyboy provides operators with a reverse shell, file manipulation capabilities, and the ability to download and execute secondary reconnaissance tools, specifically targeting documents with `.doc`, `.xls`, `.pdf`, and `.ppt` extensions (`T1005`) for exfiltration (`T1041`).
Indicators of Compromise & Impact
The impact is the unauthorized disclosure of highly sensitive intellectual property and state secrets. Host-based IoCs include the presence of known Keyboy DLLs or disguised executables, and EDR alerts for DLL side-loading (e.g., a legitimate, signed executable loading a malicious DLL from an unexpected directory). Network IoCs include periodic beaconing traffic to known Tropic Trooper C2 infrastructure, often characterized by specific HTTP header anomalies.
MITRE ATT&CK Techniques
Observed techniques used by this family, mapped to the MITRE ATT&CK framework:
Tactical Mitigations
Based on the techniques used by this family, consider the following defensive strategies:
- T1566.001: Scan email attachments for malicious macros, scripts, or suspicious archive files.
Generated Detections (Boilerplate)
These YARA and Sigma rules are auto-generated based on the family name and aliases. They must be heavily tuned before deployment in a production environment.
YARA Rule
rule MALWARE_WIN_KEYBOY {
meta:
description = "Detects Keyboy (trojan)"
author = "SystemHelpdesk Boilerplate Generator"
date = "2026-07-06"
strings:
$s1 = "keyboy" ascii wide nocase
condition:
uint16(0) == 0x5a4d and any of them
}Sigma Rule
title: Suspicious Keyboy Activity
id: 87bff3ef5eb13cd65850679b7cae7f7a
status: experimental
description: Detects generic indicators of the keyboy malware family.
logsource:
category: process_creation
product: windows
detection:
selection:
Image|endswith:
- '\cmd.exe'
- '\powershell.exe'
CommandLine|contains:
- "*keyboy*"
condition: selection
level: mediumContainment & Response Steps
Ordered checklist for responders. Adapt to your environment and engage professional support for active incidents.
- Immediately isolate the compromised endpoint. Do not simply wipe it; this is an APT attack requiring forensic analysis.
- Analyze EDR telemetry to trace the initial infection vector (likely a specific spear-phishing email) to identify other potential targets in the organization.
- Perform a massive enterprise-wide search for the specific C2 IPs/domains and any known Keyboy file hashes or DLL side-loading patterns.
- Initiate an enterprise-wide credential reset, assuming the attackers have dumped credentials to facilitate lateral movement.
What to Avoid
Common mistakes during response to this family that can destroy evidence, spread the infection, or worsen recovery.
- Do not treat this as a standard malware infection; standard reimaging will destroy critical forensic evidence of the APT's activities.
- Avoid communicating about the incident on the compromised network; assume the attackers are monitoring internal communications.
References & External Analysis
- Search "keyboy" on VirusTotal (External Analysis)
Frequently Asked Questions
How do I remove the Keyboy Trojan from Windows?
Manual removal of Keyboy is highly discouraged as it may leave persistence mechanisms intact. We recommend disconnecting the device from the internet and utilizing a professional incident response service or enterprise-grade EDR software to conduct a full forensic sweep.
Is Keyboy a virus or a Trojan?
Keyboy is classified as a Trojan. Unlike traditional viruses that infect files, modern malware like Keyboy typically operates as a standalone payload designed to compromise systems, steal data, or deploy secondary stage implants.
What are the main symptoms of a Keyboy infection?
Symptoms of Keyboy 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.
Related Families (Category: trojan)
Explore other malware families in the same category:
Protect Your Network Against Trojans
Want to prevent Keyboy and similar threats from compromising your organization? Read our comprehensive defensive guide: Banking Trojan Protection.
Machine-readable
Get this profile as JSON: https://jordan123234-malware-families-explorer.static.hf.space/api/keyboy.json
Ecosystem & Interactive Environments
This profile is part of the Malware Families Catalog, a public dataset of 2,899 malware families. The catalog is also published across our ecosystem: Hugging Face, Kaggle, Zenodo, Replit, StackBlitz, CodeSandbox, and CodePen.