KLC
Consulting, Inc.
|
Where are Trojans hiding? |
Tel: 617-921-5410 |
| Trojan Analysis | Security Resources | Spoof MAC Address |
Updated 04/24/2003
URL of this article is: http://www.klcconsulting.net/trojan/trojan_identification.htm
Author
:
Kyle
Lai, CISSP, CISA
KLC
Consulting, Inc.
In
any cases of virus/worm/Trojan infections, we should not automatically assume
that HKLM\Software\Microsoft\Windows\CurrentVersion\Run registry key is the only
place Trojans try to tamper, otherwise we would be in a false sense of
security TRAP.
There
are many other places on a Windows system that Trojans can add scripts and
shortcuts to startup Trojan processes:
¡P
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
¡P
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce]
¡P
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServices]
¡P
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunServicesOnce]
¡P
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
¡P
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce]
Note:
For the following registry keys, the key value should be exactly "%1
%*" . Any programs that are added to the key value will get executed
every time a binary file (.exe, .com) is executed, i.e."Trojan.exe %1
%*".
¡P
[HKEY_CLASSES_ROOT\exefile\shell\open\command]
¡P
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\exefile\shell\open\command]
Also,
check
¡P
Startup
folder: to go to this folder, click on Start->Programs->Startup, and
right click on Startup and select "Open" from the menu. Check
every file in this folder and make sure you know what they are. These
files will startup automatically every time you login to your systems.
¡P
Windows
Scheduler - check if any programs are scheduled to startup at any specific time.
o
For Windows
NT, 2000 and XP systems, use AT command to verify. Go to command prompt
and type "at" and if there is any scheduled tasks, it will display
"Status, ID, Day of execution, Time of execution, and Command line to be
executed"
o
For Windows
9x/ME systems, use Windows Explorer and go to Task Scheduler, which is under My
Computer.
¡P
Win.ini
(load=Trojan.exe or run=Trojan.exe)
¡P
system.ini
(Shell=Explorer.exe trojan.exe)
¡P
autoexec.bat
- look for added Trojan files, may be in the following file extensions: .exe, .scr,
.pif, .com, .bat
¡P
config.sys -
look for added Trojan files
¡P
Any
suspicious or new batch files (.BAT), which might call the actual Trojan.
In
addition,
watch out for social engineering... Social engineering? Yes.
Don't be fooled by processes or programs with similar and/or exactly the same
filename as the legitimate Windows system programs. Many known Trojans
have included programs with exact same name as Windows system programs, but put
them into different folders. Many people lower their guard when they see
familiar Windows system programs, and some Trojans did successfully create
deceptions and exploit this human vulnerability. If you just use the
Windows Task Manager to check processes, you might be fooled if you don't
examine them carefully. You might want to use some other tools for
detailed examination i.e. pstools from www.systeminternals.com.
Here
are some sample filename of files included in recent Trojans: (assuming Windows
is installed in c:\windows or c:\winnt)
¡P
Explorer.exe
- a legitimate program exists in \Windows or \Winnt folder, NOT
\Windows\system32 or \Winnt\system32, or anywhere else
¡P
Rundll32.exe
- a legitimate program exists in \Windows\system32 or \Winnt\system32 folder,
not anywhere else
¡P
taskmngr.exe
- the legitimate program is called "taskmgr.exe", not taskmngr.exe"
Let's
be vigilant about the files, registries and different places that Trojan
can touch.
¡P
Ocxdll.exe/mIRC
Virus Analysis by KLC Consulting: http://www.klcconsulting.net/mirc_virus_analysis.htm
¡P
Deloder worm
/ IRC worm/Trojan Analysis by KLC Consulting: http://www.klcconsulting.net/deloder_virus_analysis.htm
¡P The Complete Windows Trojans Paper By Dancho Danchev: http://www.frame4.com/
|
Additional resources on recovery: |
Trojan Ports list: |
|
CERT - Steps for Recovering from a UNIX or NT System Compromise |
|
|
Compromised Computer Identification and Fixing Guidelines by Allen Chang at UC Berkeley |
|
|
Additional resources on Trojan Horse: |
http://www.iss.net/security_center/advice/Exploits/Ports/default.htm |
|
|
|
|
mIRC Trojan Variants: |
|
|
IETF Assigned Ports: |
|
| http://www.iana.org/assignments/port-numbers |
Copyright © 2002-2008 KLC
Consulting, Inc..
All rights reserved.