Home
Calendar
Certifications
Columns
Features
Forum
Resources
Vitals
Latest Additions
April 2013 Free Giveaway Sponsor - eLearnSecurity
Human Intelligence to Navigate the Security Data Deluge
February 2013 Free Giveaway Winner of SANS CyberCon Training
Interview: Bugcrowd Founders on Herding Ninjas for Crowdsourced Bug Bounties
Network Forensics: The Tree in the Forest
March 2013 Free Giveaway Sponsor - Mile2
Book Review: Violent Python
February 2013 Free Giveaway Sponsor - SANS
Holiday 2012 Free Giveaway Winner of Metasploit Pro by Rapid7
Course Review: SANS FOR408 Computer Forensic Investigations – Windows In-Depth
The Security Consulting Sugar High
Tutorial: Fun with SMB on the Command Line
Interview: Ilia Kolochenko, CEO of High-Tech Bridge
October 2012 Free Giveaway Winner of LearningGate Training
The Broken: Assessing Corporate Security in 2012 to Make a Better 2013
EH-Net Login
Welcome Guest.
Username:
Password:
Remember me
Lost Password?
No account yet?
Register
Who's Online
We have 33 guests and 1 member online
Free Business and Tech Magazines and eBooks
You are here:
Home
Ethical Hacking Discussions and Related Certifications
Network Pen Testing
backdoor actions
EH-Net
May 20, 2013, 09:37:10 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
: Go back to The Ethical Hacker Network Online Magazine
Home Page
Home
Help
Calendar
Login
Register
EH-Net
>
Ethical Hacking Discussions and Related Certifications
>
Network Pen Testing
(Moderator:
don
) >
backdoor actions
Pages: [
1
]
2
Go Down
« previous
next »
Print
Author
Topic: backdoor actions (Read 8549 times)
0 Members and 1 Guest are viewing this topic.
viruz
Jr. Member
Offline
Posts: 50
backdoor actions
«
on:
June 04, 2009, 07:37:12 PM »
if i may ask, what do you guys do when you notice a backdoor action on your machine, you netstat and see unknown established connections, you find the rootkit and cannot see it, you also look into hiddens files and folders and yet cannot see the backdoor, what do you do?
Logged
apollo
Full Member
Offline
Posts: 146
Re: backdoor actions
«
Reply #1 on:
June 04, 2009, 08:49:34 PM »
I would start out with a "netstat -ano" in the shell console and look for the pid. I would then pull up process list and see what the process was. Once I had the pid, from the console window I might do a 'tasklist /M /FI "PID eq <PID FROM netstat>"' and see if there are any dlls loaded that would possibly cause issues. I would download sysinternals suite, look at rootkit revealer, and look at the process listing to see what might be hidden from traditional tools.
As far as getting rid of whatever it is, malware bytes anti-malware is a descent place to start. You say you found the rootkit and can't see it, could you elaborate ?
Logged
CISSP, CSSLP, MCSE+Security, MCTS, CCSP, GPEN, GWAPT, GCWN, NOP, OSCP, Security+
viruz
Jr. Member
Offline
Posts: 50
Re: backdoor actions
«
Reply #2 on:
June 04, 2009, 09:03:07 PM »
thanks for your response, i was doing a research on ircd and bots, i opened a link and my browser was infected and said hiddenwebcamviewer.exe was successfully installed, i ran into a trojan..lol, i did netstat and saw a strange connection, did whois on the ip and aol was the service provider, then i check view hidden files and folders in CP and look at my windows and system32 dir, found nothing, ran m y AV and anti malware, still found nothing with it either..guess it was well packed and crypted, i still run netstat and finds strange connection, just giving me headache.
i hope you understand
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: backdoor actions
«
Reply #3 on:
June 05, 2009, 12:49:30 AM »
Once a rootkit is on your machine, it's tough to see what it's doing. One easy thing to do is use nmap from another machine and scan your infected box. The rootkit will likely hook various APIs on your machine, making detection difficult. If you take the detection task outside your machine, you are in better shape.
Logged
~~~~~~~~~~~~~~
Ketchup
former33t
Full Member
Offline
Posts: 226
Re: backdoor actions
«
Reply #4 on:
June 05, 2009, 06:36:43 PM »
Ketchup is right. I do a lot of this for a living and I can honestly say that once you are "rooted" it is REALLY difficult to
know
that you have a clean system again. Truly skilled attackers will often leave two backdoors, one much more obvious than the other so they can get back in to critical systems. If this is just your home machine, then maybe just one backdoor, maybe not.
No joke, if it were me I'd back up my data and rebuild the machine from the ground up. Just too much bad stuff is possible to leave an attacker on my machine.
If you must have your machine without rebuilding, look at the system from the outside in. Backdoors have to communicate with the outside world. They either are called in to or they call out themselves. Putting a machine where you can listen inbetween the compromised machine and the internet and capturing packets will tell you if it is calling out. As for calling in, in most simple examples the attacker configures a backdoor that listens on a port. As ketchup said, fire up nmap and try to connect to every port. If you see it as open, but a netstat shows it closed, there's your listener. How to get rid of it is a whole different topic.
Good luck.
Logged
Certifications: CREA, MCSE: Security, CCNA, Security+, other junk
viruz
Jr. Member
Offline
Posts: 50
Re: backdoor actions
«
Reply #5 on:
June 05, 2009, 06:59:37 PM »
thanks for the post, i think its a big hell on my pc, i did as Ketchup said, i ran nmap from a different pc and all probes were bounced by my firewall as it returned all ports were filtered. and still i run netstat and see different connectiosn, some are established, some time_wait, some last_ack and another syn_sent, of unknown pple.
i think i will have to sniff the traffic and see what happens really as you have said.
thanks
Logged
Otter
Newbie
Offline
Posts: 41
Re: backdoor actions
«
Reply #6 on:
June 06, 2009, 02:43:41 AM »
Quote from: viruz on June 05, 2009, 06:59:37 PM
thanks for the post, i think its a big hell on my pc, i did as Ketchup said, i ran nmap from a different pc and all probes were bounced by my firewall as it returned all ports were filtered. and still i run netstat and see different connectiosn, some are established, some time_wait, some last_ack and another syn_sent, of unknown pple.
i think i will have to sniff the traffic and see what happens really as you have said.
thanks
I think you're on the right track. One thing I recall from my first exposure to incident response: once you're compromised, that machine can't be trusted to tell you ANYTHING until you fdisk, reformat and reinstall from original readonly media. Therefore, I totally disagree with any endorsement of any anti-malware cleanup software. There's no way to know you got "everything" with such tools, particularly with polymorphic payloads that so easily evade signature based detection, or don't leave any traces behind anyway.
One very passive thing you can do to see what's going on (if it's a home machine) is disconnect all devices but the suspect machine, slap a hub between your cable model or dsl router and your router/switch, hang a backtrack box (without starting networking and dhcp) off of it, don't assign an IP to the ethernet interface, and passive listen to the traffic going out of your network with wireshark. If you can add snort into the mix to analyze things for you on the fly, so much the better.
The problem with netstat on the box... is you don't know if netstat itself has been trojaned to hide connections that are occurring. Running a statically linked binary off a cd may be better, but if the kernel is sufficiently owned, it may lie to the binary, etc. It's a bit of a house of cards with respect to trust.
Good luck, and I hope your efforts are both educational and turn up that it's all much ado about nothing!
Logged
viruz
Jr. Member
Offline
Posts: 50
Re: backdoor actions
«
Reply #7 on:
June 06, 2009, 06:25:47 AM »
it is all educational and has nothing to do wit nothing as u specified, i was actually infected and need to get those things out to prevent pple spying on me.
i think i will just rebuild the machine, maybe that will be easy.
Logged
former33t
Full Member
Offline
Posts: 226
Re: backdoor actions
«
Reply #8 on:
June 06, 2009, 09:13:20 AM »
To add to Otter's observation:
Quote
once you're compromised, that machine can't be trusted to tell you ANYTHING until you fdisk, reformat and reinstall from original readonly media.
It will only get worse. We're on the verge of computer crime being profitable enough to target specific models of machines for BIOS level malware. How we'll be detecting those is anyone's guess.
Otter is correct about not trusting netstat. Even with a known good netstat binary, kernel hooks can hide established network connections. He's right that you can't trust anything on that machine.
Logged
Certifications: CREA, MCSE: Security, CCNA, Security+, other junk
Ketchup
Hero Member
Offline
Posts: 1021
Re: backdoor actions
«
Reply #9 on:
June 06, 2009, 12:36:49 PM »
If you don't have access to EnCase or FTK, one other thing you can try is booting from a Helix or maybe even a Backtrack disc. Chances are (you can only hope), your rootkit is Windows only. Mount your drive in Linux, and do a find for any files that were modified / accessed since the last time your computer behaved properly. Then figure out if those files are legit or if they are part of the rootkit.
Note that this is more of an educational / investigative task. Chances are, the rootkit is deep in your system and hooked and wrote itself to a few Windows processes and will not go away easily. It will also have modified a few registry entries (like the Userinit key) that will make your life annoying ever if you manage to remove it. But, if you are curious to see what it is doing, this is a great exercise in my opinion. We can even guide you with the Linux commands and tools if you are uncomfortable.
Logged
~~~~~~~~~~~~~~
Ketchup
Andrew Waite
Hero Member
Offline
Posts: 928
Re: backdoor actions
«
Reply #10 on:
June 06, 2009, 02:42:20 PM »
I'd definitely second (3rd, 4th, ...?) the call for a rebuild. It's the
only
way to guarantee a clean system.
But I'd also go with Ketchup's suggest of booting from a Linux distro, might not help you ensure 100% that a system is clean, but it's usually fun to have a play around and do some learning with the infection before rebuilding. If nothing else it's just fun (but I may be a tad on the sad side....)
Logged
--
http://www.infosanity.co.uk
--
http://blog.infosanity.co.uk
viruz
Jr. Member
Offline
Posts: 50
Re: backdoor actions
«
Reply #11 on:
June 06, 2009, 09:26:50 PM »
yea i really appreciate the post, to me it seems more of forensic work and i need to be really really focused to know where actually it is hidden.
Ketchup, i have backtrack mounted and i am dual booting both bt3 and windows, i would not mind if you can assist me with the commands to get me started....i believe getting to know and find the rootkit will actually add to my understand and knowledge rather than rebuilding the system out of fear....for someone to be good in something, challenges has to come coz they are good for knowledge, so i will take this opportunity to learn since i dont have any vital things on the system to be afraid of losing....guiding me through will be absolutely welcomed.
i appreciate your kind gesture, thanks
Logged
Ketchup
Hero Member
Offline
Posts: 1021
Re: backdoor actions
«
Reply #12 on:
June 07, 2009, 01:56:52 AM »
If you are dual booting backtrack, you are in good shape. You can mount your NTFS Windows drive with the following steps:
1. find out what drive label you are using and and get a list of partitions on it. Just run the
mount
command and it will tell you what's mounted where. Let's assume that your drive is
/dev/sda
.
2. run
fdisk -l /dev/sda
to get a listing of partitions on the drive. Let's assume that your windows partition is
/dev/sda1
3. Make a directory in the /mnt/ folder for your partion:
mkdir /mnt/sda1
. then run the mount command to mount your drive (read only):
mount /dev/sda1 /mnt/sda1 -t ntfs-3g -o ro
. Note that you may get an error about the NTFS system being dirty. In that case, just add
-o force
.
The next thing I would do is run the trust find command to look for files that were modified since the when you think you got infected. Let's say that you go infected two days ago, your find command would look like this:
find /mnt/sda1 -mtime -2 > filestoinvestigate.txt
. The minus 2 indicates 2*24 hours or less from now.
You will get quite a bit of files here. I would begin by concentrating on the ones found in the WINDOWS folder and subfolders, ones in the temporary folders, ones in the User Profile root directory, and ones in the Common Files folder. There are other locations to look, but this is a good start.
This should get you started at pin-pointing the files that could belong to the rootkit.
One other thing you can try is read up on Autopsy, which is included on Backtrack. I haven't used it much, but I know it has some nice timeline features that could help you with this. You can add your entire drive to to Autopsy and it will parse the file system. I find it a bit cumbersome though.
Logged
~~~~~~~~~~~~~~
Ketchup
viruz
Jr. Member
Offline
Posts: 50
Re: backdoor actions
«
Reply #13 on:
June 07, 2009, 08:47:05 AM »
thanks bro, i will follow the guide now and come back with feedback, thanks
I did the exercise now and here is what i got, does it mean that all this files are infected and corrupted?
bt ~ # find /mnt/hda1 -mtime -5 > hiddenwebcamviewer.exe
find: /mnt/hda1/Documents and Settings/All Users/Application Data/Pure Networks/Platform/networklib.xml: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Application Data/Free Download Manager/downloads.sav: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Application Data/Free Download Manager/uploads.5.sav: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Application Data/Mozilla/Firefox/Profiles/75hk8ekd.default/localstore.rdf: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Application Data/Mozilla/Firefox/Profiles/75hk8ekd.default/sessionstore.js: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Local Settings/Temp/plugtmp-1: Input/output error
find: /mnt/hda1/Documents and Settings/Koller/Local Settings/Temp/~DF68EC.tmp: Input/output error
bt ~ #
«
Last Edit: June 07, 2009, 02:03:57 PM by viruz
»
Logged
eth3real
Sr. Member
Offline
Posts: 309
Re: backdoor actions
«
Reply #14 on:
June 09, 2009, 08:33:04 AM »
It may or may not help, but you could also try running sigverif in windows to see if any of the main windows files are showing as being unsigned (which means they were modified). It might not be too helpful, but it's worth a shot.
Logged
Put that in your pipe and grep it!
Pages: [
1
]
2
Go Up
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
EH-Net
-----------------------------
=> Calendar Of Events
===> ChicagoCon 2007
===> ChicagoCon 2008s
===> ChicagoCon 2008f
===> ChicagoCon 2009s
=> Ethical Hacktivism
=> News Items and General Discussion About EH-Net
===> Greetings
=> Special Events
-----------------------------
Ethical Hacking Discussions and Related Certifications
-----------------------------
=> General Certification
===> Networking
===> OS
===> Security
=> Compliance, Regulations & Standards
=> Control Systems
=> Cyber Warfare
=> Forensics
===> CCE / MCCE - (Master) Certified Computer Examiner
===> CHFI - Computer Hacking Forensic Investigator
===> EnCE - EnCase® Certified Examiner
===> GCFA - GIAC Certified Forensics Analyst
=> Hardware
=> Incident Response
===> CSIH - Computer Security Incident Handler
===> GCIH - GIAC Certified Incident Handler
=> Malware
===> Advisories
=> Mobile
=> Network Pen Testing
===> CEH - Certified Ethical Hacker
===> CPTC - Certified Penetration Testing Consultant
===> CPTE - Certified Penetration Testing Engineer
===> CSTA - Certified Security Testing Associate
===> eCPPT - eLearnSecurity Certified Professional Penetration Tester
===> ECSA - EC-Council Certified Security Analyst
===> GPEN - GIAC Certified Penetration Tester
===> OSCP - Offensive Security Certified Professional
=> Physical Security
=> Programming
=> Social Engineering
=> Web Applications
=> Wireless
===> CWNP Certs
===> GAWN - GIAC Assessing Wireless Networks
===> OSWP - Offensive Security Wireless Professional
=> Other
-----------------------------
Columns
-----------------------------
=> Editor-In-Chief
=> Andress
=> Gates
=> Haddix
=> Hadnagy
=> Heffner
=> Hoffman
=> Linn
=> RichM
=> Murray
=> J. Peltier
=> Weidman
=> Wilson
-----------------------------
Features
-----------------------------
=> /root
=> Book Reviews
=> Opinions
=> Skillz
===> Examples
===> May 06 - Star Hacks, Episode V: The Empire Hacks Back
===> July 06 - Hack Bill!
===> Sept 06 - Netcat in the Hat
===> Nov 06 - Hitch-Hackers Guide to the Galaxy
===> Dec 06 - A Christmas (Hacking) Story
===> Feb 07 - Charlottes Web Site
===> April 07 - Microsoft Office Space
===> June 07 - Serenity Hack
===> Oct 07 - Worst. Ethical. Hacker. Challenge. Ever.
===> Dec 07 - Frosty the Snow Crash
===> March 2008 - It Happened One Friday
===> Oct 2008 - Scooby Doo and the Crypto Caper
===> Dec 08 - Santa Claus Is Hacking to Town
===> Feb 2009 - Brady Bunch Boondoggle
===> July 2009 - Prison Break
===> October 2009 - SSHliders
===> December 2009 - Miracle on Thirty-Hack Street
===> December 2010 - The Nightmare Before Charlie Browns Christmas
-----------------------------
Resources
-----------------------------
=> Career Central
===> Looking For Work
===> Looking To Hire
=> Links to cool sites.
=> Mass Media
=> News from the Outside World
=> Tools
=> Tutorials
===> Tutorial Requests
Loading...
Exclusive Deal
SANSFIRE 2013
June 15 - 22
5% Off
w/ Code
:
EHN_5
SANS Deals 4 EH-Netters
5% OFF
Any
SANS Course
in Any Format!
Coupon Code:
EHN_5
Including
SANS Rocky Mountain 2013
&
SANS Boston 2013
Polls
Compared to this year, 2013 will be:
Great!
Better.
About the same.
Little worse.
FUBAR!
Recent Forum Topics
OSCP - Offensive Security Certified Professional
: Failed my first attempt at the OSCP exam
(94) by
azmatt
Programming
: Finished Python Course in Codecademy now what?
(11) by
securitian
Tools
: Social-Engineer Toolkit (SET) Version 5.0 “The Wild West” Released
(2) by
m0wgli
Malware
: EICAR?
(3) by
UKSecurityGuy
Advisories
: HTB23154: Multiple Vulnerabilities in Exponent CMS
(0) by
AndyP
Advisories
: HTB23153: Multiple Vulnerabilities in Jojo CMS
(0) by
AndyP
Advisories
: HTB23151: Cross-Site Request Forgery (CSRF) in UMI.CMS
(0) by
AndyP
Tutorials
: Need guidance
(8) by
r0ckm4n
OSCP - Offensive Security Certified Professional
: Class Scheduled 6/8 - Linux n00b
(7) by
Taemyks
OSCP - Offensive Security Certified Professional
: OSCP exam scheduled
(6) by
gbhat
Incident Response
: LinkedIn Forensics
(0) by
AFENTIS_Forensics
General Certification
: Red Team/Blue Team
(1) by
ajohnson
Career Central
: Starter cert?
(3) by
Grendel
Network Pen Testing
: Beginner Ethical Hacker
(1) by
m0wgli
General Certification
: CPT Practical Submission
(0) by
z28power4u
Web Applications
: Nessus and Nikto
(4) by
Seen
Network Pen Testing
: Cracking salted MD5 hash
(4) by
n37sh@rk
CEH - Certified Ethical Hacker
: Passed my C|EH
(3) by
n37sh@rk
Mass Media
: EC-council hacked, irony at his best?
(0) by
j0rDy
Web Applications
: SQL Injection into an INSERT statement.
(6) by
eyenit0
Network Pen Testing
: Solution for sipXtapi INVITE Message CSeq Field Header Remote Overflow
(1) by
m0wgli
Web Applications
: dns
(2) by
H1t M0nk3y
Other
: BSides Boston
(0) by
3xban
Career Central
: InfoSec in Central, FL
(2) by
tturner
Web Applications
: Web vulnerability scanner
(4) by
H1t M0nk3y
EH-Net News Feeds
Latest Additions
Privacy Notice
for TDCC & All Properties
© 2013 The Ethical Hacker Network
Joomla!
is Free Software released under the GNU/GPL License.