Sunday, April 27, 2025
HomeCloudTeamTNT Hackers Attacking VPS Servers Running CentOS

TeamTNT Hackers Attacking VPS Servers Running CentOS

Published on

SIEM as a Service

Follow Us on Google News

TeamTNT is targeting CentOS VPS clouds with SSH brute force attacks. It has uploaded a malicious script that disables security, deletes logs, and modifies system files to kill existing miners, remove Docker containers, and redirect DNS to Google servers.

The script stealthily installs the Diamorphine rootkit to gain root privileges and maintain persistent control by modifying system settings to hide its presence, creating a backdoor user with root access, and erasing command history to cover its tracks.

Researchers discovered a new campaign targeting CentOS VPS cloud infrastructures.

- Advertisement - Google News

The attackers use SSH brute force to gain initial access and upload a malicious script that checks for previous compromises by searching for logs from other mining activities.

Checking miner existence
Checking miner existence

It checks for a recent xmrig.log file, then disables the firewall and NMI watchdog and deletes the syslog folder by modifying the permissions of various system directories and the authorized_keys file.

The script searches for an Alibaba cloud daemon and removes it. Then, it disables security measures SELinux and AppArmor to kill cryptocurrency mining processes by matching signatures.

The threat actor uses a custom tool, “tntrecht,” to modify permissions and rename legitimate processes on the compromised host, while Docker is used to terminate and remove coin miner containers, and the DNS configuration is altered to use Google DNS servers.

Free Webinar on How to Protect Small Businesses Against Advanced Cyberthreats -> Free Registration

commands executed to remove any miner running via Docker
commands executed to remove any miner running via Docker

The script modifies crontab files to establish persistence, cleans up existing jobs, and implants malicious code to ensure continuous execution and system lockdown.

It creates a cron job to periodically download a copy of the payload from a specific C2 server, which ensures the payload remains accessible even if the source is compromised. 

The crontab file’s timestamp is intentionally old to mislead security analysts and make it harder to detect malicious activity.

The script verifies root privileges, then creates a directory and copies a base64-encoded payload into it. 

When extracted, the payload reveals three files: diamorphine.c, diamorphine. h, and Makefile.

These constitute the source code of a rootkit named Diamorphine, which is available on GitHub.

Commands used to deliver the encoded payload
Commands used to deliver the encoded payload

The diamorphine rootkit, a Linux kernel module, grants attackers elevated privileges and stealthy execution capabilities.

This allows attackers to hide processes, files, and themselves and even allow users to become root, posing a significant security threat to compromised systems.

TeamTNT locked down the compromised system by using chattr to modify file attributes. This prevented the administrator from executing chatter or other recovery tools, effectively blocking any attempts to reboot, power off, or regain access to the system.

According to Group IB, the attacker creates a new user with root privileges, adds it to the sudoer group, and configures SSH to allow access using a public key, which provides persistent access to the system.

The script modifies SSH and firewall settings to enhance security and stealth, which changes the SSH port to 11222, enables public key authentication, and opens the firewall for inbound connections on port 11222. 

Analyse AnySuspicious Links Using ANY.RUN's New Safe Browsing Tool: Try It for Free

Aman Mishra
Aman Mishra
Aman Mishra is a Security and privacy Reporter covering various data breach, cyber crime, malware, & vulnerability.

Latest articles

How To Use Digital Forensics To Strengthen Your Organization’s Cybersecurity Posture

Digital forensics has become a cornerstone of modern cybersecurity strategies, moving beyond its traditional...

Building A Strong Compliance Framework: A CISO’s Guide To Meeting Regulatory Requirements

In the current digital landscape, Chief Information Security Officers (CISOs) are under mounting pressure...

Two Systemic Jailbreaks Uncovered, Exposing Widespread Vulnerabilities in Generative AI Models

Two significant security vulnerabilities in generative AI systems have been discovered, allowing attackers to...

New AI-Generated ‘TikDocs’ Exploits Trust in the Medical Profession to Drive Sales

AI-generated medical scams across TikTok and Instagram, where deepfake avatars pose as healthcare professionals...

Resilience at Scale

Why Application Security is Non-Negotiable

The resilience of your digital infrastructure directly impacts your ability to scale. And yet, application security remains a critical weak link for most organizations.

Application Security is no longer just a defensive play—it’s the cornerstone of cyber resilience and sustainable growth. In this webinar, Karthik Krishnamoorthy (CTO of Indusface) and Phani Deepak Akella (VP of Marketing – Indusface), will share how AI-powered application security can help organizations build resilience by

Discussion points


Protecting at internet scale using AI and behavioral-based DDoS & bot mitigation.
Autonomously discovering external assets and remediating vulnerabilities within 72 hours, enabling secure, confident scaling.
Ensuring 100% application availability through platforms architected for failure resilience.
Eliminating silos with real-time correlation between attack surface and active threats for rapid, accurate mitigation

More like this

How To Use Digital Forensics To Strengthen Your Organization’s Cybersecurity Posture

Digital forensics has become a cornerstone of modern cybersecurity strategies, moving beyond its traditional...

Building A Strong Compliance Framework: A CISO’s Guide To Meeting Regulatory Requirements

In the current digital landscape, Chief Information Security Officers (CISOs) are under mounting pressure...

Two Systemic Jailbreaks Uncovered, Exposing Widespread Vulnerabilities in Generative AI Models

Two significant security vulnerabilities in generative AI systems have been discovered, allowing attackers to...