SLUB is a custom Windows backdoor associated with targeted espionage activity, including the Operation Earth Kitsune campaign and earlier North Korea-themed watering-hole operations. It has been linked in reporting to activity likely connected to APT37, also known as Reaper or Group 123, based on overlapping tradecraft, delivery patterns, code similarities, and developer-environment artifacts.
SLUB is typically delivered as a second-stage payload by an initial downloader executed through PowerShell after browser exploitation or watering-hole compromise. Observed delivery chains have used compromised Korea-related websites and exploits including CVE-2018-8174, CVE-2019-5782, CVE-2020-0674, and local privilege-escalation exploits such as CVE-2015-1701 and CVE-2019-1458. The malware and its loaders include checks for installed security products and may terminate execution when defensive software is detected, reflecting a strong emphasis on defense evasion.
The malware’s command-and-control design has evolved across variants. Early SLUB samples abused public cloud services, retrieving commands from GitHub Gist content and using Slack for operator communications and exfiltration. Later variants replaced Slack with attacker-controlled Mattermost infrastructure, including per-victim channels and notification channels for infection alerts. This progression preserved the same general model of blending command traffic with legitimate collaboration platforms while improving victim-specific tasking.
SLUB supports a broad set of post-compromise capabilities. Reported functions include arbitrary command execution, download-and-execute, self-update, self-deletion, screenshot capture, file listing and manipulation, directory creation and removal, process enumeration and termination, drive enumeration, and registry interaction. It has also been used to collect host context and exfiltrate user data, including documents and communications-related artifacts, indicating an intelligence-collection role rather than disruptive or financially motivated objectives. Some variants uploaded stolen files through third-party file-sharing services, while Mattermost-based versions exfiltrated command output and screenshots directly through the collaboration server.
Persistence has been established through Windows autorun mechanisms invoking the malware via rundll32, with installation under system-accessible directories and naming intended to resemble legitimate Windows components or updates. Across campaigns, operators showed recurring interest in Korean-language documents, bulletin-board content, desktop files, and communications data, suggesting targeting of individuals and organizations engaged with Korean political or social issues, including the global Korean diaspora.
SLUB is best characterized as a stealth-conscious espionage backdoor built for selective intrusions, modular delivery, and covert operator tasking over trusted web services or collaboration platforms.
7 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
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.
We previously wrote about the SLUB malware in 2019... In 2020, we found multiple instances of their attacks... delivering a new variant of the malware... During our investigation of the samples, we found one that was very similar to SLUB, but instead of using Slack, it used Mattermost... We considered this sample a new variant of SLUB.
"Previously, we uncovered two different campaigns in 2019 under the name of SLUB malware. Operation Earth Kitsune is a continuation of those campaigns."
31 distinct techniques documented for this family, organized by ATT&CK tactic.
“sites using the GNUBoard Content Management System (CMS) had been compromised and were used to host malware.”
Embeds login/password... Hardcoded API keys... Hardcoded Slack token... BotID & ChatID
Its previous campaigns used watering hole tactics as an infection vector, using websites that discussed topics related to North Korea. | Victim accesses watering hole website; Exploit runs, malware loader run.
First, it runs a sequence of commands and sends the information back to the channel.
After it exploits the vulnerability, it downloads a DLL and runs it in PowerShell (PS).
exec Execute command with cmd.exe
“This is a JavaScript file that executes with wscript.exe.”
The Chrome exploit involves chaining two vulnerabilities that have already been patched, with one assigned as CVE-2019-5782, while the other does not have an associated CVE identifier.
Embeds login/password... Hardcoded API keys... Hardcoded Slack token... BotID & ChatID
It copies itself to ProgramData\update\ and creates persistence via a Run registry key, calling export function UpdateMPUnits with rundll32.exe.
the PowerShell loader may instruct downloading and executing an LPE binary exploiting CVE-2019-1458. This binary may download and execute the backdoors with system privileges.
Embeds login/password... Hardcoded API keys... Hardcoded Slack token... BotID & ChatID
It copies itself to ProgramData\update\ and creates persistence via a Run registry key, calling export function UpdateMPUnits with rundll32.exe.
The malware uses ROT 12h to decipher the strings
Upon execution, the shellcode first de-obfuscates “ws2_32.dll” and “_.dll,” and then resolves the API modules based on their hashes using a known technique.
This PowerShell script has a “jpg” extension and its logic is encoded in base64
destroy Delete malware from disk with a batch script
Embeds login/password... Hardcoded API keys... Hardcoded Slack token... BotID & ChatID
the attacker skipped the samples’ deployment to the target machine if certain security products were installed on it.
reg Query Query registry key Read Read registry key Write Write registry key
Later, the backdoor gets the username and computer name...
The attackers' first actions involve getting context information... ^exec,tasklist$
^drive,list$
They will also usually list some known directories: ^exec,dir /s C:\Users\USER\Desktop\$\ ^exec,dir /s C:\Users\USER\Downloads\$\ ^exec,dir /s C:\Users\USER\Recent\$
the attacker skipped the samples’ deployment to the target machine if certain security products were installed on it.
The commands that the attackers ran clearly show a strong interest in person-related information, with a special focus on communication software...
After exfiltrating all the information from the previous command, SLUB captures a screenshot of the machine and sends it to the malware channel.
^exec,powershell -Command compress-archive -path C:\Users\USER\Desktop -destinationpath C:\Users\USER\doc1$
All communication uses HTTP on port 443. | The new SLUB variant interacts with the Mattermost server to keep track of the deployment across multiple infected machines.
HTTPS GET request... HTTPS POST request... HTTPS request Check for commands... HTTPS request Send results... HTTP request Check for new Slack token
the C&C communication happens to be with TCP at DNS standard port (53) to avoid being blocked by a firewall.
It downloads a specific “gist” snippet from Github and parses it, looking for commands... The result of the commands is then posted to a private Slack channel
The dropper will download three samples: “1.jpg,” “2.jpg,” and “3.jpg.” Each sample is executed as being downloaded without any additional conditions.
The objective of the SLUB samples was to exfiltrate a considerable amount of system information.
The result of the commands is then posted to a private Slack channel in a particular workspace using the embedded tokens.
Uses Dropbox API to upload documents with selected extensions... Uses pCloud API to upload documents... Calling PutObjectRequest to 'upload a new object to the specified Amazon S3 bucket'... Exfiltration via file.io, link sent to Slack
10 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.