KGH_SPY
- Type
- Infostealer
- Capabilities
- Credential theftExfiltrationReconnaissancePost exploitationDefense evasion
- Delivery
- Phishing
- Platforms
- Windows
KGH_SPY is Windows information-stealing malware with credential-harvesting, host-reconnaissance, and command-execution capabilities. It collects credentials from WinSCP and steals application data from Google Chrome, Microsoft Edge, Mozilla Firefox, Opera, and the Thunderbird email client. It also gathers victim system information and inventories installed applications. Collected system information is staged in a local file before being transmitted to a command-and-control server, and the malware can exfiltrate other collected data from the compromised host. KGH_SPY can execute PowerShell commands and decrypt encrypted strings, writing the decrypted material into a newly created directory. It has been distributed through Microsoft Word documents containing malicious macros and has masqueraded as a legitimate Windows tool to evade detection.
Associated threat actors
1 distinct threat actor Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Techniques & procedures
29 distinct techniques documented for this family, organized by ATT&CK tactic.
Execution
6 techniques
Execution
[KGH_SPY](https://attack.mitre.org/software/S0526) can execute PowerShell commands on the victim's machine.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) has the ability to set a Registry key to run a cmd.exe command.(Citation: Cybereason Kimsuky November 2020)
attempted to lure victims into enabling malicious macros within email attachments... prompted victims to accept macros... Word documents containing malicious macros.
The content repeatedly mentions malicious macros in Word/Excel documents, such as "enable macros," "embedded macros," and "macro-enabled documents."
has attempted to get victims to launch malicious Microsoft Word attachments delivered via spearphishing emails... has required user execution of a malicious MSI installer... has been executed through user installation of an executable disguised as a flash installer.
[KGH_SPY](https://attack.mitre.org/software/S0526) has been spread through Word documents containing malicious macros.(Citation: Cybereason Kimsuky November 2020)
Persistence
2 techniques
Persistence
[KGH_SPY](https://attack.mitre.org/software/S0526) has the ability to set the <code>HKCU\Environment\UserInitMprLogonScript</code> Registry key to execute logon scripts.(Citation: Cybereason Kimsuky November 2020)
DarkTortilla can use cmd.exe to add registry keys for persistence. HeartCrypt can use the reg add command via cmd.exe for Registry modification. Ryuk has used cmd.exe to create a Registry entry to establish persistence.
Privilege Escalation
1 technique
Privilege Escalation
[KGH_SPY](https://attack.mitre.org/software/S0526) has the ability to set the <code>HKCU\Environment\UserInitMprLogonScript</code> Registry key to execute logon scripts.(Citation: Cybereason Kimsuky November 2020)
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.
[KGH_SPY](https://attack.mitre.org/software/S0526) has used encrypted strings in its installer.(Citation: Cybereason Kimsuky November 2020)
actors used the following command to rename one of their tools to a benign file name: ren "%temp%\upload" audiodg.exe ... APT1 ... used ... AcroRD32.exe ... as a name for malware ... APT28 ... changed extensions on files containing exfiltrated data to make them appear benign ... APT32 has renamed a NetCat binary to kb-10233.exe to masquerade as a Windows update.
[KGH_SPY](https://attack.mitre.org/software/S0526) has masqueraded as a legitimate Windows tool.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can decrypt encrypted strings and write them to a newly created folder.(Citation: Cybereason Kimsuky November 2020)
Defense Impairment
1 technique
Defense Impairment
DarkTortilla can use cmd.exe to add registry keys for persistence. HeartCrypt can use the reg add command via cmd.exe for Registry modification. Ryuk has used cmd.exe to create a Registry entry to establish persistence.
Credential Access
4 techniques
Credential Access
[KGH_SPY](https://attack.mitre.org/software/S0526) can perform keylogging by polling the <code>GetAsyncKeyState()</code> function.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can collect credentials from WINSCP.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) has the ability to steal data from the Chrome, Edge, Firefox, Thunderbird, and Opera browsers.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can collect credentials from the Windows Credential Manager.(Citation: Cybereason Kimsuky November 2020)
Discovery
5 techniques
Discovery
The content repeatedly describes malware and threat actors collecting host details such as hostname, OS version, architecture, CPU, memory, BIOS, language, and other machine characteristics; e.g., "Action RAT has the ability to collect the hostname, OS version, and OS architecture of an infected host."
[KGH_SPY](https://attack.mitre.org/software/S0526) can enumerate files and directories on a compromised host.(Citation: Cybereason Kimsuky November 2020)
Numerous entries mention enumerating drives, logical disks, disk type, free space, or volume information; examples include 'Babuk can enumerate disk volumes,' 'Cuba can enumerate local drives,' and 'TAINTEDSCRIBE can use DriveList to retrieve drive information.'
[KGH_SPY](https://attack.mitre.org/software/S0526) can collect information on installed applications.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can collect drive information from a compromised host.(Citation: Cybereason Kimsuky November 2020)
Collection
5 techniques
Collection
[KGH_SPY](https://attack.mitre.org/software/S0526) can send a file containing victim system information to C2.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can perform keylogging by polling the <code>GetAsyncKeyState()</code> function.(Citation: Cybereason Kimsuky November 2020)
The content repeatedly describes adversaries and malware storing collected data, command output, credentials, archives, or files in local temporary folders, working directories, hidden directories, registry locations, recycle bins, or specific files prior to exfiltration.
[KGH_SPY](https://attack.mitre.org/software/S0526) can save collected system information to a file named "info" before exfiltration.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) can harvest data from mail clients.(Citation: Cybereason Kimsuky November 2020)
Command and Control
2 techniques
Command and Control
[KGH_SPY](https://attack.mitre.org/software/S0526) can send data to C2 with HTTP POST requests.(Citation: Cybereason Kimsuky November 2020)
[KGH_SPY](https://attack.mitre.org/software/S0526) has the ability to download and execute code from remote servers.(Citation: Cybereason Kimsuky November 2020)
Exfiltration
1 technique
Exfiltration
[KGH_SPY](https://attack.mitre.org/software/S0526) can exfiltrate collected information from the host to the C2 server.(Citation: Cybereason Kimsuky November 2020)
Recent activity
38 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.