KeyBoy
- Type
- Backdoor
- Capabilities
- Credential theftKeyloggingPersistencePost exploitationDefense evasionReconnaissance
- Platforms
- Windows
KeyBoy is a Windows backdoor associated with the China-linked espionage group Tropic Trooper, also known as GouShe. It has been used in intrusions targeting organizations in the Asia-Pacific region, with reporting linking the actor to government, healthcare, transportation, and high-technology sectors; transportation entities in Taiwan have been a particularly prominent focus. KeyBoy supports remote post-compromise operations including downloading and executing additional payloads through PowerShell, collecting browser-stored passwords, capturing screenshots, and installing a keylogger to intercept user input and credentials. It also performs host and network discovery by determining the compromised system’s public-facing IP address. For persistence, KeyBoy can install itself as a Windows service backed by a malicious DLL. Its operators have also used defense-evasion measures including concealed PowerShell execution with hidden windows and timestomping of dropped DLLs. Technical overlap identified in later campaigns indicates that EntryShell is an upgraded evolution of KeyBoy, preserving core backdoor functionality while updating communications, configuration, and command handling.
Associated vulnerabilities
5 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
このことから、EntryShellはKeyBoyをバージョンアップさせたマルウェアであると判断しました。
There was an adversary group which we called GouShe (a.k.a TroppicTropper, Keyboy) focus on infiltrating Transportation related entities in Taiwan. More than 70% of transportation related cases we observed were from this specific group.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
“we observed a malware operation targeting members of the Tibetan Parliament… highly targeted email lures with repurposed content and attachments… urge recipients to open an attached .rtf file”
Execution
8 techniques
Execution
[KeyBoy](https://attack.mitre.org/software/S0387) uses PowerShell commands to download and execute payloads.(Citation: PWC KeyBoys Feb 2017)
[KeyBoy](https://attack.mitre.org/software/S0387) can launch interactive shells for communicating with the victim machine.(Citation: PWC KeyBoys Feb 2017)(Citation: Rapid7 KeyBoy Jun 2013)
[KeyBoy](https://attack.mitre.org/software/S0387) uses VBS scripts for installing files and performing execution.(Citation: CitizenLab KeyBoy Nov 2016)
[KeyBoy](https://attack.mitre.org/software/S0387) uses Python scripts for installing files and performing execution.(Citation: CitizenLab KeyBoy Nov 2016)
“The first attempt leveraged… .rtf files (CVE-2012-0158)… The second attempt used… (CVE-2015-1641)… Opening the attachment… in Microsoft Word would result in the infection”
“The message urges recipients to open an attached .rtf file… Opening the attachment… would… result in the infection”
[KeyBoy](https://attack.mitre.org/software/S0387) uses the Dynamic Data Exchange (DDE) protocol to download remote payloads.(Citation: PWC KeyBoys Feb 2017)
“wab32res.exe… used to load final payload… wab32res.dll… launched by wab32res.exe via DLL search order hijacking”
Persistence
4 techniques
Persistence
“Once the KeyBoy DLL has been executed, it validates that a particular string value… is set in the Windows Registry… key named ‘Ver’… Additionally… ensure persistence… via… Winlogon Shell key”
[KeyBoy](https://attack.mitre.org/software/S0387) installs a service pointing to a malicious DLL dropped to disk.(Citation: Rapid7 KeyBoy Jun 2013)
“moving to… setting the Run key in the Windows registry in the early 2015 sample… HKCU\Software\Microsoft\Windows\CurrentVersion\Run”
[KeyBoy](https://attack.mitre.org/software/S0387) issues the command <code>reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”</code> to achieve persistence.(Citation: PWC KeyBoys Feb 2017) (Citation: CitizenLab KeyBoy Nov 2016)
Privilege Escalation
3 techniques
Privilege Escalation
[KeyBoy](https://attack.mitre.org/software/S0387) installs a service pointing to a malicious DLL dropped to disk.(Citation: Rapid7 KeyBoy Jun 2013)
“moving to… setting the Run key in the Windows registry in the early 2015 sample… HKCU\Software\Microsoft\Windows\CurrentVersion\Run”
[KeyBoy](https://attack.mitre.org/software/S0387) issues the command <code>reg add “HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon”</code> to achieve persistence.(Citation: PWC KeyBoys Feb 2017) (Citation: CitizenLab KeyBoy Nov 2016)
Stealth
5 techniques
Stealth
The content repeatedly describes payloads, strings, configuration files, scripts, URLs, and binaries being obfuscated or encoded using Base64, XOR, RC4, AES, RSA, hex encoding, custom algorithms, and other methods across many malware families and threat actors.
In one version of [KeyBoy](https://attack.mitre.org/software/S0387), string obfuscation routines were used to hide many of the critical values referenced in the malware.(Citation: CitizenLab KeyBoy Nov 2016)
[KeyBoy](https://attack.mitre.org/software/S0387) time-stomped its DLL in order to evade detection.(Citation: PWC KeyBoys Feb 2017)
[KeyBoy](https://attack.mitre.org/software/S0387) uses <code>-w Hidden</code> to conceal a [PowerShell](https://attack.mitre.org/techniques/T1059/001) window that downloads a payload. (Citation: PWC KeyBoys Feb 2017)
“wab32res.exe… used to load final payload… wab32res.dll… launched by wab32res.exe via DLL search order hijacking”
Defense Impairment
1 technique
Defense Impairment
“Once the KeyBoy DLL has been executed, it validates that a particular string value… is set in the Windows Registry… key named ‘Ver’… Additionally… ensure persistence… via… Winlogon Shell key”
Credential Access
3 techniques
Credential Access
[KeyBoy](https://attack.mitre.org/software/S0387) installs a keylogger for intercepting credentials and keystrokes.(Citation: Rapid7 KeyBoy Jun 2013)
Agent Tesla can gather credentials from a number of browsers... APT33 has used a variety of publicly available tools like LaZagne to gather credentials... TrickBot can obtain passwords stored in files from web browsers such as Chrome, Firefox, Internet Explorer, and Microsoft Edge... SELECT action_url, username_value, password_value FROM logins; CryptUnprotectData
[KeyBoy](https://attack.mitre.org/software/S0387) attempts to collect passwords from browsers.(Citation: Rapid7 KeyBoy Jun 2013)
Discovery
3 techniques
Discovery
[KeyBoy](https://attack.mitre.org/software/S0387) can determine the public or WAN IP address for the system.(Citation: PWC KeyBoys Feb 2017)
[KeyBoy](https://attack.mitre.org/software/S0387) can gather extended system information, such as information about the operating system and memory.(Citation: PWC KeyBoys Feb 2017)(Citation: Rapid7 KeyBoy Jun 2013)
[KeyBoy](https://attack.mitre.org/software/S0387) has a command to launch a file browser or explorer on the system.(Citation: PWC KeyBoys Feb 2017)
Collection
2 techniques
Collection
[KeyBoy](https://attack.mitre.org/software/S0387) installs a keylogger for intercepting credentials and keystrokes.(Citation: Rapid7 KeyBoy Jun 2013)
[KeyBoy](https://attack.mitre.org/software/S0387) has a command to perform screen grabbing.(Citation: PWC KeyBoys Feb 2017)
Command and Control
4 techniques
Command and Control
[KeyBoy](https://attack.mitre.org/software/S0387) uses custom SSL libraries to impersonate SSL in C2 traffic.(Citation: PWC KeyBoys Feb 2017)
“Port… 443… The backdoor then sends a login beacon to the C2 server… all other communication… transmitted using an encoding mechanism…”
“hard-coded IP addresses for the C2 servers… communication… transmitted using an encoding mechanism based on principles from modular arithmetic”
[KeyBoy](https://attack.mitre.org/software/S0387) has a download and upload functionality.(Citation: PWC KeyBoys Feb 2017)(Citation: Rapid7 KeyBoy Jun 2013)
Exfiltration
1 technique
Exfiltration
“Download files from the victim computer” and “all other communication between backdoor and command and control server, is transmitted using an encoding mechanism…”
Observables
35 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
41 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.