AppleSeed
- Type
- Backdoor
- Capabilities
- KeyloggingExfiltrationPersistenceDefense evasionReconnaissance
- Delivery
- PhishingSpearphishingLureFake update
- Platforms
- WindowsAndroid
AppleSeed is a backdoor associated with the Kimsuky threat group, first observed in the wild in May 2019. It has been used in espionage operations targeting South Korean government organizations and scientific and engineering researchers. AppleSeed primarily compromises Windows systems, and an Android variant has also been identified.
Windows variants support remote command execution, file upload and download, host monitoring, keylogging, screenshot capture, and collection of local data. They gather host information including IP addresses, process information, and system timestamps. Collected data can be ZIP-compressed, encrypted, and exfiltrated through the command-and-control channel, with local files deleted after transmission. AppleSeed can maintain a secondary command channel while the primary channel is uploading data. The Android variant collects SMS-related information and shares characteristic decoding and data-transfer mechanisms with the Windows implementation.
AppleSeed is distributed through malicious email attachments requiring user execution, including JavaScript files disguised as PDF documents. Kimsuky has also deployed it through internal spearphishing messages sent from compromised accounts, using antivirus-update lures. Windows execution mechanisms include PowerShell and signed binary proxy execution, while registry-based autostart entries provide persistence. Evasion techniques include payload decoding, double-XOR string obfuscation, dynamically resolved APIs, and masquerading as legitimate security software. Transferred data may be XOR-encoded and prefixed with a fake PDF header. Its infrastructure has included compromised websites and attacker-controlled hosting, and some variants use email-based command and control.
Associated vulnerabilities
1 CVE 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
4 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
In the process of tracking the attacks of the Kimsuky group, which are still ongoing after the KHNP cyber terror attack, we discovered a piece of malicious code, called ‘AppleSeed’, in the wild... In our analysis, we identified the initial penetration method, the tools used in the attack including AppleSeed...
The Appleseed backdoor is a multi-component backdoor that can take screenshots, log keystrokes, and collect removable media information and specific victim files.
AppleSeed, a backdoor-type malware that was developed and used by the Kimsuky group, was first discovered in 2019 and has been circulating in various structural and functional variations since then.
Techniques & procedures
68 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
7 techniques
Initial Access
Through a phishing attack, the Kimsuky group accesses the webmail service by obtaining the information required for a webmail login... they obtained sensitive information such as administrator account and VPN connection and it was possible to enter the internal server.
There was a JavaScript code execution vulnerability on the webmail service. As a result, when the victim read the spear-phishing mail on the webmail interface, the JavaScript code in the body was executed and redirected to the phishing server.
Supply-Chain attack • Identified in late 2023. • Malware was delivered via a legitimate security product. • The attacker manipulated the software update mechanism somehow.
The group usually launches spear phishing attacks against national defense, defense industries, media, diplomacy, national organizations, and academic sectors.
[AppleSeed](https://attack.mitre.org/software/S0622) has been distributed to victims through malicious e-mail attachments.(Citation: Malwarebytes Kimsuky June 2021)
The Kimsuky group sent spear-phishing emails to many engineering researchers... 3.1 Phishing: spear-phishing link
The threat actor used an account named 'Transitional Justice Mission' to send friend requests and direct messages... The malicious file was delivered as a password-protected EGG archive... The threat actor also attempted further contact by using the email address obtained through Facebook Messenger conversations... If the attacker obtained the target’s mobile number, they proceeded to contact them through Telegram.
Execution
10 techniques
Execution
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
The additional VBS script that is downloaded and executed through the process steals information and registers 2 task schedulers.
On a Linux server... the web shell was downloaded from the outside using the CLI command... through the wget and curl commands, execution permission is granted (chmod) and it is executed.
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to execute its payload via PowerShell.(Citation: Malwarebytes Kimsuky June 2021)
%ProgramData%\qijWq.rSCKPC.bat (Batch file that decodes the qijWq.rSCKPC.b64 file)
In addition to JavaScript, Excel macro malware are also used to install AppleSeed.
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to use JavaScript to execute PowerShell.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to use multiple dynamically resolved API calls.(Citation: Malwarebytes Kimsuky June 2021)
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.
[AppleSeed](https://attack.mitre.org/software/S0622) can achieve execution through users running malicious file attachments distributed via email.(Citation: Malwarebytes Kimsuky June 2021)
Persistence
8 techniques
Persistence
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
The additional VBS script that is downloaded and executed through the process steals information and registers 2 task schedulers.
Through a phishing attack, the Kimsuky group accesses the webmail service by obtaining the information required for a webmail login... they obtained sensitive information such as administrator account and VPN connection and it was possible to enter the internal server.
Across the content, malware repeatedly 'adds Registry Run keys', 'creates Registry entries', 'modifies the Windows Registry', or 'overwrites registry keys' to maintain persistence.
multiple cases have been found recently where new users were added to infected systems, which were then used to gain access. Through this method, attackers can maintain persistence and access the infected system anytime.
On Windows Server, the attacker created the default account in the administrators group and created a tool after granting privileges.
On a Linux server, after uploading the web shell file to the administrator page using the previously hijacked administrator account, the malware executes additional commands and downloads and executes the reverse shell to maintain the authority to the server.
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to create the Registry key name <code>EstsoftAutoUpdate</code> at <code>HKCU\Software\Microsoft/Windows\CurrentVersion\RunOnce</code> to establish persistence.(Citation: Malwarebytes Kimsuky June 2021)
Privilege Escalation
6 techniques
Privilege Escalation
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
The additional VBS script that is downloaded and executed through the process steals information and registers 2 task schedulers.
the DLL file to be executed is injected into the normal process (rundll32.exe) and executed.
Through a phishing attack, the Kimsuky group accesses the webmail service by obtaining the information required for a webmail login... they obtained sensitive information such as administrator account and VPN connection and it was possible to enter the internal server.
[AppleSeed](https://attack.mitre.org/software/S0622) can gain system level privilege by passing <code>SeDebugPrivilege</code> to the <code>AdjustTokenPrivilege</code> API.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to create the Registry key name <code>EstsoftAutoUpdate</code> at <code>HKCU\Software\Microsoft/Windows\CurrentVersion\RunOnce</code> to establish persistence.(Citation: Malwarebytes Kimsuky June 2021)
Stealth
12 techniques
Stealth
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to Base64 encode its payload and custom encrypt API calls.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) has used UPX packers for its payload DLL.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) can disguise JavaScript files as PDFs.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to rename its payload to ESTCommon.dll to masquerade as a DLL belonging to ESTsecurity.(Citation: Malwarebytes Kimsuky June 2021)
the DLL file to be executed is injected into the normal process (rundll32.exe) and executed.
[AppleSeed](https://attack.mitre.org/software/S0622) can delete files from a compromised host after they are exfiltrated.(Citation: Malwarebytes Kimsuky June 2021)
Through a phishing attack, the Kimsuky group accesses the webmail service by obtaining the information required for a webmail login... they obtained sensitive information such as administrator account and VPN connection and it was possible to enter the internal server.
[AppleSeed](https://attack.mitre.org/software/S0622) can gain system level privilege by passing <code>SeDebugPrivilege</code> to the <code>AdjustTokenPrivilege</code> API.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) can decode its payload prior to execution.(Citation: Malwarebytes Kimsuky June 2021)
The file uses ... mshta.exe to download and run additional scripts
[AppleSeed](https://attack.mitre.org/software/S0622) can call regsvr32.exe for execution.(Citation: Malwarebytes Kimsuky June 2021)
the code accesses the registry path 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' to check the values of 'ConsentPromptBehaviorAdmin' and 'PromptOnSecureDesktop'. This checks whether UAC (User Account Control) is enabled.
Defense Impairment
1 technique
Defense Impairment
Across the content, malware repeatedly 'adds Registry Run keys', 'creates Registry entries', 'modifies the Windows Registry', or 'overwrites registry keys' to maintain persistence.
Credential Access
3 techniques
Credential Access
[AppleSeed](https://attack.mitre.org/software/S0622) can use <code>GetKeyState</code> and <code>GetKeyboardState</code> to capture keystrokes on the victim’s machine.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
최근에는 ... 구글 크롬 외에 마이크로소프트 엣지나 네이버 웨일 웹 브라우저에 저장되어 있는 계정 정보를 탈취하는 악성코드가 사용되고 있다.
User account credentials
Discovery
11 techniques
Discovery
List of running processes and services
[AppleSeed](https://attack.mitre.org/software/S0622) can identify the IP of a targeted system.(Citation: Malwarebytes Kimsuky June 2021)
Network information (IP address, routing table, port usage information, and ARP list)
[AppleSeed](https://attack.mitre.org/software/S0622) can enumerate the current process on a compromised host.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) can identify the OS version of a targeted system.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to search for .txt, .ppt, .hwp, .pdf, and .doc files in specified directories.(Citation: Malwarebytes Kimsuky June 2021)
Gathers user account information on the system by using ‘net user’
The Spy version gathers sensitive information such as documents, screenshots, keystrokes, and lists of USB drives.
[AppleSeed](https://attack.mitre.org/software/S0622) can pull a timestamp from the victim's machine.(Citation: Malwarebytes Kimsuky June 2021)
the code accesses the registry path 'SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System' to check the values of 'ConsentPromptBehaviorAdmin' and 'PromptOnSecureDesktop'. This checks whether UAC (User Account Control) is enabled.
Checks for installed anti-virus software on the system.
Lateral Movement
3 techniques
Lateral Movement
Depending on the operating system environment (Windows, Linux) of the attack target server, RDP and SSH connections were used to control the internal network server.
...while in the past the group typically used RDP to control the infected system after installing AppleSeed...
Accounts obtained through phishing attacks were abused to carry out further attacks targeting internal researchers and engineers.
Collection
9 techniques
Collection
[AppleSeed](https://attack.mitre.org/software/S0622) can collect data on a compromised host.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) can find and collect data from removable media devices.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) can use <code>GetKeyState</code> and <code>GetKeyboardState</code> to capture keystrokes on the victim’s machine.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
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.
[AppleSeed](https://attack.mitre.org/software/S0622) can stage files in a central location prior to exfiltration.(Citation: Malwarebytes Kimsuky June 2021)
[AppleSeed](https://attack.mitre.org/software/S0622) can take screenshots on a compromised host by calling a series of APIs.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) has automatically collected data from USB drives, keystrokes, and screen images before exfiltration.(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) has compressed collected data before exfiltration.(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) can zip and encrypt data collected on a target system.(Citation: Malwarebytes Kimsuky June 2021)
Command and Control
7 techniques
Command and Control
[AppleSeed](https://attack.mitre.org/software/S0622) can use a second channel for C2 when the primary channel is in upload mode.(Citation: Malwarebytes Kimsuky June 2021)
When infected with a malicious APK, it communicates with the C&C server using the HTTP/S protocol, receives commands, and performs malicious behaviors such as stealing information from the infected device.
[AppleSeed](https://attack.mitre.org/software/S0622) has the ability to communicate with C2 over HTTP.(Citation: Malwarebytes Kimsuky June 2021)(Citation: KISA Operation Muzabi)
9.2 Non-application layer & non-standard protocol... Reverse Shell - 27.102.114.63:3101 ... final execution shellcode is socket communication.
Malware and web shells were placed in the acquired and configured infrastructure and used for attacks... download and execute additional files (Webshell & Reverse Shell).
files were sent and received by disguising them as PDF headers... XOR Key: 16byte... Encoded Data
...while in the past the group typically used RDP to control the infected system after installing AppleSeed, they are often observed installing Chrome Remote Desktop in recent cases.
Exfiltration
4 techniques
Exfiltration
[AppleSeed](https://attack.mitre.org/software/S0622) has divided files if the size is 0x1000000 bytes or more.(Citation: KISA Operation Muzabi)
[AppleSeed](https://attack.mitre.org/software/S0622) can exfiltrate files via the C2 channel.(Citation: Malwarebytes Kimsuky June 2021)
The attacker leaked compressed files (various source codes and research data, etc.) in the controlled server to an external C&C server using FTP protocol.
[AppleSeed](https://attack.mitre.org/software/S0622) has exfiltrated files using web services.(Citation: KISA Operation Muzabi)
Observables
190 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
112 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.