Submit Your Article Forum Rules

Results 1 to 4 of 4

Thread: Firefox plugin for spider emulation & checking for malware on websites

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Location
    New York
    Posts
    1

    Firefox plugin for spider emulation & checking for malware on websites

    There was a thread back in 2008 where someone was considering writing a Firefox Plugin that would emulate a search engine spider. I could used that for my hobby blog, but I also have a professional interest. I do incident response for a university.

    I have a slightly different application of a web browser plugin. We have had a website that was compromised and began to host malware. The developers for the site asked me to scan it. But I only have a vulnerability scanner. They looked at the web pages in the mySql database, but they would really like a scan of the site for malware. I know that Finjan (now M86) Secure Browsing and the Dr Web Firefox plugins do some sort of page analysis before they show the page. I thought that if I combined them with a website spider plugin, that I would get an understanding of the health of the website. If this is too convoluted, and there is an easier way, I will confess to being no web expert, and plead ignorance.

    I have a related question as well. We found some obfuscated javascript on a website once. I am familiar with file entropy scanners for PE executables (for example Mandian't Red Curtain). I was wondering if there was something out there to check for obfuscated Javascript or some of the other interpretive languages (both client side, and server side.) I would think that some of the constructs for obfuscation would not be common in normal programming.

    Thanks,

    Jim

  2. #2
    Senior Member deepsand's Avatar
    Join Date
    May 2004
    Location
    State College, PA
    Posts
    16,487
    Not sure what you're looking for here re. "emulating a spider."

    A crawler/robot/spider simply issues requests for resources, just like your browser does. The difference is that your browser also renders such for viewing, whereas the former do not.

    As for the site believed to be compromised, does the developer not have copies of the clean code, so as to simply do file comparisons?

  3. #3
    WebProWorld MVP wige's Avatar
    Join Date
    Jun 2006
    Posts
    3,138
    Well, the idea behind the spider emulator was that it would take out certain content generated by javascript, as well as things that could be considered hidden text, nofollow links, css styling, while highlighting things like showing text that might be considered more important without regard to the style sheets. I just never got around to building the darn thing. But it wasn't an actual spider that would crawl the entire site downloading content.

    As Deepsand suggests above, if you are just looking to mitigate the attack, uploading fresh backups to replace the compromised content, followed by internal virus scans and external vulnerability scans would be the best course. If you want to maintain a chain of evidence, though, you would need to first create a forensic duplicate of the server.

    Usually, the best spider for malware on a site is Googlebot - its slow, but it is exhaustive. Beyond that, you could probably hack a scanner using wget (a linux based spider, included in most if not all distros) in Perl or write a spider in Java to compare the site to your clean source code. In general though, I think something like that would have to be a custom program because no two sites are really alike.

    Typically, I tend to do most of these checks manually when I review a site for malware, using a variety of plugins, among other things changing my referrer to Google Search Results, and changing my user agent to googlebot. That is because some attacks are hidden from the webmaster by only displaying the malware to visitors who arrive at the site from Google, and others only show the altered content to Googlebot.
    The best way to learn anything, is to question everything.
    WigeDev - Freelance web and software development

  4. #4
    Senior Member
    Join Date
    Apr 2009
    Posts
    256

    FF plugins

    grateful4godgrace, there are several FF extensions to check websites for vulnerabilities.

    SQL Injection
    SQL Inject Me
    XSS Me

    Inline Code Finder the former obtrusive javascript checker
    There's also a Inline Code Finder version for Firebug.
    Last edited by Bernd; 08-16-2010 at 06:00 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •