• Like
  • Save
Upcoming SlideShare
Loading in...5
×
 

Spam Wars

on

  • 4,529 views

Spam problems and antispam techniques for Drupal 6. Presented at the Stanford Design4Drupal conference, January 2010

Spam problems and antispam techniques for Drupal 6. Presented at the Stanford Design4Drupal conference, January 2010

Statistics

Views

Total Views
4,529
Views on SlideShare
4,529
Embed Views
0

Actions

Likes
1
Downloads
24
Comments
1

0 Embeds 0

No embeds

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • your post of spammers mail video is too good...
    Here is a blog http://scambaitings.blogspot.com/ about malicious scammers and lots of scam awareness videos.Please visit that
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Spam Wars Spam Wars Presentation Transcript

    • SPAM Wars Maurice Green, PhD Design 4 Drupal January 24, 2010
    • What is SPAM? (According to Wikipedia)
    • A canned meat product…
    • A “Weird Al” Yankovic song
    • A Monty Python comedy skit
    • Smooth Particle Applied Mechanics
      • the use of smoothed particle hydrodynamics computation to study impact fractures in solids.
    • SPAM
      • the abuse of electronic messaging systems (including most broadcast media, digital delivery systems) to send unsolicited bulk messages indiscriminately.
      • Named after the Monty Python sketch
      • May include: email, junk fax, instant messaging, internet forums, blogs and social networking.
      • Wikipedia
    • Why Website SPAM?
      • User registration and login
      • Content spam in blog comments
      • Information harvesting (email scraping)
      • Hyperlinking for page rank
    • User Registration and Login
      • Allows spammer access to email systems, especially trusted ones like gmail, hotmail and yahoo.
      • May allow spammer to post site link in user profile.
      • Allows spammer to post comments and other content spam in forums.
    •  
    • Registration SPAM
    • Controlling User Registration
      • Validate user email address
      • Require user confirmation link
      • CAPTCHA
      • Gotcha
      • Validate against SPAM database
    • User Registration Page
    • Failed Registration
    • www.stopforumspam.com
    • Confirmation Email
      • RegistrationTest,
      • Thank you for registering at Silicon Valley User Group Alliance. You may now
      • log in to http:// www.svuga.org /user using the following username and
      • password:
      • username: RegistrationTest
      • password: TQxaQxN9Kz
      • You may also log in by clicking on this link or copying and pasting it in
      • your browser:
      • http://www.svuga.org/user/reset/590/1253948551/2ede260554fbbaa88dcf5baca88f1812
      • This is a one-time login, so it can be used only once.
      • After logging in, you will be redirected to
      • http://www.svuga.org/user/590/edit so you can change your password.
      • -- Silicon Valley User Group Alliance team
    • Confirmation Login
    • CAPTCHA
      • A contrived acronym for " C ompletely A utomated P ublic T uring test to tell C omputers and H umans A part.“
      • A type of challenge-response test used in computing to ensure that the response is not generated by a computer. The process usually involves one computer (a server) asking a user to complete a simple test which the computer is able to generate and grade.
      • A reverse Turing test (a computer testing a human).
    • CAPTCHA
    • CAPTCHA
    • CAPTCHA
    • CAPTCHA
      • Newer forms include:
        • Multiple captchas in a single challenge
        • Image recognition
        • Puzzle solving
        • Logical reasoning tests
    • Non-character CAPTCHA
      • Image CAPTCHA -- Scalable and simple to use, but if the letters in the CAPTCHA are not distorted enough, they can be cracked by OCR techniques; if they are too distorted, visitors can't read. Image CAPTCHA is slowly being replaced by other CAPTCHA.
      • Math-based CAPTCHA -- Uses a simple interface and simple to use, but not scalable because most spam bots can parse the CAPTCHA questions.
      • Other text-based CAPTCHA -- Most text-based CAPTCHA are also quite simple, but they provide about 4 solution candidates, giving brute force spam a success rate of 1 in 4.
      • (Open) Semantic CAPTCHA -- Scalable and intuitive, but they are rare. The CAPTCHA generation is unsupervised, so they are generally hard to build. <-- This is where Egglue belongs.
    • CAPTCHA
      • Difficult for visually impaired or illiterate users. Images can not be read by screen reader programs.
        • May add “audio” captcha to test
      • May be susceptible to improved OCR
      • Can be defeated by ‘relay’ attacks using cheap labor or malware.
    • CAPTCHA Legal Issues
      • Circumvention of CAPTCHA violates the Digital Millenium Copyright Act (Ticketmaster vs. RMG Technologies).
      • CAPTCHA without audio alternate may violate Americans with Disabilities Act.
    • Image CAPTCHA
      • Microsoft ‘Asirra’ free website system uses a dog and cat recognition captcha with a database of 3,000,000 images.
      • Stanford researchers have reported being able to crack this captcha with an algorithm that is 82.7% accurate in distinguishing between dogs and cats.
    • Image CAPTCHA
    • Google’s Socially Adjusted CAPTCHA
    • Another Image CAPTCHA
    • 3-Dimensional Image CAPTCHA
    • Humerous Image CAPTCHA
    • Egglue CAPTCHA Features
      • CAPTCHA challenges require only basic intuitions about the world.
      • The distinct CAPTCHA challenges and layout cannot be handled by typical spam bots.
      • Different from conventional CAPTCHA, visitors are free to use any words deemed fit.
      • Unlike other CAPTCHA web services, Egglue CAPTCHA does not require registration.
    • Egglue Semantic CAPTCHA
    • The Battle Against the Captcha
      • “There's no system foolproof enough to defeat a sufficiently great fool.”
      • Edward Teller
    • Classified Ads for Anti-CAPTCHA Services
      • “ Our Team is very much interested in your project and we could easily handle more than 50,000 captcha entries per day.”
      • “ We having more then 10 teams,we are operating 24/7 data entry works and delivering 700k/day captchas daily.”
      • “ I have a team of 7 people, willing to do captchas at $2 per 1000 entries. Please consider my bid. We can definitely provide 50K captchas per day.”
    • Classified Ads for Anti-CAPTCHA Services
      • “ I have 40 PCs and 55 Persons working in my office for data entry work. As 1 person can do 800 captcha entry per hour. We can deliver you good quantity with quality.”
      • “ My team is equipped to offer the services. 20 person team, T1 business speed internet with an on hand technical staff. We are able to start right away..”
    • Classified Ads for Anti-CAPTCHA Services
      • “ Hello Sir, I will kindly introduce myself.. This is shivakumar.. we have a team to type capcthas 24/7 and we can type more than 200k captchas per day.”
      • “ WE ARE PROFESSIONAL CAPCHA ENTRY OPEATORS AND WE CAN DO EVEN 25000 ENTRIES PER DAY AS MY COMPANY IS A 25 SEATER FIRM SPEALISED IN DATA ENTRY.”
    • Anti-CAPTCHA System
    • Indian Anti-CAPTCHA System
      • “ Our captcha system is very complex and complicated. It is built to process up to one million captchas per day. We have several big teams and hundreds of active agents solving captchas, all at one time, especially during daytime in India. The backend of this project involves over 45 powerful, expensive servers communicating with the MySpace site to pull the captchas and then queue them up on this site, and then process the results to push back to MySpace all within 20 seconds per captcha..”
    • Test for Anti-CAPTCHA worker
    •  
    • Captchar_A Trojan (2007)
      • Why pay anyone to solve the captcha when you can get someone to do it for FREE?
    • Captchar_A Trojan (2007)
    • Captchar_A Trojan (2007)
    • Drupal Anti-Spam Modules
    • AntiSpam
      • AntiSpam module is the successor of the Akismet module, and it provides spam protection to your drupal site using external antispam service like Akismet.
      • AntiSpam module is fully compatible with Drupal 6.x (Akismet module for Drupal 6.x release had many compatibility issues and was not usable as it was), and it expanded the support of the external antispam service with TypePad AntiSpam and Defensio service as well as Akismet service. Now you can choose one of the antispam service you wish to use.
    • AntiSpam
      • Supported Anti-spam Services
      • Akismet http:// akismet.com
      • TypePad AntiSpam http:// antispam.typepad.com
      • Defensio http:// defensio.com
    • Bad Behavior
      • Spammers run automated scripts which:
        • read everything on your web site,
        • harvest email addresses, and
        • will post spam directly to your site,
        • put false referrers in your server log trying to get their links posted through your stats page.
      • As the operator of a Web site, this can cause you several problems. The spammers are:
        • wasting your bandwidth,
        • posting comments to any form they can find,
        • filling your web site with unwanted ads for their products.
        • harvesting any email addresses they can find and sell those to other spammers.
    • Bad Behavior
      • Bad Behavior is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer, however.
      • Bad Behavior intends to target any malicious software directed at a Web site, whether it be a spambot, ill-designed search engine bot, or system crackers. It blocks such access and then logs their attempts.
    • Block Anonymous Links
      • This is a simple module which blocks comments from anonymous users that contain links.
      • It relies on the fact that most spam messages contain hyperlinks and also on the fact that (for now) (most) spambots don't register on the sites they want to spam. It tries to block comment-spam at an early stage.
      • If an anonymous user tries to post a comment which contains a link, he/she will get a message explaining why the comment has been blocked.
    • BlogSpam
      • BlogSpam provides a central location where comments can be checked for various spam indicators.
      • The BlogSpam service makes use of a plugin architecture to provide checking. If you are running your own blogspam server then the plugin list may vary. At present the following plugins are available (and running on the public BlogSpam server at blogspam.net).
      • Checks available:
      • 00blacklist Is the given IP blacklisted?
      • 00whitelist Is the given IP whitelisted?
    • BlogSpam
      • badip Block a comment if the IP address it has been submitted from has been locally blacklisted. The local blacklist is read from /etc/blogspam/badips and each line is assumed to be a Class C address.
      • bogusip Is this an internal IP? That might be fine for local use, but in the real world such IPs are not going to be seen and can be safely marked as spam.
      • dnsrbl Test whether the IP address submitting the comment is listed in the DNS RBL
      • dropme This plugin is a simple test one - if a comment mentions the IP address it is coming from in the subject along with the key then we'll always report it as spam.
    • BlogSpam
      • emailtests Perform some simple tests on the submitted email address.
      • lotsaurls Block if we find more than a given number of links in message. The default is 10 links, but this may be changed by the caller.
      • requiremx If we've got an email address make sure that the domain : a. Has an MX record.
      • sfs Test whether the IP address submitting the comment is listed in the StopForumSpam.com database.
    • BlogSpam
      • size Is the given post too large, or too small?
      • stopwords Block if we find some particular stop-words in the body of the message.
      • surbl Lookup each URL in the body of the comment and test against surbl.org
      • wordcount Block posts that are only a few words long.
    • Comment Lockdown
      • Comment Lockdown is a drug of last resort in battling comment spam. You should not use this if you haven't tried something less likely to cause side effects like Mollom. You should continue use of Mollom with Comment Lockdown.
      • This module has some very specific rules for comments, and unlike Mollom, is incapable of learning, has no settings, does not care what kind of user you are, and rejects anything written in a language other than English.
    • Comment Lockdown
      • * Link (A) tags cannot account for more than 20% of all characters. * No more than 20% of all characters can be non-ASCII--this accounts for words like &quot;fiancé&quot; while preventing comments in other languages. * At least 10% of all words must be in the list of top 100 English words. * Javascript must be enabled. This isn't foolproof by any means, but a spam robot would have to be customized to defeat it.
      • These rules aren't arbitrary; they're based on experience with The New York Observer's massive database of spam comments. This module won't help sites that accept comments in languages other than English.
    • Gotcha
      • Gotcha is sort of a take off on &quot;captcha.&quot;
      • Basically you place a bogus input field on a contact form, and use CSS to not display it.
      • On submission you check for a value. If there is a value entered, then that means a non-human has been blanketing form fields, and the form post can be ignored as spam.
      • Gotcha adds a field labeled &quot;Subject&quot; at the top of the contact form.
        • It uses a &quot;div&quot; tag to render the field as &quot;display: none&quot; so human users shouldn't see it, and won't enter any data there.
        • The suspected spam bot will see &quot;Subject&quot; and be enticed to enter something there.
        • There is descriptive text to encourage a human (whose browser might be set to display it anyway) to ignore this field.
      • Requires the Spam module (for content filters)
    • InvisiMail
      • Invisimail provides a content filter to hide email addresses from spam-bots.
      • Email addresses are converted to ascii code and optionally written to the page using a concatenated JavaScript &quot;write&quot; command. The email addresses will appear on the page normally, but their html source will be obscured so as not to appear as an email address to email harvesting robots.
      • Invisimail also provides an option to automatically create mailto links for email addresses.
      • Obviously, the best protection is not to publish email addresses at all. But on a community site, some users are going to do this regardless. Invisimail provides protection for these email addresses.
    • IP Anonymize
      • Stale IP addresses clog up your database with useless data, not to mention, may be subject to subpoena by legal authorities in some jurisdictions.
      • The IP anonymize module helps ensure users' privacy by establishing a retention policy for IP addresses logged in Drupal's database tables. IP addresses are scrubbed on each cron run according to a configurable retention period. For example, you may wish to preserve IP addresses for a short while for purposes of identifying spam.
    • Mollom
      • Mollom provides a one stop solution for all spam problems and can protect the following Drupal forms. It offers and intelligently combines:
        • CAPTCHAs -- both image and audio CAPTCHAs
        • text analysis
        • user reputations
      • and can:
        • block comment form spam
        • block contact form spam
        • protect the user registration form against fake user accounts
        • protect the password request form
        • block spam on any node form, such as forum topics, articles, stories, pages, and more
    • reCAPTCHA
      • Uses the reCAPTCHA web service to improve the CAPTCHA system and protect email addresses.
    • Riddler
      • While modules like akismet and spam offer a great way of filtering the spam after it's being submitted the purpose of Riddler is to compliment these modules by catching it before it gets submitted.
      • What exactly does it do?
        • This module will add a 'riddle' to a form of your choice (using Captcha) requiring guests to answer the 'riddle' before being allowed to submit the form.
      • This is the default question:
        • Q: Do you hate spam? (yes or no)
        • A: yes
        • Questions and answers can be customized through the '/admin/user/captcha/riddler' page.
    • Spamicide
      • The purpose of Spamicide is to prevent spam submission to any form on your Drupal web site.
      • Spamicide adds an input field to each form then hides it with css. The field, and matching .css file, are named in such a way as to not let on that it is a spam defeating device, and can be set by admins to almost anything they like(machine readable please).
      • When spam bots fill in the field the form is discarded.
      • If logging is set, the log will show if and when a particular form has been compromised, and the admin can change the form's field name (and corresponding .css file) to something else.
    • SpamSpan
      • The SpamSpan module obfuscates email addresses to help prevent spambots from collecting them. It implements the technique at the SpamSpan website .
      • The problem with most email address obfuscators is that they rely upon JavaScript being enabled on the client side. This makes the technique inaccessible to people with screen readers.
      • SpamSpan however will produce clickable links if JavaScript is enabled, and will show the email address as example [at] example [dot] com if the browser does not support JavaScript or if JavaScript is disabled.
      • This technique is unlikely to be absolutely foolproof. It is possible in theory for a determined spambot to harvest addresses from your site no matter how you disguise them.
      • The great majority of spambots do not bother to attempt to collect addresses which have been hidden using JavaScript. Indeed, most spambots cannot currently read JavaScript at all.
    • http:BL
      • Implementation of http:BL for Drupal. http:BL can prevent email address harvesters and comment spammers from visiting your site by using a centralized DNS blacklist. It requires a free Project Honey Pot membership . This module provides efficient blacklist lookups and blocks malicious visitors effectively.
      • Note that the module can also function without http:BL functionality -- its use will then be limited to the placement of a Honeypot link in the footer.
    • http:BL
      • Features:
        • http:BL lookups for visitor IPs
        • Blocking of requests coming from blacklisted IPs
        • Database caching, decreasing the number of DNS lookups
        • Honeypot link placement on ban page and optionally in footer
        • Custom ban message
        • Whitelisting through the access table (admin/user/access)
        • Greylisting: grants the user access if he passes a simple test
        • Checking only when a comment is placed, queueing the comment for moderation if the lookup is positive
        • Basic statistics on the number of blocked visits
    • Honeypots
      • In computer terminology, a honeypot is a trap set to detect, deflect, or in some manner counteract attempts at unauthorized use of information systems.
      • Generally it consists of a computer, data, or a network site that appears to be part of a network, but is actually isolated, (un)protected, and monitored, and which seems to contain information or a resource of value to attackers.
    • Honeypots
      • The software installed on, and run by, victim hosts is dual purpose:
        • these dummy programs keep a network intruder occupied looking for valuable information where none exists.
        • The second part of the victim host strategy is intelligence gathering. Once an intruder has broken into the victim host, the machine or a network administrator can examine the intrusion methods used by the intruder.
    • www.projecthoneypot.org