Computer Trojan
HorsesComputer Trojan Horses
Contents- What
is a trojan? - Why the name 'trojan horse'?
- Remote Administration
Trojans - How RATs work
- Using RATs for legitimate
purposes - Password Trojans
- Priviledges-Elevating
Trojans - Keyloggers
- Destructive Trojans
- Joke
Programs - Protecting Yourself Against Trojans
What is a trojan?A
trojan horse could be either:
a) Unauthorized instructions
contained within a legitimate program. Theseinstrcutions perform
functions unknown to (and probably unwanted by) the user.
b) A
legitimate program that has been altered by the placement of
anauthorizedinstructions within it. These instructions perform
functions unknown to (andprobably unwanted by) the user.
c) Any
program that appears to perform a desirable and necessary function
butthat (because of unauthorized instructions within it) performs
functionsunknown to (and probably unwanted by) the user.
Under
a restricted environment (a restricted Unix shell or a
restrictedWindows computer), malicious trojans can't do much, since
they are restrictedin their actions. But on a home PC, trojans can be
lethal and quitedestructive.
Why the name 'trojan
horse'?In the 12th century B.C., Greece declared war on
the city of Troy. The disputeerupted when the prince of Troy abducted
the queen of Sparta and declared thathe wanted to make her his wife,
which made the Greeks and especially the queenof Sparta quite
furious.
The Greeks gave chase and engaged Troy in a 10-year
war, but unfortunatelyfor them, all of their efforts went down the
drain. Troy was simply too wellfortified.
In a last effort, the
Greek army pretended to be retreating, leaving behind ahude wooden
horse. The people of Troy saw the horse, and, thinking it was somekind
of a present from the Greeks, pulled the horse into their city,
withoutknowing that the finest soldiers of Greece were sitting inside
it, since thehorse was hollow.
Under the cover of night, the
soldiers snuck out and opened the gates of thecity, and later,
together with the rest of the army, killed the entire army
ofTroy.
This is why such a program is called a trojan horse -
it pretends to dosomething while it does something completely
different, or does what it issupposed to be and hides it's malicious
actions from the user's prying eyes.
During the rest of this
text, we will explain about the most common types oftrojan
horses.
Remote Administration TrojansThese
trojans are the most popular trojans now. Everyone wants to havethem
trojan because they let you have access to your victim's harddrive,
and also perform many functions on his computer (open and close
hisCD-ROM drive, put message boxes on his computer etc'), which will
scare offmost computer users and are also a hell lot of fun to run on
your friends orenemies.
Modern RAT'S (remote administration
trojans) are verysimple to use. Theycome packaged with two files - the
server file and the client file (if youdon't know which is which, look
for a help file, a FAQ, a readme orinstructions on the trojan's
homepage). Just fool someone into runnig theserver file and get his IP
and you have FULLcontrol over his/her computer(some trojans are
limited by their functions, but more functions also meanlarger server
files. Some trojans are merely ment for the attacker to use themto
upload another trojan to his target's computer and run it, hence they
takevery little disk space). You can also bind trojans into other
programswhich appear to be legitimate.
RAT'S have the common
remote access trojan functions like:
keylogging(logging the
target's keystrokes (keyboard functions) and sometimes eveninterfering
with them, thus being able to use your keyboard to typeinstead of the
target and say weird things in chatrooms or scare thehell out of
people), upload and download function, make a screenshot of
thetarget's monitor and so on.
Some people use the trojans for
malicious purposes. They either use them toirritate, scare or harm
their enemies, scare the hell out of their friends orenemies and seem
like a "super hacker" to them, getting information aboutpeople and
spying on them or just get into people's computers and deletestuff.
This is considered very lame.
There are many programs out there
that detects the most common trojans (suchas Nemesis at arunnet.co.cc,
which also detects people trying to accessyour computer), but new
trojans arereleased every day and it's pretty hard tokeep track of
things.
Trojans would usually want to automatically start
whenever you boot-up yourcomputer. If you use Windows, you can get
b00tm0n from arunnet.co.cc (note:at the time this tutrial was
released, b00tm0n was not ready yet, but itshould be ready some time
before year 2,000, so if you're reading this afterY2K, b00tm0n should
probably be available at arunnet.co.cc). Under Unix, wesuggest getting
some sort of an IDS (Intrusion Detection System) programs tomonitor
your system.
Most Windows trojans hidefrom the Alt+Ctrl+Del
menu (we havn't seen any Unixprogram that had the ability to hide
itself from the processes list yet, butyou can never know - one day
someone might discover a way to do so. Hell,someone might have already
did). This is bad because there are people who usethe task list to
seewhich process are running. There are programs that willtell me you
exactly what processes are running on your computer (such asWintop,
which is the Windows version of the popular Unix program called
top).Some trojans, however, use fake names and it's a little harder
for certainpeople to realize that they are infected.
Also, some
trojans might simply open an FTP server on your computer (usuallyNOT
on port 21, the default FTP port, in order to be less noticable). The
FTPserver is, of course, unpassworded, or has a password which the
attacker hasdetermined, and allows the attacker to download, upload
and execute filesquickly and easily. For more info about FTP servers
and FTP security, read ourFTP security tutorial at
HREF="
http://arunnet.co.cc">arunnet.co.cc.
How RATs
workRemote administration trojans open a port on your
computer and bind themselvesto it (make the server file listen to
incoming connections and data goingthrough these ports). Then, once
someone runs his client program andenters the victim's IP, the trojan
starts receiving commands from theattacker and runs them on the
victim's computer.
Some trojans let youchange this portinto any
other port and also put a password so only the personthat infect this
specific computer will be able to use the trojan. However,some of
these password protections can be cracked due to bugs in the
trojan(people who program RATs usually don't have much knowledge in
the field ofprogramming), and in some cases the creator of the trojan
would also put abackdoor (which can be sometimes detected, under
certain conditions) withinthe server file itself so he'll be able to
access any computer running histrojan without the need to enter a
password. This is called "a backdoor withina backdoor".
The
most popular RATs are Netbus (because of it's simplicity), BO (has
manyfunctions and hides itself pretty good) and Sub7 (lots of
functions and easyto use). These are all Windows RATs.
If you
havn't done so already, it is advised to get some RAT and play
aroundwith it, just to see how the whole thing works.
Using RATs
for legitimate purposesSome people use RATs to remotely
administer computers they are allowed to haveaccess to. This is all
good and fine, but anyway, you should always be carefulwhile working
with RATs. Make sure you have legal access and the right toremotely
administer a computer before using a RAT on it.
Password
TrojansYes, password trojans. Password trojans scour your
computer for password andthen send them to the attacker or the author
of the trojan. Whether it's yourInternet password, your Hotmail
password, your ICQ password or your IRCpasswords, there is a trojan
for every passsword.These trojans usually send the information back to
the attacker via Email.
Priviledges-Elevating
TrojansThese trojans would usually be used to fool system
administrators. They caneither be binded into a common system utility
or pretend to be somethingunharmful and even quite useful and
appealing. Once the administrator runs it,the trojan will give the
attacker more priviledges on the system.These trojans can also be sent
to less-priviledges users and give the attackeraccess to their
account.
KeyloggersThese trojans are very
simple. They log all of your keystrokes (includingpasswords), and then
either save them on a file or Email them to the attackeronce in a
while.
Keyloggers usually don't take much disk space and can
masquerade as importantutilities, thus making them very hard to
detect.Some keyloggers can also highlight passwords found in text
boxes with titlessuch as 'enter password' or just the word password
somewhere within the titletext.
Destructive
TrojansThese little fellows do nothing but damaging your
computer. These trojans candestroy your entire hard drive, encrypt or
just scramble important files andbasically make you feel very
unpleasent. I wouldn't want to bump into one in adark
alley.
Some might seem like joke programs, while they are
actually tearing every filethey encounter to pieces.
Joke
ProgramsJoke programs are nice, cute and unharmful. They
can either pretend to beformatting your hard drive, sending all of
your passwords to some evilcracker, self-destructing your computer,
turning in all information aboutillegal and pirated software you might
have on your computer to the FBI etc'.They are certainly no reason to
worry about (except if you work in techsupport, since unexperienced
computer users tend to get scared off prettyeasily by joke
programs.
Protecting Yourself Against
TrojansUnder UnixIf you are working on
your PC, DO NOT work as root! If you run a trojan asroot, you can
endanger your entire system! The whole point in multi-users on
asingle-user system is limiting yourself in such cases (or in case you
want toprevent yourself from doing anything stupid). Switch to root
only when youNEED root, and when you know what you're running. Also,
remember that even ifyou're working on a restricted environment, you
still put the passwords andfiles you still have access to to risk.
Also, if someone has a keylogger onyour system, and you type in some
passwords (especially the root password),they will be
logged!
Also, DO NOT download any files from untrusted
sources(small websites, underground websites, Usenet newsgroups, IRC
etc'), even ifit comes in the form of source code.
Under
WindowsWindows is a whole lot different in this aspect.
Limiting yourself underWindows is quite an annoyance. It is almost
impossible to work like that, incomparison to Unix.
Also, make
sure you don't run any untrusted software. There are much more
evilWindows trojans for Windows than Unix, since people are more
motivated towrite trojans for Unix (because of all the security Unix
imposes).Also, when running on a restricted Windows environment, you
cannot just actlike you're so protected and all. Remember that people
can still stealpasswords owned by the restricted user, and also, some
trojans can break intoadministrator priviledges and then compromise
your entire system, sinceWindows imposes such lame
security.
Oh, and one last tip - you should try to download and
use at least some of thetypes of trojans listed above, so you could
get to know them better and beable to remove them in case you get
infected.
1 comment:
whoa!
Post a Comment