Image
 
linkedin_logo.png rss_logo.jpg
twitter_logo.png youtube_logo.jpg
Latest Additions
 
EH-Net Login
Welcome Guest.






Lost Password?
No account yet? Register
Who's Online
We have 47 guests online
 
Free Business and Tech Magazines and eBooks

You are here: Home arrow Ethical Hacking Discussions and Related Certificationsarrow Network Pen Testingarrow How to discover traces of a compromised system
EH-Net
May 18, 2013, 08:19:15 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Go back to The Ethical Hacker Network Online Magazine Home Page
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: How to discover traces of a compromised system  (Read 5945 times)
0 Members and 1 Guest are viewing this topic.
Bushman
Newbie
*
Offline Offline

Posts: 14



View Profile
« on: February 11, 2011, 05:27:42 PM »

He folks,

I was wondering about this scenario. You are hired to do pentest and while doing your pentest, you have to successfully compromise the target system (Windows or Linux). You started to look around for Windows, you run sc or sc query commands, net and etc sommands.
How would you know that the target system(s) had been compromised so that you can turn the pentest into investigation/forensic phase, given that fact that you are a pentester pro. not incident handler or forensic invetigator?
Are there specific skills that you need to have being a pentester in order to find traces of a compromised systems?

Your turn, any idea/suggestions?
Logged

Certifications: CISSP, GISP, GPEN, GAWN, MCSE, Network+ and A+
Equix3n-
Sr. Member
****
Offline Offline

Posts: 386



View Profile
« Reply #1 on: February 13, 2011, 10:23:41 PM »

I'm just a college student so I'm not in a position to give any professional advice, but I do remember these SANS intrusion discovery cheatsheets. Lots of good stuff there Smiley

Intrusion Discovery Cheat Sheet v1.4 for Linux
http://www.sans.org/resources/linsacheatsheet.pdf

Intrusion Discovery Cheat Sheet v1.4 for Windows
http://www.sans.org/resources/winsacheatsheet.pdf
Logged
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #2 on: February 14, 2011, 08:15:34 AM »

Those are good and here are a few others that I have used:

http://www.ucl.ac.uk/cert/win_intrusion.pdf
http://zeltser.com/log-management/security-incident-log-review-checklist.html
http://zeltser.com/network-os-security/security-incident-survey-cheat-sheet.html
http://zeltser.com/network-os-security/security-incident-questionnaire-cheat-sheet.html
Logged

Bushman
Newbie
*
Offline Offline

Posts: 14



View Profile
« Reply #3 on: February 14, 2011, 12:24:27 PM »

Thanks to everyone who has responded to this and your links to other sites.
However, I am thinking here purely on the prospective of a pentester doing his job without any knowledge of a breached on the network.

Also, when looking around after he compromised the target system, he is looking to further escalate privileges, delve deeper into the system but before doing all of these, he wanted to make sure that he is not contaminating any previous compromised by the real bad guy.

Is there any commands for him to run to verify previous breach? If rules of engagment allow, what tools could he utilize to determine any previous compromised?

Does this little explanation help in understanding what I am saying?

Any idea/suggestions would be appreciated.
Logged

Certifications: CISSP, GISP, GPEN, GAWN, MCSE, Network+ and A+
cd1zz
Hero Member
*****
Offline Offline

Posts: 561


View Profile WWW
« Reply #4 on: February 14, 2011, 01:31:05 PM »

There is nothing that I know of that when you double click it will shout at you that "this system has been compromised." Your client antivirus would be the closest I can think of. You're in the realm of investigation here.

I would start with the basic stuff.... Do a netstat and see what connections there are, do any of them look goofy? IE Do you see an https connection from the domain controller out to an IP in China? Use FPORT to see what processes are making what connections. Do you see any weird processes in taskmanager? Do you see imstealingallyourstuff.exe in taskmgr? Things like this would be a good place to start. Other than that you would have to look at an IDS, packet capture etc. Those links above are really what you want to look at....

If the system has been compromised well enough......you wont ever know.... muuuahhhaa.

Logged

T_Bone
Full Member
***
Offline Offline

Posts: 199


View Profile
« Reply #5 on: February 15, 2011, 05:53:10 AM »

Check out the paper at the link below. This maybe an interesting read for you

http://labs.mwrinfosecurity.com/files/Publications/Journey-to-the-Centre-of-the-Breach.pdf

Logged
ziggy_567
Sr. Member
****
Offline Offline

Posts: 361


View Profile
« Reply #6 on: February 15, 2011, 06:09:04 AM »

My thought is that as a pentester, you do not have the knowledge of the system to make a determination as to whether its been compromised and your efforts are better suited to other pursuits.

Unless someone has left a text file on the Desktop saying "You've been pwned.", I'd say its not in your lane. However, in the rare case that you do come across a system that has obviously been pwned, I'd immediately alert my POC and move on.

Besides....if you're on the console of the machine, haven't you already given proof that the machine has likely been compromised? That's kinda' the point of the pentest - to find and exploit vulnerabilities...
Logged

--
Ziggy


eCPPT - GSEC - GCIH - GCUX - RHCE - SCSecA - Security+ - Network+
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.063 seconds with 23 queries.
 
Exclusive Deal

sansfire13_245x90_cw90.jpg
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:
 
Recent Forum Topics
EH-Net News Feeds
Latest Additions
 
         
Advertisement

© 2013 The Ethical Hacker Network
Joomla! is Free Software released under the GNU/GPL License.