Search
Social Media - Mubix
Login
« Netstat Post Module for Meterpreter | Main | Companies that give back with free tools »
Monday
Jun252012

Evidence of Compromise - Metasploit's PSEXEC

Was messing with the Windows service binaries in Metasploit today and I noticed something unique I hadn't noticed before. For the PSEXEC module, the service name (actually just the display name, 'service name' is random) always started with an uppercase 'M'.

Screen Shot 2012 06 25 at 2 05 40 PM

Curious to why that was I looked and found Line 246 of the PSEXEC module to be the culprit:

Screen Shot 2012 06 25 at 2 07 01 PM

I can guess why the M is there. Might be just a quirk with old Windows versions that didn't allow lowercase service names, not sure. Lets change it a bit. Looking around my XP VM I found the perfect one to emulate ;-)

Screen Shot 2012 06 25 at 2 12 07 PM

So, quick edit to make it say display name = 'System Events Notification' (added the (s) because services can't have the same display name) and WA LA!

Screen Shot 2012 06 25 at 2 12 19 PM

A less visually detectable psexec run. However, how often do you look at your Event logs? ;-)

Reader Comments (3)

randomness-- ?

June 26, 2012 | Unregistered Commenterjcran

Nice work. It would have fooled me.

June 26, 2012 | Unregistered CommenterWhitePhreak

There should be some sort of Splunk alert mechanism that looks for non-standard service names.

P.S. Minor detail where you said "So, quick edit to make it say display name = 'Service Events Notification'" I think it's supposed to be "System Events Notification" as per the screenshot.

June 30, 2012 | Unregistered CommenterGlenn

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>