Captcha Final

29
SAURAV GAUTAM 3608146 CSE(2) IIIrd Year

Transcript of Captcha Final

Page 1: Captcha Final

SAURAV GAUTAM 3608146 CSE(2) IIIrd Year

Page 2: Captcha Final

Agenda

Definition Background Types Process of CAPTCHAs Applications Constructing CAPTCHAs Conclusion

Page 3: Captcha Final

Intro

CAPTCHA Completely Automated Public Turing test to tell Computers and Humans Apart

Invented at CMU by Luis von Ahn, Manuel Blum in 2000.

A program that is a challenge – response test to separate humans from computer programs

Page 4: Captcha Final

Generic CAPTCHAs distort letters and numbers .

Distorted characters are presented to user.

User has to recognize the distorted letters.

If the guessed letters are correct, the user is inferred to be a human and allowed access .

Else, user is a bot and denied access.

Page 5: Captcha Final

Humans can read the distorted and noisy text

Current OCRs cannot read them.

Page 6: Captcha Final

Background

Why CAPTCHA was needed?

Sabotage of online polls

Spam emails

Abusing free online accounts

Page 7: Captcha Final

Altavista first used a CAPTCHA in their sites.

Resulted in 95% spam reduction.

Yahoo partnered CMU to counter these threats in Messenger chat service.

Luis von Ahn and Manuel Blum of CMU trademarked CAPTCHA in 2000.

Page 8: Captcha Final

What is a Turing test? Proposed by Alan Turing To test a machine’s level of intelligence Human judge asks questions to two

participants, one is a machine, he doesn’t know which is which

If judge can’t tell which is the machine, the machine passes the test

CAPTCHA employs a reverse Turing test,judge = CAPTCHA program,

participant = user if user passes CAPTCHA, he is human

if user fails, it is a machine

Page 9: Captcha Final

Types of Captcha

Text based Captcha Gimpy Captcha E-Z Gimpy Captcha Pix Captcha Audio Captcha

Page 10: Captcha Final

Text based:

Simple, normal language questions: What is sum of three and thirty-five? If today is Saturday, what is day after

tomorrow? Which of mango, table, water is a fruit?

Very effective, needs a large question bank

Cognitively challenged users find it hard

Page 11: Captcha Final

Gimpy: Designed by Yahoo and CMU Picks up 10 random words from dictionary

and distorts, fills with noise User has to recognize at least 3 words If user is correct, he is admitted

Page 12: Captcha Final

EZ-Gimpy: A modified version of Gimpy Yahoo used this version in Messenger Has only 1 random string of characters Not a dictionary word, so not prone to

dictionary attack Not a good implementation, already

broken by OCRs

Page 13: Captcha Final

PIX: Uses a large database of labelled images It shows a set of images, user has to

recognize the common feature among those

E.g., Pick the common characteristic among the following four pictures-----”Aeroplane”

Page 14: Captcha Final

Example of Pix

Dog Pool

Page 15: Captcha Final

Audio CAPTCHAs: Consist of downloadable audio clip User listens and enters the spoken word Helps visually disabled users Below is the Google’s audio enabled

CAPTCHA Not popular

Page 16: Captcha Final

The Process

Generate CAPTCHA Align CAPTCHA Cut CAPTCHA Transform CAPTCHA Decode CAPTCHA

Page 17: Captcha Final

Generate CAPTCHA

CAPTCHA generated with our Mathematica code.

Page 18: Captcha Final

Align CAPTCHA

Remove gridlines.

Undo angle

of rotation.

Page 19: Captcha Final

Align CAPTCHA

Crop CAPTCHA.

Page 20: Captcha Final

Cut CAPTCHA

Cut CAPTCHA cut into 5 pieces.

Page 21: Captcha Final

Transform CAPTCHA

Perform the HWT on each of the 5 pieces.

Page 22: Captcha Final

Decode CAPTCHA

Page 23: Captcha Final
Page 24: Captcha Final
Page 25: Captcha Final

Constructing CAPTCHAs

Things to keep in mind: Don’t store CAPTCHA solution in Web

page’s metadata

A CAPTCHA is no good if it doesn't distort

Need a large database of different CAPTCHA questions

Avoid repetition of questions

Page 26: Captcha Final

CAPTCHA Logic:

Generate the question

Persist the correct answer

Present the question to user

Evaluate answer, if incorrect, start again-- Generate a different CAPTCHA

If correct, allow access to user

Page 27: Captcha Final

Applications

Preventing comment spam in blogs.

Prevent Web registration abuse, protect passwords from attack.

Online polls.

Preventing dictionary attack.

Page 28: Captcha Final

Conclusion

CAPTCHAs prove a good security measure if they are strong enough and more accessible.

There is still room for improvement in the non-visual type of CAPTCHAs.

A CAPTCHA implies a win-win situation: either the CAPTCHA is not broken and there is a way to differentiate humans from computers, or the CAPTCHA is broken and a useful AI problem is solved.

Page 29: Captcha Final