Gomir is a Go-based Linux remote access Trojan and backdoor used by the North Korea-linked threat actor Kimsuky, also known as APT43. It is a Linux-targeting variant of GoBear and has been deployed through trojanized software installers and following exploitation of compromised servers. During campaigns against South Korean groupware software vendors in 2025 and early 2026, attackers installed Gomir after gaining initial access, including through a remote code execution vulnerability in an internet-exposed mail server. Gomir was also identified on a downstream SaaS customer's server.
Gomir supports 17 command codes covering shell execution, directory operations, system information collection, TCP connectivity testing, bidirectional file transfer, proxy management, sleep, and hibernation. Its reverse-proxy functionality enables connections to arbitrary endpoints within victim networks and uses SSL to protect communications, supporting internal network pivoting. File-transfer and command-result submission functions enable data exfiltration and delivery of additional payloads.
Persistence depends on execution privileges: Gomir installs a systemd service when running as root and a cron job when running without root privileges. It derives a bot identifier from host attributes and uses local TCP port binding to prevent duplicate execution. Command-and-control traffic uses HTTPS POST requests with URL-safe Base64 encoding and a custom byte-wise encryption scheme. Analyzed samples have been packed with UPX. Related Linux backdoors BirdTroy and DriveTroy share Gomir's code or persistence logic while introducing different command-and-control transports.
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.
Kimsuky has been observed deploying a new Linux backdoor named Gomir, a variant of the GoBear backdoor.
37 distinct techniques documented for this family, organized by ATT&CK tactic.
| Tactics | Techniques | ... | Lateral Movement | T1021 : Remote Services - nT1078 : Valid Accounts - nT1570 : Lateral Tool Transfer |
Vendor A (novembre 2025) : exploitation d’une vulnérabilité RCE sur un serveur de messagerie exposé sur Internet, ayant conduit à l’installation de Gomir.
state-sponsored threat actors and financially motivated attackers are employing a combination of supply chain attacks... After achieving the Initial Breach through phishing, social engineering, and supply chain attacks
| Tactics | Techniques | ... | Initial Access | T1566 : Phishing - nT1190 : Exploit Public - Facing Application - nT1199 : Trusted Relationship |
"국내 그룹웨어 대상 북한 APT 공격 분석" published by ENKI. #Kimsuky, #Phishing, #Slides, #Gomir, #HttpTroy
[Gomir](https://attack.mitre.org/software/S1198) will configure a crontab for process execution to start the backdoor on reboot if it is not initially running under group 0 privileges.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) reads command line arguments and parses them for functionality when executed from a Linux shell, and can execute arbitrary strings passed to it as shell commands.(Citation: Symantec Troll Stealer 2024)
| Tactics | Techniques | ... | Execution | T1059 . 004 : Command and Scripting Interpreter : Unix Shell - nT1204 . 002 : User Execution : Malicious File |
[Gomir](https://attack.mitre.org/software/S1198) will configure a crontab for process execution to start the backdoor on reboot if it is not initially running under group 0 privileges.(Citation: Symantec Troll Stealer 2024)
| Tactics | Techniques | ... | Lateral Movement | T1021 : Remote Services - nT1078 : Valid Accounts - nT1570 : Lateral Tool Transfer |
[Gomir](https://attack.mitre.org/software/S1198) creates a systemd service named `syslogd` for persistence.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) will configure a crontab for process execution to start the backdoor on reboot if it is not initially running under group 0 privileges.(Citation: Symantec Troll Stealer 2024)
| Tactics | Techniques | ... | Lateral Movement | T1021 : Remote Services - nT1078 : Valid Accounts - nT1570 : Lateral Tool Transfer |
[Gomir](https://attack.mitre.org/software/S1198) creates a systemd service named `syslogd` for persistence.(Citation: Symantec Troll Stealer 2024)
Gomir # Backdoor Linux écrit en Go , packé avec UPX
Configuration chiffrée en RC4 ... + Base64 URL-safe, stockée en fin de fichier
persistance via tâche planifiée nommée AhnlabUpdate
[Gomir](https://attack.mitre.org/software/S1198) deletes its original executable and terminates its original process after creating a systemd service.(Citation: Symantec Troll Stealer 2024)
| Tactics | Techniques | ... | Lateral Movement | T1021 : Remote Services - nT1078 : Valid Accounts - nT1570 : Lateral Tool Transfer |
chiffrement XOR mod 255 + Base64 URL-safe
| Tactics | Techniques | ... | Credential Access | T1056 . 003 : Input Capture : Web Portal Capture |
[Gomir](https://attack.mitre.org/software/S1198) collects network information on infected systems such as listing interface names, MAC and IP addresses, and IPv6 addresses.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) probes arbitrary network endpoints for TCP connectivity.(Citation: Symantec Troll Stealer 2024)
Ember Bear has used tools such as Nmap and MASSCAN for remote service discovery.
T1049 — System Network Connections Discovery (Discovery)
[Gomir](https://attack.mitre.org/software/S1198) checks the effective group ID of its process when initially executed to determine if it is in group 0, denoting superuser privileges in Linux environments.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) collects information on infected systems such as hostname, username, CPU, and RAM information.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) collects information about directory and file structures, including total number of subdirectories, total number of files, and total size of files on infected systems.(Citation: Symantec Troll Stealer 2024)
| Tactics | Techniques | ... | Lateral Movement | T1021 : Remote Services - nT1078 : Valid Accounts - nT1570 : Lateral Tool Transfer |
30 | Process_Upload | Transfer a file from the C & C server to the victim system | 31 | Process_Download | Transfer a file from the victim system to the C & C server
31 | Process_Download | Transfer a file from the victim system to the C & C server ... DriveTroy ... 03 | UploadFile | Upload a file from the victim's PC to Google Drive
| Tactics | Techniques | ... | Credential Access | T1056 . 003 : Input Capture : Web Portal Capture |
T1113 — Screen Capture (Collection)
Once it gains unauthorized access, Gomir establishes a persistent presence by communicating with a remote command-and-control (C2) server.
[Gomir](https://attack.mitre.org/software/S1198) periodically communicates to its command and control infrastructure through HTTP POST requests.(Citation: Symantec Troll Stealer 2024)
Déploiement d’un outil proxy basé sur yamux pour pivoter vers des segments réseau isolés
[Gomir](https://attack.mitre.org/software/S1198) can start a reverse proxy to initiate connections to arbitrary endpoints in victim networks.(Citation: Symantec Troll Stealer 2024)
Additionally, Gomir can download and install further malicious payloads, facilitating broader cyber-espionage or destructive activities.
C2 traffic from ADVSTORESHELL is encrypted, then encoded with Base64 encoding... APT19 HTTP malware variant used Base64 to encode communications to the C2 server... APT33 has used base64 to encode command and control traffic.
[Gomir](https://attack.mitre.org/software/S1198) uses Base64-encoded content in HTTP communications to command and control infrastructure.(Citation: Symantec Troll Stealer 2024)
[Gomir](https://attack.mitre.org/software/S1198) uses a custom encryption algorithm for content sent to command and control infrastructure.(Citation: Symantec Troll Stealer 2024)
Configuration chiffrée en RC4 ... chiffrement XOR mod 255
[Gomir](https://attack.mitre.org/software/S1198) uses reverse proxy functionality that employs SSL to encrypt communications.(Citation: Symantec Troll Stealer 2024)
When sending command results ... encrypted execution result ... BirdTroy ... Command / result ... DriveTroy ... encrypts the execution result with RC4 ... uploads it to Google Drive under the filename E8C46207.res
19 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
31 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.