start	end	text
0	3600	Thank you so much for all your hard work in setting this up.
3800	7080	Can the fine lady with the tiara stand up?
8440	13180	Hey, Leora, everyone give Leora a round of applause for setting this up.
13500	15540	She is the queen of details.
18240	20500	Well, let's get this party started, everyone.
20580	22760	Let me switch PowerPoints here.
22900	27800	You know, I've been working with technology and code and software engineering my whole life,
27800	31300	and now I'm an expert in PowerPoint.
33220	35740	That's really... wow, that's where my life has gone.
35740	38820	So I want to talk to you. This is a keynote.
38820	44800	I'm going to talk about a general overview of application security in some way.
44800	48660	This topic has been so fundamental to my life.
48660	52900	It's something that's my job. It's my personal passion. It's my hobby.
52900	55640	It's all encompassed my life in the last ten years.
55640	61420	It's something that I'm very happy because this is, in my mind, the ultimate puzzle in information security.
61420	66840	And I look at traditional security, and everything is quickly running to AppSec
66840	68960	because it's all about code these days.
68960	70820	Even infrastructure is code.
70820	76540	So all of you in this room who are committed to application security, who care about this topic,
76540	79840	in my mind, this is what information security is about.
79840	82940	Let's give each other a round of applause for being here.
82940	83900	Yeah!
86940	92400	So let's talk about the very unabridged history of application security.
92400	97740	The point I want to make here is that things are getting extraordinarily better
98120	101440	in the world of secure coding and application security.
101440	104660	And nobody wants to say this. I don't hear this from anybody.
104660	109060	But I want to give you some evidence and a debate and some speaking points
109060	112180	of why things are dramatically getting better.
112180	114540	We're moving in the right direction.
114760	119140	And we're going to see great improvements over the next decade in this area.
119380	122060	And by the way, my name is Jim Manico. I'll be your presenter today.
122060	124380	I'm a former board member of the OWASP Foundation.
124380	127320	I wrote a book on secure coding for the Java ecosystem.
127320	130800	I invest heavily in the application security space.
130800	135220	And I'm based in Hawaii, D.C., in whatever hotel I happen to be in.
135220	136640	So I'm a traveler.
136640	140080	And I love the lifestyle of traveling and teaching.
140080	141820	It's something that's very satisfying.
141820	143780	It sates my wanderlust.
145080	148520	It's a great life I have because of application security.
148520	150540	I see several of my customers in the room.
150540	153020	Thank you all for being here and for working with me as well.
153020	155580	Let's redact some of this. And redacted.
155580	156960	Yeah, there we go. Let's move on.
157040	161640	I want to start back in the beginning of application security,
161640	164640	or the beginning of information security in a lot of ways.
164640	168000	This really all started back in October 67.
168000	173320	This is a task force that was organized by the Advanced Research Projects Agency.
173320	176700	This is before DARPA, what led to DARPA eventually.
176700	183340	And this was a study to recommend appropriate computer security safeguards to protect classified information.
183340	187280	And this report was actually only written so well.
187280	194000	Rand picked it up around 1970, published, and eventually declassified this very famous report.
194000	203300	February 1970, R609, the first really high-end, comprehensive report on information security
203300	208600	from any major government that was declassified and sent out to the world to review.
208600	211700	Anybody want to give me a guess? Or anybody want to take a guess?
211700	218220	What was the summary of this report about the state of information security in 1970 in the U.S. government?
218220	219700	Anybody have an idea here?
221220	224800	Bleep is messed up. It was bad.
224800	231180	It was literally like every aspect of protecting information was fundamentally wrong.
231180	236920	And so, you know what? A lot of us today who are experts in application security,
236920	243120	when you take a close look at what you're working on today, the code you're reviewing today,
243120	247620	the organization you're assessing today, it looks bad.
247620	251780	And that's an interesting note about our industry in application security.
251780	256820	The people that I know who are working on this problem, especially those who are really passionate about it,
256820	261140	they're fatigued. They're a little downtrodden. They're beat up. Why?
261140	267320	Why is this AppSec world that we're in, why does it weigh so heavily on so many of us?
267320	267880	Anybody?
269240	272180	It's rare where folks write secure code.
272180	276240	How often do developers listen to exactly what you say about security?
276240	277780	Almost never.
278080	283000	And so it almost seems like that as we move down this path,
283000	287020	that it feels like we're taking two steps forward and sometimes five steps backwards.
287020	289700	And it's frustrating. It is an emotional drain.
289700	293120	There's a high rate of depression and even suicide in our industry.
293120	297180	Not even joking around. This is hard work that drains people.
297180	300380	But I want to take a look at all of this from a different perspective.
300380	302000	Let's pull back, everyone.
302000	306360	Let's take a look like at 1939, where BOM came out.
306360	308700	The first professional pen testing tool.
308700	311380	Anybody know what this is? Back in 39?
311540	312800	What is it? Go ahead.
313620	316240	It's a crypto-breaking device. World War II.
316240	317900	Who was the lead of this project?
317960	320100	He's on the currency for you Brits.
320900	322280	It's Turing.
322840	327880	This pen test tool is made to crack German ciphers of the era, right?
328120	330160	Axis ciphers of the era.
330160	332020	And how did they build this? With software?
332020	336140	No, with hammer and nail and wire and cable and electricity.
336140	338180	It was a large physical device.
338360	343540	Helped defend the free world and give us the liberty we may have today.
343540	345220	Let's just erase that idea for this.
345220	348100	We'll get back to that later on.
348220	351000	So jumping ahead, we have 1972.
351040	352920	We have the Anderson Report.
353280	357440	Anderson made a lot of contributions to information security.
357520	359840	But for the purpose of this, I want to highlight two of them.
359840	363220	In 1972, he pushed out the Anderson Report,
363220	367000	which followed the 1968 Defense Science Board's Ware Report,
367000	368980	in which Anderson also participated.
368980	371840	But this report in 72 came out after Rand.
371840	377220	This really set information security research across the world for a decade.
377220	383240	It finally brought out some of the advanced principles of security defense for the first time.
383240	385980	Really changed the game around this era.
385980	389680	In 1974, the Air Force starts testing on mutix, right?
389720	392920	79 Lint early static analysis tools were released.
392920	396280	Holy cow, this tool is still out there. Some people are still using it.
396280	401220	So we got Lint out there doing the original static analysis tool of the industry.
401220	405860	We see the Security Administration Tool for Analyzing Networks in 95.
405860	407320	Anybody ever use this?
407320	410780	How did this change things when this tool came out?
410780	412220	I barely remember that.
412420	413460	Wow.
413680	415000	Okay, you're not helping.
415000	415660	Who else?
415660	420560	Who remembers 95 when the tool Staten first came out?
420560	422860	This changed network assessment.
422860	430120	One of the first really automated tools to take even lay folk and give them the ability to start doing assessment technology.
430120	433960	In 1998, this is Jeff Forstall, right?
433980	440260	On Christmas Day at a USENIC meeting, is the first one to ever coin the term SQL Injection.
440260	443960	This is only 98 when SQL Injection was first discovered.
443960	448320	99, we see cross-site scripting first described by Microsoft engineers.
448360	452080	2001, OWASP WebGoat is released.
452080	456680	Why is WebGoat so significant to application security today, everybody?
456680	457700	Why does WebGoat matter?
457700	460200	Why did WebGoat matter back in 2001?
460200	467760	Because for the first time, this very small application security community had a common tool to hack together.
467760	476660	And we could suddenly talk about specific kinds of SQL Injection, cross-site scripting, access control bypass on a common platform.
476660	482940	And it became like the main tool that almost every security tester I know went through in some way.
482940	490340	So it helped take all this scattered ideas about application security and give us a common thought piece to talk about.
490340	492680	So I think WebGoat was extremely important.
492680	495920	Who here has beat up WebGoat sometime in their career?
495920	500400	So half the room here. It's a broken web app on purpose.
500480	502900	Metasploit only came out in 2003.
503320	507420	2008, 2006, the first OWASP testing guide came out.
507420	510180	I think this is, if you look at it as a book, it's not written very well.
510180	511480	A lot of different authors.
511480	515560	But the content within it is top of the game even now.
515560	522920	So we have literally dozens of testers helping write this book around how to test security applications and web applications.
523020	524460	Very important guide.
524460	526800	2010, we have FireSheep coming out.
526800	528980	We'll come back. And OWASP Zap came out.
529180	532060	2013 is the beginning of the DevOps era.
532060	533580	Only a couple years ago.
533580	535800	And what do we have today in 2019?
535800	545500	Most major development shops now have some kind of automated pipeline that's doing some form of security testing every time developers touch code.
545500	547720	So let's go back to 39.
547940	549800	Hammer and nail.
549800	555200	Making a testing tool to, like, keep the free world running at the time.
555200	565220	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.
565220	566600	So pull back and look at this.
566600	567800	Are we getting better?
567800	568980	Oh, yes, we are!
568980	573500	In a dramatic way, if you look at the history of software engineering.
573500	577260	If you look at this moment in time in what you're doing, it is rough.
577260	579320	We gotta pull back and look at the big picture.
579320	580560	And let's do some more of that.
580560	582240	Let's look at HTTPS.
582240	585720	How important is this technology to the secure web today, everyone?
585980	586540	What do you think?
586540	590640	If there was a major break in HTTPS, what would happen to the web?
590660	591620	It's done.
591720	599620	So whether you like or do not like HTTPS, it is a fundamental foundational technology that keeps the web secure.
599620	602200	It has gotten a lot better in the last 10 years.
602940	606780	1994, Netscape creates the initial version of HTTPS.
606780	611880	Moxie Marlin Spike, who's like an activist in the area of transport security, in my opinion.
611880	617320	He went and called this original engineer and asked him about the creation process of HTTPS.
617320	621720	He specifically asked him about the certificate authority system.
621720	623980	You know what the original engineer who wrote that said?
623980	627040	He said, oh, yeah, I forgot about the CA system.
627040	631060	Yeah, we realized at the end we needed someone to sign our keys.
631060	633860	So we kind of just kind of threw that in at the end at the last minute.
634100	636280	And that is how the CA system...
636280	640220	I'm not kidding. That is exactly how the CA system was created.
640220	643460	Some engineer with a hand wave threw it in there at the last minute.
643460	647000	And it's now foundational to transport security.
647220	652100	1999, TLS 1.0, something you should now disable.
652120	655300	We're in the era where TLS 1 is dead pretty much now.
655300	661120	If you look at SSL Labs and other evaluation engines, they dink you for using TLS 1.0.
661120	666480	The only lowest level legit TLS 1.1 was pushed out in 2006, right?
667140	669920	2009, this is a big moment in time.
669960	672780	SSL Labs releases their free tool from Qualys.
672780	675120	I'm not particularly pointing at any vendors, but this tool...
675640	678100	Who uses SSL Labs in their work in some way?
678300	679980	I don't think it's just a tool.
679980	683460	This is the standard for evaluating public websites.
683680	685140	And when they push this out...
685140	688560	Now, some of you who know me, I at times am a bit of a troll.
688560	690640	Just a little bit. I try to be a happy troll.
690640	697300	But I went out and tweeted the URL to every single security company on the planet and their grade.
697360	698940	Like Symantec D.
699040	701080	You're A now. I'm sorry. I'm sorry, Symantec.
701080	705480	But a lot of big companies and app tech companies had very poor grades on their website.
705580	708340	And I'm like doing LOLs.
708340	710620	Oh, you got an F. It could be a little showboat about it.
710620	714240	I had a lot of senior people from different companies say,
714240	716380	Please stop this, Jim. You're causing trouble.
716380	718880	Ivan Hristic, who wrote this tool, showed up and said,
718880	721000	I have a suggestion, everybody.
721100	724320	How about you leave Jim alone and go fix your freaking web server?
724320	725980	Thank you, Ivan, wherever you are.
725980	728360	Ivan Hristic is the author of SSL Labs.
728360	734760	Still, I think one of the most foundational, fundamental evaluation tools for TLS today.
734940	738600	2010, Chrome starts to preload sites.
738600	740040	It happened early.
740040	744860	In 2010, Chrome was hard-coding their own properties.
744940	750620	And you can't use Chrome to visit Google properties and HTTP as early as 2010.
750880	754080	And then, yeah, baby, Fire Sheep comes out.
754260	756300	Who had a little bit of fun with Fire Sheep?
756300	758520	That's illegal. What are you talking? You shouldn't do that.
758520	760200	That's illegal. Whatever.
760860	767540	Back in this era, back in the Fire Sheep era, which is right around 2010,
767540	774480	most major sites would log you in over TLS and then drop back to HTTP for performance reasons.
774480	776560	And Fire Sheep came out on OSX.
776560	781000	You run it, run it on a wireless network, and you'll just see other cookies light up.
781000	782500	Click, and you're that person.
782500	787520	And this really forced an entire industry to standardize on what we see today.
787520	792840	You're doing HTTPS everywhere, well-configured, or you're not doing security.
792840	796280	Is there any excuse to use HTTP anywhere, anybody?
796280	797440	Anybody want to play that game with me?
798680	803620	Maybe to redirect to HTTPS only, but there's no good excuse to use it anymore.
803620	805840	Maybe to download updates that are properly signed.
805840	807140	All right, let's move on, let's move on.
807540	811320	2011, we see the introduction of forward secrecy and modern ciphers.
811320	817900	So even if someone steals your private key, they can't use that to break confidentiality of your connection.
818200	821200	2013, we see GLS12 go live.
821200	829540	2018, Let's Encrypt shows up, and they take such a major stance in giving out free certs
829540	834760	that we see some of the big commercial players start to sue them and go after them.
834760	837960	And that's a sign that Let's Encrypt is doing the right thing.
837960	841320	It would be rude of me to point that vendor out who is suing them, Komodo.
841320	843420	That would be rude. I'm not going to do that.
845060	848860	2016, half the web is now HTTPS.
848860	852440	Chrome 51 now defaults to HTTP 2.
852440	860240	Can you do HTTP and HTTP version 2 in a modern browser?
860240	861440	The answer is no.
861440	869580	So this is a new protocol coming out where plain text communication and bad ciphers are not even possible as early as 2016.
869580	870880	That's standard in the browser.
870880	877060	2017, certificate authentication or authorization becomes mandatory.
877160	881380	So if rogue authorities start minting certs in your name, you're going to know about it fast.
881380	885520	And in 2018, Let's Encrypt offers wildcard.
885520	888940	TLS 1.3 goes live, published 8.4.4.6.
888940	891720	And almost immediately, we see that live in several browsers.
891720	895480	And now certificate transparency is required for all new certs.
895480	899900	These are extraordinarily high-level, esoteric ways to augment TLS.
899900	902260	They're now standard in the browser.
902260	904200	So let's go back. 94.
904540	906100	What's the CA system?
906100	908920	I kind of threw it in at the end.
908920	910260	And what do we have today?
910260	919220	Some of the most astute, detailed, and effective protocols to lock down TLS are now standard in the world's most popular browser.
919220	920380	That's where we've gone.
920380	923220	We have come a long way in a very short amount of time.
923220	924920	And we're only getting better.
924920	926660	And there's SSL Labs.
926660	928480	That's what your grade should be.
928480	928740	Right?
928740	930340	Let's move on. Let's move on.
931140	934340	Let's talk about password history for a second.
934340	936720	So let's start in 1961.
936720	942080	One of the biggest password bugs, one of the earliest password bugs in history I could find.
942080	947480	This is an old, like, time-sharing MIT device at an academic university.
947520	949080	And you know what a MOTD is?
949080	950140	Anybody old like me?
950140	951360	What's a MOTD?
952020	953200	Message of the Day.
953200	956600	So when you log in, the administrator pops it and admits it to the day.
956600	965280	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.
965380	970200	And so the message of the day, as you log in and log out, would be someone else's username and password.
971120	974260	In my mind, how would you rate that bug?
974260	976000	Would you go green?
976000	977300	Would you go yellow?
977300	978840	Or would you go red?
979640	981220	You're going red. He's going red.
981220	982020	I'm going red, too.
982020	983000	It's pretty critical.
983000	983740	Pretty critical.
983740	987420	This is where we start around password security.
987420	992400	61, really early use of passwords, and bleep is bleeped up, right?
992400	993460	So let's move on, though.
994100	997780	1970s, we see Crypt 3 released in Unix.
997780	1004160	And it's using an old M209 code from World War II cipher devices.
1004160	1019520	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.
1019520	1023680	Password storage is important when your storage media is stolen.
1023680	1028040	We can use supercomputing power to analyze that to crack a password.
1028040	1030820	We see Hashcat as one of the big players in this area.
1030820	1033760	In 1978, Crypt 3 comes out.
1033760	1036920	It's now DES-based.
1036920	1046480	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.
1046480	1047860	We're getting started now.
1047860	1053400	In the 80s, we're kind of like a dead area in security research.
1053400	1056940	Very few advances from the 80s to the 90s for some reason.
1056940	1062240	But we do see Unix access to the past WD database limited to only the root user.
1062240	1066400	So they're starting to lock down authentication around Unix for the first time in this era.
1066600	1069940	1991 MD5-based password storage.
1069940	1071880	It's got some modern properties.
1071880	1073400	We can do better than this.
1073480	1082980	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.
1082980	1086560	Now we're getting into modern password storage.
1086560	1089060	We see 95 SHA-1s released.
1089060	1093100	In 99, we see bcrypt released for the first time.
1093100	1099380	And by the way, bcrypt today is still an excellent choice for password storage.
1099380	1102760	Anyone have an advice on how many rounds you should use on bcrypt?
1103260	1107060	13 is the minimum that the hashcap pros have told me.
1107060	1108320	Some people say 10.
1108320	1115100	I think 13 is the right number of rounds to slow it down to stop even advanced attackers who've stolen your data.
1115100	1117260	2000, we see PBKDF2.
1117260	1123360	This is good for military US applications, although it's the weakest of good password storage algorithms.
1123360	1129420	2001 SHA-2 comes out, and in 2007, PHP starts defaulting to bcrypt,
1129420	1136700	giving a whole generation of developers a great default in a common language to store passwords correctly.
1136700	1144060	And sCrypt comes out in 2009, which lets you even tune how much RAM each round uses to stop custom hardware attacks.
1144060	1148480	2015, beginning of the modern era, we see Argon2 released.
1148480	1154640	And now Argon2i, which allows you to have stretching, slow it down, consume memory.
1154640	1158360	You can even limit the number of threads operating on your ciphertext.
1158360	1162340	Boom, we have a real modern algorithm that will last out the next decade.
1162340	1164980	And in 2016, this is a really important date.
1164980	1167840	This is Dr. Devdatta Akue from Dropbox.
1167840	1172720	He publishes an article on how Dropbox is storing their passwords.
1172720	1177700	This is the first time a researcher actually describes the details of password storage
1177700	1182180	from a programmer's point of view in a highly accurate and useful way.
1182180	1188460	So this really begins the current era where you really got to store a password using rigorous techniques,
1188460	1196000	Argon2, salting, maybe even internal salting, good memory-hardening usage, good thread-hardening usage, and so on.
1196000	1200840	This is the beginning of that era. And if you haven't read this article, I highly encourage you to do it.
1200840	1209400	So now we're looking at OWASP. So around 2001, the OWASP Foundation began.
1209420	1213140	This is, of course, the Open Web Application Security Project.
1213140	1218300	We're a 501c3 charity. Our mission is to make application security visible
1218300	1224340	so that all of us, our customers, can all make good decisions on application security risk.
1224340	1228620	I'm a board member of OWASP. I've been a board member of OWASP. I know the community.
1228620	1232340	This is some of the happiest moments of my professional career were around OWASP.
1232340	1235860	Some of the most miserable ones, being a board member, not always the funnest thing to do.
1235860	1239820	But that's a different story. But I'm really fond of the OWASP mission.
1239820	1243080	I love it when people come in and try to organize us.
1243160	1247520	I think half the brilliance of OWASP, it's not organized. It's chaotic.
1247520	1250920	And people are doing whatever they want in terms of research in this area.
1250920	1253960	So I'm a big fan of OWASP and the people within it.
1253960	1257820	Around 2002, we see the first developer's guide released from OWASP.
1257940	1261340	2003, the first OWASP top 10 shows up.
1261340	1266900	This is written by Jeff Williams and Dave Wickers in this era as a comment to the SANS top 10,
1266900	1271020	which was about infrastructure security and network security.
1271020	1275300	And we did our own application security list as early as 2003.
1275360	1279160	Unfortunately, PCI picked it up, right? And they said it was a standard.
1279160	1282800	It's a top 10 list, but that's a different story.
1282800	1286860	2006, the OWASP testing guide work begins.
1286880	1289520	OWASP reform and SAPI come out.
1289520	1295060	These are the first two libraries, really early era, that help you stop cross-site scripting
1295060	1299940	and are meant to be security libraries to solve some of these web security issues.
1299940	1303400	At 2008, the first standard from OWASP comes out.
1303400	1306160	The application security verification standard.
1306160	1308940	I'm one of the members of that project. It's really meaningful to me.
1308940	1311760	We just released version 4.0 recently.
1311760	1317540	I do believe it's one of the most rigorous standards for secure coding and for assessment professionals.
1317580	1320300	I'm a big fan of the work of the team that puts it together.
1320440	1322520	2010, we see the start of ZAP.
1323820	1325420	ModSecurityCoreRuleset moves to OWASP.
1325420	1327500	These are tools used in ZAP.
1327560	1332460	ZAP is a professional tool that goes head-to-head against BURP in terms of its scanner capability.
1332460	1334540	It's free and open source. Right on.
1334540	1336700	That work started about nine years ago.
1337020	1338720	2013, we see DefectDojo.
1338720	1342440	2014, JuiceShop shows up from our friends in Germany.
1342440	1344760	This is a full mean stack application.
1344760	1348280	Angular, API, completely vulnerable.
1348280	1350500	It's like a CTF to teach you how to hack.
1351360	1355500	Frankly, it's such a brilliant piece of code.
1355500	1356900	It's a commercial product.
1356900	1362040	This is Bjorn Stimitz, who is obsessed about making this as high quality as he can.
1362040	1365020	He understands his responsibility as an open source developer.
1365020	1367640	Who's hacked a JuiceShop? Who's done Juice?
1367640	1369380	Half the room, again.
1369380	1371500	You agree it's that sophisticated?
1371740	1374260	I'm blown away by the detail in it.
1374260	1378860	And as he publishes more and more, he drops... he's popping new labs into it, too.
1378860	1380780	So, he takes it seriously.
1381080	1384540	2015, we get Jeremy Long showing up.
1384540	1387840	Jeremy Long was working at Wells Fargo in this era.
1387860	1391560	And he needed a third-party library security solution.
1391560	1393420	I won't mention the vendor. That would be rude.
1393420	1397220	So, they show up at Wells Fargo and ask him to buy their solution.
1397220	1399580	And they're charging a lot.
1399580	1401440	And he's like, I'm not going to pay for this.
1401440	1403540	They go, why don't you go build it yourself?
1403540	1404620	And they walk out.
1404620	1406940	Guess what Jeremy started doing the next morning?
1406940	1408260	Guess, sir. What did he do?
1408260	1409720	He started building it himself.
1409720	1414300	So, he actually is the main author of the OWASP dependency check product.
1414300	1418780	And this is literally another commercial product you can wire into your pipeline
1418780	1421560	to check if your third-party libraries are up to date.
1421560	1422580	I'm really proud of Jeremy.
1422580	1425900	He wakes up at 5 a.m. to work on this.
1425900	1430200	To relax before he starts his day as a software engineering banker.
1430200	1432800	So, a brilliant, brilliant piece of software.
1432920	1434280	What else do we have here?
1434600	1437880	2018, the IoT top 10 shows up.
1437880	1439620	That's how you know things have jumped the shark.
1439620	1443020	Where we have now like 20 top 10 lists on every topic there is.
1443020	1446780	In 2019, just a matter of a couple days ago,
1446780	1450880	the OWASP cheat sheet series just made flagship status.
1450880	1454720	And we have over 50 cheat sheets helping developers write secure code.
1454720	1455520	So, where do we start?
1455520	1460880	We see OWASP founded in 2001 with like a one-page web page
1460880	1464400	and about 20 people who are just starting to get started.
1464400	1467860	And then, not too much later, like 18 years later,
1467860	1472400	we have books, commercial products that compete with the public sector
1472400	1477080	and a number of publications that are hit literally tens of millions of times a year
1477080	1479440	to help people write secure software.
1479440	1481120	I know it's stressful.
1481120	1483360	I know what we're doing is challenging.
1483360	1487700	I know a lot of us who go home upset every day at the frustration of our jobs,
1487700	1489240	you got to look back, got to pull it back
1489240	1491260	and look at how things have changed in just 20 years
1491260	1493660	and you'll see we're not just getting better,
1493660	1495740	we're getting dramatically better.
1495780	1499320	And take a look at the OWASP flagship projects that we have here.
1499320	1503660	They are instrumental in application security work today,
1503660	1505300	whether they're open source or not.
1505440	1507780	So, let's talk about one of my favorite topics,
1507780	1509180	cross-site scripting, right?
1509180	1511760	Cross-site scripting is, of course, content injection,
1511760	1514300	JavaScript injection in the browser,
1514300	1517640	in a web-based user interface.
1517640	1522940	And this is a problem because there's been so many attempts to solve this problem.
1522940	1526340	Anybody ever do an assessment with no cross-site scripting?
1526720	1527760	One!
1527760	1530300	Tell me about this app. Was it a web app?
1530300	1531360	Yeah.
1532360	1534120	Okay, it was a web app.
1534120	1540180	They were doing HTML coding on basically all the goddamn parameters.
1540180	1540720	Gotcha.
1540720	1543960	Now, to do XSS defense, you need to do contextual output encoding,
1543960	1546480	you need to do HTML sensitization of untrusted HTML,
1546480	1548440	you've got to make sure you're using proper JavaScript functions,
1548440	1551200	get your content security policy, embed JSON with serialization,
1551200	1552940	make sure you do trusted types in your library.
1552940	1554440	It is really tough.
1554440	1557220	So, to find an app that doesn't have it is extremely rare
1557220	1560380	because of how complex the problem really is
1560380	1564160	and how poor web standards are at addressing cross-site scripting.
1564160	1569080	Cross-site scripting was first discussed in 1999 by Microsoft engineers.
1569080	1573980	And in 2002, we see Microsoft rolling out HTTP only.
1573980	1576000	Why is HTTP only important?
1576620	1577760	What's that?
1577760	1579380	It's not integrity.
1580500	1585060	It's cookie confidentiality in the face of cross-site scripting.
1585060	1588740	It's to stop JavaScript from accessing cookie data.
1588740	1591520	And actually, you know, it's not even that important, I dare say,
1591520	1594820	because if I get XSS in your app, I don't have to steal your cookie,
1594820	1598480	I'll just force a request, which will automatically use your cookie anyways.
1598480	1600100	I can do a stored request forgery.
1600100	1601580	It's not that important.
1601580	1602900	We still should use it.
1602900	1606960	But as early as 2002, the first defenses at the standard level
1606960	1608720	was coming out for cross-site scripting.
1608840	1611260	2005, go Sammy!
1611260	1612240	Oh, yeah.
1612240	1614620	And Sammy, most of all, Sammy is my hero.
1614620	1617540	This is the first time cross-site scripting was used
1617540	1621020	to conduct a worm against a major social media site.
1621020	1625900	This one little attack we're looking at right here took down all of MySpace.
1625900	1628820	It blue-screened the entire global cluster of MySpace
1629500	1632900	because Sammy had forced someone else to cross-site scripting
1632900	1637820	to do a forgery quest and make him a friend just by looking at his profile.
1637900	1642260	And if you looked at his profile, you'd have a copy of his profile on your friend list.
1642260	1646400	And if somebody looked at your profile, Sammy would be added to them as well.
1646400	1648820	So you'd be added to Sammy's friends list as well.
1648820	1652060	Within a few hours of releasing this attack against MySpace,
1652060	1656040	Sammy had millions of followers, and that follower count was so high
1656040	1660840	and loading from the database that the entire MySpace.net app at the time
1661660	1667900	it blue-screened across the world and took days to recover from XSS.
1667900	1668720	Oh, boy.
1668720	1669540	So let's go ahead here.
1669820	1675320	2005, Amit Klein releases a famous article about cross-site scripting DOM XSS.
1675320	1677200	I don't even like the definition today.
1677200	1680480	He says that it's a fragment that you can't see on the server.
1680480	1681180	I don't agree.
1681180	1684900	You can have a stored XSS that's DOM-based in how it executes.
1684900	1689960	So I think a DOM XSS is you've got to write JavaScript code properly to stop the risk.
1689960	1693260	Use React or Angular or low-level JavaScript correctly.
1693340	1696260	2006, Reform comes out to stop XSS.
1696260	1699680	The XSS prevention cheat sheet was first written in 2009.
1699680	1704620	Again, Jeff Williams, the most heavily hit resource in the history of OWASP, that one guide.
1704760	1707780	2010, the goat love worm strikes Twitter.
1707780	1713840	The second major XSS worm because of one malformed URL and how Twitter handled URLs.
1713840	1719480	And even Apache's entire infrastructure was popped with XSS via 2010.
1719480	1722260	A lot of people are like, I don't care about XSS. It's no big deal.
1722260	1723700	That is not a good attitude.
1723700	1724560	Sorry, folks.
1724560	1730020	We've seen XSS do massive damage across the world many times in recent years.
1730200	1732860	2011, modern tooling comes out.
1732860	1737780	We have Jeff Ikenowski, Professor Ikenowski, writing an encoder for Java.
1737780	1740540	The only good encoder for the Java ecosystem.
1740540	1747260	And around the same time, Michael Samuel from Google releases the Java HTML sanitizer through OWASP.
1747260	1750160	To do sanitization of untrusted HTML snippets.
1750160	1753880	These are two of the most brilliant security engineers I know of.
1753880	1755780	And they open-sourced their work.
1755780	1757660	We had to twist their arm a little bit.
1757660	1759180	But I'm Sicilian. We know how to do that.
1759180	1765100	2011, the DOM XSS prevention cheat sheet comes out of Wells Fargo, open-sourced.
1765160	1767140	2012, CSP1.
1767240	1771100	2014, CSP2 in the original DOM Purify library.
1771100	1773920	And 2015, we got CSP3 released.
1773920	1780680	Take a look at the work of two Google engineers, Lucas Weichelbaum and Michel Spagnolo.
1780680	1786180	They released a series of talks on how to use CSP3 with a very simple policy...
1786180	1791260	that you can roll out quickly and get a great defense across any browser.
1791260	1792660	And it degrades properly.
1792660	1794780	And that's kind of the state of where we are today.
1794860	1799760	Now, in the future, we see Chris Kristoff, who leads a Google hero project.
1799760	1803020	He just released trusted types in the browser.
1803020	1809980	So as a programmer, you can programmatically set defaults on how the browser handles certain syncs in JavaScript.
1809980	1813300	This is the solution to DOM XSS, by far.
1813300	1814160	So where do we start?
1814160	1819260	We started with HTTP only and Microsoft engineers talking about this without good defense strategies...
1819980	1826260	to now standards being written that are effective in the browser to eliminate this risk altogether.
1826260	1835780	I predict, because of CSP3 and trusted types, that XSS in under 10 years will be largely eliminated from our ecosystem of web applications.
1835780	1837140	You can quote me on that.
1837140	1838200	Quote me on that.
1838200	1847760	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.
1847760	1850840	It's going to change the game in terms of browser security.
1850860	1853320	Here's a few more important dates in AppSec history.
1853500	1856800	Again, Netscape released HTTPS in 94.
1857120	1859280	We see TLS in 99.
1859280	1860480	Where am I going here?
1860480	1862180	We did this already, didn't we?
1862180	1863800	We're going to move on here.
1864100	1864780	We're going to move on.
1864780	1865680	We're going to move on.
1865680	1868420	So now where are we today?
1868480	1870340	AppSec is now global.
1870340	1877940	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.
1877940	1881220	It's everywhere in the world AppSec matters.
1881220	1885680	Small islands in the Pacific, but small governments care about AppSec.
1885680	1890220	The smallest companies now realize the code they're writing is their security.
1890220	1897460	And OWASP has 264 chapters of people just interested in these topics at a meet-up level all over the world.
1897460	1901960	And again, 20 years ago, this topic was not even discussed.
1901960	1907160	Even five years ago, very few folks were doing AppSec type of services.
1907160	1915560	And today, it is a global phenomenon how much AppSec services, tools, and professionals are needed.
1915560	1917100	Are you with me on that, folks?
1917100	1918820	Who here is an AppSec professional?
1919620	1925080	How many of you that are AppSec professionals are hurting to find work?
1925080	1926460	Please raise your hand.
1926460	1927520	One.
1927520	1929500	I'm kidding.
1930840	1932720	That's a personal problem.
1934440	1937240	Was that rude to say that to him a little bit?
1937240	1937800	Alright.
1938600	1940000	How you doing, buddy? Good to see you.
1940000	1944480	The point is, anyone know the unemployment in the AppSec industry right now?
1944480	1945900	Seriously? Statistically?
1945900	1946820	It's literally 0%.
1948420	1951560	Hey, Linda, looking to hire anybody in AppSec, by any chance?
1951560	1951920	Yeah.
1951940	1952660	Don't hide.
1952660	1953320	Get out of here.
1953780	1954440	Mine.
1954440	1955160	I get them first.
1955160	1955740	Sorry.
1955960	1957340	We're all looking.
1957520	1961700	If you do AppSec, the world is your oyster right now.
1961700	1964460	And it should be, because this is a hard topic.
1964460	1967140	It takes years of ramp-up to be effective.
1967260	1972580	And in my mind, AppSec is really where the rubber hits the road when it comes to information security.
1972580	1974520	Yeah, you can go hack your pretty badge.
1974520	1976260	I have fun doing that, too.
1976260	1979060	You can go parachute with your toaster and tune your firewall.
1979060	1980100	That's good.
1980100	1988380	But my belief is, those of us who are helping secure code, who are working with developers, working with organizations to actually secure applications,
1988380	1992900	in my mind, that's really what information security is today.
1992900	2001380	As we see the next 10 years progress, as your infrastructure disappears and it becomes all cloud-based, your security becomes a YAML file.
2001380	2008000	So code matters, not just at the app level, but at every area of computer science.
2008000	2011100	So AppSec, our work is not done.
2011100	2014600	And the work is extremely important as well.
2014600	2017500	Now, a few notes of how things have progressed.
2017920	2020180	AppSec has become so important.
2020220	2027300	One of our volunteers, John McCoy, has led the charge to make sure OWASP does outreach at DEF CON.
2027300	2029040	I'm really proud of the work John has done.
2029040	2031940	He's been at DEF CON since the beginning.
2031940	2033200	It means a lot to him.
2033200	2035260	And he wanted to make sure AppSec was here.
2035260	2038840	Same with the folks who organized the AppSec Village here.
2038840	2040680	We see OWASP doing that as well.
2040680	2049900	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.
2049900	2053900	In 2018, OWASP gave out 35 scholarships.
2053900	2060320	This is another amazing professional, Zoe Baterman, who runs women in AppSec for the OWASP Foundation.
2060360	2066680	And we even allocated $25,000 just to diversity at our next big conference.
2066680	2069360	I know this is kind of a... yeah, diversity.
2069460	2071100	Yeah, exactly. And inclusion.
2072160	2075380	I know this is a politically charged topic.
2075380	2077560	Just mentioning it upsets some people.
2077560	2081420	But I think it's important to try to make a difference in this area.
2081420	2084660	Because we've not done that good at this as an industry.
2084660	2088780	The conferences I went to 10 years, the things I saw, just not right.
2088780	2094880	And so I like the idea of trying to clean up the mess to make our conferences and our community safe for everybody.
2094880	2097300	Does that make it a little bit less fun? I really don't care.
2097300	2103020	I care about safety, and I care about making places inclusive for everybody so we can learn together.
2103020	2104980	And if you don't like that, go F yourself.
2108620	2109560	Thank you.
2111060	2114060	So let's talk about the future.
2114100	2117180	What's going to happen in the next 20 years, right?
2118520	2124200	These are my conspiratorial ideas and some reaching into the future.
2124200	2127460	But this is where I think we're going, right?
2127460	2133960	So number one, all identity becomes tied to blockchain-like security architectures.
2133960	2136320	It's hard to even say those words, I'm sorry.
2136320	2139200	But seriously, I don't care about Bitcoin.
2139200	2140180	It's all fake money.
2140180	2143140	Anyway, sell your Bitcoin and get real money and real investments.
2143140	2144640	Enough playing around. Come on, people.
2144780	2149980	But the concept behind blockchain and the integrity behind it I think is really fundamental.
2149980	2153260	We're going to see a lot of identity tied to that so we have accountability at that area.
2153260	2154480	What else do we have here?
2154720	2161320	Hardware-based authentication and individual HSMs for every person on the planet will become the norm.
2161320	2162280	And we already see that.
2162280	2167220	So you look at NIST Special Bulletin 863B, which is your homework.
2167220	2168200	You got to read it.
2170020	2176340	SP800-63B, the Digital Media Authentication Guidelines for U.S. Government, written by Jim Fenton.
2176420	2178240	Amazing piece of work.
2178240	2183820	In order to achieve AAL Level 3, this is authentication for critical infrastructure,
2183820	2187740	or you're handling billions of users' accounts and similar level of risk,
2187740	2190420	you have no choice but to use hardware HSM.
2190420	2196020	In fact, in European law with banking, you've got to use certificate-based authentication.
2196020	2199560	So when I wrote this a year ago, it's now actually come to pass.
2199560	2201740	It's already in the legal system.
2201740	2203740	We're going to be forced down that path.
2203740	2208880	I do believe any other multi-factor technology that involves you typing in a number,
2208880	2210940	it's vulnerable to phishing. It's garbage.
2210940	2217780	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.
2217780	2220120	Bob Lord gave a keynote, and he's like,
2220120	2225080	look, I know we've got ML and all this fancy stuff, but I'm rolling out YubiKey to everybody,
2225080	2231060	and I think that kind of back-to-basics thinking is going to make more of an impact
2231060	2234080	than any ML BS we have out there on the market right now.
2234080	2239280	All right, so extremely secure frameworks and languages defaults are the norm.
2239280	2240860	This is already happening.
2240860	2242900	Anybody use React or Angular?
2242900	2245900	Anybody assess React or Angular?
2245900	2250340	How are your assessments? Is it easy? No problem? You're lighting it up?
2256770	2259830	So I'm saying, when you see Angular, do you see an improvement?
2260550	2263410	React. Do you see an improvement in security posture?
2264470	2266090	All right, let me give you a quick hint, though.
2266570	2269590	Let's attack React six ways real quick, shall we? Real quick.
2269650	2271770	Number one, dangerously set inner HTML.
2271910	2274890	React prior to 0.14, easy bypass.
2275190	2280230	Embedding of JSON with Stringify, you can always bypass that with easy XSS.
2280230	2285550	Any time you're using props or types in a create element, boom, neither of those can escape.
2285550	2286710	There's another easy vector.
2286730	2288530	Five, let me see if I can pull this off.
2288630	2292350	All the CSS stylers in React, they don't escape by default.
2292350	2295270	You've got to get in there, fix that code, CSS escape native in JavaScript.
2295770	2298330	Six. Let me see if I can do this.
2298410	2300010	I said five or I said six?
2300250	2302410	I said six, all right. Five.
2303630	2304510	What was that?
2306710	2308490	I'm going to come back to that. I got five.
2308490	2312470	I'm going to go five. We got five. Five ways to pop React, like I was saying, five.
2312470	2317310	All right, cloud native serverless security functionality drives most software.
2317310	2318990	That's not even that advanced.
2318990	2320750	That's already coming to pass.
2320770	2323030	What's the most important language in the cloud native world?
2323030	2325690	If you're doing lambdas, what's the most important language out there today?
2327990	2328790	JavaScript.
2329230	2329770	Python?
2330070	2333590	Oh, my God, Python.
2333590	2336230	I'm a Java guy, so moving to Python hurt me a lot.
2336230	2339930	The most important language in the planet right now, by far, is JavaScript.
2340190	2348790	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.
2349110	2349890	But we're stuck with it.
2349890	2351130	No, I love you guys. I'm sorry.
2351130	2352490	We're stuck with that now.
2352790	2355370	Smart contracts. Whoa, whoa, whoa, whoa.
2355390	2356610	Getting a little alien here.
2356810	2360550	Smart contracts control most real-world infrastructure.
2360690	2361790	Eh, interesting.
2362410	2365870	App set critical tasks augmented by AI-type systems.
2365870	2367170	Whoa, whoa, whoa.
2367170	2369190	I'm going to put them all up here.
2369210	2370370	What else do we have here?
2370790	2371790	I hit the right key, Jim.
2371790	2374990	Secure architecture design becomes common and mandatory.
2375090	2376570	Why did I put that in there?
2376570	2391850	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.
2391850	2402190	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.
2402190	2407490	We see an HTTPS will become the norm of the internet in all of our lifetimes.
2407490	2412350	There will be a day within our lifetimes where none of the internet is plain text traffic.
2412350	2415790	We're actually approaching that extremely quickly right now.
2415790	2428010	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.
2428230	2432210	Did my opinions on the CA system come out in this talk?
2432210	2433550	Yeah, I think they did.
2433730	2440010	Automatic data sanitization and escaping is native in all major languages.
2440010	2442730	We see that in technologies like Go.
2442730	2449730	When you're using Go templates, it does extremely rigorous, astute, contextual escaping by default.
2449730	2452670	We see that in React. We see that in Angular.
2452710	2458530	And if we look ahead 10 years, it's going to be default and native in every UI type of framework out there.
2458530	2464010	Because you know UI frameworks, any JavaScript developer is like, oh, that's a nice framework, but I can build it better.
2464010	2467570	That's why we have 50,000 new frameworks published every five minutes.
2467570	2468550	It's nuts.
2468550	2475670	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.
2475670	2477830	You're out. Sorry, sorry.
2479670	2488850	Data-centric access control native at the data level, or not the kernel level, in all major databases and OSs.
2488850	2497530	One of the biggest failings of our industry is we have not done a good job helping developers build complex access control.
2497530	2502750	The entire industry helps us solve the easy problems of role-based access control.
2503090	2513710	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.
2513710	2515010	Someone needs to solve that.
2515010	2518670	And even the best out there don't because of how hard the problem is.
2518670	2526970	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.
2526970	2528050	And that's what we need to solve.
2528050	2532950	So I still think access control is one of my top ten items near the top of that list.
2533030	2536370	So before I wrap this up, we're closing up just a few minutes.
2536370	2543850	Does anybody have any questions about anything in the world of application security before we wrap this up?
2545010	2546210	Yes, sir.
2555980	2557760	Where is the queen of detail?
2557760	2559360	Queen. My queen.
2559540	2564360	Because she was not involved, she got involved, she made it happen, and we're done.
2565360	2570620	No, I mean, DEF CON is really about glorifying the hacker.
2570680	2576900	DEF CON is about glorifying the beauty of breaking things, hopefully for good in some way.
2576900	2582340	And it's glorified here at the most magnanimous level of anywhere else I've seen.
2582340	2586640	So those of us who are doing AppSec, we tend to be of a builder bent.
2586640	2591300	Even though we do pen testing a lot, we're still working with developers, helping people fix software.
2591300	2593840	To my mind, that's real AppSec work.
2593840	2598820	That kind of thinking is kind of counterculture to DEF CON.
2598820	2606940	But the world of traditional security and application security have collided so hard in recent years,
2606940	2609940	that AppSec is no longer a secondary thing.
2609940	2612740	AppSec is information security in the modern era.
2612740	2615720	And that push is going to happen only more and more in the future.
2615720	2617060	That's my opinion on that.
2617060	2618500	You had a question as well, sir?
2626320	2627520	Yes, ma'am.
2630920	2633440	Honestly, that's all I have to say about that.
2633660	2634760	I don't know.
2635160	2636980	And I'm not trying to be rude in any way, sir.
2637260	2638660	But my answer is, what was it again?
2639980	2641120	That's all I got.
2641120	2641620	All right, you're up.
2641620	2642320	I'm sorry, ma'am.
2645180	2645820	Yes.
2653080	2657900	You know, in all the studies I've seen, a lot of big shops have done studies on this.
2657900	2660320	They've looked at all different languages, frameworks, and similar.
2660320	2664120	Do you know what makes a difference in terms of the number of vulnerabilities per framework?
2664120	2666180	The team building that code.
2666400	2668480	So it really doesn't matter what you're using.
2668600	2675100	But you need to have, in my opinion, you need to have, number one, an AppSec professional who knows how to write secure code.
2675100	2677480	Embed it with your team day in and day out.
2677480	2682880	And you need to have mastery over the framework you're using a priori before you get rolling.
2682880	2686960	Without those two things, the chance of you using that framework securely is zero.
2686960	2691160	That's why even among relatively decent frameworks, we still see insecurity.
2691160	2694880	Because the expertise to use these well is still esoteric.
2694880	2698360	And so I don't care if you're using one framework or using 20.
2698360	2707380	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.
2707380	2711860	Or your chance of releasing secure software goes to zero fast.
2711860	2713260	And in my world, I'm an educator.
2713260	2715040	I teach those who write secure code.
2715040	2719400	I go back a few years, there's Java, a few other things, and it was easy.
2719400	2722420	Now today, there's this proliferation of frameworks.
2722420	2728980	I've had to bring in many other instructors who have specific expertises in each area to make my customers happy.
2728980	2730220	And this is brutal.
2730220	2740540	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.
2740540	2750560	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.
2750560	2757640	I'd recommend doing a long process to reduce the attack surface to standardize on a couple common frameworks.
2757640	2759420	Get rid of the esoteric ones you don't need.
2759420	2761240	It's easy to say, hard to do.
2761240	2763680	That's why we're here to help solve this problem, man.
2763680	2764320	Thank you.
2764320	2765140	Yes, sir.
2771840	2779840	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.
2779840	2781180	That vulnerability is still there.
2781180	2783440	SQL injection still lives in the cloud.
2783440	2788160	So in my world, the cloud has only changed the world of secure coding so much.
2788160	2792500	Where my bet was wrong on that concept is the whole idea of a YAML file.
2792500	2798000	So much of your infrastructure is now code, and I did not see that coming.
2798000	2799600	Did anyone see that?
2799600	2804500	Did anybody see, like, four years ago, besides Jack Menino, anybody see that?
2804940	2806240	Hey, hey, what's up, Jack?
2806240	2806800	How you doing?
2806800	2808960	Jack was telling me this four years ago, and I was like, you're nuts.
2808960	2809860	He was right.
2809860	2813980	He's like, all of infrastructure is changing to source code.
2814080	2816240	And that's something I didn't see.
2816240	2821740	And being able to lock down your cloud configuration, guess how many static analysis tools look at that well?
2821740	2822440	None right now.
2822440	2823220	It's a hard problem.
2823220	2824820	No diss to the vendors.
2824820	2830820	So, yeah, this is a rapid evolution.
2830820	2833280	The cloud is going to dominate, obviously.
2833360	2838840	And it doesn't stop our responsibility for writing secure code at all.
2839260	2842360	And our infrastructure is moving to code as well.
2842360	2846220	We have to assess that configuration as well, which is really difficult to do right now.
2846220	2847840	So, hey, that's why we're here.
2848840	2849740	What's that?
2850400	2851900	What about it?
2855740	2860640	I personally think containers are dead, and I think the real future is serverless technology.
2860640	2863380	I do not want to maintain a container.
2863380	2866620	I do not want to maintain a Kubernetes cluster unless I really hate myself.
2866620	2869740	It's the most complex pile of BS I've ever seen.
2869740	2873020	Even though it saves me money, I don't want to have to tune infrastructure anymore.
2873020	2878920	I want to go new Lambda, drop code, have it run 50 million security tests, and I'm live, baby.
2878920	2880280	That's the future of computing.
2880280	2886420	Not containerization, not Kubernetes BS, not OpenShift, but drop code and run serverless.
2886420	2888300	That's the future, in my opinion.
2888300	2889180	Jack?
2889640	2891120	We'll drink about it.
2899520	2901520	Web application firewall?
2901520	2902560	Ooh.
2903360	2904240	Ooh.
2905140	2908140	I'm a founder of a web application firewall company.
2908140	2910340	I can't answer that question objectively.
2910340	2912040	But I'm going to quote Jim Bird.
2912040	2919880	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...
2919880	2920740	I forgot his name.
2920740	2926520	He's one of the largest executives who ran software security programs for the healthcare world.
2926520	2929260	WAFs are for wimps.
2929940	2932880	Fix your freaking code.
2933020	2935020	That's really my take on it.
2938630	2941070	And I founded a WAF company.
2941070	2942650	Let's move on.
2942650	2950930	Rust. Rust is the future, I think.
2950930	2952350	Rust is such a brilliant language.
2952350	2953610	One more question.
2953810	2955190	How much time do we have?
2955650	2956690	Where's the time guy?
2957030	2957710	Ten minutes?
2957750	2959070	You like Q&A?
2959070	2959950	More Q&A?
2959970	2961130	What you got?
2961250	2968860	What's your view on the cloud when we start moving back to the...
2968860	2969820	Oh, IoT?
2969820	2973300	Really low power devices that can't do TLS and stuff like that?
2973300	2975640	It's the same problem starting over.
2975640	2979020	A lot of the IoT device comes from manufacturing.
2979060	2980860	Anybody work in manufacturing?
2980860	2984680	How good is manufacturing at doing software engineering?
2990040	2990640	Exactly.
2990640	2993980	I need to consult an expert in manufacturing software engineering.
2993980	2995060	Ma'am, what's your name?
2995300	2996200	Iris.
2996200	2999360	How do you think the manufacturing industry does at software engineering?
2999880	3002100	Really bad.
3002160	3003740	I mean, it's horrific.
3003740	3005200	So that's the problem with IoT.
3005200	3012140	So many IoT devices are coming out of an industry with zero software security culture.
3012140	3014040	In fact, let's go back in time.
3014040	3021220	Brazil, 2015, ASUS router was given away as part of your internet service to a third of Brazil.
3021220	3025280	And this router, if you're in Europe, router if you're American, right?
3025920	3027700	This had two vulnerabilities.
3027700	3032000	You can hit the change password feature without being logged in.
3032000	3035780	The change password feature didn't require the original password.
3036200	3038320	And this was given out to a third of Brazil.
3038400	3045280	So five million people get C-surfed and have their DNS settings changed to an attacker-controlled DNS,
3045280	3051160	which was trying to get banking phishing across every South American and Mexican bank they can get their hands on.
3051160	3053040	This is heavy duty.
3053040	3057540	I actually hunted down the product manager of that router as a research project, right?
3057540	3058620	I found him on LinkedIn.
3058620	3060380	And he's retired. He's like, oh, how you doing?
3060380	3062000	I'm like, hey, can I talk to you about this ASUS?
3062000	3064500	He's like, oh, sure, I'll tell you anything you want. I'm retired. I don't care.
3064500	3065740	I'm like, all right, this is going to be great.
3066080	3068200	Like, how did that router with those vulnerabilities...
3068200	3069920	Oh, I remember him well. I saw the paper.
3070100	3072760	How did that get out of security testing?
3072900	3074320	And he starts laughing at me.
3074320	3075800	Guess what the next comment was?
3076460	3078160	What security testing?
3080060	3081020	Next question.
3081260	3083440	There's my IoT answer. Yes, sir?
3085600	3086400	What's that?
3086400	3090980	This is like the successor to FIDO for hardware authentication, right?
3091160	3097000	I don't know the details of it, but those I know who research it and are astute,
3097000	3099660	I think it's a huge improvement on FIDO.
3099660	3106240	Remember, I'm suggesting hardware-based authentication is the only possible secure future for identity.
3106420	3111260	And WebAuthn is going to really make that a reality across web apps.
3111360	3113300	Let's see what happens, right?
3113300	3115680	Yubikey rollout is pretty small.
3115680	3120580	Who is maniacal about using a hardware token for all authentication?
3121420	3124160	Only like 5% of the room, and we're security professionals.
3124180	3126000	It's not easy to adopt.
3126040	3127540	A couple more, a couple more. What do we got?
3127540	3129080	Yes, sir? What's up, Mongo?
3129180	3130120	Mongo, Mango?
3130660	3131640	Meg, no.
3141590	3142730	Code or die.
3142890	3148670	If you're a security professional and you want your career to continue to advance well,
3148670	3151110	you need to learn the basics of how to code.
3151110	3154710	And when I say this, a lot of people's feelings get hurt.
3154710	3158570	I said this on Twitter, and several pros blocked me out.
3158610	3161690	And one of the guys that blocked me out from DC is a friend of mine,
3161690	3163790	and I'm like, why did I get blocked out?
3163790	3166010	What happened was he was just interviewed for a job,
3166130	3169650	a very big director position at a big software security company.
3169650	3171570	This is a guy I know, he's super smart.
3171590	3173430	He didn't get the job, guess why?
3173590	3174930	Because he didn't code.
3175390	3178810	And I felt bad that I unintentionally rubbed that,
3178810	3180910	and he blocked me, and he will not speak to me to this day.
3180910	3181950	I feel bad about that.
3181950	3183870	But he should learn how to code.
3184270	3184930	And I don't...
3187130	3189490	I don't mean this meanly.
3189590	3191490	Learn a little bit about HTML.
3191590	3193950	Take a few basic classes on secure coding,
3193950	3196090	and software engineering.
3196110	3198670	It's all free on the net now, if you want to learn.
3198670	3200770	So, honestly, if you're an app sec pro,
3200770	3204070	and you're not willing to take a little bit of time to learn about software,
3204070	3205570	just a little bit to learn about code,
3205570	3207330	I think it's going to do harm to your career.
3207330	3209850	You'll still be successful, you'll still get stuff done,
3209850	3214950	but learning how to code augments your career in so many ways.
3215530	3216930	And I'm going to bug Jack for a second.
3216930	3217910	Here's what...
3218470	3221850	Jack is basically a bastard, but I respect him for one...
3222370	3223750	Am I right? Am I right?
3224090	3225050	It's mutual.
3225050	3228710	But there's one thing I've always respected about Menino over here,
3228710	3231670	is that he's now like a CEO of a company with a lot to do.
3231710	3233470	How often are you coding, Jack?
3234190	3235290	Every day.
3235290	3238970	He's a CEO of a company, and he's coding every day to keep sharp.
3238970	3241130	That's what you want to do if you want to get ahead.
3241130	3241970	Jack!
3242010	3242790	Yeah!
3246720	3249000	So, one more question.
3249360	3250020	Up front.
3258050	3259450	Set requirements.
3259450	3261790	Go grab ASVS 4.0,
3261790	3263730	grab your lead developers,
3263730	3264890	your lead architect,
3264890	3266370	and your lead security folks,
3266370	3269470	and set a definition of what AppSec's going to be for your company.
3269470	3271370	I'd use ASVS 4.
3271370	3274510	There's about 284 requirements to base that.
3274510	3275990	Now, pick which level.
3275990	3277090	One, two, or three. I don't care.
3277090	3279150	But have some baseline requirement list
3279150	3281410	so we all have a common definition
3282150	3285190	of what secure software is going to be for our organization.
3285330	3288250	And this is a little bit self-serving, but I don't mean it to be.
3288250	3290090	And this is what a lot of the other SDLCs say.
3290090	3292910	I would also rigorously train your developers
3292910	3296450	as early in the project lifecycle as possible.
3296450	3298010	If you're training them at the end,
3298410	3300150	it's the worst place to do it.
3300390	3302970	Early on, just some basic training.
3302970	3304010	I don't care who you hire,
3304010	3308350	so that all your devs understand at least a basic OWASP-y type of RISC
3308350	3310850	or whatever the RISCs are specific to that platform.
3310850	3313150	Three, I would make sure early on in the project
3313150	3314910	that whatever frameworks you pick,
3314910	3318890	that you go out of your way to have someone be a massive SME,
3318890	3320370	subject matter expert,
3320370	3323530	in how to secure that framework from a programming point of view.
3323530	3325930	And everything will flow from there, in my opinion.
3326210	3327870	That's my take on the world.
3327870	3329190	Not a very popular one,
3329190	3331290	but it's my take on how to approach AppSec
3331290	3333490	from a software engineering point of view.
3333490	3334690	I also want to thank, again,
3334690	3336790	John McCoy and Zoe Brederman
3336790	3339530	for helping with the research of this presentation.
3339750	3342030	And I want to thank you in the room
3342030	3344690	for helping the world be more secure.
3344690	3345970	Have a great DEF CON,
3345970	3347950	and go forth and write secure code
3347950	3350270	and help your friends write secure code.
3350270	3351770	That's how we lock this stuff down.
3351770	3353190	Thank you very much, everybody.
3354790	3356170	All right.
