1 00:00:00,000 --> 00:00:03,600 Thank you so much for all your hard work in setting this up. 2 00:00:03,800 --> 00:00:07,080 Can the fine lady with the tiara stand up? 3 00:00:08,440 --> 00:00:13,180 Hey, Leora, everyone give Leora a round of applause for setting this up. 4 00:00:13,500 --> 00:00:15,540 She is the queen of details. 5 00:00:18,240 --> 00:00:20,500 Well, let's get this party started, everyone. 6 00:00:20,580 --> 00:00:22,760 Let me switch PowerPoints here. 7 00:00:22,900 --> 00:00:31,300 You know, I've been working with technology and code and software engineering my whole life, and now I'm an expert in PowerPoint. 8 00:00:33,220 --> 00:00:35,740 That's really... wow, that's where my life has gone. 9 00:00:35,740 --> 00:00:37,520 So I want to talk to you. 10 00:00:37,520 --> 00:00:38,820 This is a keynote. 11 00:00:38,820 --> 00:00:44,800 I'm going to talk about a general overview of application security in some way. 12 00:00:44,800 --> 00:00:48,660 This topic has been so fundamental to my life. 13 00:00:48,660 --> 00:00:50,280 It's something that's my job. 14 00:00:50,280 --> 00:00:51,720 It's my personal passion. 15 00:00:51,720 --> 00:00:52,900 It's my hobby. 16 00:00:52,900 --> 00:00:55,640 It's all encompassed my life in the last ten years. 17 00:00:55,640 --> 00:01:01,420 It's something that I'm very happy because this is, in my mind, the ultimate puzzle in information security. 18 00:01:01,420 --> 00:01:08,960 And I look at traditional security, and everything is quickly running to AppSec because it's all about code these days. 19 00:01:08,960 --> 00:01:10,820 Even infrastructure is code. 20 00:01:10,820 --> 00:01:19,840 So all of you in this room who are committed to application security, who care about this topic, in my mind, this is what information security is about. 21 00:01:19,840 --> 00:01:22,940 Let's give each other a round of applause for being here. 22 00:01:22,940 --> 00:01:23,900 Yeah! 23 00:01:26,940 --> 00:01:32,400 So let's talk about the very unabridged history of application security. 24 00:01:32,400 --> 00:01:41,440 The point I want to make here is that things are getting extraordinarily better in the world of secure coding and application security. 25 00:01:41,440 --> 00:01:42,880 And nobody wants to say this. 26 00:01:42,880 --> 00:01:44,660 I don't hear this from anybody. 27 00:01:44,660 --> 00:01:52,180 But I want to give you some evidence and a debate and some speaking points of why things are dramatically getting better. 28 00:01:52,180 --> 00:01:54,540 We're moving in the right direction. 29 00:01:54,760 --> 00:01:59,140 And we're going to see great improvements over the next decade in this area. 30 00:01:59,380 --> 00:02:00,960 And by the way, my name is Jim Manico. 31 00:02:00,960 --> 00:02:02,060 I'll be your presenter today. 32 00:02:02,060 --> 00:02:04,380 I'm a former board member of the OWASP Foundation. 33 00:02:04,380 --> 00:02:07,320 I wrote a book on secure coding for the Java ecosystem. 34 00:02:07,320 --> 00:02:10,800 I invest heavily in the application security space. 35 00:02:10,800 --> 00:02:15,220 And I'm based in Hawaii, D.C., in whatever hotel I happen to be in. 36 00:02:15,220 --> 00:02:16,640 So I'm a traveler. 37 00:02:16,640 --> 00:02:20,080 And I love the lifestyle of traveling and teaching. 38 00:02:20,080 --> 00:02:21,820 It's something that's very satisfying. 39 00:02:21,820 --> 00:02:23,780 It sates my wanderlust. 40 00:02:25,080 --> 00:02:28,520 It's a great life I have because of application security. 41 00:02:28,520 --> 00:02:30,540 I see several of my customers in the room. 42 00:02:30,540 --> 00:02:33,020 Thank you all for being here and for working with me as well. 43 00:02:33,020 --> 00:02:34,140 Let's redact some of this. 44 00:02:34,140 --> 00:02:35,580 And redacted. 45 00:02:35,580 --> 00:02:36,080 Yeah, there we go. 46 00:02:36,080 --> 00:02:36,960 Let's move on. 47 00:02:37,040 --> 00:02:44,640 I want to start back in the beginning of application security, or the beginning of information security in a lot of ways. 48 00:02:44,640 --> 00:02:48,000 This really all started back in October 67. 49 00:02:48,000 --> 00:02:53,320 This is a task force that was organized by the Advanced Research Projects Agency. 50 00:02:53,320 --> 00:02:56,700 This is before DARPA, what led to DARPA eventually. 51 00:02:56,700 --> 00:03:03,340 And this was a study to recommend appropriate computer security safeguards to protect classified information. 52 00:03:03,340 --> 00:03:07,280 And this report was actually only written so well. 53 00:03:07,280 --> 00:03:14,000 Rand picked it up around 1970, published, and eventually declassified this very famous report. 54 00:03:14,000 --> 00:03:28,600 February 1970, R609, the first really high-end, comprehensive report on information security from any major government that was declassified and sent out to the world to review. 55 00:03:28,600 --> 00:03:30,360 Anybody want to give me a guess? 56 00:03:30,360 --> 00:03:31,700 Or anybody want to take a guess? 57 00:03:31,700 --> 00:03:37,660 What was the summary of this report about the state of information security in 1970 in the U.S. 58 00:03:37,660 --> 00:03:38,220 government? 59 00:03:38,220 --> 00:03:39,700 Anybody have an idea here? 60 00:03:41,220 --> 00:03:43,320 Bleep is messed up. 61 00:03:43,320 --> 00:03:44,800 It was bad. 62 00:03:44,800 --> 00:03:51,180 It was literally like every aspect of protecting information was fundamentally wrong. 63 00:03:51,180 --> 00:03:53,000 And so, you know what? 64 00:03:53,000 --> 00:04:07,620 A lot of us today who are experts in application security, when you take a close look at what you're working on today, the code you're reviewing today, the organization you're assessing today, it looks bad. 65 00:04:07,620 --> 00:04:11,780 And that's an interesting note about our industry in application security. 66 00:04:11,780 --> 00:04:18,260 The people that I know who are working on this problem, especially those who are really passionate about it, they're fatigued. 67 00:04:18,260 --> 00:04:19,580 They're a little downtrodden. 68 00:04:19,580 --> 00:04:20,600 They're beat up. 69 00:04:20,600 --> 00:04:21,140 Why? 70 00:04:21,140 --> 00:04:27,320 Why is this AppSec world that we're in, why does it weigh so heavily on so many of us? 71 00:04:27,320 --> 00:04:27,880 Anybody? 72 00:04:29,240 --> 00:04:32,180 It's rare where folks write secure code. 73 00:04:32,180 --> 00:04:36,240 How often do developers listen to exactly what you say about security? 74 00:04:36,240 --> 00:04:37,780 Almost never. 75 00:04:38,080 --> 00:04:47,020 And so it almost seems like that as we move down this path, that it feels like we're taking two steps forward and sometimes five steps backwards. 76 00:04:47,020 --> 00:04:47,940 And it's frustrating. 77 00:04:47,940 --> 00:04:49,700 It is an emotional drain. 78 00:04:49,700 --> 00:04:53,120 There's a high rate of depression and even suicide in our industry. 79 00:04:53,120 --> 00:04:54,660 Not even joking around. 80 00:04:54,660 --> 00:04:57,180 This is hard work that drains people. 81 00:04:57,180 --> 00:05:00,380 But I want to take a look at all of this from a different perspective. 82 00:05:00,380 --> 00:05:02,000 Let's pull back, everyone. 83 00:05:02,000 --> 00:05:06,360 Let's take a look like at 1939, where BOM came out. 84 00:05:06,360 --> 00:05:08,700 The first professional pen testing tool. 85 00:05:08,700 --> 00:05:10,120 Anybody know what this is? 86 00:05:10,120 --> 00:05:11,380 Back in 39? 87 00:05:11,540 --> 00:05:12,060 What is it? 88 00:05:12,060 --> 00:05:12,800 Go ahead. 89 00:05:13,620 --> 00:05:15,480 It's a crypto-breaking device. 90 00:05:15,480 --> 00:05:16,240 World War II. 91 00:05:16,240 --> 00:05:17,900 Who was the lead of this project? 92 00:05:17,960 --> 00:05:20,100 He's on the currency for you Brits. 93 00:05:20,900 --> 00:05:22,280 It's Turing. 94 00:05:22,840 --> 00:05:27,880 This pen test tool is made to crack German ciphers of the era, right? 95 00:05:28,120 --> 00:05:30,160 Axis ciphers of the era. 96 00:05:30,160 --> 00:05:31,180 And how did they build this? 97 00:05:31,180 --> 00:05:32,020 With software? 98 00:05:32,020 --> 00:05:36,140 No, with hammer and nail and wire and cable and electricity. 99 00:05:36,140 --> 00:05:38,180 It was a large physical device. 100 00:05:38,360 --> 00:05:43,540 Helped defend the free world and give us the liberty we may have today. 101 00:05:43,540 --> 00:05:45,220 Let's just erase that idea for this. 102 00:05:45,220 --> 00:05:48,100 We'll get back to that later on. 103 00:05:48,220 --> 00:05:51,000 So jumping ahead, we have 1972. 104 00:05:51,040 --> 00:05:52,920 We have the Anderson Report. 105 00:05:53,280 --> 00:05:57,440 Anderson made a lot of contributions to information security. 106 00:05:57,520 --> 00:05:59,840 But for the purpose of this, I want to highlight two of them. 107 00:05:59,840 --> 00:06:08,980 In 1972, he pushed out the Anderson Report, which followed the 1968 Defense Science Board's Ware Report, in which Anderson also participated. 108 00:06:08,980 --> 00:06:11,840 But this report in 72 came out after Rand. 109 00:06:11,840 --> 00:06:17,220 This really set information security research across the world for a decade. 110 00:06:17,220 --> 00:06:23,240 It finally brought out some of the advanced principles of security defense for the first time. 111 00:06:23,240 --> 00:06:25,980 Really changed the game around this era. 112 00:06:25,980 --> 00:06:29,680 In 1974, the Air Force starts testing on mutix, right? 113 00:06:29,720 --> 00:06:32,920 79 Lint early static analysis tools were released. 114 00:06:32,920 --> 00:06:34,600 Holy cow, this tool is still out there. 115 00:06:34,600 --> 00:06:36,280 Some people are still using it. 116 00:06:36,280 --> 00:06:41,220 So we got Lint out there doing the original static analysis tool of the industry. 117 00:06:41,220 --> 00:06:45,860 We see the Security Administration Tool for Analyzing Networks in 95. 118 00:06:45,860 --> 00:06:47,320 Anybody ever use this? 119 00:06:47,320 --> 00:06:50,780 How did this change things when this tool came out? 120 00:06:50,780 --> 00:06:52,220 I barely remember that. 121 00:06:52,420 --> 00:06:53,460 Wow. 122 00:06:53,680 --> 00:06:55,000 Okay, you're not helping. 123 00:06:55,000 --> 00:06:55,660 Who else? 124 00:06:55,660 --> 00:07:00,560 Who remembers 95 when the tool Staten first came out? 125 00:07:00,560 --> 00:07:02,860 This changed network assessment. 126 00:07:02,860 --> 00:07:10,120 One of the first really automated tools to take even lay folk and give them the ability to start doing assessment technology. 127 00:07:10,120 --> 00:07:13,960 In 1998, this is Jeff Forstall, right? 128 00:07:13,980 --> 00:07:20,260 On Christmas Day at a USENIC meeting, is the first one to ever coin the term SQL Injection. 129 00:07:20,260 --> 00:07:23,960 This is only 98 when SQL Injection was first discovered. 130 00:07:23,960 --> 00:07:28,320 99, we see cross-site scripting first described by Microsoft engineers. 131 00:07:28,360 --> 00:07:32,080 2001, OWASP WebGoat is released. 132 00:07:32,080 --> 00:07:36,680 Why is WebGoat so significant to application security today, everybody? 133 00:07:36,680 --> 00:07:37,700 Why does WebGoat matter? 134 00:07:37,700 --> 00:07:40,200 Why did WebGoat matter back in 2001? 135 00:07:40,200 --> 00:07:47,760 Because for the first time, this very small application security community had a common tool to hack together. 136 00:07:47,760 --> 00:07:56,660 And we could suddenly talk about specific kinds of SQL Injection, cross-site scripting, access control bypass on a common platform. 137 00:07:56,660 --> 00:08:02,940 And it became like the main tool that almost every security tester I know went through in some way. 138 00:08:02,940 --> 00:08:10,340 So it helped take all this scattered ideas about application security and give us a common thought piece to talk about. 139 00:08:10,340 --> 00:08:12,680 So I think WebGoat was extremely important. 140 00:08:12,680 --> 00:08:15,920 Who here has beat up WebGoat sometime in their career? 141 00:08:15,920 --> 00:08:17,660 So half the room here. 142 00:08:17,660 --> 00:08:20,400 It's a broken web app on purpose. 143 00:08:20,480 --> 00:08:22,900 Metasploit only came out in 2003. 144 00:08:23,320 --> 00:08:27,420 2008, 2006, the first OWASP testing guide came out. 145 00:08:27,420 --> 00:08:30,180 I think this is, if you look at it as a book, it's not written very well. 146 00:08:30,180 --> 00:08:31,480 A lot of different authors. 147 00:08:31,480 --> 00:08:35,560 But the content within it is top of the game even now. 148 00:08:35,560 --> 00:08:42,920 So we have literally dozens of testers helping write this book around how to test security applications and web applications. 149 00:08:43,020 --> 00:08:44,460 Very important guide. 150 00:08:44,460 --> 00:08:46,800 2010, we have FireSheep coming out. 151 00:08:46,800 --> 00:08:47,240 We'll come back. 152 00:08:47,240 --> 00:08:48,980 And OWASP Zap came out. 153 00:08:49,180 --> 00:08:52,060 2013 is the beginning of the DevOps era. 154 00:08:52,060 --> 00:08:53,580 Only a couple years ago. 155 00:08:53,580 --> 00:08:55,800 And what do we have today in 2019? 156 00:08:55,800 --> 00:09:05,500 Most major development shops now have some kind of automated pipeline that's doing some form of security testing every time developers touch code. 157 00:09:05,500 --> 00:09:07,720 So let's go back to 39. 158 00:09:07,940 --> 00:09:09,800 Hammer and nail. 159 00:09:09,800 --> 00:09:15,200 Making a testing tool to, like, keep the free world running at the time. 160 00:09:15,200 --> 00:09:25,220 To today, where most mature development shops are running static and dynamic and third-party analysis tools every time someone tries to check something in. 161 00:09:25,220 --> 00:09:26,600 So pull back and look at this. 162 00:09:26,600 --> 00:09:27,800 Are we getting better? 163 00:09:27,800 --> 00:09:28,980 Oh, yes, we are! 164 00:09:28,980 --> 00:09:33,500 In a dramatic way, if you look at the history of software engineering. 165 00:09:33,500 --> 00:09:37,260 If you look at this moment in time in what you're doing, it is rough. 166 00:09:37,260 --> 00:09:39,320 We gotta pull back and look at the big picture. 167 00:09:39,320 --> 00:09:40,560 And let's do some more of that. 168 00:09:40,560 --> 00:09:42,240 Let's look at HTTPS. 169 00:09:42,240 --> 00:09:45,720 How important is this technology to the secure web today, everyone? 170 00:09:45,980 --> 00:09:46,540 What do you think? 171 00:09:46,540 --> 00:09:50,640 If there was a major break in HTTPS, what would happen to the web? 172 00:09:50,660 --> 00:09:51,620 It's done. 173 00:09:51,720 --> 00:09:59,620 So whether you like or do not like HTTPS, it is a fundamental foundational technology that keeps the web secure. 174 00:09:59,620 --> 00:10:02,200 It has gotten a lot better in the last 10 years. 175 00:10:02,940 --> 00:10:06,780 1994, Netscape creates the initial version of HTTPS. 176 00:10:06,780 --> 00:10:11,880 Moxie Marlin Spike, who's like an activist in the area of transport security, in my opinion. 177 00:10:11,880 --> 00:10:17,320 He went and called this original engineer and asked him about the creation process of HTTPS. 178 00:10:17,320 --> 00:10:21,720 He specifically asked him about the certificate authority system. 179 00:10:21,720 --> 00:10:23,980 You know what the original engineer who wrote that said? 180 00:10:23,980 --> 00:10:27,040 He said, oh, yeah, I forgot about the CA system. 181 00:10:27,040 --> 00:10:31,060 Yeah, we realized at the end we needed someone to sign our keys. 182 00:10:31,060 --> 00:10:33,860 So we kind of just kind of threw that in at the end at the last minute. 183 00:10:34,100 --> 00:10:36,280 And that is how the CA system... 184 00:10:36,280 --> 00:10:37,160 I'm not kidding. 185 00:10:37,160 --> 00:10:40,220 That is exactly how the CA system was created. 186 00:10:40,220 --> 00:10:43,460 Some engineer with a hand wave threw it in there at the last minute. 187 00:10:43,460 --> 00:10:47,000 And it's now foundational to transport security. 188 00:10:47,220 --> 00:10:52,100 1999, TLS 1.0, something you should now disable. 189 00:10:52,120 --> 00:10:55,300 We're in the era where TLS 1 is dead pretty much now. 190 00:10:55,300 --> 00:11:01,120 If you look at SSL Labs and other evaluation engines, they dink you for using TLS 1.0. 191 00:11:01,120 --> 00:11:06,480 The only lowest level legit TLS 1.1 was pushed out in 2006, right? 192 00:11:07,140 --> 00:11:09,920 2009, this is a big moment in time. 193 00:11:09,960 --> 00:11:12,780 SSL Labs releases their free tool from Qualys. 194 00:11:12,780 --> 00:11:15,120 I'm not particularly pointing at any vendors, but this tool... 195 00:11:15,640 --> 00:11:18,100 Who uses SSL Labs in their work in some way? 196 00:11:18,300 --> 00:11:19,980 I don't think it's just a tool. 197 00:11:19,980 --> 00:11:23,460 This is the standard for evaluating public websites. 198 00:11:23,680 --> 00:11:25,140 And when they push this out... 199 00:11:25,140 --> 00:11:28,560 Now, some of you who know me, I at times am a bit of a troll. 200 00:11:28,560 --> 00:11:29,260 Just a little bit. 201 00:11:29,260 --> 00:11:30,640 I try to be a happy troll. 202 00:11:30,640 --> 00:11:37,300 But I went out and tweeted the URL to every single security company on the planet and their grade. 203 00:11:37,360 --> 00:11:38,940 Like Symantec D. 204 00:11:39,040 --> 00:11:39,940 You're A now. 205 00:11:39,940 --> 00:11:40,360 I'm sorry. 206 00:11:40,360 --> 00:11:41,080 I'm sorry, Symantec. 207 00:11:41,080 --> 00:11:45,480 But a lot of big companies and app tech companies had very poor grades on their website. 208 00:11:45,580 --> 00:11:48,340 And I'm like doing LOLs. 209 00:11:48,340 --> 00:11:49,220 Oh, you got an F. 210 00:11:49,220 --> 00:11:50,620 It could be a little showboat about it. 211 00:11:50,620 --> 00:11:55,200 I had a lot of senior people from different companies say, Please stop this, Jim. 212 00:11:55,200 --> 00:11:56,380 You're causing trouble. 213 00:11:56,380 --> 00:12:01,000 Ivan Hristic, who wrote this tool, showed up and said, I have a suggestion, everybody. 214 00:12:01,100 --> 00:12:04,320 How about you leave Jim alone and go fix your freaking web server? 215 00:12:04,320 --> 00:12:05,980 Thank you, Ivan, wherever you are. 216 00:12:05,980 --> 00:12:08,360 Ivan Hristic is the author of SSL Labs. 217 00:12:08,360 --> 00:12:14,760 Still, I think one of the most foundational, fundamental evaluation tools for TLS today. 218 00:12:14,940 --> 00:12:18,600 2010, Chrome starts to preload sites. 219 00:12:18,600 --> 00:12:20,040 It happened early. 220 00:12:20,040 --> 00:12:24,860 In 2010, Chrome was hard-coding their own properties. 221 00:12:24,940 --> 00:12:30,620 And you can't use Chrome to visit Google properties and HTTP as early as 2010. 222 00:12:30,880 --> 00:12:34,080 And then, yeah, baby, Fire Sheep comes out. 223 00:12:34,260 --> 00:12:36,300 Who had a little bit of fun with Fire Sheep? 224 00:12:36,300 --> 00:12:37,060 That's illegal. 225 00:12:37,060 --> 00:12:37,540 What are you talking? 226 00:12:37,540 --> 00:12:38,520 You shouldn't do that. 227 00:12:38,520 --> 00:12:39,420 That's illegal. 228 00:12:39,420 --> 00:12:40,200 Whatever. 229 00:12:40,860 --> 00:12:54,480 Back in this era, back in the Fire Sheep era, which is right around 2010, most major sites would log you in over TLS and then drop back to HTTP for performance reasons. 230 00:12:54,480 --> 00:12:56,560 And Fire Sheep came out on OSX. 231 00:12:56,560 --> 00:13:01,000 You run it, run it on a wireless network, and you'll just see other cookies light up. 232 00:13:01,000 --> 00:13:02,500 Click, and you're that person. 233 00:13:02,500 --> 00:13:07,520 And this really forced an entire industry to standardize on what we see today. 234 00:13:07,520 --> 00:13:12,840 You're doing HTTPS everywhere, well-configured, or you're not doing security. 235 00:13:12,840 --> 00:13:16,280 Is there any excuse to use HTTP anywhere, anybody? 236 00:13:16,280 --> 00:13:17,440 Anybody want to play that game with me? 237 00:13:18,680 --> 00:13:23,620 Maybe to redirect to HTTPS only, but there's no good excuse to use it anymore. 238 00:13:23,620 --> 00:13:25,840 Maybe to download updates that are properly signed. 239 00:13:25,840 --> 00:13:27,140 All right, let's move on, let's move on. 240 00:13:27,540 --> 00:13:31,320 2011, we see the introduction of forward secrecy and modern ciphers. 241 00:13:31,320 --> 00:13:37,900 So even if someone steals your private key, they can't use that to break confidentiality of your connection. 242 00:13:38,200 --> 00:13:41,200 2013, we see GLS12 go live. 243 00:13:41,200 --> 00:13:54,760 2018, Let's Encrypt shows up, and they take such a major stance in giving out free certs that we see some of the big commercial players start to sue them and go after them. 244 00:13:54,760 --> 00:13:57,960 And that's a sign that Let's Encrypt is doing the right thing. 245 00:13:57,960 --> 00:14:01,320 It would be rude of me to point that vendor out who is suing them, Komodo. 246 00:14:01,320 --> 00:14:02,140 That would be rude. 247 00:14:02,140 --> 00:14:03,420 I'm not going to do that. 248 00:14:05,060 --> 00:14:08,860 2016, half the web is now HTTPS. 249 00:14:08,860 --> 00:14:12,440 Chrome 51 now defaults to HTTP 2. 250 00:14:12,440 --> 00:14:20,240 Can you do HTTP and HTTP version 2 in a modern browser? 251 00:14:20,240 --> 00:14:21,440 The answer is no. 252 00:14:21,440 --> 00:14:29,580 So this is a new protocol coming out where plain text communication and bad ciphers are not even possible as early as 2016. 253 00:14:29,580 --> 00:14:30,880 That's standard in the browser. 254 00:14:30,880 --> 00:14:37,060 2017, certificate authentication or authorization becomes mandatory. 255 00:14:37,160 --> 00:14:41,380 So if rogue authorities start minting certs in your name, you're going to know about it fast. 256 00:14:41,380 --> 00:14:45,520 And in 2018, Let's Encrypt offers wildcard. 257 00:14:45,520 --> 00:14:48,940 TLS 1.3 goes live, published 8.4.4.6. 258 00:14:48,940 --> 00:14:51,720 And almost immediately, we see that live in several browsers. 259 00:14:51,720 --> 00:14:55,480 And now certificate transparency is required for all new certs. 260 00:14:55,480 --> 00:14:59,900 These are extraordinarily high-level, esoteric ways to augment TLS. 261 00:14:59,900 --> 00:15:02,260 They're now standard in the browser. 262 00:15:02,260 --> 00:15:03,240 So let's go back. 263 00:15:03,240 --> 00:15:04,200 94. 264 00:15:04,540 --> 00:15:06,100 What's the CA system? 265 00:15:06,100 --> 00:15:08,920 I kind of threw it in at the end. 266 00:15:08,920 --> 00:15:10,260 And what do we have today? 267 00:15:10,260 --> 00:15:19,220 Some of the most astute, detailed, and effective protocols to lock down TLS are now standard in the world's most popular browser. 268 00:15:19,220 --> 00:15:20,380 That's where we've gone. 269 00:15:20,380 --> 00:15:23,220 We have come a long way in a very short amount of time. 270 00:15:23,220 --> 00:15:24,920 And we're only getting better. 271 00:15:24,920 --> 00:15:26,660 And there's SSL Labs. 272 00:15:26,660 --> 00:15:28,480 That's what your grade should be. 273 00:15:28,480 --> 00:15:28,740 Right? 274 00:15:28,740 --> 00:15:29,420 Let's move on. 275 00:15:29,420 --> 00:15:30,340 Let's move on. 276 00:15:31,140 --> 00:15:34,340 Let's talk about password history for a second. 277 00:15:34,340 --> 00:15:36,720 So let's start in 1961. 278 00:15:36,720 --> 00:15:42,080 One of the biggest password bugs, one of the earliest password bugs in history I could find. 279 00:15:42,080 --> 00:15:47,480 This is an old, like, time-sharing MIT device at an academic university. 280 00:15:47,520 --> 00:15:49,080 And you know what a MOTD is? 281 00:15:49,080 --> 00:15:50,140 Anybody old like me? 282 00:15:50,140 --> 00:15:51,360 What's a MOTD? 283 00:15:52,020 --> 00:15:53,200 Message of the Day. 284 00:15:53,200 --> 00:15:56,600 So when you log in, the administrator pops it and admits it to the day. 285 00:15:56,600 --> 00:16:05,280 So they had a flaw within this system that the message of the day would walk through the messages and then walk through everybody's password. 286 00:16:05,380 --> 00:16:10,200 And so the message of the day, as you log in and log out, would be someone else's username and password. 287 00:16:11,120 --> 00:16:14,260 In my mind, how would you rate that bug? 288 00:16:14,260 --> 00:16:16,000 Would you go green? 289 00:16:16,000 --> 00:16:17,300 Would you go yellow? 290 00:16:17,300 --> 00:16:18,840 Or would you go red? 291 00:16:19,640 --> 00:16:20,500 You're going red. 292 00:16:20,500 --> 00:16:21,220 He's going red. 293 00:16:21,220 --> 00:16:22,020 I'm going red, too. 294 00:16:22,020 --> 00:16:23,000 It's pretty critical. 295 00:16:23,000 --> 00:16:23,740 Pretty critical. 296 00:16:23,740 --> 00:16:27,420 This is where we start around password security. 297 00:16:27,420 --> 00:16:32,400 61, really early use of passwords, and bleep is bleeped up, right? 298 00:16:32,400 --> 00:16:33,460 So let's move on, though. 299 00:16:34,100 --> 00:16:37,780 1970s, we see Crypt 3 released in Unix. 300 00:16:37,780 --> 00:16:44,160 And it's using an old M209 code from World War II cipher devices. 301 00:16:44,160 --> 00:16:59,520 They literally took this really old piece of garbage cipher out of military-grade hardware that was literally not used anymore and ported that code directly to Unix, and that's how they're storing passwords. 302 00:16:59,520 --> 00:17:03,680 Password storage is important when your storage media is stolen. 303 00:17:03,680 --> 00:17:08,040 We can use supercomputing power to analyze that to crack a password. 304 00:17:08,040 --> 00:17:10,820 We see Hashcat as one of the big players in this area. 305 00:17:10,820 --> 00:17:13,760 In 1978, Crypt 3 comes out. 306 00:17:13,760 --> 00:17:16,920 It's now DES-based. 307 00:17:16,920 --> 00:17:26,480 It's the first time we see a stretching part of a password storage algorithm, the first time we see salting, and the first modern use of password policy. 308 00:17:26,480 --> 00:17:27,860 We're getting started now. 309 00:17:27,860 --> 00:17:33,400 In the 80s, we're kind of like a dead area in security research. 310 00:17:33,400 --> 00:17:36,940 Very few advances from the 80s to the 90s for some reason. 311 00:17:36,940 --> 00:17:42,240 But we do see Unix access to the past WD database limited to only the root user. 312 00:17:42,240 --> 00:17:46,400 So they're starting to lock down authentication around Unix for the first time in this era. 313 00:17:46,600 --> 00:17:49,940 1991 MD5-based password storage. 314 00:17:49,940 --> 00:17:51,880 It's got some modern properties. 315 00:17:51,880 --> 00:17:53,400 We can do better than this. 316 00:17:53,480 --> 00:18:02,980 94 MD5 is based on Crypt 3 with 1,000 iterations and a 48-bit salt that can handle 2 to the 48th potential users. 317 00:18:02,980 --> 00:18:06,560 Now we're getting into modern password storage. 318 00:18:06,560 --> 00:18:09,060 We see 95 SHA-1s released. 319 00:18:09,060 --> 00:18:13,100 In 99, we see bcrypt released for the first time. 320 00:18:13,100 --> 00:18:19,380 And by the way, bcrypt today is still an excellent choice for password storage. 321 00:18:19,380 --> 00:18:22,760 Anyone have an advice on how many rounds you should use on bcrypt? 322 00:18:23,260 --> 00:18:27,060 13 is the minimum that the hashcap pros have told me. 323 00:18:27,060 --> 00:18:28,320 Some people say 10. 324 00:18:28,320 --> 00:18:35,100 I think 13 is the right number of rounds to slow it down to stop even advanced attackers who've stolen your data. 325 00:18:35,100 --> 00:18:37,260 2000, we see PBKDF2. 326 00:18:37,260 --> 00:18:43,360 This is good for military US applications, although it's the weakest of good password storage algorithms. 327 00:18:43,360 --> 00:18:56,700 2001 SHA-2 comes out, and in 2007, PHP starts defaulting to bcrypt, giving a whole generation of developers a great default in a common language to store passwords correctly. 328 00:18:56,700 --> 00:19:04,060 And sCrypt comes out in 2009, which lets you even tune how much RAM each round uses to stop custom hardware attacks. 329 00:19:04,060 --> 00:19:08,480 2015, beginning of the modern era, we see Argon2 released. 330 00:19:08,480 --> 00:19:14,640 And now Argon2i, which allows you to have stretching, slow it down, consume memory. 331 00:19:14,640 --> 00:19:18,360 You can even limit the number of threads operating on your ciphertext. 332 00:19:18,360 --> 00:19:22,340 Boom, we have a real modern algorithm that will last out the next decade. 333 00:19:22,340 --> 00:19:24,980 And in 2016, this is a really important date. 334 00:19:24,980 --> 00:19:25,780 This is Dr. 335 00:19:25,780 --> 00:19:27,840 Devdatta Akue from Dropbox. 336 00:19:27,840 --> 00:19:32,720 He publishes an article on how Dropbox is storing their passwords. 337 00:19:32,720 --> 00:19:42,180 This is the first time a researcher actually describes the details of password storage from a programmer's point of view in a highly accurate and useful way. 338 00:19:42,180 --> 00:19:56,000 So this really begins the current era where you really got to store a password using rigorous techniques, Argon2, salting, maybe even internal salting, good memory-hardening usage, good thread-hardening usage, and so on. 339 00:19:56,000 --> 00:19:57,420 This is the beginning of that era. 340 00:19:57,420 --> 00:20:00,840 And if you haven't read this article, I highly encourage you to do it. 341 00:20:00,840 --> 00:20:02,600 So now we're looking at OWASP. 342 00:20:02,600 --> 00:20:09,400 So around 2001, the OWASP Foundation began. 343 00:20:09,420 --> 00:20:13,140 This is, of course, the Open Web Application Security Project. 344 00:20:13,140 --> 00:20:15,400 We're a 501c3 charity. 345 00:20:15,400 --> 00:20:24,340 Our mission is to make application security visible so that all of us, our customers, can all make good decisions on application security risk. 346 00:20:24,340 --> 00:20:25,700 I'm a board member of OWASP. 347 00:20:25,700 --> 00:20:27,280 I've been a board member of OWASP. 348 00:20:27,280 --> 00:20:28,620 I know the community. 349 00:20:28,620 --> 00:20:32,340 This is some of the happiest moments of my professional career were around OWASP. 350 00:20:32,340 --> 00:20:35,860 Some of the most miserable ones, being a board member, not always the funnest thing to do. 351 00:20:35,860 --> 00:20:37,440 But that's a different story. 352 00:20:37,440 --> 00:20:39,820 But I'm really fond of the OWASP mission. 353 00:20:39,820 --> 00:20:43,080 I love it when people come in and try to organize us. 354 00:20:43,160 --> 00:20:46,500 I think half the brilliance of OWASP, it's not organized. 355 00:20:46,500 --> 00:20:47,520 It's chaotic. 356 00:20:47,520 --> 00:20:50,920 And people are doing whatever they want in terms of research in this area. 357 00:20:50,920 --> 00:20:53,960 So I'm a big fan of OWASP and the people within it. 358 00:20:53,960 --> 00:20:57,820 Around 2002, we see the first developer's guide released from OWASP. 359 00:20:57,940 --> 00:21:01,340 2003, the first OWASP top 10 shows up. 360 00:21:01,340 --> 00:21:11,020 This is written by Jeff Williams and Dave Wickers in this era as a comment to the SANS top 10, which was about infrastructure security and network security. 361 00:21:11,020 --> 00:21:15,300 And we did our own application security list as early as 2003. 362 00:21:15,360 --> 00:21:17,780 Unfortunately, PCI picked it up, right? 363 00:21:17,780 --> 00:21:19,160 And they said it was a standard. 364 00:21:19,160 --> 00:21:22,800 It's a top 10 list, but that's a different story. 365 00:21:22,800 --> 00:21:26,860 2006, the OWASP testing guide work begins. 366 00:21:26,880 --> 00:21:29,520 OWASP reform and SAPI come out. 367 00:21:29,520 --> 00:21:39,940 These are the first two libraries, really early era, that help you stop cross-site scripting and are meant to be security libraries to solve some of these web security issues. 368 00:21:39,940 --> 00:21:43,400 At 2008, the first standard from OWASP comes out. 369 00:21:43,400 --> 00:21:46,160 The application security verification standard. 370 00:21:46,160 --> 00:21:47,500 I'm one of the members of that project. 371 00:21:47,500 --> 00:21:48,940 It's really meaningful to me. 372 00:21:48,940 --> 00:21:51,760 We just released version 4.0 recently. 373 00:21:51,760 --> 00:21:57,540 I do believe it's one of the most rigorous standards for secure coding and for assessment professionals. 374 00:21:57,580 --> 00:22:00,300 I'm a big fan of the work of the team that puts it together. 375 00:22:00,440 --> 00:22:02,520 2010, we see the start of ZAP. 376 00:22:03,820 --> 00:22:05,420 ModSecurityCoreRuleset moves to OWASP. 377 00:22:05,420 --> 00:22:07,500 These are tools used in ZAP. 378 00:22:07,560 --> 00:22:12,460 ZAP is a professional tool that goes head-to-head against BURP in terms of its scanner capability. 379 00:22:12,460 --> 00:22:13,660 It's free and open source. 380 00:22:13,660 --> 00:22:14,540 Right on. 381 00:22:14,540 --> 00:22:16,700 That work started about nine years ago. 382 00:22:17,020 --> 00:22:18,720 2013, we see DefectDojo. 383 00:22:18,720 --> 00:22:22,440 2014, JuiceShop shows up from our friends in Germany. 384 00:22:22,440 --> 00:22:24,760 This is a full mean stack application. 385 00:22:24,760 --> 00:22:28,280 Angular, API, completely vulnerable. 386 00:22:28,280 --> 00:22:30,500 It's like a CTF to teach you how to hack. 387 00:22:31,360 --> 00:22:35,500 Frankly, it's such a brilliant piece of code. 388 00:22:35,500 --> 00:22:36,900 It's a commercial product. 389 00:22:36,900 --> 00:22:42,040 This is Bjorn Stimitz, who is obsessed about making this as high quality as he can. 390 00:22:42,040 --> 00:22:45,020 He understands his responsibility as an open source developer. 391 00:22:45,020 --> 00:22:46,440 Who's hacked a JuiceShop? 392 00:22:46,440 --> 00:22:47,640 Who's done Juice? 393 00:22:47,640 --> 00:22:49,380 Half the room, again. 394 00:22:49,380 --> 00:22:51,500 You agree it's that sophisticated? 395 00:22:51,740 --> 00:22:54,260 I'm blown away by the detail in it. 396 00:22:54,260 --> 00:22:58,860 And as he publishes more and more, he drops... he's popping new labs into it, too. 397 00:22:58,860 --> 00:23:00,780 So, he takes it seriously. 398 00:23:01,080 --> 00:23:04,540 2015, we get Jeremy Long showing up. 399 00:23:04,540 --> 00:23:07,840 Jeremy Long was working at Wells Fargo in this era. 400 00:23:07,860 --> 00:23:11,560 And he needed a third-party library security solution. 401 00:23:11,560 --> 00:23:12,780 I won't mention the vendor. 402 00:23:12,780 --> 00:23:13,420 That would be rude. 403 00:23:13,420 --> 00:23:17,220 So, they show up at Wells Fargo and ask him to buy their solution. 404 00:23:17,220 --> 00:23:19,580 And they're charging a lot. 405 00:23:19,580 --> 00:23:21,440 And he's like, I'm not going to pay for this. 406 00:23:21,440 --> 00:23:23,540 They go, why don't you go build it yourself? 407 00:23:23,540 --> 00:23:24,620 And they walk out. 408 00:23:24,620 --> 00:23:26,940 Guess what Jeremy started doing the next morning? 409 00:23:26,940 --> 00:23:27,600 Guess, sir. 410 00:23:27,600 --> 00:23:28,260 What did he do? 411 00:23:28,260 --> 00:23:29,720 He started building it himself. 412 00:23:29,720 --> 00:23:34,300 So, he actually is the main author of the OWASP dependency check product. 413 00:23:34,300 --> 00:23:41,560 And this is literally another commercial product you can wire into your pipeline to check if your third-party libraries are up to date. 414 00:23:41,560 --> 00:23:42,580 I'm really proud of Jeremy. 415 00:23:42,580 --> 00:23:44,720 He wakes up at 5 a.m. 416 00:23:44,720 --> 00:23:45,900 to work on this. 417 00:23:45,900 --> 00:23:50,200 To relax before he starts his day as a software engineering banker. 418 00:23:50,200 --> 00:23:52,800 So, a brilliant, brilliant piece of software. 419 00:23:52,920 --> 00:23:54,280 What else do we have here? 420 00:23:54,600 --> 00:23:57,880 2018, the IoT top 10 shows up. 421 00:23:57,880 --> 00:23:59,620 That's how you know things have jumped the shark. 422 00:23:59,620 --> 00:24:03,020 Where we have now like 20 top 10 lists on every topic there is. 423 00:24:03,020 --> 00:24:10,880 In 2019, just a matter of a couple days ago, the OWASP cheat sheet series just made flagship status. 424 00:24:10,880 --> 00:24:14,720 And we have over 50 cheat sheets helping developers write secure code. 425 00:24:14,720 --> 00:24:15,520 So, where do we start? 426 00:24:15,520 --> 00:24:24,400 We see OWASP founded in 2001 with like a one-page web page and about 20 people who are just starting to get started. 427 00:24:24,400 --> 00:24:39,440 And then, not too much later, like 18 years later, we have books, commercial products that compete with the public sector and a number of publications that are hit literally tens of millions of times a year to help people write secure software. 428 00:24:39,440 --> 00:24:41,120 I know it's stressful. 429 00:24:41,120 --> 00:24:43,360 I know what we're doing is challenging. 430 00:24:43,360 --> 00:24:55,740 I know a lot of us who go home upset every day at the frustration of our jobs, you got to look back, got to pull it back and look at how things have changed in just 20 years and you'll see we're not just getting better, we're getting dramatically better. 431 00:24:55,780 --> 00:24:59,320 And take a look at the OWASP flagship projects that we have here. 432 00:24:59,320 --> 00:25:05,300 They are instrumental in application security work today, whether they're open source or not. 433 00:25:05,440 --> 00:25:09,180 So, let's talk about one of my favorite topics, cross-site scripting, right? 434 00:25:09,180 --> 00:25:17,640 Cross-site scripting is, of course, content injection, JavaScript injection in the browser, in a web-based user interface. 435 00:25:17,640 --> 00:25:22,940 And this is a problem because there's been so many attempts to solve this problem. 436 00:25:22,940 --> 00:25:26,340 Anybody ever do an assessment with no cross-site scripting? 437 00:25:26,720 --> 00:25:27,760 One! 438 00:25:27,760 --> 00:25:29,020 Tell me about this app. 439 00:25:29,020 --> 00:25:30,300 Was it a web app? 440 00:25:30,300 --> 00:25:31,360 Yeah. 441 00:25:32,360 --> 00:25:34,120 Okay, it was a web app. 442 00:25:34,120 --> 00:25:40,180 They were doing HTML coding on basically all the goddamn parameters. 443 00:25:40,180 --> 00:25:40,720 Gotcha. 444 00:25:40,720 --> 00:25:52,940 Now, to do XSS defense, you need to do contextual output encoding, you need to do HTML sensitization of untrusted HTML, you've got to make sure you're using proper JavaScript functions, get your content security policy, embed JSON with serialization, make sure you do trusted types in your library. 445 00:25:52,940 --> 00:25:54,440 It is really tough. 446 00:25:54,440 --> 00:26:04,160 So, to find an app that doesn't have it is extremely rare because of how complex the problem really is and how poor web standards are at addressing cross-site scripting. 447 00:26:04,160 --> 00:26:09,080 Cross-site scripting was first discussed in 1999 by Microsoft engineers. 448 00:26:09,080 --> 00:26:13,980 And in 2002, we see Microsoft rolling out HTTP only. 449 00:26:13,980 --> 00:26:16,000 Why is HTTP only important? 450 00:26:16,620 --> 00:26:17,760 What's that? 451 00:26:17,760 --> 00:26:19,380 It's not integrity. 452 00:26:20,500 --> 00:26:25,060 It's cookie confidentiality in the face of cross-site scripting. 453 00:26:25,060 --> 00:26:28,740 It's to stop JavaScript from accessing cookie data. 454 00:26:28,740 --> 00:26:38,480 And actually, you know, it's not even that important, I dare say, because if I get XSS in your app, I don't have to steal your cookie, I'll just force a request, which will automatically use your cookie anyways. 455 00:26:38,480 --> 00:26:40,100 I can do a stored request forgery. 456 00:26:40,100 --> 00:26:41,580 It's not that important. 457 00:26:41,580 --> 00:26:42,900 We still should use it. 458 00:26:42,900 --> 00:26:48,720 But as early as 2002, the first defenses at the standard level was coming out for cross-site scripting. 459 00:26:48,840 --> 00:26:51,260 2005, go Sammy! 460 00:26:51,260 --> 00:26:52,240 Oh, yeah. 461 00:26:52,240 --> 00:26:54,620 And Sammy, most of all, Sammy is my hero. 462 00:26:54,620 --> 00:27:01,020 This is the first time cross-site scripting was used to conduct a worm against a major social media site. 463 00:27:01,020 --> 00:27:05,900 This one little attack we're looking at right here took down all of MySpace. 464 00:27:05,900 --> 00:27:17,820 It blue-screened the entire global cluster of MySpace because Sammy had forced someone else to cross-site scripting to do a forgery quest and make him a friend just by looking at his profile. 465 00:27:17,900 --> 00:27:22,260 And if you looked at his profile, you'd have a copy of his profile on your friend list. 466 00:27:22,260 --> 00:27:26,400 And if somebody looked at your profile, Sammy would be added to them as well. 467 00:27:26,400 --> 00:27:28,820 So you'd be added to Sammy's friends list as well. 468 00:27:28,820 --> 00:27:47,900 Within a few hours of releasing this attack against MySpace, Sammy had millions of followers, and that follower count was so high and loading from the database that the entire MySpace.net app at the time it blue-screened across the world and took days to recover from XSS. 469 00:27:47,900 --> 00:27:48,720 Oh, boy. 470 00:27:48,720 --> 00:27:49,540 So let's go ahead here. 471 00:27:49,820 --> 00:27:55,320 2005, Amit Klein releases a famous article about cross-site scripting DOM XSS. 472 00:27:55,320 --> 00:27:57,200 I don't even like the definition today. 473 00:27:57,200 --> 00:28:00,480 He says that it's a fragment that you can't see on the server. 474 00:28:00,480 --> 00:28:01,180 I don't agree. 475 00:28:01,180 --> 00:28:04,900 You can have a stored XSS that's DOM-based in how it executes. 476 00:28:04,900 --> 00:28:09,960 So I think a DOM XSS is you've got to write JavaScript code properly to stop the risk. 477 00:28:09,960 --> 00:28:13,260 Use React or Angular or low-level JavaScript correctly. 478 00:28:13,340 --> 00:28:16,260 2006, Reform comes out to stop XSS. 479 00:28:16,260 --> 00:28:19,680 The XSS prevention cheat sheet was first written in 2009. 480 00:28:19,680 --> 00:28:24,620 Again, Jeff Williams, the most heavily hit resource in the history of OWASP, that one guide. 481 00:28:24,760 --> 00:28:27,780 2010, the goat love worm strikes Twitter. 482 00:28:27,780 --> 00:28:33,840 The second major XSS worm because of one malformed URL and how Twitter handled URLs. 483 00:28:33,840 --> 00:28:39,480 And even Apache's entire infrastructure was popped with XSS via 2010. 484 00:28:39,480 --> 00:28:41,480 A lot of people are like, I don't care about XSS. 485 00:28:41,480 --> 00:28:42,260 It's no big deal. 486 00:28:42,260 --> 00:28:43,700 That is not a good attitude. 487 00:28:43,700 --> 00:28:44,560 Sorry, folks. 488 00:28:44,560 --> 00:28:50,020 We've seen XSS do massive damage across the world many times in recent years. 489 00:28:50,200 --> 00:28:52,860 2011, modern tooling comes out. 490 00:28:52,860 --> 00:28:57,780 We have Jeff Ikenowski, Professor Ikenowski, writing an encoder for Java. 491 00:28:57,780 --> 00:29:00,540 The only good encoder for the Java ecosystem. 492 00:29:00,540 --> 00:29:07,260 And around the same time, Michael Samuel from Google releases the Java HTML sanitizer through OWASP. 493 00:29:07,260 --> 00:29:10,160 To do sanitization of untrusted HTML snippets. 494 00:29:10,160 --> 00:29:13,880 These are two of the most brilliant security engineers I know of. 495 00:29:13,880 --> 00:29:15,780 And they open-sourced their work. 496 00:29:15,780 --> 00:29:17,660 We had to twist their arm a little bit. 497 00:29:17,660 --> 00:29:18,400 But I'm Sicilian. 498 00:29:18,400 --> 00:29:19,180 We know how to do that. 499 00:29:19,180 --> 00:29:25,100 2011, the DOM XSS prevention cheat sheet comes out of Wells Fargo, open-sourced. 500 00:29:25,160 --> 00:29:27,140 2012, CSP1. 501 00:29:27,240 --> 00:29:31,100 2014, CSP2 in the original DOM Purify library. 502 00:29:31,100 --> 00:29:33,920 And 2015, we got CSP3 released. 503 00:29:33,920 --> 00:29:40,680 Take a look at the work of two Google engineers, Lucas Weichelbaum and Michel Spagnolo. 504 00:29:40,680 --> 00:29:46,180 They released a series of talks on how to use CSP3 with a very simple policy... 505 00:29:46,180 --> 00:29:51,260 that you can roll out quickly and get a great defense across any browser. 506 00:29:51,260 --> 00:29:52,660 And it degrades properly. 507 00:29:52,660 --> 00:29:54,780 And that's kind of the state of where we are today. 508 00:29:54,860 --> 00:29:59,760 Now, in the future, we see Chris Kristoff, who leads a Google hero project. 509 00:29:59,760 --> 00:30:03,020 He just released trusted types in the browser. 510 00:30:03,020 --> 00:30:09,980 So as a programmer, you can programmatically set defaults on how the browser handles certain syncs in JavaScript. 511 00:30:09,980 --> 00:30:13,300 This is the solution to DOM XSS, by far. 512 00:30:13,300 --> 00:30:14,160 So where do we start? 513 00:30:14,160 --> 00:30:19,260 We started with HTTP only and Microsoft engineers talking about this without good defense strategies... 514 00:30:19,980 --> 00:30:26,260 to now standards being written that are effective in the browser to eliminate this risk altogether. 515 00:30:26,260 --> 00:30:35,780 I predict, because of CSP3 and trusted types, that XSS in under 10 years will be largely eliminated from our ecosystem of web applications. 516 00:30:35,780 --> 00:30:37,140 You can quote me on that. 517 00:30:37,140 --> 00:30:38,200 Quote me on that. 518 00:30:38,200 --> 00:30:47,760 So trusted types, if you haven't looked at this yet, is a key progressive future technology that we're going to see in our frameworks in the very near future. 519 00:30:47,760 --> 00:30:50,840 It's going to change the game in terms of browser security. 520 00:30:50,860 --> 00:30:53,320 Here's a few more important dates in AppSec history. 521 00:30:53,500 --> 00:30:56,800 Again, Netscape released HTTPS in 94. 522 00:30:57,120 --> 00:30:59,280 We see TLS in 99. 523 00:30:59,280 --> 00:31:00,480 Where am I going here? 524 00:31:00,480 --> 00:31:02,180 We did this already, didn't we? 525 00:31:02,180 --> 00:31:03,800 We're going to move on here. 526 00:31:04,100 --> 00:31:04,780 We're going to move on. 527 00:31:04,780 --> 00:31:05,680 We're going to move on. 528 00:31:05,680 --> 00:31:08,420 So now where are we today? 529 00:31:08,480 --> 00:31:10,340 AppSec is now global. 530 00:31:10,340 --> 00:31:17,940 I travel the world giving talks on this topic, and you'd be surprised the countries and the people that still ask for these talks. 531 00:31:17,940 --> 00:31:21,220 It's everywhere in the world AppSec matters. 532 00:31:21,220 --> 00:31:25,680 Small islands in the Pacific, but small governments care about AppSec. 533 00:31:25,680 --> 00:31:30,220 The smallest companies now realize the code they're writing is their security. 534 00:31:30,220 --> 00:31:37,460 And OWASP has 264 chapters of people just interested in these topics at a meet-up level all over the world. 535 00:31:37,460 --> 00:31:41,960 And again, 20 years ago, this topic was not even discussed. 536 00:31:41,960 --> 00:31:47,160 Even five years ago, very few folks were doing AppSec type of services. 537 00:31:47,160 --> 00:31:55,560 And today, it is a global phenomenon how much AppSec services, tools, and professionals are needed. 538 00:31:55,560 --> 00:31:57,100 Are you with me on that, folks? 539 00:31:57,100 --> 00:31:58,820 Who here is an AppSec professional? 540 00:31:59,620 --> 00:32:05,080 How many of you that are AppSec professionals are hurting to find work? 541 00:32:05,080 --> 00:32:06,460 Please raise your hand. 542 00:32:06,460 --> 00:32:07,520 One. 543 00:32:07,520 --> 00:32:09,500 I'm kidding. 544 00:32:10,840 --> 00:32:12,720 That's a personal problem. 545 00:32:14,440 --> 00:32:17,240 Was that rude to say that to him a little bit? 546 00:32:17,240 --> 00:32:17,800 Alright . 547 00:32:18,600 --> 00:32:19,200 How you doing, buddy? 548 00:32:19,200 --> 00:32:20,000 Good to see you. 549 00:32:20,000 --> 00:32:24,480 The point is, anyone know the unemployment in the AppSec industry right now? 550 00:32:24,480 --> 00:32:24,920 Seriously? 551 00:32:24,920 --> 00:32:25,900 Statistically? 552 00:32:25,900 --> 00:32:26,820 It's literally 0%. 553 00:32:28,420 --> 00:32:31,560 Hey, Linda, looking to hire anybody in AppSec, by any chance? 554 00:32:31,560 --> 00:32:31,920 Yeah. 555 00:32:31,940 --> 00:32:32,660 Don't hide. 556 00:32:32,660 --> 00:32:33,320 Get out of here. 557 00:32:33,780 --> 00:32:34,440 Mine. 558 00:32:34,440 --> 00:32:35,160 I get them first. 559 00:32:35,160 --> 00:32:35,740 Sorry. 560 00:32:35,960 --> 00:32:37,340 We're all looking. 561 00:32:37,520 --> 00:32:41,700 If you do AppSec, the world is your oyster right now. 562 00:32:41,700 --> 00:32:44,460 And it should be, because this is a hard topic. 563 00:32:44,460 --> 00:32:47,140 It takes years of ramp-up to be effective. 564 00:32:47,260 --> 00:32:52,580 And in my mind, AppSec is really where the rubber hits the road when it comes to information security. 565 00:32:52,580 --> 00:32:54,520 Yeah, you can go hack your pretty badge. 566 00:32:54,520 --> 00:32:56,260 I have fun doing that, too. 567 00:32:56,260 --> 00:32:59,060 You can go parachute with your toaster and tune your firewall. 568 00:32:59,060 --> 00:33:00,100 That's good. 569 00:33:00,100 --> 00:33:12,900 But my belief is, those of us who are helping secure code, who are working with developers, working with organizations to actually secure applications, in my mind, that's really what information security is today. 570 00:33:12,900 --> 00:33:21,380 As we see the next 10 years progress, as your infrastructure disappears and it becomes all cloud-based, your security becomes a YAML file. 571 00:33:21,380 --> 00:33:28,000 So code matters, not just at the app level, but at every area of computer science. 572 00:33:28,000 --> 00:33:31,100 So AppSec, our work is not done. 573 00:33:31,100 --> 00:33:34,600 And the work is extremely important as well. 574 00:33:34,600 --> 00:33:37,500 Now, a few notes of how things have progressed. 575 00:33:37,920 --> 00:33:40,180 AppSec has become so important. 576 00:33:40,220 --> 00:33:47,300 One of our volunteers, John McCoy, has led the charge to make sure OWASP does outreach at DEF CON. 577 00:33:47,300 --> 00:33:49,040 I'm really proud of the work John has done. 578 00:33:49,040 --> 00:33:51,940 He's been at DEF CON since the beginning. 579 00:33:51,940 --> 00:33:53,200 It means a lot to him. 580 00:33:53,200 --> 00:33:55,260 And he wanted to make sure AppSec was here. 581 00:33:55,260 --> 00:33:58,840 Same with the folks who organized the AppSec Village here. 582 00:33:58,840 --> 00:34:00,680 We see OWASP doing that as well. 583 00:34:00,680 --> 00:34:09,900 I'm just really proud to see the passionate volunteers care to spread the word of AppSec in a community that's traditionally not very AppSec-based. 584 00:34:09,900 --> 00:34:13,900 In 2018, OWASP gave out 35 scholarships. 585 00:34:13,900 --> 00:34:20,320 This is another amazing professional, Zoe Baterman, who runs women in AppSec for the OWASP Foundation. 586 00:34:20,360 --> 00:34:26,680 And we even allocated $25,000 just to diversity at our next big conference. 587 00:34:26,680 --> 00:34:29,360 I know this is kind of a... yeah, diversity. 588 00:34:29,460 --> 00:34:30,120 Yeah, exactly. 589 00:34:30,120 --> 00:34:31,100 And inclusion. 590 00:34:32,160 --> 00:34:35,380 I know this is a politically charged topic. 591 00:34:35,380 --> 00:34:37,560 Just mentioning it upsets some people. 592 00:34:37,560 --> 00:34:41,420 But I think it's important to try to make a difference in this area. 593 00:34:41,420 --> 00:34:44,660 Because we've not done that good at this as an industry. 594 00:34:44,660 --> 00:34:48,780 The conferences I went to 10 years, the things I saw, just not right. 595 00:34:48,780 --> 00:34:54,880 And so I like the idea of trying to clean up the mess to make our conferences and our community safe for everybody. 596 00:34:54,880 --> 00:34:56,180 Does that make it a little bit less fun? 597 00:34:56,180 --> 00:34:57,300 I really don't care. 598 00:34:57,300 --> 00:35:03,020 I care about safety, and I care about making places inclusive for everybody so we can learn together. 599 00:35:03,020 --> 00:35:04,980 And if you don't like that, go F yourself. 600 00:35:08,620 --> 00:35:09,560 Thank you. 601 00:35:11,060 --> 00:35:14,060 So let's talk about the future. 602 00:35:14,100 --> 00:35:17,180 What's going to happen in the next 20 years, right? 603 00:35:18,520 --> 00:35:24,200 These are my conspiratorial ideas and some reaching into the future. 604 00:35:24,200 --> 00:35:27,460 But this is where I think we're going, right? 605 00:35:27,460 --> 00:35:33,960 So number one, all identity becomes tied to blockchain-like security architectures. 606 00:35:33,960 --> 00:35:36,320 It's hard to even say those words, I'm sorry. 607 00:35:36,320 --> 00:35:39,200 But seriously, I don't care about Bitcoin. 608 00:35:39,200 --> 00:35:40,180 It's all fake money. 609 00:35:40,180 --> 00:35:43,140 Anyway, sell your Bitcoin and get real money and real investments. 610 00:35:43,140 --> 00:35:43,820 Enough playing around. 611 00:35:43,820 --> 00:35:44,640 Come on, people. 612 00:35:44,780 --> 00:35:49,980 But the concept behind blockchain and the integrity behind it I think is really fundamental. 613 00:35:49,980 --> 00:35:53,260 We're going to see a lot of identity tied to that so we have accountability at that area. 614 00:35:53,260 --> 00:35:54,480 What else do we have here? 615 00:35:54,720 --> 00:36:01,320 Hardware-based authentication and individual HSMs for every person on the planet will become the norm. 616 00:36:01,320 --> 00:36:02,280 And we already see that. 617 00:36:02,280 --> 00:36:07,220 So you look at NIST Special Bulletin 863B, which is your homework. 618 00:36:07,220 --> 00:36:08,200 You got to read it. 619 00:36:10,020 --> 00:36:14,520 SP800-63B, the Digital Media Authentication Guidelines for U.S. 620 00:36:14,520 --> 00:36:16,340 Government, written by Jim Fenton. 621 00:36:16,420 --> 00:36:18,240 Amazing piece of work. 622 00:36:18,240 --> 00:36:30,420 In order to achieve AAL Level 3, this is authentication for critical infrastructure, or you're handling billions of users' accounts and similar level of risk, you have no choice but to use hardware HSM. 623 00:36:30,420 --> 00:36:36,020 In fact, in European law with banking, you've got to use certificate-based authentication. 624 00:36:36,020 --> 00:36:39,560 So when I wrote this a year ago, it's now actually come to pass. 625 00:36:39,560 --> 00:36:41,740 It's already in the legal system. 626 00:36:41,740 --> 00:36:43,740 We're going to be forced down that path. 627 00:36:43,740 --> 00:36:49,940 I do believe any other multi-factor technology that involves you typing in a number, it's vulnerable to phishing. 628 00:36:49,940 --> 00:36:50,940 It's garbage. 629 00:36:50,940 --> 00:36:57,780 So we're at the era now where we've got to push to hardware like a YubiKey type tech if we care about security. 630 00:36:57,780 --> 00:37:14,080 Bob Lord gave a keynote, and he's like, look, I know we've got ML and all this fancy stuff, but I'm rolling out YubiKey to everybody, and I think that kind of back-to-basics thinking is going to make more of an impact than any ML BS we have out there on the market right now. 631 00:37:14,080 --> 00:37:19,280 All right, so extremely secure frameworks and languages defaults are the norm. 632 00:37:19,280 --> 00:37:20,860 This is already happening. 633 00:37:20,860 --> 00:37:22,900 Anybody use React or Angular? 634 00:37:22,900 --> 00:37:25,900 Anybody assess React or Angular? 635 00:37:25,900 --> 00:37:27,380 How are your assessments? 636 00:37:27,380 --> 00:37:28,080 Is it easy? 637 00:37:28,140 --> 00:37:29,020 No problem? 638 00:37:29,020 --> 00:37:30,340 You're lighting it up? 639 00:37:36,770 --> 00:37:39,830 So I'm saying, when you see Angular, do you see an improvement? 640 00:37:40,550 --> 00:37:41,270 React. 641 00:37:41,270 --> 00:37:43,410 Do you see an improvement in security posture? 642 00:37:44,470 --> 00:37:46,090 All right, let me give you a quick hint, though. 643 00:37:46,570 --> 00:37:48,810 Let's attack React six ways real quick, shall we? 644 00:37:48,810 --> 00:37:49,590 Real quick. 645 00:37:49,650 --> 00:37:51,770 Number one, dangerously set inner HTML. 646 00:37:51,910 --> 00:37:54,890 React prior to 0.14, easy bypass. 647 00:37:55,190 --> 00:38:00,230 Embedding of JSON with Stringify, you can always bypass that with easy XSS. 648 00:38:00,230 --> 00:38:05,550 Any time you're using props or types in a create element, boom, neither of those can escape. 649 00:38:05,550 --> 00:38:06,710 There's another easy vector. 650 00:38:06,730 --> 00:38:08,530 Five, let me see if I can pull this off. 651 00:38:08,630 --> 00:38:12,350 All the CSS stylers in React, they don't escape by default. 652 00:38:12,350 --> 00:38:15,270 You've got to get in there, fix that code, CSS escape native in JavaScript. 653 00:38:15,770 --> 00:38:16,490 Six. 654 00:38:16,890 --> 00:38:18,330 Let me see if I can do this. 655 00:38:18,410 --> 00:38:20,010 I said five or I said six? 656 00:38:20,250 --> 00:38:21,710 I said six, all right. 657 00:38:21,790 --> 00:38:22,410 Five. 658 00:38:23,630 --> 00:38:24,510 What was that? 659 00:38:26,710 --> 00:38:27,770 I'm going to come back to that. 660 00:38:27,770 --> 00:38:28,490 I got five. 661 00:38:28,490 --> 00:38:29,310 I'm going to go five. 662 00:38:29,310 --> 00:38:30,210 We got five. 663 00:38:30,210 --> 00:38:32,470 Five ways to pop React, like I was saying, five. 664 00:38:32,470 --> 00:38:37,310 All right, cloud native serverless security functionality drives most software. 665 00:38:37,310 --> 00:38:38,990 That's not even that advanced. 666 00:38:38,990 --> 00:38:40,750 That's already coming to pass. 667 00:38:40,770 --> 00:38:43,030 What's the most important language in the cloud native world? 668 00:38:43,030 --> 00:38:45,690 If you're doing lambdas, what's the most important language out there today? 669 00:38:47,990 --> 00:38:48,790 JavaScript. 670 00:38:49,230 --> 00:38:49,770 Python? 671 00:38:50,070 --> 00:38:53,590 Oh, my God, Python. 672 00:38:53,590 --> 00:38:56,230 I'm a Java guy, so moving to Python hurt me a lot. 673 00:38:56,230 --> 00:38:59,930 The most important language in the planet right now, by far, is JavaScript. 674 00:39:00,190 --> 00:39:08,790 If I was in Deadpool 2, I would go back in time and fight Douglas Crockford and Brendan Eich and just Jack Bauer him off the back of a truck somewhere. 675 00:39:09,110 --> 00:39:09,890 But we're stuck with it. 676 00:39:09,890 --> 00:39:10,530 No, I love you guys. 677 00:39:10,530 --> 00:39:11,130 I'm sorry. 678 00:39:11,130 --> 00:39:12,490 We're stuck with that now. 679 00:39:12,790 --> 00:39:14,130 Smart contracts. 680 00:39:14,130 --> 00:39:15,370 Whoa, whoa, whoa, whoa. 681 00:39:15,390 --> 00:39:16,610 Getting a little alien here. 682 00:39:16,810 --> 00:39:20,550 Smart contracts control most real-world infrastructure. 683 00:39:20,690 --> 00:39:21,790 Eh, interesting. 684 00:39:22,410 --> 00:39:25,870 App set critical tasks augmented by AI-type systems. 685 00:39:25,870 --> 00:39:27,170 Whoa, whoa, whoa. 686 00:39:27,170 --> 00:39:29,190 I'm going to put them all up here. 687 00:39:29,210 --> 00:39:30,370 What else do we have here? 688 00:39:30,790 --> 00:39:31,790 I hit the right key, Jim. 689 00:39:31,790 --> 00:39:34,990 Secure architecture design becomes common and mandatory. 690 00:39:35,090 --> 00:39:36,570 Why did I put that in there? 691 00:39:36,570 --> 00:39:51,850 Because it's happening in the world of insurance now, where these kinds of architectural review in the world of healthcare, in the world of cyber insurance, it's now becoming the norm in certain industries where this is required. 692 00:39:51,850 --> 00:40:02,190 And I think we'll see this trickle out to other industries as cyber insurance becomes more important and other industries realize, oh yeah, the security of our devices matter early on in the life cycle. 693 00:40:02,190 --> 00:40:07,490 We see an HTTPS will become the norm of the internet in all of our lifetimes. 694 00:40:07,490 --> 00:40:12,350 There will be a day within our lifetimes where none of the internet is plain text traffic. 695 00:40:12,350 --> 00:40:15,790 We're actually approaching that extremely quickly right now. 696 00:40:15,790 --> 00:40:28,010 We'll see that the current CA model needs to burn in a fire and we'll see more distributed CA systems that will take over the current centralized mafia style CA that we see now. 697 00:40:28,230 --> 00:40:32,210 Did my opinions on the CA system come out in this talk? 698 00:40:32,210 --> 00:40:33,550 Yeah, I think they did. 699 00:40:33,730 --> 00:40:40,010 Automatic data sanitization and escaping is native in all major languages. 700 00:40:40,010 --> 00:40:42,730 We see that in technologies like Go. 701 00:40:42,730 --> 00:40:49,730 When you're using Go templates, it does extremely rigorous, astute, contextual escaping by default. 702 00:40:49,730 --> 00:40:51,010 We see that in React. 703 00:40:51,010 --> 00:40:52,670 We see that in Angular. 704 00:40:52,710 --> 00:40:58,530 And if we look ahead 10 years, it's going to be default and native in every UI type of framework out there. 705 00:40:58,530 --> 00:41:04,010 Because you know UI frameworks, any JavaScript developer is like, oh, that's a nice framework, but I can build it better. 706 00:41:04,010 --> 00:41:07,570 That's why we have 50,000 new frameworks published every five minutes. 707 00:41:07,570 --> 00:41:08,550 It's nuts. 708 00:41:08,550 --> 00:41:15,670 My vote is if you're a JavaScript developer and you write a new JavaScript framework, you should be banned from development for three years. 709 00:41:15,670 --> 00:41:16,690 You're out. 710 00:41:16,850 --> 00:41:17,830 Sorry, sorry. 711 00:41:19,670 --> 00:41:28,850 Data-centric access control native at the data level, or not the kernel level, in all major databases and OSs. 712 00:41:28,850 --> 00:41:37,530 One of the biggest failings of our industry is we have not done a good job helping developers build complex access control. 713 00:41:37,530 --> 00:41:42,750 The entire industry helps us solve the easy problems of role-based access control. 714 00:41:43,090 --> 00:41:53,710 But when you have access control problems like multi-tenancy, data contextual access control, and other complex topics, our whole industry fails to solve that. 715 00:41:53,710 --> 00:41:55,010 Someone needs to solve that. 716 00:41:55,010 --> 00:41:58,670 And even the best out there don't because of how hard the problem is. 717 00:41:58,670 --> 00:42:06,970 I actually teach developers, most of you should be building your own access control system from scratch because commercial products don't address the hard problems. 718 00:42:06,970 --> 00:42:08,050 And that's what we need to solve. 719 00:42:08,050 --> 00:42:12,950 So I still think access control is one of my top ten items near the top of that list. 720 00:42:13,030 --> 00:42:16,370 So before I wrap this up, we're closing up just a few minutes. 721 00:42:16,370 --> 00:42:23,850 Does anybody have any questions about anything in the world of application security before we wrap this up? 722 00:42:25,010 --> 00:42:26,210 Yes, sir. 723 00:42:35,980 --> 00:42:37,760 Where is the queen of detail? 724 00:42:37,760 --> 00:42:38,380 Queen. 725 00:42:38,380 --> 00:42:39,360 My queen. 726 00:42:39,540 --> 00:42:44,360 Because she was not involved, she got involved, she made it happen, and we're done. 727 00:42:45,360 --> 00:42:50,620 No, I mean, DEF CON is really about glorifying the hacker. 728 00:42:50,680 --> 00:42:56,900 DEF CON is about glorifying the beauty of breaking things, hopefully for good in some way. 729 00:42:56,900 --> 00:43:02,340 And it's glorified here at the most magnanimous level of anywhere else I've seen. 730 00:43:02,340 --> 00:43:06,640 So those of us who are doing AppSec, we tend to be of a builder bent. 731 00:43:06,640 --> 00:43:11,300 Even though we do pen testing a lot, we're still working with developers, helping people fix software. 732 00:43:11,300 --> 00:43:13,840 To my mind, that's real AppSec work. 733 00:43:13,840 --> 00:43:18,820 That kind of thinking is kind of counterculture to DEF CON. 734 00:43:18,820 --> 00:43:29,940 But the world of traditional security and application security have collided so hard in recent years, that AppSec is no longer a secondary thing. 735 00:43:29,940 --> 00:43:32,740 AppSec is information security in the modern era. 736 00:43:32,740 --> 00:43:35,720 And that push is going to happen only more and more in the future. 737 00:43:35,720 --> 00:43:37,060 That's my opinion on that. 738 00:43:37,060 --> 00:43:38,500 You had a question as well, sir? 739 00:43:46,320 --> 00:43:47,520 Yes, ma'am. 740 00:43:50,920 --> 00:43:53,440 Honestly, that's all I have to say about that. 741 00:43:53,660 --> 00:43:54,760 I don't know. 742 00:43:55,160 --> 00:43:56,980 And I'm not trying to be rude in any way, sir. 743 00:43:57,260 --> 00:43:58,660 But my answer is, what was it again? 744 00:43:59,980 --> 00:44:01,120 That's all I got. 745 00:44:01,120 --> 00:44:01,620 All right, you're up. 746 00:44:01,620 --> 00:44:02,320 I'm sorry, ma'am. 747 00:44:05,180 --> 00:44:05,820 Yes. 748 00:44:13,080 --> 00:44:17,900 You know, in all the studies I've seen, a lot of big shops have done studies on this. 749 00:44:17,900 --> 00:44:20,320 They've looked at all different languages, frameworks, and similar. 750 00:44:20,320 --> 00:44:24,120 Do you know what makes a difference in terms of the number of vulnerabilities per framework? 751 00:44:24,120 --> 00:44:26,180 The team building that code. 752 00:44:26,400 --> 00:44:28,480 So it really doesn't matter what you're using. 753 00:44:28,600 --> 00:44:35,100 But you need to have, in my opinion, you need to have, number one, an AppSec professional who knows how to write secure code. 754 00:44:35,100 --> 00:44:37,480 Embed it with your team day in and day out. 755 00:44:37,480 --> 00:44:42,880 And you need to have mastery over the framework you're using a priori before you get rolling. 756 00:44:42,880 --> 00:44:46,960 Without those two things, the chance of you using that framework securely is zero. 757 00:44:46,960 --> 00:44:51,160 That's why even among relatively decent frameworks, we still see insecurity. 758 00:44:51,160 --> 00:44:54,880 Because the expertise to use these well is still esoteric. 759 00:44:54,880 --> 00:44:58,360 And so I don't care if you're using one framework or using 20. 760 00:44:58,360 --> 00:45:07,380 And if these are important apps to you, you need to have expertise about how to configure, use, and code to those frameworks in a secure fashion. 761 00:45:07,380 --> 00:45:11,860 Or your chance of releasing secure software goes to zero fast. 762 00:45:11,860 --> 00:45:13,260 And in my world, I'm an educator. 763 00:45:13,260 --> 00:45:15,040 I teach those who write secure code. 764 00:45:15,040 --> 00:45:19,400 I go back a few years, there's Java, a few other things, and it was easy. 765 00:45:19,400 --> 00:45:22,420 Now today, there's this proliferation of frameworks. 766 00:45:22,420 --> 00:45:28,980 I've had to bring in many other instructors who have specific expertises in each area to make my customers happy. 767 00:45:28,980 --> 00:45:30,220 And this is brutal. 768 00:45:30,220 --> 00:45:40,540 The research needed to be done to teach developers about secure coding is getting rapidly more difficult in a lot of areas because of this problem. 769 00:45:40,540 --> 00:45:50,560 So if you do have a company that are using every framework under the sun, that's usually not a good sign in your ability to write secure code across the organization. 770 00:45:50,560 --> 00:45:57,640 I'd recommend doing a long process to reduce the attack surface to standardize on a couple common frameworks. 771 00:45:57,640 --> 00:45:59,420 Get rid of the esoteric ones you don't need. 772 00:45:59,420 --> 00:46:01,240 It's easy to say, hard to do. 773 00:46:01,240 --> 00:46:03,680 That's why we're here to help solve this problem, man. 774 00:46:03,680 --> 00:46:04,320 Thank you. 775 00:46:04,320 --> 00:46:05,140 Yes, sir. 776 00:46:11,840 --> 00:46:19,840 Well, if you're writing a vulnerability in a web app, it doesn't matter if you deploy it locally at your company or in the cloud. 777 00:46:19,840 --> 00:46:21,180 That vulnerability is still there. 778 00:46:21,180 --> 00:46:23,440 SQL injection still lives in the cloud. 779 00:46:23,440 --> 00:46:28,160 So in my world, the cloud has only changed the world of secure coding so much. 780 00:46:28,160 --> 00:46:32,500 Where my bet was wrong on that concept is the whole idea of a YAML file. 781 00:46:32,500 --> 00:46:38,000 So much of your infrastructure is now code, and I did not see that coming. 782 00:46:38,000 --> 00:46:39,600 Did anyone see that? 783 00:46:39,600 --> 00:46:44,500 Did anybody see, like, four years ago, besides Jack Menino, anybody see that? 784 00:46:44,940 --> 00:46:46,240 Hey, hey, what's up, Jack? 785 00:46:46,240 --> 00:46:46,800 How you doing? 786 00:46:46,800 --> 00:46:48,960 Jack was telling me this four years ago, and I was like, you're nuts. 787 00:46:48,960 --> 00:46:49,860 He was right. 788 00:46:49,860 --> 00:46:53,980 He's like, all of infrastructure is changing to source code. 789 00:46:54,080 --> 00:46:56,240 And that's something I didn't see. 790 00:46:56,240 --> 00:47:01,740 And being able to lock down your cloud configuration, guess how many static analysis tools look at that well? 791 00:47:01,740 --> 00:47:02,440 None right now. 792 00:47:02,440 --> 00:47:03,220 It's a hard problem. 793 00:47:03,220 --> 00:47:04,820 No diss to the vendors. 794 00:47:04,820 --> 00:47:10,820 So, yeah, this is a rapid evolution. 795 00:47:10,820 --> 00:47:13,280 The cloud is going to dominate, obviously. 796 00:47:13,360 --> 00:47:18,840 And it doesn't stop our responsibility for writing secure code at all. 797 00:47:19,260 --> 00:47:22,360 And our infrastructure is moving to code as well. 798 00:47:22,360 --> 00:47:26,220 We have to assess that configuration as well, which is really difficult to do right now. 799 00:47:26,220 --> 00:47:27,840 So, hey, that's why we're here. 800 00:47:28,840 --> 00:47:29,740 What's that? 801 00:47:30,400 --> 00:47:31,900 What about it? 802 00:47:35,740 --> 00:47:40,640 I personally think containers are dead, and I think the real future is serverless technology. 803 00:47:40,640 --> 00:47:43,380 I do not want to maintain a container. 804 00:47:43,380 --> 00:47:46,620 I do not want to maintain a Kubernetes cluster unless I really hate myself. 805 00:47:46,620 --> 00:47:49,740 It's the most complex pile of BS I've ever seen. 806 00:47:49,740 --> 00:47:53,020 Even though it saves me money, I don't want to have to tune infrastructure anymore. 807 00:47:53,020 --> 00:47:58,920 I want to go new Lambda, drop code, have it run 50 million security tests, and I'm live, baby. 808 00:47:58,920 --> 00:48:00,280 That's the future of computing. 809 00:48:00,280 --> 00:48:06,420 Not containerization, not Kubernetes BS, not OpenShift, but drop code and run serverless. 810 00:48:06,420 --> 00:48:08,300 That's the future, in my opinion. 811 00:48:08,300 --> 00:48:09,180 Jack? 812 00:48:09,640 --> 00:48:11,120 We'll drink about it. 813 00:48:19,520 --> 00:48:21,520 Web application firewall? 814 00:48:21,520 --> 00:48:22,560 Ooh. 815 00:48:23,360 --> 00:48:24,240 Ooh. 816 00:48:25,140 --> 00:48:28,140 I'm a founder of a web application firewall company. 817 00:48:28,140 --> 00:48:30,340 I can't answer that question objectively. 818 00:48:30,340 --> 00:48:32,040 But I'm going to quote Jim Bird. 819 00:48:32,040 --> 00:48:39,880 Even though I've invested in one and I care about the space, I'm going to quote, not Jim Bird, I'm going to quote... 820 00:48:39,880 --> 00:48:40,740 I forgot his name. 821 00:48:40,740 --> 00:48:46,520 He's one of the largest executives who ran software security programs for the healthcare world. 822 00:48:46,520 --> 00:48:49,260 WAFs are for wimps. 823 00:48:49,940 --> 00:48:52,880 Fix your freaking code. 824 00:48:53,020 --> 00:48:55,020 That's really my take on it. 825 00:48:58,630 --> 00:49:01,070 And I founded a WAF company. 826 00:49:01,070 --> 00:49:02,650 Let's move on. 827 00:49:02,650 --> 00:49:03,270 Rust 828 00:49:08,290 --> 00:49:08,730 . 829 00:49:09,470 --> 00:49:10,930 Rust is the future, I think. 830 00:49:10,930 --> 00:49:12,350 Rust is such a brilliant language. 831 00:49:12,350 --> 00:49:13,610 One more question. 832 00:49:13,810 --> 00:49:15,190 How much time do we have? 833 00:49:15,650 --> 00:49:16,690 Where's the time guy? 834 00:49:17,030 --> 00:49:17,710 Ten minutes? 835 00:49:17,750 --> 00:49:19,070 You like Q&A? 836 00:49:19,070 --> 00:49:19,950 More Q&A? 837 00:49:19,970 --> 00:49:21,130 What you got? 838 00:49:21,250 --> 00:49:22,250 What's your view on 839 00:49:26,780 --> 00:49:28,860 the cloud when we start moving back to the... 840 00:49:28,860 --> 00:49:29,820 Oh, IoT? 841 00:49:29,820 --> 00:49:33,300 Really low power devices that can't do TLS and stuff like that? 842 00:49:33,300 --> 00:49:35,640 It's the same problem starting over. 843 00:49:35,640 --> 00:49:39,020 A lot of the IoT device comes from manufacturing. 844 00:49:39,060 --> 00:49:40,860 Anybody work in manufacturing? 845 00:49:40,860 --> 00:49:44,680 How good is manufacturing at doing software engineering? 846 00:49:50,040 --> 00:49:50,640 Exactly. 847 00:49:50,640 --> 00:49:53,980 I need to consult an expert in manufacturing software engineering. 848 00:49:53,980 --> 00:49:55,060 Ma'am, what's your name? 849 00:49:55,300 --> 00:49:56,200 Iris. 850 00:49:56,200 --> 00:49:59,360 How do you think the manufacturing industry does at software engineering? 851 00:49:59,880 --> 00:50:02,100 Really bad. 852 00:50:02,160 --> 00:50:03,740 I mean, it's horrific. 853 00:50:03,740 --> 00:50:05,200 So that's the problem with IoT. 854 00:50:05,200 --> 00:50:12,140 So many IoT devices are coming out of an industry with zero software security culture. 855 00:50:12,140 --> 00:50:14,040 In fact, let's go back in time. 856 00:50:14,040 --> 00:50:21,220 Brazil, 2015, ASUS router was given away as part of your internet service to a third of Brazil. 857 00:50:21,220 --> 00:50:25,280 And this router, if you're in Europe, router if you're American, right? 858 00:50:25,920 --> 00:50:27,700 This had two vulnerabilities. 859 00:50:27,700 --> 00:50:32,000 You can hit the change password feature without being logged in. 860 00:50:32,000 --> 00:50:35,780 The change password feature didn't require the original password. 861 00:50:36,200 --> 00:50:38,320 And this was given out to a third of Brazil. 862 00:50:38,400 --> 00:50:51,160 So five million people get C-surfed and have their DNS settings changed to an attacker-controlled DNS, which was trying to get banking phishing across every South American and Mexican bank they can get their hands on. 863 00:50:51,160 --> 00:50:53,040 This is heavy duty. 864 00:50:53,040 --> 00:50:57,540 I actually hunted down the product manager of that router as a research project, right? 865 00:50:57,540 --> 00:50:58,620 I found him on LinkedIn. 866 00:50:58,620 --> 00:50:59,560 And he's retired. 867 00:50:59,560 --> 00:51:00,380 He's like, oh, how you doing? 868 00:51:00,380 --> 00:51:02,000 I'm like, hey, can I talk to you about this ASUS? 869 00:51:02,000 --> 00:51:03,420 He's like, oh, sure, I'll tell you anything you want. 870 00:51:03,420 --> 00:51:03,800 I'm retired. 871 00:51:03,800 --> 00:51:04,500 I don't care. 872 00:51:04,500 --> 00:51:05,740 I'm like, all right, this is going to be great. 873 00:51:06,080 --> 00:51:08,200 Like, how did that router with those vulnerabilities... 874 00:51:08,200 --> 00:51:09,020 Oh, I remember him well. 875 00:51:09,020 --> 00:51:09,920 I saw the paper. 876 00:51:10,100 --> 00:51:12,760 How did that get out of security testing? 877 00:51:12,900 --> 00:51:14,320 And he starts laughing at me. 878 00:51:14,320 --> 00:51:15,800 Guess what the next comment was? 879 00:51:16,460 --> 00:51:18,160 What security testing? 880 00:51:20,060 --> 00:51:21,020 Next question. 881 00:51:21,260 --> 00:51:22,700 There's my IoT answer. 882 00:51:22,700 --> 00:51:23,440 Yes, sir? 883 00:51:25,600 --> 00:51:26,400 What's that? 884 00:51:26,400 --> 00:51:30,980 This is like the successor to FIDO for hardware authentication, right? 885 00:51:31,160 --> 00:51:39,660 I don't know the details of it, but those I know who research it and are astute, I think it's a huge improvement on FIDO. 886 00:51:39,660 --> 00:51:46,240 Remember, I'm suggesting hardware-based authentication is the only possible secure future for identity. 887 00:51:46,420 --> 00:51:51,260 And WebAuthn is going to really make that a reality across web apps. 888 00:51:51,360 --> 00:51:53,300 Let's see what happens, right? 889 00:51:53,300 --> 00:51:55,680 Yubikey rollout is pretty small. 890 00:51:55,680 --> 00:52:00,580 Who is maniacal about using a hardware token for all authentication? 891 00:52:01,420 --> 00:52:04,160 Only like 5% of the room, and we're security professionals. 892 00:52:04,180 --> 00:52:06,000 It's not easy to adopt. 893 00:52:06,040 --> 00:52:07,060 A couple more, a couple more. 894 00:52:07,060 --> 00:52:07,540 What do we got? 895 00:52:07,540 --> 00:52:08,100 Yes, sir? 896 00:52:08,100 --> 00:52:09,080 What's up, Mongo? 897 00:52:09,180 --> 00:52:10,120 Mongo, Mango? 898 00:52:10,660 --> 00:52:11,640 Meg, no. 899 00:52:21,590 --> 00:52:22,730 Code or die. 900 00:52:22,890 --> 00:52:31,110 If you're a security professional and you want your career to continue to advance well, you need to learn the basics of how to code. 901 00:52:31,110 --> 00:52:34,710 And when I say this, a lot of people's feelings get hurt. 902 00:52:34,710 --> 00:52:38,570 I said this on Twitter, and several pros blocked me out. 903 00:52:38,610 --> 00:52:43,790 And one of the guys that blocked me out from DC is a friend of mine, and I'm like, why did I get blocked out? 904 00:52:43,790 --> 00:52:49,650 What happened was he was just interviewed for a job, a very big director position at a big software security company. 905 00:52:49,650 --> 00:52:51,570 This is a guy I know, he's super smart. 906 00:52:51,590 --> 00:52:53,430 He didn't get the job, guess why? 907 00:52:53,590 --> 00:52:54,930 Because he didn't code. 908 00:52:55,390 --> 00:53:00,910 And I felt bad that I unintentionally rubbed that, and he blocked me, and he will not speak to me to this day. 909 00:53:00,910 --> 00:53:01,950 I feel bad about that. 910 00:53:01,950 --> 00:53:03,870 But he should learn how to code. 911 00:53:04,270 --> 00:53:04,930 And I don't... 912 00:53:07,130 --> 00:53:09,490 I don't mean this meanly. 913 00:53:09,590 --> 00:53:11,490 Learn a little bit about HTML. 914 00:53:11,590 --> 00:53:16,090 Take a few basic classes on secure coding, and software engineering. 915 00:53:16,110 --> 00:53:18,670 It's all free on the net now, if you want to learn. 916 00:53:18,670 --> 00:53:27,330 So, honestly, if you're an app sec pro, and you're not willing to take a little bit of time to learn about software, just a little bit to learn about code, I think it's going to do harm to your career. 917 00:53:27,330 --> 00:53:34,950 You'll still be successful, you'll still get stuff done, but learning how to code augments your career in so many ways. 918 00:53:35,530 --> 00:53:36,930 And I'm going to bug Jack for a second. 919 00:53:36,930 --> 00:53:37,910 Here's what... 920 00:53:38,470 --> 00:53:41,850 Jack is basically a bastard, but I respect him for one... 921 00:53:42,370 --> 00:53:43,130 Am I right? 922 00:53:43,130 --> 00:53:43,750 Am I right? 923 00:53:44,090 --> 00:53:45,050 It's mutual. 924 00:53:45,050 --> 00:53:51,670 But there's one thing I've always respected about Menino over here, is that he's now like a CEO of a company with a lot to do. 925 00:53:51,710 --> 00:53:53,470 How often are you coding, Jack? 926 00:53:54,190 --> 00:53:55,290 Every day. 927 00:53:55,290 --> 00:53:58,970 He's a CEO of a company, and he's coding every day to keep sharp. 928 00:53:58,970 --> 00:54:01,130 That's what you want to do if you want to get ahead. 929 00:54:01,130 --> 00:54:01,970 Jack! 930 00:54:02,010 --> 00:54:02,790 Yeah! 931 00:54:06,720 --> 00:54:09,000 So, one more question. 932 00:54:09,360 --> 00:54:10,020 Up front. 933 00:54:18,050 --> 00:54:19,450 Set requirements. 934 00:54:19,450 --> 00:54:29,470 Go grab ASVS 4.0, grab your lead developers, your lead architect, and your lead security folks, and set a definition of what AppSec's going to be for your company. 935 00:54:29,470 --> 00:54:31,370 I'd use ASVS 4. 936 00:54:31,370 --> 00:54:34,510 There's about 284 requirements to base that. 937 00:54:34,510 --> 00:54:35,990 Now , pick which level. 938 00:54:35,990 --> 00:54:36,670 One, two, or three. 939 00:54:36,670 --> 00:54:37,090 I don't care. 940 00:54:37,090 --> 00:54:45,190 But have some baseline requirement list so we all have a common definition of what secure software is going to be for our organization. 941 00:54:45,330 --> 00:54:48,250 And this is a little bit self-serving, but I don't mean it to be. 942 00:54:48,250 --> 00:54:50,090 And this is what a lot of the other SDLCs say. 943 00:54:50,090 --> 00:54:56,450 I would also rigorously train your developers as early in the project lifecycle as possible. 944 00:54:56,450 --> 00:55:00,150 If you're training them at the end, it's the worst place to do it. 945 00:55:00,390 --> 00:55:02,970 Early on, just some basic training. 946 00:55:02,970 --> 00:55:10,850 I don't care who you hire, so that all your devs understand at least a basic OWASP-y type of RISC or whatever the RISCs are specific to that platform. 947 00:55:10,850 --> 00:55:23,530 Three, I would make sure early on in the project that whatever frameworks you pick, that you go out of your way to have someone be a massive SME, subject matter expert, in how to secure that framework from a programming point of view. 948 00:55:23,530 --> 00:55:25,930 And everything will flow from there, in my opinion. 949 00:55:26,210 --> 00:55:27,870 That's my take on the world. 950 00:55:27,870 --> 00:55:33,490 Not a very popular one, but it's my take on how to approach AppSec from a software engineering point of view. 951 00:55:33,490 --> 00:55:39,530 I also want to thank, again, John McCoy and Zoe Brederman for helping with the research of this presentation. 952 00:55:39,750 --> 00:55:44,690 And I want to thank you in the room for helping the world be more secure. 953 00:55:44,690 --> 00:55:50,270 Have a great DEF CON, and go forth and write secure code and help your friends write secure code. 954 00:55:50,270 --> 00:55:51,770 That's how we lock this stuff down. 955 00:55:51,770 --> 00:55:53,190 Thank you very much, everybody. 956 00:55:54,790 --> 00:55:56,170 All right.