1 00:00:00,000 --> 00:00:05,060 All right, everybody. Thank you for coming to Decoding ReCAPTCHA. I'm Jason Lee, and this is Chad Houck. 2 00:00:06,220 --> 00:00:09,940 We're programmers and entrepreneurs from Michigan who have a passion for security and automation. 3 00:00:10,860 --> 00:00:14,760 We're business partners, and we've worked together on numerous projects throughout the years. 4 00:00:14,900 --> 00:00:19,660 Our company, Ziggy, provides information technology-related consulting and contracting work for other businesses. 5 00:00:21,340 --> 00:00:26,460 The system, which we are explaining today, has been created to decode ReCAPTCHA with absolutely no human intervention. 6 00:00:32,880 --> 00:00:35,800 Chad's developed a system to effectively solve ReCAPTCHA images, 7 00:00:37,200 --> 00:00:43,120 and he's developed new methods of analysis and software in order to bypass security measures used by them in both the past and the present. 8 00:00:44,560 --> 00:00:47,460 Virtually the entire development process took place in Chad's garage, 9 00:00:47,560 --> 00:00:52,040 and I was involved throughout a majority of it as a person worthy of him to impress and bounce ideas back and forth with. 10 00:00:52,740 --> 00:00:56,320 Throughout this time, I've come to understand quite a bit about both CAPTCHAs and the methods utilized, 11 00:00:56,460 --> 00:00:57,340 to bypass them. 12 00:00:58,320 --> 00:01:01,680 We're here to talk today about identifying weaknesses in CAPTCHA security, 13 00:01:01,860 --> 00:01:04,820 and more importantly, the methods in which Google's spam protection service... 14 00:01:07,440 --> 00:01:08,280 Yes, we are. 15 00:01:15,520 --> 00:01:19,140 We're here to talk about identifying weakness in CAPTCHA security, 16 00:01:19,200 --> 00:01:22,120 and more importantly, the methods in which Google's spam protection service... 17 00:01:22,920 --> 00:01:26,320 ReCAPTCHA can be guessed accurately enough to be considered an effective defeat of their security. 18 00:01:26,460 --> 00:01:29,120 I will go into some detail about why ReCAPTCHA was chosen to crack, 19 00:01:30,820 --> 00:01:32,240 and I'm just going to move on. 20 00:01:33,680 --> 00:01:39,200 Over 30 million ReCAPTCHA images are typed in every day in order to prove that the request was issued by a human and not a robot. 21 00:01:39,540 --> 00:01:44,300 It has often been regarded as one of the most secure CAPTCHAs available to third-party web developers as a form of spam protection. 22 00:01:45,520 --> 00:01:52,320 It is currently used on many of the Internet's most popular websites as their primary defense against automation and abuse of their services. 23 00:01:53,020 --> 00:01:56,440 This CAPTCHA is a common site for those registering or interacting with sites such as... 24 00:01:56,460 --> 00:01:58,600 Craigslist, Facebook, Twitter, and countless other webpages. 25 00:01:59,720 --> 00:02:04,100 The reason that websites are forced to use such measures is due to the prominence of Internet spam in the East, 26 00:02:04,180 --> 00:02:09,160 in which programmers would be able to automate and abuse services on a large scale without some sort of verification. 27 00:02:10,020 --> 00:02:16,320 For example, a large-scaled system such as a botnet would be easily capable of causing havoc on websites such as Facebook 28 00:02:16,320 --> 00:02:20,880 through the creation of fake profiles and messages without protection such as an effective CAPTCHA guarding it. 29 00:02:21,280 --> 00:02:26,120 It is also one of the many protections that Craigslist implements in order to fend off potential abusers 30 00:02:26,120 --> 00:02:28,500 from posting numerous times on their system with automated software. 31 00:02:29,800 --> 00:02:36,160 Such measures are necessary in order to keep the ratio of legitimate use to illegitimate use down and provide a high level of user satisfaction. 32 00:02:36,960 --> 00:02:39,840 There's a variety of ways in which CAPTCHAs can be bypassed, ranging 33 00:02:40,560 --> 00:02:47,420 from human data entry services to autonomous software that's able to bypass the distortion and manipulations present in these images and give a correct answer. 34 00:02:48,700 --> 00:02:54,520 An automated system that could only achieve in a very small percentage of correct answers would be considered a viable method of circumventing a CAPTCHA. 35 00:02:55,040 --> 00:02:55,900 Human-powered, 36 00:02:55,900 --> 00:03:01,700 CAPTCHA data entry services are utilized in order to circumvent what are considered to be strong CAPTCHAs. 37 00:03:01,800 --> 00:03:07,820 There is an advantage to this type of data entry service as they are able to accurately solve any CAPTCHA that is readable by humans. 38 00:03:08,360 --> 00:03:11,380 There are many drawbacks to this form of CAPTCHA circumvention, however. 39 00:03:11,720 --> 00:03:14,380 The first and foremost drawback is its cost. 40 00:03:14,640 --> 00:03:21,020 We experimented with human CAPTCHA entry services in order to name our CAPTCHA images and to experiment with training techniques. 41 00:03:21,320 --> 00:03:24,040 And the cheapest pricing we found was about a fifth of a cent per correct image. 42 00:03:24,040 --> 00:03:35,400 There are CAPTCHA entry services that utilize incredibly cheap labor in impoverished countries where a couple of American dollars a day that a housewife with no work experience can earn can be a major asset to their family. 43 00:03:35,940 --> 00:03:44,320 While there is a willing workforce available, the additional cost and inconvenience of managing a workforce is frequently enough to make the price of a spammer's campaign too high. 44 00:03:46,380 --> 00:03:50,160 A second strong drawback to the human CAPTCHA entry is the response time. 45 00:03:50,200 --> 00:03:53,820 In our testing, we would experience response times that are about 15 seconds. 46 00:03:54,040 --> 00:03:55,320 The more commonly would exceed two minutes. 47 00:03:56,100 --> 00:04:01,280 Despite the large amount of people willing to do these types of services, they are still limited by their access to computers and internet connections. 48 00:04:02,680 --> 00:04:06,980 Often these types of data entry farms can become completely inaccessible due to the poor connectivity. 49 00:04:07,480 --> 00:04:15,660 And this poor connectivity also plays a role as many of these data entry workers may be on dial-up and experience long load times due to the high level of image transfers required. 50 00:04:17,240 --> 00:04:22,860 Given that there is a cost per image and a limited pool of workers available at any given time causes long wait times. 51 00:04:22,860 --> 00:04:31,920 Due to the high demand of services by spammers and severely reduces the ability for these services to be used in a way that severely threatens the ratio of illegitimate to legitimate use of services online. 52 00:04:33,200 --> 00:04:40,580 An autonomous CAPTCHA solving systems are a far greater threat to the balance of spam and legitimate use on the internet than any other CAPTCHA bypassing system. 53 00:04:40,920 --> 00:04:50,500 The primary advantage of any computer powered CAPTCHA tracking system is the ability for it to be scaled out to any number of computers and therefore give a potential attacker virtually unlimited CAPTCHA solving capabilities. 54 00:04:51,780 --> 00:04:52,380 Through the 55 00:04:52,380 --> 00:05:01,120 utilization of botnets as resources for both proxies and processing capabilities, a lone individual could be responsible for causing a significant increase in the amount of illegitimate use on the internet. 56 00:05:01,820 --> 00:05:09,520 Such systems could be used to essentially devastate the usability of many web services by filling it with illegitimate activity and or fake users. 57 00:05:10,640 --> 00:05:16,580 In terms of modern CAPTCHAs, reCAPTCHA is often regarded as one providing a high level of usability and protection. 58 00:05:17,360 --> 00:05:21,640 Broken down to specifically what we look for when we are classifying a CAPTCHA as a level of security. 59 00:05:23,100 --> 00:05:31,560 The following is this breakdown of potential areas of weakness in a CAPTCHA system and it resembles the questions one must answer in order to determine the effectiveness of a CAPTCHA. 60 00:05:32,280 --> 00:05:38,160 Be it through blatant security mistakes or through the ability of an attacker to programmatically make a successful guess on the system. 61 00:05:38,620 --> 00:05:45,160 And one should always first consider the actual implementation security policies when developing a CAPTCHA based security system. 62 00:05:45,220 --> 00:05:51,020 If one wished to discover a weakness in a CAPTCHA system, the easiest place to look first would be at how the system itself works. 63 00:05:52,800 --> 00:05:56,680 And first, are there a limited number of total possible challenge images? 64 00:05:56,920 --> 00:06:03,620 If the system uses a fixed number of images, an attacker could potentially solve every possible image and then compare hashes of solved images to challenge images. 65 00:06:04,860 --> 00:06:09,140 Are there a limited number of potential answers? 66 00:06:09,300 --> 00:06:14,300 By limiting the total amount of possible answers, an attacker could greatly improve their system's effectiveness. 67 00:06:15,280 --> 00:06:18,100 Does the CAPTCHA implementation contain insecure encoding? 68 00:06:19,280 --> 00:06:21,000 Could the CAPTCHA correct responses? 69 00:06:21,020 --> 00:06:23,580 Does the CAPTCHA be derived from the image, name, form, challenge data, or a cookie? 70 00:06:24,400 --> 00:06:27,740 And then, does the system utilize poor authentication session constraints? 71 00:06:27,900 --> 00:06:35,660 And a system that does not constrain CAPTCHA authentication challenges to a single use, user, or instance of a session could be vulnerable to having the same challenge request reused. 72 00:06:37,260 --> 00:06:45,400 Presuming that there are no blatant implementation weaknesses able to be exploited, the next logical step would be to attempt to solve the CAPTCHA itself by autonomously classifying each image. 73 00:06:46,180 --> 00:06:50,680 In the following slides, I will present a majority of the questions one may ask about a CAPTCHA in order to determine 74 00:06:51,180 --> 00:06:54,520 exactly which barriers must be overcome in order to make a successful guess by OCR. 75 00:06:55,640 --> 00:07:00,340 And then on the next slides, I'll have a couple of example CAPTCHA images talking about each. 76 00:07:00,740 --> 00:07:03,360 So you can kind of see what I'm talking about, and I have a little scale here. 77 00:07:04,200 --> 00:07:08,320 And the higher the amount of yellow stars, the more security due to that specific type of protection. 78 00:07:10,320 --> 00:07:11,640 Does the image use static fonts? 79 00:07:11,860 --> 00:07:17,760 A CAPTCHA that uses static fonts can be defeated by off-the-shelf OCR technology such as Tesseract, OCRat, or G-OCR. 80 00:07:18,660 --> 00:07:21,000 If there are multiple fonts, and every font would require a different font, 81 00:07:21,000 --> 00:07:26,120 each would require its own dataset, and one would have to develop a method of font detection for each individual one, making it a lot harder. 82 00:07:27,440 --> 00:07:29,360 Are the characters separated from each other? 83 00:07:29,500 --> 00:07:36,140 If it's easy for each character to be separated from the other characters, it allows for software to easily know at which points of the image-relevant data is located. 84 00:07:37,940 --> 00:07:39,860 If there is noise in the CAPTCHA, is it static? 85 00:07:40,120 --> 00:07:44,060 If the noise in an image never changes, it would be simple to remove that noise in all images. 86 00:07:46,480 --> 00:07:48,440 If there is noise in the CAPTCHA, can it be removed? 87 00:07:48,720 --> 00:07:50,980 If the image noise is created in a way that it can be programmed, 88 00:07:51,000 --> 00:07:54,480 then it becomes effectively worthless as a security measure. 89 00:07:56,560 --> 00:07:58,200 Are the characters or words rotated? 90 00:07:58,540 --> 00:08:01,560 If the text is not rotated, then it will not require any further modification. 91 00:08:02,080 --> 00:08:06,980 Ideal character alignment will greatly increase the effectiveness of an OCR program to classify each character and word. 92 00:08:08,640 --> 00:08:09,960 How deformed is the text? 93 00:08:10,140 --> 00:08:13,180 If the text is not too deformed, it will not always be solvable by a human. 94 00:08:13,340 --> 00:08:18,160 If the text is not properly deformed, it will require little effort to pass through an off-the-shelf OCR program, though. 95 00:08:19,500 --> 00:08:20,980 Is there a lack of variation in the CAPTCHA? 96 00:08:20,980 --> 00:08:21,500 There is a lack of variation in font color. 97 00:08:21,700 --> 00:08:26,860 If the text is always the same color, it makes it easily possible to remove all the other colors and leave only the most important data. 98 00:08:28,640 --> 00:08:30,940 Can the text easily be extracted from the background? 99 00:08:31,140 --> 00:08:36,140 If the background is easily distinguishable from the text, it may be removed, leaving only the character data to analyze. 100 00:08:37,520 --> 00:08:39,800 If image distortions are present, can they be reversed? 101 00:08:40,220 --> 00:08:45,200 Image and text distortions are typically utilized in CAPTCHA systems in order to defeat off-the-shelf OCR technology. 102 00:08:46,060 --> 00:08:49,920 If these distortions are able to be reversed, however, it can leave a CAPTCHA vulnerable to attack. 103 00:08:51,660 --> 00:08:56,520 Analysis of these areas for reCAPTCHA security shows us both their primary strengths and their weaknesses. 104 00:08:56,820 --> 00:09:01,060 The implementation of serving up challenge images and authentication itself appears to be fairly secure. 105 00:09:01,920 --> 00:09:05,660 There is, however, one unavoidable weakness in the implementation that becomes evident, 106 00:09:05,840 --> 00:09:12,440 and that's that despite a virtually unlimited number of images, there is a fairly limited number of possible responses, since they're all from the English language. 107 00:09:14,080 --> 00:09:20,800 And now these are the, I'm going to, now with this I've isolated each of their methods they use to prevent. 108 00:09:21,460 --> 00:09:24,040 Autonomous solving by OCR, and that's through a large variety of fonts. 109 00:09:24,720 --> 00:09:27,180 The characters are dilated and therefore are hard to separate. 110 00:09:27,520 --> 00:09:29,600 There's added image noise from the inverted blob. 111 00:09:30,200 --> 00:09:32,020 The characters are frequently out of alignment. 112 00:09:32,200 --> 00:09:37,280 There's natural deformation of text, since it's all characters that couldn't be easily read by an OCR in the first place. 113 00:09:37,800 --> 00:09:40,140 And then the ribboning distortion of the entire image. 114 00:09:41,240 --> 00:09:44,480 Now I'm going to turn it over to Chad so he can explain exactly how to bypass each one. 115 00:09:47,120 --> 00:09:47,560 Okay. 116 00:09:49,960 --> 00:09:50,720 Let's see here. 117 00:09:51,600 --> 00:09:53,040 Okay, so what the hell is this? 118 00:09:53,220 --> 00:09:55,320 You guys should be familiar with reCAPTCHA. 119 00:09:55,420 --> 00:09:58,780 If not, you might want to visit another track and also start using the internet, 120 00:09:58,940 --> 00:10:02,820 because it's about 90% of the CAPTCHA systems out there use it. 121 00:10:03,680 --> 00:10:08,040 What I'm going to go over is the reCAPTCHA background, which Jason already covered most of, 122 00:10:08,180 --> 00:10:11,160 but the distortion removal, character segmentation and recognition, 123 00:10:12,520 --> 00:10:16,120 the dictionary attack that I used on it, and then my experimental results, 124 00:10:16,360 --> 00:10:20,960 and then as a last minute addendum, I added how to decode the new reCAPTCHA. 125 00:10:20,980 --> 00:10:24,020 Because a week before the presentation, they decided to change it. 126 00:10:24,160 --> 00:10:26,900 I'm not sure if they saw the schedule or not, but we'll see. 127 00:10:27,100 --> 00:10:29,900 And then I'll go over some sample decodings at the end. 128 00:10:30,920 --> 00:10:32,780 reCAPTCHA was developed at Carnegie Mellon University. 129 00:10:32,960 --> 00:10:35,160 It was acquired by Google on September 16th. 130 00:10:35,160 --> 00:10:39,320 They solve about 30 million CAPTCHAs a day, utilized by almost every site now. 131 00:10:40,100 --> 00:10:45,020 It's used to digitize books, and it's an OCR supplementation via dual CAPTCHA request. 132 00:10:45,500 --> 00:10:49,040 And what I mean by that is they always send out two words. 133 00:10:49,220 --> 00:10:50,920 One of the words is the digitization. 134 00:10:50,980 --> 00:10:52,580 The other is a verification word. 135 00:10:53,160 --> 00:10:57,680 They assume that if you get the verification word correct, which lets you pass through to the next page, 136 00:10:57,920 --> 00:11:00,740 they assume that you also got the digitization word correct, 137 00:11:00,920 --> 00:11:03,120 which means they go back and digitize a book with that word. 138 00:11:03,380 --> 00:11:05,220 And they use a called word point system. 139 00:11:05,560 --> 00:11:09,920 And that means that if an OCR gets the word correct, it gives them a half point. 140 00:11:10,360 --> 00:11:12,980 If a person types in the word, then it's a full point. 141 00:11:13,140 --> 00:11:16,960 And once it reaches two and a half points, it assumes that the word has been solved. 142 00:11:19,220 --> 00:11:20,640 Some things you need to be aware of. 143 00:11:20,980 --> 00:11:24,280 You only need to solve one of the two words, and it's randomly placed. 144 00:11:24,400 --> 00:11:29,980 You can tell about half the time which word is the verification word from experience, 145 00:11:31,000 --> 00:11:33,780 but it is randomly located, so not all the time. 146 00:11:34,880 --> 00:11:40,860 You can forget one of the characters and replace it with a character entirely differently if you want to, 147 00:11:40,960 --> 00:11:42,280 and it'll still be solved. 148 00:11:43,320 --> 00:11:48,940 You need to keep a consistent 50% solution rate, otherwise you'll get flagged after about 32 times, 149 00:11:48,940 --> 00:11:51,140 and you'll have to solve both words perfectly. 150 00:11:51,360 --> 00:11:54,200 You cannot misplace a single character, you have to solve them both. 151 00:11:54,520 --> 00:11:57,580 And obvious solutions to that would be using a dynamic IP solution, 152 00:11:57,720 --> 00:12:00,580 so that way you can just switch IPs whenever you hit that rate. 153 00:12:02,300 --> 00:12:06,260 The distortions on the reCAPTCHA, there's a few nuisances to take care of. 154 00:12:06,340 --> 00:12:08,620 They got the Blobman inversion, or at least that's what I call it. 155 00:12:08,720 --> 00:12:12,840 You can see the black circle there that's inverting some of the characters in the word. 156 00:12:13,360 --> 00:12:15,980 And there's some leftover artifacts you'll need to take care of sometimes. 157 00:12:16,800 --> 00:12:18,040 There's the vertical ribboning, 158 00:12:18,040 --> 00:12:19,700 which is kind of annoying. 159 00:12:19,900 --> 00:12:23,080 Then you got character dilation, which makes it so you can't segment the characters easily. 160 00:12:24,000 --> 00:12:26,300 Then there's natural distortions and old distortions, 161 00:12:26,320 --> 00:12:27,700 and I'm only going to really touch the first three. 162 00:12:28,960 --> 00:12:31,320 So the first thing is to segment the two words, 163 00:12:31,460 --> 00:12:34,100 so that way you can separate them and work on them individually. 164 00:12:34,580 --> 00:12:37,840 That's extremely straightforward, and there's a huge gap in between it, 165 00:12:37,920 --> 00:12:42,080 so just do some vertical line tests and you can find out where the words separate at. 166 00:12:42,380 --> 00:12:45,400 And then to make everything easier, I turn it monochrome down to one bit, 167 00:12:45,540 --> 00:12:47,160 and I did this by just... 168 00:12:48,040 --> 00:12:49,820 white pixel with a value of 0 to 50. 169 00:12:49,920 --> 00:12:51,140 I set it white, otherwise black. 170 00:12:51,520 --> 00:12:55,840 You lose some information in doing this because there's some anti-aliasing in the image, 171 00:12:55,980 --> 00:12:57,100 and that goes away. 172 00:12:57,420 --> 00:12:58,660 But anyway, on to the blob. 173 00:12:59,560 --> 00:13:02,120 The blob's painful, but it's quite simple in retrospect. 174 00:13:02,360 --> 00:13:04,660 You just need to set aside a temporary copy of the images. 175 00:13:05,440 --> 00:13:10,220 And then the simplest way to defeat any form of random inversion is to just outline the image. 176 00:13:11,800 --> 00:13:13,800 But I only use this to gather information. 177 00:13:14,140 --> 00:13:15,340 Then I pixelate the images, 178 00:13:15,340 --> 00:13:18,860 and I just do this so that way the next step is more efficient, 179 00:13:19,000 --> 00:13:24,240 because the algorithm's O-N cubed, which could be pretty intense if you don't pixelate it. 180 00:13:24,880 --> 00:13:28,000 Then I use an ellipse detection algorithm, which I didn't write. 181 00:13:28,120 --> 00:13:30,000 That's the only thing in here I didn't come up with on my own, 182 00:13:30,040 --> 00:13:30,960 so I'll talk about that later. 183 00:13:31,560 --> 00:13:33,960 Then I went with the discovered ellipse parameters. 184 00:13:34,120 --> 00:13:37,680 You re-invert the blob, and then you clean up leftover artifacts if there are any. 185 00:13:39,080 --> 00:13:40,780 Now to outline it, it's really simple. 186 00:13:41,420 --> 00:13:45,260 You just check every black pixel for any surrounding white pixels. 187 00:13:45,340 --> 00:13:48,400 If it has a surrounding white pixel, then you mark that pixel white on a blank image, 188 00:13:48,520 --> 00:13:49,340 otherwise you leave it black. 189 00:13:49,700 --> 00:13:52,120 And the end result you see here is a perfectly outlined image, 190 00:13:52,280 --> 00:13:56,500 and the inversion's gone, but you're just left with some somewhat ellipses. 191 00:13:56,500 --> 00:13:57,960 It kind of looks like an ellipse anyway. 192 00:13:59,580 --> 00:14:02,820 Now I just pixelate the image to make the next algorithm more efficient. 193 00:14:03,240 --> 00:14:05,120 You decide on a radius. For this I use 2. 194 00:14:05,440 --> 00:14:09,900 And then for each white pixel, count every white pixel that falls within the circumference of the circle of the radius, 195 00:14:09,940 --> 00:14:10,540 and call this K. 196 00:14:10,980 --> 00:14:15,220 On a new blank image, make pixels white that have the largest K first, 197 00:14:15,220 --> 00:14:18,260 and on down as long as they don't come within 2 pixels of an already white pixel. 198 00:14:18,700 --> 00:14:23,200 This ensures that the largest pixel groupings get priority, and it's not biased. 199 00:14:24,460 --> 00:14:28,300 The ellipse detection algorithm is pretty intense, and I didn't write it, 200 00:14:28,420 --> 00:14:31,620 so you can either go online and learn about it. 201 00:14:31,680 --> 00:14:33,900 It was created by ZNG from back in 2002. 202 00:14:34,640 --> 00:14:36,100 I'll just run through it real fast. 203 00:14:37,200 --> 00:14:40,740 So now that an image is pixelated, you can run this algorithm without it taking 30 seconds. 204 00:14:41,120 --> 00:14:44,180 The following algorithm compares every white pixel to every other white pixel. 205 00:14:44,180 --> 00:14:46,960 We'll call that first XI and the white pixel compared to XJ. 206 00:14:47,180 --> 00:14:50,800 You calculate the distance between XI and XJ, divided by 2, stored in A. 207 00:14:50,940 --> 00:14:54,100 If A is less than a predetermined ellipse minimum, we'll say 30. 208 00:14:54,340 --> 00:14:56,220 That's what I use in this project anyway. 209 00:14:56,700 --> 00:14:59,640 We move on to the next pixel. Same goes for a greater than threshold of 45. 210 00:15:00,100 --> 00:15:02,800 Then you calculate the angle of the two pixels and store it in alpha. 211 00:15:03,380 --> 00:15:04,960 Calculate the midpoint and store it in M. 212 00:15:05,200 --> 00:15:10,160 Now we'll once again look at every other white pixel, hence the O and cubed, and call this 1XK. 213 00:15:10,220 --> 00:15:13,720 For each XK, calculate the distance between it and M, and store that in D. 214 00:15:14,180 --> 00:15:19,060 Compare that to a B threshold of 15 minimum, 40 max, and if it fails, move on to the next one. 215 00:15:19,280 --> 00:15:21,960 Then you calculate the angle between XK and M and store that in theta. 216 00:15:22,760 --> 00:15:29,220 And then for the heart of the algorithm, you calculate the B value of the ellipse for these points using a bit of algebra against an ellipse equation. 217 00:15:29,480 --> 00:15:30,980 You can come up with this. 218 00:15:36,000 --> 00:15:42,080 You come up with this equation right here, and that will calculate the B for you from all of the other things you've already calculated. 219 00:15:42,400 --> 00:15:44,140 Then you increment the B count for it. 220 00:15:44,180 --> 00:15:49,240 So here, the found B, so if B is 2, then you record that 2 has shown up once. 221 00:15:49,500 --> 00:15:51,980 It appears from another XK that it's appeared twice, etc. 222 00:15:52,740 --> 00:16:01,480 Once all of the XKs have been exhausted, find the B value that has appeared the most often and compare this value against every other XI, XJ, pairs highest B count. 223 00:16:01,600 --> 00:16:06,980 Whichever has the largest amount of values that create the most amount of similar B values is the best fit ellipse for the image. 224 00:16:07,240 --> 00:16:11,200 Now that you have the best fit ellipse values, you can easily calculate everything you need to draw the ellipse. 225 00:16:11,440 --> 00:16:14,160 So in summary, the algorithm tries every combination of pixels as it can. 226 00:16:14,180 --> 00:16:21,540 It finds the most amount of pixels that will create a similar B value for an ellipse, which essentially means that they've landed on the ellipse circumference. 227 00:16:21,760 --> 00:16:26,600 And then out of all the XI, XJ pairs, whichever one has the most amount of pixels along their ellipses is the winner. 228 00:16:27,520 --> 00:16:31,600 Okay, so you can see here where it found the ellipses using that algorithm. 229 00:16:32,800 --> 00:16:37,940 Now that we have our estimations as to where the ellipses are, we'll go back to our pre-outlined images and remove the inversion. 230 00:16:38,500 --> 00:16:44,160 That's pretty straightforward. Obviously, if anything lands on or in the ellipse, and it does, 231 00:16:44,160 --> 00:16:46,140 if it's white, you set it black. If it's black, you set it white. 232 00:16:46,380 --> 00:16:49,500 If it's outside the ellipse, you ignore it, and that's what I did down here. 233 00:16:50,780 --> 00:16:53,600 And it comes out to this, and you can see it on here. 234 00:16:53,680 --> 00:16:58,760 There's this little leftover artifact because it didn't perfectly find the ellipse in the referendum. 235 00:16:59,720 --> 00:17:02,000 So I'm going to clean that up with an algorithm next. 236 00:17:09,360 --> 00:17:15,560 Okay, so take out the artifacts. I just use an algorithm called clean loaners. 237 00:17:15,760 --> 00:17:19,420 You pass two arguments. One's the radius of the area you want to check around the pixel, 238 00:17:19,460 --> 00:17:22,140 and the second is the ratio of white pixels you're expecting in that area. 239 00:17:22,460 --> 00:17:27,300 So if the rate is less than what you're expecting, then you remove the pixel or set it black. 240 00:17:27,680 --> 00:17:28,900 Otherwise, you ignore it. 241 00:17:30,640 --> 00:17:31,780 So in this example, 242 00:17:31,780 --> 00:17:40,300 I'll just show in two pixels, and say you set the radius to 2 and the minimum ratio to 0.2. 243 00:17:40,420 --> 00:17:44,700 In the first one, yellow, you have 7 white pixels, and there's 25 total. 244 00:17:44,840 --> 00:17:50,280 So 7 out of 25 is 0.28, and that's greater than 0.2, so that passes, and you leave it white. 245 00:17:50,600 --> 00:17:54,160 On the second example, it's only 3 out of 25, and it does not pass. 246 00:17:54,440 --> 00:17:57,540 It's not greater than 0.2, so you remove it. 247 00:17:57,680 --> 00:18:00,680 You do that for every single pixel, and that will take care of the artifacts. 248 00:18:00,680 --> 00:18:04,100 You can see how the one that was down below our referendum is gone now. 249 00:18:06,000 --> 00:18:08,900 Okay, so now we've got the vertical riveting, and this is kind of a pain. 250 00:18:09,580 --> 00:18:13,060 What we use is an algorithm I refer to as the blanket algorithm. 251 00:18:13,640 --> 00:18:17,260 Basically, it involves the discovery of a series of tangents along the top and bottom of the word 252 00:18:17,260 --> 00:18:20,220 in order to deduce the severity of the vertical offset along the x-axis. 253 00:18:20,920 --> 00:18:25,480 Obvious pitfalls are when there are tails and heads to letters, you know, like P and D, etc. 254 00:18:26,860 --> 00:18:28,460 But it's usually not that much of a problem. 255 00:18:29,320 --> 00:18:34,260 Okay, so how this works is for every single pixel along the bottom or top of the word, 256 00:18:34,380 --> 00:18:37,460 in this example I'll just go along the bottom, but without loss of generality. 257 00:18:38,520 --> 00:18:43,300 I'll start here at the green pixel, and you'll walk a pixel to the left, 258 00:18:43,420 --> 00:18:49,900 and if the slope from here to this pixel here is larger than what you currently have, 259 00:18:49,920 --> 00:18:52,120 in the beginning it's a 0, then you keep it. 260 00:18:52,240 --> 00:18:55,060 So now you'd start right here, and then you'd walk a pixel to the right. 261 00:18:55,120 --> 00:18:58,120 If it's less, if the slope's less than what you previously have, 262 00:18:58,460 --> 00:18:59,700 on the right, then you keep it. 263 00:18:59,860 --> 00:19:06,400 So you keep going all the way until you reach what can't make it any larger on the left 264 00:19:06,400 --> 00:19:08,640 and smaller on the right, which is these two pixels. 265 00:19:08,880 --> 00:19:11,680 Then you interpolate where the pixel would land for the green one here, 266 00:19:11,820 --> 00:19:13,040 and that's your new pixel. 267 00:19:13,780 --> 00:19:15,540 And this down here explains the algorithm. 268 00:19:16,640 --> 00:19:20,980 You can find it on my website, because I don't think the slides are actually on the CD. 269 00:19:24,200 --> 00:19:27,440 Okay, also you want to ensure that the final slopes aren't too large, 270 00:19:27,820 --> 00:19:30,800 because if they are, then you're going to have a vertical line at some point, 271 00:19:30,840 --> 00:19:31,800 and you really don't want that. 272 00:19:32,580 --> 00:19:34,140 So once the best of a tangent is found, 273 00:19:34,300 --> 00:19:36,920 your simple calculation can interpolate where the X would land on the tangent line. 274 00:19:37,380 --> 00:19:40,340 And now that it's been calculated for every pixel on the X axis, 275 00:19:40,400 --> 00:19:42,560 you take the new values and smooth them out with some simple averaging, 276 00:19:42,920 --> 00:19:47,780 along with the 10 left pixels and 10 values and right values. 277 00:19:48,700 --> 00:19:52,120 So that was simple and solves all the ribboning techniques implemented by every CAPTCHA system. 278 00:19:52,560 --> 00:19:55,760 I'm not sure if this already exists or not, but I've named it the blanket algorithm. 279 00:19:55,760 --> 00:19:57,200 Feel free to call it whatever you like. 280 00:19:58,660 --> 00:20:01,560 So this is how you remove the ribboning here. 281 00:20:01,920 --> 00:20:05,880 From here, it's an obvious fix to just drop each pixel by the vertical offset. 282 00:20:06,180 --> 00:20:09,900 Just average the top and bottom blanket values and drop each pixel in that column down to the floor. 283 00:20:10,120 --> 00:20:11,960 And you can see here how I'll resume the referendum. 284 00:20:12,280 --> 00:20:16,020 Now I no longer have an inverted blob, and the ribboning's been taken care of. 285 00:20:17,200 --> 00:20:18,920 It's not perfect, but it's pretty damn close. 286 00:20:19,220 --> 00:20:20,980 And all I promised was 10%, so. 287 00:20:23,820 --> 00:20:25,700 Alright, this is the old CAPTCHA from 2012. 288 00:20:25,760 --> 00:20:27,380 This is from 2007, one of their originals. 289 00:20:27,640 --> 00:20:31,780 And while this isn't technically their current one right now, because they changed it like I said a week before, 290 00:20:33,700 --> 00:20:36,400 but I'm just going to keep calling it current until I get to the end. 291 00:20:37,240 --> 00:20:41,040 Character dilation in the current version of reCAPTCHA makes decoding significantly more challenging, 292 00:20:41,260 --> 00:20:45,240 because character segmentation is the largest challenge for many CAPTCHA crackers and OCRs. 293 00:20:45,320 --> 00:20:46,940 The old CAPTCHA was an absolute joke. 294 00:20:47,240 --> 00:20:49,280 And then there's some anti-aliasing exploits, 295 00:20:49,280 --> 00:20:53,920 because in the original one you could easily segment the characters based off of the anti-aliasing, 296 00:20:55,760 --> 00:20:57,240 could easily be removed with that as well. 297 00:20:57,360 --> 00:21:01,620 You could just look for the darkest, most black pixels, and the line barely had any, 298 00:21:01,700 --> 00:21:03,740 so you could almost just completely remove it by doing that. 299 00:21:04,720 --> 00:21:07,420 And then OCR failures generate natural word distortions, 300 00:21:07,420 --> 00:21:10,540 because obviously an OCR has a problem solving a word, 301 00:21:11,000 --> 00:21:12,700 it's going to have some problems in the word, 302 00:21:12,740 --> 00:21:15,120 so that comes up with natural distortions in the CAPTCHA. 303 00:21:17,460 --> 00:21:20,680 Okay, now we're going to go into character segmentation, which is one of the harder parts of this. 304 00:21:21,840 --> 00:21:24,640 You can brute force characters to start and stop points along the x-axis, 305 00:21:24,640 --> 00:21:29,760 but that's exponentially challenging, and it's just really not a good idea. 306 00:21:30,000 --> 00:21:32,300 So what I did is I came up with a bunch of educated guesses, 307 00:21:33,040 --> 00:21:35,880 and then I used CMAPs, and I go into their training and usage, 308 00:21:36,040 --> 00:21:37,900 and why I use CMAPs instead of a neural network. 309 00:21:41,480 --> 00:21:42,060 Excuse me. 310 00:21:42,780 --> 00:21:43,140 Yeah. 311 00:21:44,880 --> 00:21:45,320 What's that? 312 00:21:46,440 --> 00:21:47,420 I'll go into that shortly. 313 00:21:50,480 --> 00:21:52,200 Okay, so for the character segmentation, 314 00:21:52,920 --> 00:21:54,620 I find some dips in the top and bottom, 315 00:21:54,640 --> 00:21:57,020 the bottom of the words, after a specialized version of my blanket routine. 316 00:21:57,420 --> 00:22:01,720 You can see how, if you ignore the lines, like the vertical lines, 317 00:22:01,860 --> 00:22:06,640 you can see how the blanket routine goes in and into the crevices of each character, 318 00:22:06,820 --> 00:22:10,420 and whenever it falls deep into one, there's nowhere to go but up, 319 00:22:10,480 --> 00:22:13,640 is where I marked a line, and those are the start and stop points 320 00:22:13,640 --> 00:22:15,460 that I'm going to use to test for each character. 321 00:22:15,900 --> 00:22:18,200 It makes it a lot easier than trying every single point. 322 00:22:20,480 --> 00:22:22,920 From this, I can lower the potential start-stop locations. 323 00:22:22,920 --> 00:22:28,120 From a boot force of 126 and 140 down to an educated guess of 20 and 22, 324 00:22:28,780 --> 00:22:34,460 which is exponential, and so that brings it down to about 97.6 more efficient 325 00:22:34,460 --> 00:22:36,140 than testing every single point. 326 00:22:37,620 --> 00:22:39,640 Okay, so the CMAP stands for character map. 327 00:22:39,860 --> 00:22:41,300 I just named it that, I don't know. 328 00:22:42,600 --> 00:22:44,620 It's a compilation of hundreds of sampled characters. 329 00:22:44,980 --> 00:22:47,020 The more it's trained, the more efficient it becomes. 330 00:22:47,120 --> 00:22:49,620 It works like a neural network, yet it's far more simple. 331 00:22:49,800 --> 00:22:51,740 I use it instead of a neural network because 332 00:22:52,920 --> 00:22:56,180 I had all the different ways that people implement OCRs with neural networks, 333 00:22:56,400 --> 00:22:59,360 and my CMAP worked the best, so that's why I stuck with it. 334 00:23:00,280 --> 00:23:02,120 At least with this CAPTCHA, that is. 335 00:23:03,540 --> 00:23:07,940 Once it's trained sufficiently, it's applied to every combination of the character start and stop points 336 00:23:07,940 --> 00:23:11,000 that match certain guidelines that determine their likelihood of a match. 337 00:23:12,500 --> 00:23:14,680 Okay, so you take a character group you'd like to train, 338 00:23:14,880 --> 00:23:16,920 discover the average dimensions for that character, 339 00:23:17,100 --> 00:23:19,200 then interpolate each character to that size. 340 00:23:19,440 --> 00:23:21,820 Add up the matrices of pixels and divide by their total, 341 00:23:21,820 --> 00:23:22,780 and you have yourself a CMAP. 342 00:23:23,160 --> 00:23:24,800 So in this case, I used three eyes. 343 00:23:25,520 --> 00:23:27,520 You can see out of the first top left pixel, 344 00:23:27,700 --> 00:23:30,620 there's one in every one, so the CMAP has a one. 345 00:23:31,020 --> 00:23:34,260 In the far right, there's only two out of three, so it's .6. 346 00:23:34,720 --> 00:23:36,640 And you just do that with hundreds of characters, 347 00:23:36,760 --> 00:23:39,560 and you get a basic average of each character. 348 00:23:41,520 --> 00:23:46,080 The final matrix can be used to determine the probability of a pixel existing for that eye, 349 00:23:46,540 --> 00:23:50,960 and below is a visual representation of the CMAP that I used in this current CAPTCHA. 350 00:23:51,820 --> 00:23:54,260 The brighter the pixel, the more likely it exists for that character. 351 00:23:54,840 --> 00:23:58,080 And you can see how in words that are letters that are less trained, 352 00:23:58,540 --> 00:24:02,740 like Q, it's a lot more fuzzy, but like E looks a lot better 353 00:24:02,740 --> 00:24:03,980 just because it was trained more often. 354 00:24:05,800 --> 00:24:08,820 Okay, so an interesting unfixable flaw with reCAPTCHA is the fact that 355 00:24:08,820 --> 00:24:12,020 every word is in fact just the actual real dictionary-based word. 356 00:24:12,320 --> 00:24:15,700 So to improve the efficacy, we'll exploit that flaw with a dictionary list. 357 00:24:16,000 --> 00:24:17,840 We use a model that lists about 100,000 words, 358 00:24:17,920 --> 00:24:18,960 and you can find it on my website. 359 00:24:23,780 --> 00:24:26,480 So to apply the CMAP and dictionary attack, 360 00:24:26,780 --> 00:24:29,340 for every combination of possible start-stop character points, 361 00:24:29,540 --> 00:24:32,600 calculate the height by finding the highest and lowest white pixels between them. 362 00:24:32,880 --> 00:24:36,180 For each character in the CMAP, check to see if the dimensions of the potential character 363 00:24:36,180 --> 00:24:39,500 fall within a set threshold of the dimensions of the CMAP character. 364 00:24:39,680 --> 00:24:43,800 So for instance, if you had a W and you were going to compare it against an I in the CMAP, 365 00:24:43,880 --> 00:24:45,860 there'd be no reason to because the dimensions are off. 366 00:24:47,000 --> 00:24:49,540 If one does, then apply the image to the CMAP character 367 00:24:49,540 --> 00:24:51,380 to calculate its probability of being the character. 368 00:24:51,860 --> 00:24:55,960 Now using a dynamic algorithm, calculate the total probability of each word in your dictionary list 369 00:24:55,960 --> 00:24:58,620 for matching that word, or matching that CAPTCHA. 370 00:24:59,040 --> 00:25:01,980 The word with the highest probability is your word about 10% of the time. 371 00:25:03,300 --> 00:25:04,900 Okay, so this is the dynamic algorithm. 372 00:25:06,580 --> 00:25:12,680 This just generates the probability that a word matches the ratio data that you calculated with the CMAP. 373 00:25:13,100 --> 00:25:17,040 So every start and stop point that have a probability for every character in the CMAP, 374 00:25:17,080 --> 00:25:21,580 assuming that it passed the dimensions, this list of information is referred to as the CDR. 375 00:25:21,820 --> 00:25:23,900 And I'll illustrate this with just the example car. 376 00:25:24,640 --> 00:25:27,520 Imagine that there's three C's, two A's, and four R's, CDR values. 377 00:25:28,460 --> 00:25:34,040 So in the beginning here, you have the three C's, and their ratio data is 5, 2, and 3. 378 00:25:34,360 --> 00:25:39,060 And it's founded at XI equals 0, and the X final is 9. 379 00:25:41,160 --> 00:25:43,400 And then that goes on for A and R, etc. 380 00:25:43,800 --> 00:25:50,120 So in the dynamic algorithm, you'd multiply the ratio data by the width of the character. 381 00:25:50,120 --> 00:25:56,080 So in the first one, C0, it'd be 5 times 10, and on down, etc. 382 00:25:57,260 --> 00:26:05,340 So now for the next letter, A, you find out which C the A falls in and doesn't overlap, 383 00:26:05,920 --> 00:26:09,100 and the highest value of that you add it to it. 384 00:26:09,320 --> 00:26:13,320 So in the first one, A starts at 4, goes to 11. 385 00:26:15,500 --> 00:26:20,100 So you come over here, and you see that it doesn't land in any direction. 386 00:26:20,120 --> 00:26:25,160 It doesn't do anything except the second one, which is, let's see here. 387 00:26:25,460 --> 00:26:28,520 So then you add 8 to it, because that's the only one that it'll land in. 388 00:26:28,740 --> 00:26:32,860 So 8 comes over here and gets added to the final product. 389 00:26:33,740 --> 00:26:36,660 Same goes for the next A. Runs from 10 to 18. 390 00:26:38,040 --> 00:26:44,500 It'll fit the first one and the last one, because 10 to 18 comes after 9, and after 9 here. 391 00:26:44,740 --> 00:26:48,740 And the highest one between those two is 50, so you add that to the final product. 392 00:26:48,740 --> 00:26:53,460 And so on and so forth until you have the final value, and that would be 118. 393 00:26:54,440 --> 00:27:00,460 So the largest probability for the word car to fit from our CDR data calculated from the image is 118. 394 00:27:00,720 --> 00:27:04,220 And the real project uses fractions from 0 to 1 instead of whole numbers. 395 00:27:05,940 --> 00:27:09,360 Okay, so the last step is to divide the entire total by the total width of the image. 396 00:27:09,580 --> 00:27:11,680 And the final product is the word's true probability. 397 00:27:12,060 --> 00:27:15,100 It'll be a value between 0 and 1, like all good probabilities should be. 398 00:27:15,700 --> 00:27:16,920 Alright, so a few issues. 399 00:27:17,320 --> 00:27:19,580 There can be rare problems where it's not the largest probability. 400 00:27:20,080 --> 00:27:24,840 And that can be fixed by allowing wildcards, but that did not improve the algorithm, so I'm not talking about it. 401 00:27:25,940 --> 00:27:29,220 So you apply this algorithm to every word in your dictionary list, and the highest word is the winner. 402 00:27:30,520 --> 00:27:33,100 Okay, so my experimental results from using all these techniques. 403 00:27:33,740 --> 00:27:36,500 It's difficult to determine, because I didn't actually apply it to their system. 404 00:27:36,560 --> 00:27:41,720 Instead I downloaded tons of their captions, named them, and then determined how well it worked. 405 00:27:41,920 --> 00:27:45,420 The problem with that is you can't know exactly which word's the verification word. 406 00:27:45,420 --> 00:27:48,280 So I just used a couple tricks to kind of guess statistically. 407 00:27:51,260 --> 00:27:55,320 So if the words are distorted beyond a certain point, or if they're shorter than a few letters, 408 00:27:55,620 --> 00:27:58,860 or if they contain numbers, then it's definitely not the verification word. 409 00:27:59,140 --> 00:28:03,060 And in some instances it's impossible to tell the difference without trying it natively on reCAPTCHA. 410 00:28:03,520 --> 00:28:10,220 But in an analysis of 16,555 captions, 313 of them contained a word containing a number, 411 00:28:10,360 --> 00:28:14,460 and 6,712 of them had a word of less than or equal to three characters in size. 412 00:28:14,460 --> 00:28:19,900 Meaning that about 42% of the captions supplied by reCAPTCHA can have the verification word easily determined. 413 00:28:20,280 --> 00:28:24,280 And that statistic is not including overly distorted words, which could make that up to half. 414 00:28:25,620 --> 00:28:31,580 So the system was set up to run for a day, testing 4,690 downloaded random captions, 415 00:28:31,840 --> 00:28:33,840 that were not used to train the system in any way. 416 00:28:34,080 --> 00:28:37,320 Instead I downloaded the images and not run the system against reCAPTCHA's servers. 417 00:28:37,540 --> 00:28:40,340 I needed to determine the words, which ones of verification were myself. 418 00:28:41,100 --> 00:28:44,020 And the results for this experiment came to 873 instances, 419 00:28:44,020 --> 00:28:46,420 where one or both of the two words were correct. 420 00:28:46,440 --> 00:28:48,600 That gives an efficacy of about 18.5%. 421 00:28:48,600 --> 00:28:52,360 After removing all instances where the correct word was less than or equal to three characters, 422 00:28:52,640 --> 00:28:54,340 there was a total of 630 correct. 423 00:28:54,720 --> 00:28:57,300 That leaves an overall efficiency of 13.5%. 424 00:28:57,940 --> 00:29:01,520 Of course, there are the instances where the system is answering the digitization word correct, 425 00:29:01,980 --> 00:29:03,420 instead of the verification word. 426 00:29:03,560 --> 00:29:06,840 Concluding, however, that this happens half the time is far too conservative, 427 00:29:06,980 --> 00:29:09,740 considering the digitization word is often more distorted. 428 00:29:10,520 --> 00:29:13,000 A safe conservative number for the results in this experiment 429 00:29:13,000 --> 00:29:17,040 to accidentally answer the word other than the verification word would be about 25%. 430 00:29:18,560 --> 00:29:22,260 So here's a breakdown of the CAPTCHA solved with those 4,000-some CAPTCHAs. 431 00:29:23,500 --> 00:29:27,760 I'd say about 25% of them up here would be the digitization word, 432 00:29:28,960 --> 00:29:30,560 25% verification word, 433 00:29:30,660 --> 00:29:34,520 and half of the time you know that it's which one's which, so you don't have to worry about it. 434 00:29:35,400 --> 00:29:38,300 Since half the time it is not possible to guess which word is the verification word, 435 00:29:38,360 --> 00:29:42,320 and there is still a 50% chance, so that comes out to about 25%, 436 00:29:42,320 --> 00:29:44,720 but this is still a highly conservative number. 437 00:29:45,140 --> 00:29:50,900 But if you apply that to the 13% efficiency rate, it comes out to about 10%, 438 00:29:50,900 --> 00:29:54,240 so you say about 3% of the time it gets the digitization word. 439 00:29:55,940 --> 00:30:00,480 And that took about 8 seconds to decode an entire CAPTCHA, or 4 seconds a word. 440 00:30:00,720 --> 00:30:03,640 These results were executed on a single-core 2.5 GHz processor, 441 00:30:04,280 --> 00:30:07,080 and the winning probabilities for the sample CAPTCHA I used in these slides 442 00:30:07,080 --> 00:30:10,040 turned out to be presumed with a rate of 0.618, 443 00:30:10,040 --> 00:30:12,820 and moronomy with a rate of 0.478. 444 00:30:13,220 --> 00:30:15,360 Also, I hardly trained the CMAT because it was tedious. 445 00:30:17,100 --> 00:30:20,160 Okay, so because they changed the CAPTCHA a week before the presentation, 446 00:30:20,620 --> 00:30:24,720 I decided to go through and re-crack it again so I could tell you guys about how to do that. 447 00:30:27,580 --> 00:30:27,940 Oops. 448 00:30:29,500 --> 00:30:31,420 Okay, so this is the changes they made. 449 00:30:31,740 --> 00:30:33,940 They got rid of the inverted blob for some reason, 450 00:30:35,500 --> 00:30:38,740 and they focused more on ribbon, and you can see how it's much more ribboned. 451 00:30:43,040 --> 00:30:47,000 Okay, so change the old system to make it work with the new CAPTCHA. 452 00:30:48,060 --> 00:30:51,400 So the step 1, you comment out the blob algorithm, which is convenient. 453 00:30:52,420 --> 00:30:54,840 Then you change the blanket algorithm's arguments to the following. 454 00:30:55,100 --> 00:30:58,940 Use a tangent line of 4 pixels to the left and 4 to the right as opposed to the previous 10, 455 00:30:59,100 --> 00:31:01,520 and use less smoothing and about 5 surrounding values. 456 00:31:01,860 --> 00:31:03,820 Then you allow tangents with a slope of up to 1. 457 00:31:04,380 --> 00:31:07,320 Step 3, you train a new CMAT, and step 4, that's pretty much it. 458 00:31:08,700 --> 00:31:10,540 And that's pretty much all you need to do. 459 00:31:10,620 --> 00:31:12,740 It was a really simple change. It took about 5 minutes. 460 00:31:12,860 --> 00:31:15,300 I don't know why they made it easier for the presentation. 461 00:31:16,440 --> 00:31:21,580 So after angrily naming 500 new CAPTCHAs, they were ran through the system with an accuracy of about 32%. 462 00:31:22,160 --> 00:31:25,640 Obviously without the inverted blob, things become a bit simpler, and hence more efficient. 463 00:31:26,020 --> 00:31:30,980 To ensure a conservative figure, you can multiply that by .75 to arrive at 23.85%, 464 00:31:30,980 --> 00:31:32,900 but it will more likely be about 30%. 465 00:31:33,500 --> 00:31:36,360 Two and a half percent of the time, both words were solved for guaranteed defeat. 466 00:31:37,320 --> 00:31:40,220 Also, I once again only lightly trained the CMAT, which is under 200 CAPTCHAs. 467 00:31:40,460 --> 00:31:42,920 Once I hit 31.8%, I was content. 468 00:31:43,300 --> 00:31:47,140 It took about 66 minutes and 33 seconds to run through the 500 CAPTCHAs. 469 00:31:47,320 --> 00:31:51,540 It comes out to about 8 seconds per CAPTCHA on the same computer system, using the other results. 470 00:31:52,620 --> 00:31:54,240 And here's an image of the new CMAT. 471 00:31:54,320 --> 00:31:57,080 You can see it's a lot cleaner than the old one, even though I trained it less. 472 00:31:59,100 --> 00:32:01,400 So you'll notice, for instance, the E is very clean. 473 00:32:01,560 --> 00:32:03,480 It almost just looks like an anti-aliased E. 474 00:32:03,780 --> 00:32:06,240 This is because E is the most frequent letter in the English language, 475 00:32:06,240 --> 00:32:08,980 and then J, X, and Z are hardly trained. 476 00:32:09,240 --> 00:32:11,700 And sadly, there is no Q, since I didn't run into one of them, 477 00:32:11,760 --> 00:32:14,660 which means CAPTCHA with a Q will be unlikely to be solved. 478 00:32:15,020 --> 00:32:18,200 It's quite obvious a more diligent person could train this much more efficiently, 479 00:32:18,800 --> 00:32:20,660 and maybe even get up to 50%. 480 00:32:21,860 --> 00:32:26,560 You can see over here, I show how many times each letter was trained. 481 00:32:27,580 --> 00:32:28,980 Z was only trained 11 times. 482 00:32:29,200 --> 00:32:30,560 And then over here is the average dimensions. 483 00:32:33,800 --> 00:32:34,660 And now it's over. 484 00:32:35,520 --> 00:32:36,280 Anything else? 485 00:32:36,560 --> 00:32:38,260 We can't think of anything else to talk about, 486 00:32:38,420 --> 00:32:40,920 so I'm going to show a video of the CAPTCHA decoder in action, 487 00:32:41,120 --> 00:32:43,480 and then we'll go on to Q&A over in the other room. 488 00:32:43,800 --> 00:32:45,800 Oh, and a special thanks to the sweet-ass shirts 489 00:32:45,800 --> 00:32:47,980 that Jinx, Green Sector, and Whisper Systems gave us. 490 00:33:10,840 --> 00:33:12,880 So that's it working right now. 491 00:33:13,600 --> 00:33:15,400 You see it running through every single algorithm, 492 00:33:15,940 --> 00:33:18,100 and then actually running it through the dictionary list, 493 00:33:18,340 --> 00:33:19,580 and then how often it gets it. 494 00:33:21,540 --> 00:33:22,660 So far it has none. 495 00:33:24,780 --> 00:33:26,460 And then you've got successes right there. 496 00:33:28,280 --> 00:33:30,160 So I've got one out of four so far. 497 00:33:49,400 --> 00:33:51,340 And since it can get one character wrong, 498 00:33:51,960 --> 00:33:53,060 or skip it entirely, 499 00:33:53,260 --> 00:33:57,080 I include words that were off by one. 500 00:33:57,240 --> 00:33:59,600 So it got zesty instead of zests. 501 00:34:00,880 --> 00:34:01,820 Sessions and sessions. 502 00:34:13,500 --> 00:34:14,760 Yeah, that's pretty much it. 503 00:34:14,880 --> 00:34:16,640 I'm going to leave this running for a few more moments, 504 00:34:16,740 --> 00:34:18,120 and then go over to the Q&A room.