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.



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
@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins&family=Roboto&display=swap');
*{
margin: 0; padding: 0;
text-decoration: none;
}
.container{
font-family: roboto, sans-serif;
width: 90%;
border: 1px solid lightgrey;
padding: 20px;
background: linear-gradient(2deg,#E0EAF1 100%,#BBD2E0 100%);
margin: 20px auto ;
border-radius: 40px 10px;
box-shadow: 5px 5px 5px #e2ebff;
}
.container:hover{
box-shadow: 10px 10px 5px #e2ebff;

}
.container .title{
color: #015689;
font-size: 22px;
font-weight: bolder;
}
.container .title{
text-shadow: 1px 1px 1px lightgrey;
}
.container .title:after {
width: 50px;
height: 2px;
content: ' ';
position: absolute;
background-color: #015689;
margin: 20px 0;
}
.container h2{
line-height: 40px;
margin: 5px 3px;
font-weight: bolder;
}
.container a{

color: #170d51;
}
.container p{
font-size: 18px;
line-height: 30px;
margin: 10px 0;

}

.container button{
padding: 15px;
background-color: #4469f5;
border-radius: 10px;
border: none;
background-color: #00456e ;
font-size: 16px;
font-weight: bold;
margin-top: 5px;
}
.container button:hover{
box-shadow: 1px 1px 15px #015689;
transition: all 0.2S linear;

}
.container button a{
color: white;
}
hr{
/ display: none; /
}

.listWrapper {
padding-left: 4rem;
/*list-style-type: none;*/
}

.listWrapper li {
/*padding-left: 2rem;
background-image: url(star.svg);*/
background-position: 0 0;
line-height: 2rem;
background-size: 1.6rem 1.6rem;
background-repeat: no-repeat;
}

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.


Download Perimeter 81 Free PDF Guide



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 .
The post DinodasRAT Linux Malware Attack on Linux Servers to Gain Backdoor Access appeared first on GBHackers on Security | #1 Globally Trusted Cyber Security News Platform .