.

Need Obfuscated Javascript samples

<<

Xen

User avatar

Sr. Member
Sr. Member

Posts: 386

Joined: Tue Feb 03, 2009 3:59 am

Post Tue Sep 25, 2012 12:40 pm

Need Obfuscated Javascript samples

Hello,

It's been a long time since I last posted on EHNet. Some of you might remember me and some might not. To cut the long story short, I got selected in one of the best universities of my country for MS and currently pursuing research in IT Security.

For one of my research projects I need obfuscated javascript samples: both malicious and harmless. I was thinking if I could get samples from any of the EHNet members or if any of you could direct me to some resource where I could get the samples.

If you want to share samples, kindly message me on EHNet and I will provide you my email address.

Note: Please do not ask for my email if you have only 1-2 posts here on EHNet. I will only provide the email to members I trust or members I can trust.

Regards,
Equix3n
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1661

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Sep 25, 2012 12:58 pm

Re: Need Obfuscated Javascript samples

An older example I'd posted:

http://www.ethicalhacker.net/component/ ... /#msg42741

Hope it helps.
~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1661

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Sep 25, 2012 1:18 pm

Re: Need Obfuscated Javascript samples

Also, albeit simple, you could grab pretty much anyone's javascript (non-evil) and run it through an obfuscation tool like:

http://www.javascriptobfuscator.com/

and present that as one of your samples...
~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
<<

Xen

User avatar

Sr. Member
Sr. Member

Posts: 386

Joined: Tue Feb 03, 2009 3:59 am

Post Tue Sep 25, 2012 1:30 pm

Re: Need Obfuscated Javascript samples

@hayabusa
Thanks. I highly appreciate it,
The thing is that I need not one or two but a few thousand samples found in the wild. Generating them individually would consume a lot of time. That's why I was asking if someone already has a database maybe they could share it.
<<

hayabusa

User avatar

Hero Member
Hero Member

Posts: 1661

Joined: Mon Jan 29, 2007 2:59 pm

Post Tue Sep 25, 2012 1:50 pm

Re: Need Obfuscated Javascript samples

Well, your post didn't ask for a few thousand...   :P

I'm not sure if there's a definitive source of a few thousand examples, that anyone can point you to, offhand...   But if they can, I'd be interested to see that, too, if for not other reason than to study 'other' methods that I haven't seen.

Edit - looking for that many, might I assume your project is to try to create some sort of tool to spot them?
~ hayabusa ~ 

"All men can see these tactics whereby I conquer, but what none can see is the strategy out of which victory is evolved." - Sun Tzu, 'The Art of War'


OSCE, OSCP , GPEN, C|EH
<<

RoleReversal

User avatar

Hero Member
Hero Member

Posts: 928

Joined: Fri Jan 04, 2008 8:54 am

Location: UK

Post Tue Sep 25, 2012 5:53 pm

Re: Need Obfuscated Javascript samples

If I'm wanting to quickly analyse some JS in the wild I usually turn to Wepawet. I've no affiliation with the service but it couldn't hurt to get in touch with the team there to see if they're willing/able to provide access to some of their samples?

Alternatively, some of Wepawet's reports can be accessed based on md5 hash of the content (I found this report via a quick google search for example). I've not read their Ts&Cs so use at your own risk, but a quick Google Dork of:
site:wepawet.iseclab.org intitle:report inurl:'type=js'

is currently returning >15k results

Unfortunately Wepawet's report format only lists the de-obfuscated operations rather than the original source so may not be exactly relevant to your needs, but you could always use the listed report targets to grab any scripts that are still live yourself.

Hope this helps, good luck with your project.
Last edited by RoleReversal on Tue Sep 25, 2012 5:55 pm, edited 1 time in total.
<<

Xen

User avatar

Sr. Member
Sr. Member

Posts: 386

Joined: Tue Feb 03, 2009 3:59 am

Post Wed Sep 26, 2012 2:42 am

Re: Need Obfuscated Javascript samples

@Andrew
Thanks. I will ask Wepawet if they are willing to share their samples.

Alternatively, I am now trying to use heritrix web crawer to get the samples.
<<

alan

User avatar

Newbie
Newbie

Posts: 48

Joined: Sat Dec 27, 2008 11:55 pm

Post Wed Sep 26, 2012 12:14 pm

Re: Need Obfuscated Javascript samples

Not sure if you can see recent submission on iseclab's wepawet site. Here's another one work a look, use the search feature to grab more recently checked URLs

http://urlquery.net/search.php?q=.&type ... -26&max=50

You might need to sift through some of the lower repped results to get some obsfucated javascript. And they may still be up.

Congrats, enjoy your studies!

Return to Malware

Who is online

Users browsing this forum: No registered users and 1 guest

.
Powered by phpBB® Forum Software © phpBB Group.
Designed by ST Software