[00:00.000 --> 00:08.320] I'd like to introduce you to our next speaker. She's a teacher of... she teaches [00:08.320 --> 00:13.380] developers about application security. She has learned over 20 programming [00:13.380 --> 00:24.200] languages. I told her, like, she's like a developer polyglot, right? She is a [00:24.200 --> 00:29.220] founder of Gold Hat Security and now teaches AppSec full time. And she's [00:29.720 --> 00:35.160] going to talk about vulnerabilities that hide from your tools. Give a round of [00:35.160 --> 00:37.260] applause to Jillian Ratliff. [00:43.520 --> 00:50.560] Hi, can you guys hear me okay? Is this one on? Okay, good. I can't... I don't [00:50.560 --> 00:54.940] see a volume button, but you can hear me okay in the back. All right. Well, [00:54.940 --> 01:00.140] thanks for coming. I'm really excited that you're here. And I'm also feeling a [01:00.140 --> 01:06.040] little vulnerable along the lines of the talk. So this is my first time speaking [01:06.040 --> 01:11.060] in DEF CON, and I'm a little nervous, but I'm here to help you and hopefully [01:11.060 --> 01:14.780] make your jobs easier. So thanks for coming. [01:14.780 --> 01:19.760] I'm going to start out with... oh, I'll introduce myself first. I'm going to [01:19.760 --> 01:24.140] start out with me. This is a friend of mine that I made in Bali and me, a baby [01:24.140 --> 01:28.080] elephant. I started my own company this year because I wanted to teach full [01:28.080 --> 01:34.420] time. So I teach application security to developers. And I have over a decade [01:34.420 --> 01:39.840] of AppSec experience now. Just by a little bit. And I love to travel and tell [01:39.840 --> 01:43.740] jokes. They are not always good jokes, but I will tell them anyway. So nobody [01:43.740 --> 01:48.620] brought tomatoes, I'm sure. So I'll give it a try. [01:48.620 --> 01:55.780] So first... sorry. All right. Just a quick history lesson. So we know kind of [01:55.780 --> 02:01.340] the history of where the tools that we use today came from. So back before I was [02:01.340 --> 02:06.800] born, there was the very first static analysis tool called Lint. Now, Lint was [02:07.320 --> 02:12.080] basically a syntax checker, right? So it didn't check for any security [02:12.080 --> 02:15.640] vulnerabilities like SQL injection or cross-site scripting because they didn't [02:15.640 --> 02:23.680] exist yet. So they came into existence in the late 90s. And then we started to [02:23.680 --> 02:30.020] have some dynamic testing tools. So Nessus came into existence. And I don't know [02:30.020 --> 02:33.460] if any of you remember back in the day when you had to use a modem to get [02:33.460 --> 02:38.580] connected to the Internet. Back then, websites were just pretty much static [02:38.580 --> 02:43.800] HTML. And then along came this little site called MySpace. Now, for those of [02:43.800 --> 02:50.220] you who are kids in this room, MySpace was like Facebook, only before Facebook. [02:50.220 --> 02:54.120] And it had all these fun features where you could customize your background [02:54.120 --> 02:58.580] and put custom JavaScript code. If you were the loneliest person in the world [02:58.580 --> 03:05.080] to ride a worm, make everybody your friend. So this... I'm just... I'm not [03:05.080 --> 03:10.300] blaming MySpace for the state of web application security today. But I did [03:10.300 --> 03:16.240] notice there is a proliferation of security tools that came up after this point [03:16.240 --> 03:21.360] in time. So we got Coverity, Fortify, Metasploit, one of my favorites, [03:21.360 --> 03:25.980] Burpsuite, another favorite. And then we have open source tools coming into [03:25.980 --> 03:30.120] existence to check to make sure that your dependencies are not vulnerable. So [03:30.120 --> 03:35.100] things like Black Duck. One note about this, most of the open source tools [03:35.100 --> 03:38.840] that you're going to use to scan your open source code are only going to find [03:38.840 --> 03:43.380] known vulnerabilities. They don't necessarily find the zero days. So just [03:43.380 --> 03:48.720] word of warning there. And then we've got some more tools, Acunetix, [03:48.720 --> 03:53.440] Checkmarks and Veracode, our sponsors. Made sure I got them on the slide. [03:54.320 --> 03:59.780] OWASP Zap came into existence. Whitesource, another sponsor. Thank you. [03:59.980 --> 04:03.540] And Snyk. I may be saying that wrong. That's one of those things I've never [04:03.540 --> 04:09.980] heard said out loud. Also of note, and I'm not going to talk a lot about this [04:09.980 --> 04:13.940] because I haven't actually used these tools, but there is in recent years [04:13.940 --> 04:18.940] something called IAST. The I stands for interactive. So it's interactive [04:18.940 --> 04:23.380] application security testing. It's another option. Since I have not actually [04:23.380 --> 04:28.420] used them myself, I can't speak to it much. And when I Googled IAST tools, [04:28.420 --> 04:33.000] Google was like, did you mean SAST? No, I did not. But thank you for the [04:33.000 --> 04:39.520] condescending suggestion. So anyway, so a brief history. Now, moving right [04:39.520 --> 04:44.440] along, I have a Venn diagram for you because I love Venn diagrams. So there's [04:44.440 --> 04:49.260] what they're good at finding. And I have some SAST and DAST vulnerabilities. [04:49.600 --> 04:55.560] So they're both pretty good at finding the OWASP top ten. And I like to remind [04:55.560 --> 05:00.180] people that it is the top ten. It's not all of the vulnerabilities. Just the [05:00.180 --> 05:07.280] top ones. So things like PCI compliance. Anybody deals with PCI at work? Yeah. [05:07.280 --> 05:15.720] So there's more than ten vulnerabilities is what I'm saying. So SAST tools are [05:15.720 --> 05:20.700] somewhat good at finding weak crypto. And I have an asterisk there because it's [05:20.700 --> 05:25.120] sort of. Like they look for the really obvious things. So are you using DES in [05:25.120 --> 05:29.300] your code? It's going to kick out an error message that you're using DES. But [05:29.300 --> 05:34.440] it's not going to find implementation flaws. And there was a pretty good talk [05:34.440 --> 05:39.260] earlier which talked a lot about that. So watch the recording. Or some of you [05:39.260 --> 05:45.880] were here. They're pretty good at finding hard-coded passwords. Or keys or [05:45.880 --> 05:50.460] things like that. Because you're scanning the source code. Things like memory [05:50.460 --> 05:55.460] leaks that might cause a denial of service. And then dynamic application [05:55.460 --> 06:01.600] security testing tools. Find things like poor session management. Missing [06:01.600 --> 06:08.460] security headers. Default passwords. And insecure server configurations. So [06:08.460 --> 06:12.320] there's a little bit of overlap. But obviously it's good to use both. Right? [06:12.320 --> 06:17.000] Now you're all here to hear about what they're not good at finding. Right? And [06:17.000 --> 06:22.300] I have a whole list. Not a complete list. But some highlights for you. The first [06:22.300 --> 06:28.980] one is business logic flaws. And this can be all sorts of different things. Uh, [06:28.980 --> 06:34.200] my favorite example, though, is just a poor password reset logic. So I, [06:34.200 --> 06:38.660] personally, I have a grudge against cognitive questions. You know, the, what [06:38.660 --> 06:42.340] street did you grow up on? That sort of thing. So weak password reset [06:42.340 --> 06:46.400] functionality is something that your tools just aren't going to find. Right? [06:46.400 --> 06:51.900] And, and many other things. You can have, uh, if your process for the call [06:51.900 --> 06:56.460] center to identify a customer is weak, then they might be vulnerable to social [06:56.460 --> 07:02.700] engineering. Things like that you want to keep in mind. So weak or reused [07:02.700 --> 07:09.840] passwords. Now, fun fact, 75% of internet users admit to reusing passwords [07:09.840 --> 07:18.540] across multiple accounts. Now, the other 25% don't admit to it. Right? So password [07:18.540 --> 07:21.940] reuse is a huge problem and that's not something that any one of your tools is [07:21.940 --> 07:26.520] going to find. But with all of the data breaches lately, credential stuffing is a [07:26.520 --> 07:31.700] thing. And something that you need to be concerned about. So just keep that in [07:31.700 --> 07:38.200] mind. Next up, uh, configuration whoopsies. There was a very recent data [07:38.200 --> 07:42.920] breach in the news in the last week or so that was caused by a web application [07:42.920 --> 07:48.120] firewall having too high of permissions. Now, I don't know of any tool that's [07:48.120 --> 07:51.820] going to find that. It might be out there. Um, but that's one of those things [07:51.820 --> 07:57.560] that it was just, it, not using the principle of least privilege led, led to a [07:57.560 --> 08:07.040] huge data breach. So are you paranoid yet? I have more. Okay. Alright. Next up, [08:07.040 --> 08:11.940] denial of service vulnerabilities. Now, with an asterisk. So there, there are [08:11.940 --> 08:16.380] some denial of service type of vulnerabilities that your static analysis and [08:16.380 --> 08:20.940] dynamic analysis tools will find. Dynamic analysis tools tend to find them [08:20.940 --> 08:26.640] accidentally. Has anybody experienced that? You run a scan and denial of service. [08:26.640 --> 08:31.400] Yeah. So, but that, that's not maybe the best methodology for finding these [08:31.400 --> 08:36.880] things. Uh, so there, there's all sorts of things that can go wrong. For example, [08:36.880 --> 08:43.360] if you have a developer that wrote a very poor SQL query that takes like 17 seconds to [08:43.360 --> 08:48.280] run, that's going to bring down your SQL server eventually. And then with repeated [08:48.280 --> 08:52.460] requests. So anytime you have a server response that takes too long and you can [08:52.460 --> 08:56.960] send repeated requests, you can bring down the SQL server and then anything tied to [08:56.960 --> 09:01.280] that SQL server will also come down. So that's not something that any tool is going [09:01.280 --> 09:07.200] to find, but if you have a good DBA to review all the SQL queries, that will help [09:07.200 --> 09:13.800] tremendously. So, uh, rogue developers is another one that keeps me awake at night. [09:13.820 --> 09:21.000] So, um, let's see. Oh, uh, so something that you want to consider is that insider [09:21.000 --> 09:26.560] threats may actually be coming from nation state actors. So I, a lot of times we [09:26.560 --> 09:32.560] think about rogue developers and oh, well, they're just mad at the company, right? Um, but [09:32.560 --> 09:38.940] in fact, if you have a big enough company with, uh, valuable enough data, there might be [09:38.940 --> 09:44.140] somebody with a Russian accent that applies for a job, say. Not going to pick on the [09:44.140 --> 09:48.860] Russians, right? Because I don't want to get hacked. Um, so if there's any Russians in [09:48.860 --> 09:57.720] here, I, you're, you're great. I promise. Okay. Anyway, um, so next up cryptography [09:57.720 --> 10:02.760] disasters. So a very good talk about that earlier. There's so many things that can go [10:02.760 --> 10:07.960] wrong with cryptography. So if, if you're not comfortable with cryptography, you [10:07.960 --> 10:12.480] definitely want to have somebody help you out with that. Uh, but basically never write [10:12.480 --> 10:16.860] your own crypto. That is rule number one of Crypto Club is never write your own crypto. [10:16.860 --> 10:23.780] And rule number two of Crypto Club is never write your own crypto. So, and even if you're [10:23.780 --> 10:29.900] using a standard encryption algorithm like AES, if you use ECB mode, for example, then [10:29.900 --> 10:34.160] your crypto is insecure. So lots of things can go wrong there. Tools may or may not [10:34.160 --> 10:43.900] necessarily find them. Right? And then good old layer eight vulnerabilities. Um, things [10:43.900 --> 10:49.860] like phishing, social engineering, or your standard ID10T error. Uh, these are all things [10:49.860 --> 10:57.100] that are very much, um, they, they, they can affect the application security of, they can [10:57.100 --> 11:04.380] affect the security of your application. That's what I was trying to say. Um, so, uh, just [11:04.380 --> 11:10.720] lots of things can go wrong there. And then secrets stored in weird places. So my favorite [11:10.720 --> 11:19.000] and most, most trendy example of this lately is a JWT payload. So you have a JWT, a JSON [11:19.000 --> 11:25.100] web token, and perhaps you have a developer that sees it in the developer tools, oh, oh [11:25.100 --> 11:30.880] look, it's obfuscated, it must be encrypted. It's not. It's base64 encoded and anything you [11:30.880 --> 11:37.680] put in there should not be a secret. So that is something that, uh, just have to do some [11:37.680 --> 11:44.020] manual testing to find, I guess. Uh, things like text files. So I have seen a text file with [11:44.020 --> 11:49.100] usernames and passwords in it that was publicly available on the internet. Not great. Uh, [11:49.100 --> 11:58.400] config files, sticky notes, still happens, et cetera. So, uh, false negatives, uh, when your [11:58.400 --> 12:03.300] code is written in other spoken languages. So this is something that may not seem obvious to [12:03.300 --> 12:09.060] most, but for static code analysis tools, some of the rules will look for variable names. So [12:09.060 --> 12:14.620] if you were looking for, say, a variable called password, but your coder is speaking [12:14.620 --> 12:19.140] Spanish, then it's, it's not going to find that. So that's something that I've actually had [12:19.140 --> 12:24.420] happen a lot. So you get the scan results back in and it says, uh, all these, it's [12:24.420 --> 12:27.900] highlighting all of these password variables. What do I need to do? Should I change the [12:27.900 --> 12:35.580] variable name? It's like, no, you should remove the password from your code. So, all right. [12:39.260 --> 12:44.080] Sensitive information and error messages, that's, uh, fairly self-explanatory. I don't have [12:44.080 --> 12:49.140] an example for that. You know what that means. So insecure APIs, there's still a lot that can [12:49.140 --> 12:56.620] go wrong with, uh, writing a new API. So, uh, it's most of the dynamic application security [12:56.620 --> 13:03.200] testing tools have a harder time testing APIs without, uh, complete documentation. So you [13:03.200 --> 13:11.160] can't just spider an API and figure out everything that's there. Um, and even though we've [13:11.160 --> 13:16.660] taught developers to tell people, oh, username and password, right? So when you have an [13:16.660 --> 13:21.180] invalid password, you give them an error message back, invalid username or password. So [13:21.180 --> 13:26.400] that's pretty standard practice nowadays. But let's say you write an API that checks if a [13:26.400 --> 13:32.300] username is taken. So now all of a sudden the attackers are able to enumerate usernames. So [13:32.300 --> 13:41.700] it's a way around that. Uh, it was just a very simple example I had. But, uh, next up third [13:41.700 --> 13:47.020] party integration flaws. So let's say, for example, you are integrating with an identity [13:47.020 --> 13:54.600] provider and the identif- the identity provider is configured to allow for open redirects. So [13:54.600 --> 14:01.540] what can happen in that case is an attacker can use phishing to have a, a user enter the [14:01.540 --> 14:06.420] username and password on the valid identity provider site. And then it redirects to the [14:06.420 --> 14:12.840] malicious site with a token, a valid token. So open redirects are dangerous there. There's [14:12.840 --> 14:24.870] many other things that can go wrong. Um, grab a drink of water. Hold on. So, you with me [14:24.870 --> 14:37.070] so far? Everybody still awake? Okay. Alright. So how to find them? There's the hard way, [14:37.070 --> 14:45.470] which I'm sure most of you are very familiar with by now. So, uh, AppSec pin testing. Uh, or [14:46.590 --> 14:52.250] just eyeballs on code, code review. And I had a very hard time finding a GIF that would [14:52.250 --> 15:00.970] appropriately represent code review. Uh, I hope you like this one. I spent a long time just [15:00.970 --> 15:07.670] reviewing code and that was my face most of the time. So, but I have some suggestions to make [15:07.670 --> 15:15.230] your life easier. So, the easier way, I call this the Lord Varus approach. Now, for those of [15:15.230 --> 15:20.250] you who have not seen Game of Thrones, it's okay, I will explain. So, Lord Varus was the [15:20.250 --> 15:27.950] master of information in, in Westeros. And his technique for gathering information was he had [15:27.950 --> 15:33.370] all of these spies around the city and around the country, really, that were children. Now, I'm [15:33.370 --> 15:39.810] not advocating for child labor. Please don't do that. But, uh, what you should do is just use the [15:39.810 --> 15:44.890] same approach to gather information within your own organization. So you can have an internal [15:44.890 --> 15:49.950] bug bounty and even if you're not ready for an external bug bounty, you can reward your [15:49.950 --> 15:57.090] employees to come to you with vulnerabilities. So, the idea here is just to, to make it as [15:57.090 --> 16:02.450] painless as possible to report security vulnerabilities to the security team. Now, a lot [16:02.450 --> 16:08.970] of us maybe, uh, have a reputation for being difficult to work with, highly opinionated, it's [16:08.970 --> 16:14.370] okay, it comes with knowing what you're talking about. But, uh, just the point here is that you [16:14.370 --> 16:21.930] want to reward people for coming to you and, and give them props. So, yeah. It's my, my [16:21.930 --> 16:28.690] favorite method for gathering information. No child labor, though. Right? Okay. Uh, next up [16:28.690 --> 16:33.550] is threat modeling and I'm not going to break down threat modeling because there is another [16:33.550 --> 16:39.550] talk tomorrow that you can come and see, uh, at, uh, 1330. So, highly recommend coming to see [16:39.550 --> 16:43.490] the introduction to threat modeling, but for those of you that are in here, I'm gonna assume [16:43.490 --> 16:50.470] that you're already familiar with the process, right? So, um, I have a tip for you as you're [16:50.470 --> 16:55.010] doing threat modeling that if you can really master this principle, it'll, it'll change your [16:55.010 --> 17:01.590] life. I hope. Um, so when you're doing threat modeling and you gather everybody in a room, [17:01.590 --> 17:05.450] say, and you're, you're asking questions about the architecture diagram and it's like this and [17:05.450 --> 17:12.530] that, um, this will change your life. The art of asking an open-ended question. Okay? So, it's [17:12.530 --> 17:17.490] very simple tweak, but it'll make a huge difference. So, instead of, is this connection [17:17.490 --> 17:23.470] encrypted? Every developer you talk to is gonna say yes to that question. Of course it is. [17:23.470 --> 17:29.090] Everything's encrypted. So, instead, ask, uh, how is this encrypted? And where do you store [17:29.090 --> 17:33.390] the encryption key? And if they don't immediately know the answer to that, then that's [17:33.390 --> 17:40.610] something that you wanna dig deeper into, right? So, that, that's, that's my big tip for, for [17:40.610 --> 17:44.870] threat modeling. So, there's stride and dread and all the other things that spell six letter [17:44.870 --> 17:51.010] words. Um, but, this, this is what you really wanna master. I have another example for you. [17:51.070 --> 17:57.690] So, instead of, do you have any sensitive data in this database? You ask, well, what kind of [17:57.690 --> 18:03.130] data is in this database? So, and then they have to answer this question and sometimes [18:03.130 --> 18:09.150] developers may not know what's sensitive and what is, what's not. So, instead of asking them [18:09.150 --> 18:15.310] to decide, just give, give them, just get the schema and review it yourself. That's probably [18:15.310 --> 18:23.550] the best method. So, I have another tip. Uh, just the, uh, what I call the full circle [18:23.550 --> 18:29.130] development lifecycle. So, using feedback from all of these methods. So, you have your tools [18:29.130 --> 18:34.250] and you've got pen testing and threat modeling and code review and maybe an internal bug [18:34.250 --> 18:40.390] bounty. Uh, so, what you wanna do is you wanna find the bugs and I know, how many of you have [18:40.390 --> 18:45.370] experienced a situation where you stop there? And that's, that's the only step. Is just [18:45.370 --> 18:52.870] finding the bugs. One person admits to it. You're brave, sir. Thank you. So, the next step is [18:52.870 --> 18:58.970] to fix the bug, right? Seems obvious, doesn't always happen. And then what you wanna do from [18:58.970 --> 19:04.310] there is just integrate that back into your automated test, right? So, write a new test case [19:04.310 --> 19:11.070] that has to do with that particular vulnerability. And then you write some new code, or the [19:11.070 --> 19:22.730] developers do. You deploy the new code and you find new bugs. Rinse and repeat. So, and then [19:22.730 --> 19:27.850] preventative care, of course. Just preventing vulnerabilities from getting there in the [19:27.850 --> 19:32.250] first place. Now, there's a few things that you can do. Uh, the number one is education. And [19:32.250 --> 19:35.850] so, that's why I love that you asked that question. How many of you are training your [19:35.850 --> 19:41.610] developers? So, it's, it's a really important thing to do. That's, that's why I do it. I'm [19:41.610 --> 19:45.750] very passionate. I might be a little bit biased. But I really think that if you train your [19:45.750 --> 19:51.470] developers in security, then they're going to have the knowledge to just keep from, you know, [19:51.470 --> 19:58.730] writing the vulnerabilities in the code in the first place. And, uh, let's see. So, the next [19:58.730 --> 20:04.110] recommendation is, uh, using secure default configurations. So, for those of you using [20:04.110 --> 20:10.050] containers and AWS, uh, just don't, don't let your developers shoot themselves in the foot. [20:10.050 --> 20:16.590] Right? So, just have secure defaults and a template so that, that is set up and it makes it [20:16.590 --> 20:24.650] easy for them. Right? Um, configuration management. So, with all of the tools that you can [20:24.650 --> 20:30.370] use to, to run scans, uh, and then I would really highly recommend setting up some [20:30.370 --> 20:38.630] automation to automatically fix what you can using microservice, micro-services. And, uh, [20:38.630 --> 20:44.070] this, this one's really pretty important with, uh, the nation state actors nowadays. Uh, but [20:44.070 --> 20:48.510] just a comprehensive background check for your employees. So, a lot of times it just, the [20:48.510 --> 20:52.630] background check makes sure that they don't have a criminal record, but there might be a [20:52.630 --> 20:58.210] little bit more to it. So, I don't know if you have a good rapport with your HR department, but [20:58.210 --> 21:04.310] I highly recommend that. And I have clearly been talking way too fast, cause I, I'm, I'm [21:04.310 --> 21:10.890] out of slides. Um, but I will take questions. So, does anybody have any questions or certainly [21:10.890 --> 21:29.710] there's probably things that I've missed, but yes. That is a fantastic question. So, for [21:29.710 --> 21:33.550] those that didn't hear the question was, how do you do a bug bounty without encouraging [21:33.550 --> 21:40.910] developers to write bugs? That, that's a great question. Um, you, I mean, you do have [21:40.910 --> 21:50.530] access to the check-in history to see who wrote what code. Um, but no, that's a fantastic [21:50.530 --> 21:58.370] question. Uh, well, peer review helps a lot too. So, it perhaps just changing the process so [21:58.370 --> 22:02.470] that when, when you are doing a peer review, the developer does a peer review and they find a [22:02.470 --> 22:06.970] bug, that's the only time that you can report a bug, but then there's a potential for [22:06.970 --> 22:14.370] hiding bugs. So, uh, it's a really excellent question. I will think about that. I'll get back [22:14.370 --> 22:19.280] to you. So... [22:22.140 --> 22:32.260] I have done that too. Yes. I've definitely looked at old code and I'm like, oh, oh, that's [22:32.260 --> 22:39.880] embarrassing. Yeah. So, uh, knowledge is just a, knowledge is power. So, I, but that's why [22:39.880 --> 22:54.210] you're here. And I'm glad that you're here. Yes. Okay. Oh, an internal education program [22:54.210 --> 23:00.550] for the developers. First step, uh, it, well, I, I, I've done that myself. So, the first step [23:00.550 --> 23:07.430] was creating about 350 slides. And then, uh, the next step is talking to the executives in [23:07.430 --> 23:11.550] charge of the developers and getting their buy-in. So, that's really the most important part [23:11.550 --> 23:16.790] there. Because if, if they don't think they have to go, they won't go. Right? It's not, it's [23:16.790 --> 23:21.030] not optional. You have to go to training. So, getting executive buy-in. Actually, no, that [23:21.030 --> 23:32.290] should be the first step before you waste your time on the 350 slides. Um, yeah. That, a [23:32.290 --> 23:37.690] great question. How do you evaluate competency, comp, competency. See, I'm still talking too [23:37.690 --> 23:43.830] fast because I'm nervous. Um, after training. Uh, so, what I've done in the past is have a [23:43.830 --> 23:51.310] quiz before and after to see the effectiveness of your training program. So, uh, yeah, just [23:51.310 --> 23:56.590] compare results. It'll, it'll go up. And then, uh, another thing that I would recommend for [23:56.590 --> 24:01.110] an internal training program is, is keep it in the developer's face all the time. So, it's [24:01.110 --> 24:06.350] not like an annual training. But to have something at least once a month so that it's in [24:06.350 --> 24:10.110] their face, they're always thinking about it. And they're always, uh, learning more about [24:10.110 --> 24:26.200] security. So, yeah. Yes? Uh, some of my favorite metrics to track for what? Uh, the number of [24:26.200 --> 24:30.220] vulnerabilities is probably the most important one. So, take all the data from all the [24:30.220 --> 24:35.560] tools and put them in the same place. And hopefully that number slowly goes down. So, that, [24:35.560 --> 24:40.700] that's probably the most effective way of tracking how effective your AppSec program is, I [24:40.700 --> 24:45.900] think. Yeah? Does that number always go down? No. Because the developers are writing more code. [24:45.900 --> 24:51.420] It does not. So, even if you did stop, there's more code. So, if 10% of the code has bugs, [24:51.420 --> 24:55.220] you're gonna get more and more bugs in the list. Yep. Absolutely. So, you could track [24:55.220 --> 25:03.220] vulnerability density as well. So, and, uh, at, at my last job, I actually had a competition [25:03.220 --> 25:08.020] between the development groups. So, the, it was just a scorecard that everybody knew where it [25:08.020 --> 25:13.900] was. And you'd take the vulnerability density and, uh, whoever was at the top of the list got a [25:13.900 --> 25:18.760] prize for the month. And they got really competitive about it. So, that's combining social [25:18.760 --> 25:28.380] engineering with AppSec to manipulate people into fixing the bugs. So, yeah. I like this Q&A [25:28.380 --> 25:33.440] session. I'm, I'm really, I talked so fast. Oh, my gosh. I'm gonna have to watch the recording [25:33.440 --> 25:57.860] and, and laugh at myself. But, um, yeah. Anything else? Definitely. It, well, yeah, you do have [25:57.860 --> 26:03.720] to kind of start with the basics. Um, so, OWASP top 10, as I say, are just the top 10. That's kind [26:03.720 --> 26:09.920] of the bare minimum for web developers. But I definitely would advocate for, for training in [26:09.920 --> 26:17.500] more in-depth and especially just whatever somebody needs to know to do their job. So, um, AWS is, [26:17.500 --> 26:22.780] is one that's being very widely used. And there's so many features. And there's so much to learn [26:22.780 --> 26:29.900] that, um, yeah, it's, it's still pretty easy to screw up even if you know what you're doing. So, [26:29.900 --> 26:37.280] I definitely advocate for, like, role-based training. And, yeah. That's a good question. [26:37.400 --> 27:07.580] I see two hands. Yeah, I saw you first. Oh, that's how to scale finding business logic [27:07.580 --> 27:18.640] flaws? Is that your question? Mm-hmm. Well, it, it's probably a slow process. But once you find [27:18.640 --> 27:25.320] one, then just, you know, write new automated test cases to test the new and existing code. Um, [27:25.320 --> 27:37.070] but I'm, I'm sorry, I'm not sure if I understood all of your question. Oh, to find them? Uh, learn [27:37.070 --> 27:42.250] the business. Like, learn the ins and outs of it. So, as a security person, you should know more [27:42.250 --> 27:48.810] about the business than, than your boss does. It is. It's very difficult to find, but the more you [27:48.810 --> 27:53.670] learn about the business and how it works, uh, the more likely it is that you'll, you'll find things. [27:54.210 --> 28:08.680] So, yeah. Oh, that's a great question. Um, I have seen, so, in design and story development, [28:08.680 --> 28:13.500] have, like, a review process where there's, there's, like, a questionnaire. So, when you [28:13.500 --> 28:18.960] write a story, there's also a security questionnaire. So, it, it's a fairly basic way of [28:18.960 --> 28:25.100] doing things, but you can scale things and, um, just by having them ask a few questions. Like, [28:25.100 --> 28:29.180] are you dealing with social security numbers in this story? No. Are you dealing with passwords? [28:29.180 --> 28:34.400] No. Are you dealing with cryptography? Yes. And so, the things that are kind of the low-hanging [28:34.400 --> 28:38.400] fruit will automatically get kicked up to the security team for a review. So, that way, you [28:38.400 --> 29:01.460] don't have to review thousands upon thousands of tickets. So, does that help? Okay. That is a [29:01.460 --> 29:07.580] great question. And if you're in an organization where you're working against reputation, uh, [29:07.580 --> 29:13.300] I think the best thing you can do is just, uh, have you read, uh, How to Win Friends and Influence [29:13.300 --> 29:20.840] People? Read it again. I read it every year. You know, uh, it's, it's a good review, but it's, [29:20.840 --> 29:27.420] it's hard when you're already working at a deficit, but to just try to change the, the perception of [29:27.420 --> 29:35.920] the security team. So, um, you know, do nice things for them. I see, and I, one recommendation is [29:35.920 --> 29:41.180] every time you have a meeting with a developer, just start it out with, I'm here to help. Let me [29:41.180 --> 29:46.740] know how I can help you. And then, um, just kind of live with that attitude, I guess. And it'll, [29:46.740 --> 29:52.340] it'll get there eventually. So, but I, I've dealt with that a lot of, especially when a brand new [29:52.340 --> 29:57.320] developer comes in. It's, oh no, you're the security team. You're going to tell me I'm doing [29:57.320 --> 30:06.480] things wrong. Um, but you'll win them over eventually. Patience. I know it's hard, but, [30:06.480 --> 30:30.190] yeah. Um, yeah. Sorry. Uh, both. Yeah. I think you have to understand the principles before [30:30.710 --> 30:37.550] you can really exploit them or fix them. But, yeah, for sure. Uh, so I love hands-on training, [30:37.550 --> 30:42.890] though. So, because that's the best way to learn by doing. That's how I've learned all of this. [30:42.890 --> 30:49.110] I didn't go to school for this. So, good question. That's a big bug. [30:56.370 --> 31:03.910] Okay. Well, I, I wanted to say thank you to Owen and Adarsh and Vivi for helping me with the [31:03.910 --> 31:09.070] writing process of this. And I'm so distracted by the bug. I'm sorry. Do we have any bug hunters [31:09.070 --> 31:19.250] in here? Five dollars. Yeah. And then, um, let's give a big round of applause [31:19.250 --> 31:30.000] for all the volunteers and the people who organized this. And I also want to thank you [31:30.000 --> 31:36.600] for being here. And, uh, asking such good questions. And, uh, for all of your hard work [31:36.600 --> 31:41.940] in what you do. So, AppSec is really important. I'm very passionate about this subject. And I'll [31:41.940 --> 31:48.260] be hanging out outside if you want to come talk to me later. Um, but, yeah. Thank you. Thank you [31:48.260 --> 31:48.980] for being here.