How do Windows rootkits use DLL injection to hide the processes ?

I want to get more info on

1. What's DLL injection?
2. How does it work in context of rootkits?
3. Does it work on user level or kernel rootkits?
4. How does it hide the processes  / listening ports information ?
BestkidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sachinwadhwaCommented:
0
SPHCommented:
There is a very good article on this at Security Focus: http://www.securityfocus.com/infocus/1850
0
Rich RumbleSecurity SamuraiCommented:
Most rootkit's for windows require admin rights to install (see Sony's CD rootkits: http://www.sysinternals.com/blog/2005/10/sony-rootkits-and-digital-rights.html and http://xinn.org/Sony-DRM.html)
A dll injection and or hook is faily simple: http://www.codeproject.com/dll/DLL_Injection_tutorial.asp (see also PwDump and it's ilk http://www.bindview.com/Services/razor/Utilities/Windows/pwdump2_readme.cfm )
http://en.wikipedia.org/wiki/Rootkit
http://www.sysinternals.com/Utilities/RootkitRevealer.html
http://www.microsoft.com/events/EventDetails.aspx?CMTYSvcSource=MSCOMMedia&Params=%7ECMTYDataSvcParams%5E%7Earg+Name=%22ID%22+Value=%221032274950%22/%5E%7Earg+Name=%22ProviderID%22+Value=%22A6B43178-497C-4225-BA42-DF595171F04C%22/%5E%7Earg+Name=%22lang%22+Value=%22en%22/%5E%7Earg+Name=%22cr%22+Value=%22US%22/%5E%7EsParams%5E%7E/sParams%5E%7E/CMTYDataSvcParams%5E
http://research.microsoft.com/rootkit/

basically rootkits work because they are taking advantage of the debugging abilities of your processors interaction between bios and memory. Your able to intercept, modify, and then transmit data because the processor "trusts" the root kit. There are very legitimate uses for debuggers such as soft ice, they do help you to track down bug's and issues in your code as it executes, your able to stop, pause, read, modify anything you want. http://en.wikipedia.org/wiki/Debugger  http://en.wikipedia.org/wiki/Softice
The articles linked above can explain better than I. Most DLL injection requires you to have admin rights, especially with XP and 2003's DEP security enhancments, however there is always a way... http://www.foofus.net/fizzgig/pwdump/#about
-rich
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Security

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.