Main Menu
Home
Bookmark
Contact Us



 
Linux.RS Viruses Information

Name: Linux.RS
Category: Viruses
Description: Details
Linux.RST

This text was written by Costin Raiu, Kaspersky Labs, Romania
This is a Linux virus that also implements several backdoor facilities, allowing an attacker to take control of the system infected with it in case the virus has been executed on account with root priviledges. The virus infects all the Linux binary executables in the current directory and the /bin directory, and listens to the first network card 'eth0' as well on the first PPP connection interface, and 'ppp0' for special packets sent in the EGP communication protocol. Whenever such a special package arrives, the virus allows the attacker to take control of the system with a root shell.
The virus will also attempt to create two new devices in the /dev directory, named "/dev/hdx1" and "/dev/hdx2", and tries to access a Web page on the ns1.xoasis.com web server.
Technical details:
The viral part works by attaching itself to normal ELF executables, patching their header, and moving the entrypoint to the viral code. At the same time, the virus relocates all the data found after the original host code to the end of its own code. It is interesting to note that the virus also performs an anti-debugging check by seeing whether the current process is 'ptrace'-ed. If so, it will immediately terminate execution. If not, the virus looks for all the files in the current directory, and attempts to infect them. After this, it will also attempt to infect all the files in the '/bin' directory, which under normal conditions will only work if the infected program has been run under an account with higher privileges. There is no attempt in the viral code to exploit any Linux vulnerabilities in order to obtain higher access when the virus is run on a normal user account.
The backdoor part of the virus attempts to create two new devices named "/dev/hdx1" and "/dev/hdx2", and if the creation succeeds, it checks for the existence of the two standard network interfaces 'eth0' or 'ppp0', and attempts to set them into "promiscuous" mode. It also attempts to create an "Exterior Gateway Protocols" (EGP) raw socket, and put it into listening mode.
When a special EGP IP packet arrives, the virus will check whether the 23rd byte in the data-packet is 0x11, then it will check for the presence of a specific password, as a 3-byte string at the offset 0x2a in the buffer. If these two conditions are met, the backdoor will check for a "command" byte, which is either 1 or 2 - if the "command" byte is "1", it will spawn a standard "/bin/sh" shell, which the attacker can control on the remote system.
Two strings can be seen inside the virus, but they are not used anywhere in the code. These strings are "snortdos" and "tory".



Top Viruses Visited Pages:
Invader. - 234 visits
not-a-virus:RiskWare.Tool.RegPatch. - 71 visits
Worm.P2P.Harex. - 65 visits
not-a-virus:RemoteAdmin.Win32.RAdmin.2 - 59 visits
Small.58. - 56 visits
Coito.64 - 54 visits
I-Worm.Mapson. - 47 visits
Win16.Klon.1177 - 42 visits
Win32.Hidra - 42 visits
Marine.500 - 35 visits

Random Viruses Pages:
Bog.233.
Europe Famil
Trojan.PSW.Needinf
Macro.Word.MinSiz
WhiteShark.52
RZ.16
BWME.FMS.100
Strategy.48
ParityError Famil
Fumble Famil


 


© 2006-2008 spyware32.com - Privacy Policy