Tuesday, July 23, 2024
EHA

DinodasRAT Linux Malware Attack on Linux Servers to Gain Backdoor Access

DinodasRAT, also known as XDealer, is a sophisticated C++ backdoor targeting multiple operating systems. It is designed to enable attackers to monitor and extract sensitive information from compromised systems covertly.

Notably, a Windows variant of this RAT was employed in attacks against government bodies in Guyana, an operation that was thoroughly analyzed by ESET researchers and named Operation Jacana.

Following ESET’s exposé in early October 2023, a previously unknown Linux variant of DinodasRAT was uncovered.

Indications suggest that this version, labeled V10 by the perpetrators, may have been active since 2022.

However, the first detected Linux variant, V7, dates back to 2021 and has not been publicly detailed. This report delves into the technical aspects of a Linux implant utilized by the attackers.

Are you from the SOC and DFIR Teams? – Analyse linux Malware Incidents & get live Access with ANY.RUN -> Start Now for Free.

Infection and Persistence Mechanisms

The DinodasRAT Linux implant predominantly affects Red Hat-based and Ubuntu distributions. Upon execution, it generates a hidden mutex file to prevent multiple instances from running.

The backdoor achieves persistence through direct execution, SystemV or SystemD startup scripts, and by executing itself with the parent process ID as an argument, complicating detection efforts.

DinodasRAT
Backdoor main code

Victim Identification and Persistence

The RAT gathers system information and infection timing to create a unique identifier (UID) for the victim’s machine, which does not include user-specific data.

This UID comprises the infection date, an MD5 hash of the system’s hardware report, a random number, and the backdoor version.

Document

Download Free CISO’s Guide to Avoiding the Next Breach

Are you from The Team of SOC, Network Security, or Security Manager or CSO? Download Perimeter’s Guide to how cloud-based, converged network security improves security and reduces TCO.

  • Understand the importance of a zero trust strategy
  • Complete Network security Checklist
  • See why relying on a legacy VPN is no longer a viable security strategy
  • Get suggestions on how to present the move to a cloud-based network security solution
  • Explore the advantages of converged network security over legacy approaches
  • Discover the tools and technologies that maximize network security

Adapt to the changing threat landscape effortlessly with Perimeter 81’s cloud-based, unified network security platform.

The UID and other relevant details are stored in a hidden file, “/etc/.netc.conf”, which the RAT uses to maintain a profile of the backdoor.

Stealth and Service Manager Utilization

DinodasRAT employs techniques to avoid updating file access times and leverages Systemd and SystemV service managers to ensure its persistence on infected systems.

It determines the Linux distribution type and installs appropriate init scripts to launch the backdoor after network setup.

Command and Control (C2) Communication

The Linux variant communicates with its C2 server using TCP or UDP, with the domain hard-coded into the binary.

The RAT has a variable timed interval for sending information back to the C2, and if the user is root, communication is immediate.

It follows a structured network packet format and recognizes various commands for managing the infected system.

The Linux variant shares encryption methods with its Windows counterpart, using Pidgin’s libqq qq_crypt library functions and the Tiny Encryption Algorithm (TEA) in CBC mode.

It also shares encryption keys with the Windows version for C2 and name encryption.

The infrastructure used by DinodasRAT’s Linux versions was active during the analysis, with one IP address serving both Windows and Linux C2 domains.

The most affected regions include China, Taiwan, Turkey, and Uzbekistan. Kaspersky products detect this Linux variant as HEUR:Backdoor.Linux.Dinodas.a.

The discovery of the Linux variant of DinodasRAT highlights the threat actors’ capability to infiltrate Linux infrastructure. Unlike the Windows-focused Operation Jacana, the Linux variant does not prioritize user information for infection management.

Instead, it relies on hardware-specific data to generate UIDs, emphasizing the goal of maintaining access to Linux servers.

Stay updated on Cybersecurity news, Whitepapers, and Infographics. Follow us on LinkedIn & Twitter.

Website

Latest articles

SonicOS IPSec VPN Vulnerability Let Attackers Cause Dos Condition

SonicWall has disclosed a critical heap-based buffer overflow vulnerability in its SonicOS IPSec VPN....

Hackers Registered 500k+ Domains Using Algorithms For Extensive Cyber Attack

Hackers often register new domains for phishing attacks, spreading malware, and other deceitful activities. Such...

Hackers Claim Breach of Daikin: 40 GB of Confidential Data Exposed

Daikin, the world's largest air conditioner manufacturer, has become the latest target of the...

Emojis Are To Express Emotions, But CyberCriminals For Attacks

There are 3,664 emojis that can be used to express emotions, ideas, or objects...

Beware Of Fake Browser Updates That Installs Malicious BOINC Infrastructre

SocGholish malware, also known as FakeUpdates, has exhibited new behavior since July 4th, 2024,...

Data Breach Increases by Over 1,000% Annually

The Identity Theft Resource Center® (ITRC), a nationally recognized nonprofit organization established to support...

UK Police Arrested 17-year-old Boy Responsible for MGM Resorts Hack

UK police have arrested a 17-year-old boy from Walsall in connection with a notorious...
Balaji
Balaji
BALAJI is an Ex-Security Researcher (Threat Research Labs) at Comodo Cybersecurity. Editor-in-Chief & Co-Founder - Cyber Security News & GBHackers On Security.

Free Webinar

Low Rate DDoS Attack

9 of 10 sites on the AppTrana network have faced a DDoS attack in the last 30 days.
Some DDoS attacks could readily be blocked by rate-limiting, IP reputation checks and other basic mitigation methods.
More than 50% of the DDoS attacks are employing botnets to send slow DDoS attacks where millions of IPs are being employed to send one or two requests per minute..
Key takeaways include:

  • The mechanics of a low-DDoS attack
  • Fundamentals of behavioural AI and rate-limiting
  • Surgical mitigation actions to minimize false positives
  • Role of managed services in DDoS monitoring

Related Articles