Kobalos is a compact, cross-platform backdoor targeting Linux and other Unix systems, including BSD and Solaris. It has compromised high-performance computing clusters and scientific research networks, as well as an Asian internet service provider, a North American endpoint security vendor, and personal servers. It provides remote filesystem access, interactive terminal sessions, and connection proxying between infected hosts. Multiple compromised machines can be chained as proxies, and an infected server can be instructed to act as command-and-control infrastructure.
Kobalos is commonly embedded in the OpenSSH server executable, where connections originating from a specific TCP source port trigger backdoor access. Standalone variants either listen for inbound connections or connect to an intermediary command-and-control server. Authentication and key exchange use 512-bit RSA and a 32-byte password, with subsequent traffic encrypted using RC4. Encrypted strings, a single recursively invoked function implementing its logic, and timestamp manipulation of replaced executables complicate analysis and detection.
Many compromised systems also contain a trojanized SSH client that captures destination hostnames, ports, usernames, and passwords from outbound SSH connections. Early credential-stealer variants store captured credentials locally, while newer variants can exfiltrate them over the network. This credential theft can facilitate further compromises, although the initial infection mechanism and operators’ ultimate objectives remain undetermined. Kobalos activity has not been linked to the cryptocurrency-mining incidents separately reported against high-performance computing environments.
18 distinct techniques documented for this family, organized by ATT&CK tactic.
[Kobalos](https://attack.mitre.org/software/S0641) can spawn a new pseudo-terminal and execute arbitrary commands at the command prompt.(Citation: ESET Kobalos Feb 2021)
During the 2016 Ukraine Electric Power Attack, Sandworm Team used a trojanized version of Windows Notepad to add a layer of persistence for Industroyer.
[Kobalos](https://attack.mitre.org/software/S0641) is triggered by an incoming TCP connection to a legitimate service from a specific source port.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) replaced the SSH client with a trojanized SSH client to steal credentials on compromised systems.(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) encrypts all strings using RC4 and bundles all functionality into a single function call.(Citation: ESET Kobalos Feb 2021)
“Kobalos’s code is flattened into a single function using a custom packer and its strings are encrypted.”
[Kobalos](https://attack.mitre.org/software/S0641) can remove all command history on compromised hosts.(Citation: ESET Kobalos Feb 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can modify timestamps of replaced files, such as <code>ssh</code> with the added credential stealer or <code>sshd</code> used to deploy [Kobalos](https://attack.mitre.org/software/S0641).(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) decrypts strings right after the initial communication, but before the authentication process.(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) is triggered by an incoming TCP connection to a legitimate service from a specific source port.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
During the 2016 Ukraine Electric Power Attack, Sandworm Team used a trojanized version of Windows Notepad to add a layer of persistence for Industroyer.
[Kobalos](https://attack.mitre.org/software/S0641) has used a compromised SSH client to capture the hostname, port, username and password used to establish an SSH connection from the compromised host.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can record the IP address of the target machine.(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can record the hostname and kernel version of the target machine.(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) has used a compromised SSH client to capture the hostname, port, username and password used to establish an SSH connection from the compromised host.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can write captured SSH connection credentials to a file under the <code>/var/run</code> directory with a <code>.pid</code> extension for exfiltration.(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can chain together multiple compromised machines as proxies to reach their final targets.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) is triggered by an incoming TCP connection to a legitimate service from a specific source port.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
The content is a catalog of malware and threat groups that encrypt command-and-control communications using algorithms such as DES, AES, RC4, XOR, Blowfish, RSA, Camellia, RC2, RC6, and custom ciphers.
[Kobalos](https://attack.mitre.org/software/S0641)'s post-authentication communication channel uses a 32-byte-long password with RC4 for inbound and outbound traffic.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641)'s authentication and key exchange is performed using RSA-512.(Citation: ESET Kobalos Feb 2021)(Citation: ESET Kobalos Jan 2021)
[Kobalos](https://attack.mitre.org/software/S0641) can exfiltrate credentials over the network via UDP.(Citation: ESET Kobalos Jan 2021)
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.