Skip to main content
Mallory
Malware1 associated actor

Diamorphine

Tracked since Jan 23, 2026 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
Vulns0Associated
Actors1Associated
ATT&CK10Techniques
IOCs3Tracked
Type
Rootkit
Capabilities
Defense evasionPrivilege escalation
Platforms
LinuxCloud

Diamorphine is a publicly available, open-source Linux loadable-kernel-module rootkit used to conceal malicious activity and manipulate process privileges. Its capabilities include hiding processes, concealing its own kernel module, hiding files and directories with a designated name prefix, and granting root privileges to a process. It intercepts directory-enumeration system calls such as getdents and getdents64 to filter visible entries and uses special signals passed through the kill system call to control hiding and privilege changes.

Diamorphine implements system-call interception by replacing handler pointers in the kernel syscall table. Updated versions use a kprobe-based technique to resolve otherwise unexported kernel symbols. Its traditional syscall-table interception is constrained by kernel compatibility: on x86-64 Linux 6.9 and later, syscall dispatch no longer uses that table. Deployment commonly involves compiling the source against the victim's kernel and loading the resulting module, requiring existing kernel-module-loading privileges.

TeamTNT has repeatedly deployed Diamorphine in Linux cryptojacking campaigns to hide cryptocurrency-mining processes, including XMRig. Observed environments include cloud-hosted Linux servers and Docker infrastructure. Campaigns deploying the rootkit have gained access through exposed or misconfigured container services and SSH brute-force attacks, after which shell scripts download or unpack its source, compile it locally, and load it. Diamorphine serves as a post-compromise stealth and privilege-manipulation component rather than the cryptocurrency miner itself.

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
Threat actors

Associated threat actors

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.

View more details →
TeamTNT

The group started using a Linux Kernel Module (LKM) rootkit named Diamorphine to hide their activities on infected machines.

via cloudsekcloudsek.com
MITRE ATT&CK

Techniques & procedures

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

Execution

1 technique
T1059.004Unix ShellEvidence1

The threat actor uploaded a malicious script... After the execution, the script implements several changes affecting the security configuration of the system...

Persistence

1 technique
T1547.006Kernel Modules and ExtensionsEvidence6

Reptile’s loader directly invokes the init_module syscall with an in-memory decrypted kernel blob... Effective detection should therefore focus on tracing these syscalls directly.

Privilege Escalation

3 techniques
T1068Exploitation for Privilege EscalationEvidence1

The signal SIGSUPER = 64 obtains root privileges by committing new credentials with uids = 0.

T1547.006Kernel Modules and ExtensionsEvidence6

Reptile’s loader directly invokes the init_module syscall with an in-memory decrypted kernel blob... Effective detection should therefore focus on tracing these syscalls directly.

T1548.001Setuid and SetgidEvidence1

For instance, a rootkit might intercept a specific high-numbered kill signal (e.g., kill -64 <pid>). Upon receiving this signal, the rootkit's payload could be configured to elevate privileges, execute commands, toggle hiding capabilities, or establish a backdoor.

Stealth

5 techniques
T1014RootkitEvidence10

MITRE ATT&CK catalogs the technique as T1014 under defense evasion.

T1027Obfuscated Files or InformationEvidence1

Stripping binaries and appending a single null byte significantly degraded static detections; limited XOR string/configuration encoding and lightweight packing were also used.

T1564Hide ArtifactsEvidence1

This empowers a rootkit to filter the output of the ls command to hide malicious files or prevent a specific process from being terminated.

T1564.001Hidden Files and DirectoriesEvidence1

The demonstration hooks getdents/getdents64 so that a file named “malicious_file” is hidden from ls output. The content notes that getdents is commonly hooked by LKM rootkits.

T1564.009Resource ForkingEvidence1

exec_f : Hides the malicious processes of masscan and md service executed.

Command and Control

1 technique
T1105Ingress Tool TransferEvidence1

the threat actor uploaded a malicious script... it downloads a bash script from update.aegis.aliyun.com... the script adds a cron job that downloads a copy of the patload every 30 minutes from the command-and-control (C2) server with IP address 65.108.48.150

Indicators of compromise

Observables

3 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
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 matching3Match every observed IP, domain, and hash against your live telemetry.
Associated threat actors1Groups linked to this family, with evidence pinned to each claim.
Associated vulnerabilitiesCVEs 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 mapping10Every documented technique, ranked by evidence weight.
Researcher chatterReddit, Mastodon, and CTI community discussion around this family.