[00:03.250 --> 00:11.010] Thank you. Thank you, everyone, for having me here. He didn't ask, but I'm interested. How [00:11.010 --> 00:15.630] many people work directly or indirectly with vulnerability management in their day jobs? [00:15.630 --> 00:21.370] All right. That was the hands that I wanted to see there, right? So we'll get started here. [00:21.370 --> 00:25.310] This is super quick. And we'll dig in and have some time for questions at the end. [00:25.350 --> 00:31.110] About me, my name is Jay Gamblin. You can just call me a vulnerability enthusiast. [00:31.110 --> 00:36.590] That's kind of my unofficial title. I run two websites that you guys might like to look at. One [00:36.590 --> 00:43.490] of them is CVE.ICU. What it'll do is it'll give you how many CVEs are published daily, weekly, [00:43.490 --> 00:48.270] help you kind of break down. So if you have to write any reports and push those reports up to [00:48.270 --> 00:54.150] your management, I built this site specifically for people to be able to go and grab data level [00:54.150 --> 01:01.990] graphics for their reports. I also run a website called patchthis.app. What it does is it gives [01:01.990 --> 01:06.070] you a list of vulnerabilities on your network that you should be investigating. We'll get to [01:06.070 --> 01:12.950] both of those a little bit later in the talk. I'm a member of the EPSS, the Exploit Prediction [01:12.950 --> 01:17.550] Scoring System, SIG. So I sit on those board meetings and I sit in their planning meetings [01:17.550 --> 01:25.890] and I help kind of guide where the EPSS goes. I'm not special in any way and that is an open SIG. [01:25.890 --> 01:31.130] So if you're interested in data science or vulnerability management, you can sign up for [01:31.130 --> 01:37.490] that SIG on first.org. We'd love to have more people, especially people who are not in industry [01:38.010 --> 01:43.250] in that SIG. So if you do vulnerability management in your day job, we would love to have you join [01:43.250 --> 01:48.850] the SIG. We just have a new co-chair of the SIG who runs vulnerability management at Peloton. So [01:48.850 --> 01:56.170] we're really trying to be more focused on the community. I'm also on the CVE SIG members. So [01:56.170 --> 02:00.510] I spend a lot of time working with the Quality Working Group for CVE data. And if you know CVE [02:00.510 --> 02:06.130] data, you know that that's a hard group to be on. And I'm also on the Automated Working Group, [02:06.130 --> 02:11.790] which helps companies and individuals process CVE data at scale because it's so large. [02:11.790 --> 02:20.190] Feel free to contact me either on X or email me. I have a bunch. I have 20 years worth of [02:20.190 --> 02:24.330] CVE scripts and data on my GitHub website that's completely free. [02:26.210 --> 02:29.310] So let's talk about the vulnerability reality here. [02:30.630 --> 02:37.390] The problem is there are 110 CVEs roughly published per day this year. [02:38.030 --> 02:42.610] Organizations do not know what to remediate first. When I started doing vulnerability [02:42.610 --> 02:51.270] management 20 years ago for the government, there were 18 CVEs a day. It was my job basically to [02:51.270 --> 02:57.270] read all 18 CVE descriptions and say, yeah, we have this. No, I've never heard of this, right? [02:57.270 --> 03:05.530] One person could do it and it wasn't a big deal. We're way past that now. We're in the age of you [03:05.530 --> 03:13.370] machine learning and algorithms to figure out what to patch. Many organizations use the CVSS [03:13.370 --> 03:21.410] score to determine what to publish because PCI tells them they have to. I will tell you right [03:21.410 --> 03:27.890] now, that is a misuse of the CVSS scoring system. Their SIG would want me to tell you do not use [03:27.890 --> 03:32.990] CVSS to determine what to patch on your network. That's not what it's built for, that's not how [03:32.990 --> 03:40.530] it's designed, and that's not how you're supposed to use it. The solution is people are moving to [03:40.530 --> 03:46.790] patching known exploitable CVEs first. And that's the only way to do it. I'm lucky enough to have [03:46.790 --> 03:53.290] been part of a startup that was acquired by Cisco that built the first vulnerability management [03:53.290 --> 03:59.110] program that looked at what was exploitable and kind of helped companies patch that. [04:01.410 --> 04:08.350] So, here are the number of CVEs published per day this year. And you guys don't have to grab [04:08.350 --> 04:12.250] pictures of the screen all the time if you don't want to. I know it's handy, but I will tweet a [04:12.250 --> 04:19.470] link to this PDF deck right after the talk. So, if you want the data, you don't have to screenshot it. [04:19.470 --> 04:26.230] Yeah, we're over 100 CVEs a day, but at least two times a week, we get 250 new CVEs a day. [04:26.230 --> 04:30.650] That's normally on Tuesdays and Thursdays. So, if you ever wonder why your vulnerability [04:30.650 --> 04:35.730] management people look so stressed on Tuesdays and Thursdays, it's because their workload about [04:35.730 --> 04:45.250] doubled that week. So, here's the CVEs per year. We've had two pretty big events here that's kind [04:45.250 --> 04:54.770] of changed the trajectory of CVEs and how they're published. In 2016, they opened up the CNA process, [04:54.770 --> 05:03.430] which allowed companies to directly publish CVEs to the CVE list, right? So, if you're Microsoft or [05:03.430 --> 05:09.870] you're just even Joe's software shop, you could take control of what CVEs got published for your [05:10.450 --> 05:16.090] list. That really took us up. In 2020, something else happened. Does anybody have a guess what [05:16.090 --> 05:25.970] happened in 2020? COVID, but also GitHub. GitHub became a CNA in that time and started really, [05:25.970 --> 05:34.010] really pushing hard on publishing CVEs for all open source code that's on their network, right? [05:34.050 --> 05:40.650] In their repo. So, they shot to the top of the CNA list really, really quick. So, now we have [05:40.650 --> 05:47.750] much more CVEs and a lot of them you'll never see on your network, right? Therefore, some code [05:47.750 --> 05:53.510] somebody wrote one time and somebody found a CVE in it and it just sits there, right? So, it's just noise. [05:55.450 --> 06:02.090] So, let's talk about what EPS is. EPSS stands for Exploit Prediction Scoring System. I just [06:02.090 --> 06:08.210] realized I didn't put this in the slide deck and I'm sorry about that. So, EPSS is a data-driven [06:08.710 --> 06:15.950] estimating the likelihood that any CVE on the CVE list will be exploited in the next 30 days. [06:15.950 --> 06:22.590] So, that's a sliding 30-day windows. So, every night at midnight, we run the model. [06:22.590 --> 06:27.990] It shoots out a new score for the CVEs and publishes it. So, what I really want to lean [06:27.990 --> 06:33.130] into here is if you do want to use EPSS, it's not a grab at one time and this is my list. [06:33.130 --> 06:36.590] You really have to build it into your process so that you grab it every night [06:37.150 --> 06:43.730] at... it's normally done by 3.30 Eastern. So, whatever time zone that is for you is you should [06:43.730 --> 06:51.710] grab it after 4 a.m. Eastern U.S. time and it'll be updated for that day. EPSS is managed under [06:51.710 --> 06:57.550] FIRST. I was lucky enough to work at Kino Security like I mentioned earlier. We gave them the patent [06:57.550 --> 07:03.950] for EPSS to use and they now manage that as a non-profit as part of our acquisition into the [07:03.950 --> 07:12.650] Cisco systems. The score is used everywhere. If you use vulnerability management software, [07:12.650 --> 07:18.310] over a hundred known vulnerability management software tools have the EPSS score built into [07:18.310 --> 07:23.610] either algorithm or they display it on their website in some way. There's a list on the [07:23.610 --> 07:31.410] website that you can see if you're using it already. So, the EPSS data provides two datasets. [07:31.410 --> 07:38.130] It's a really simple dataset. It has... it's a three-column CSV. The first column is the CVE [07:38.130 --> 07:44.530] number. The second column is the EPSS score. And then the third column, because people ask for it, [07:44.530 --> 07:51.190] is what percentage of the CVEs this is, right? It's just a base percentile number. [07:52.290 --> 08:02.970] I pulled these numbers today. The high-scoring CVE is a Cisco CVE from 2019 for Gigabit Interface [08:02.970 --> 08:16.610] Router. The mean score is only 0.04 and the low score is 0.0004. So, that is shared by 7,000 CVEs. [08:16.610 --> 08:21.030] That's the floor CVE number. That's what you get. That's the score you get if you're a CVE [08:21.030 --> 08:29.150] at all. So, this is what the EPSS scores look like spread out over a graph, right? We tell [08:29.150 --> 08:34.570] people all the time that you have to figure out what your comfort level is and what to do, right? [08:34.590 --> 08:38.810] So, here's the graph we always show people and say, if you're trying to patch everything, [08:38.810 --> 08:44.150] you're going to lose. If you want to use EPSS in your patching system, we tell people to start at [08:44.270 --> 08:52.690] a minimum of 0.5 and it breaks that down to here. Today, there was 5,671 CVEs that the model [08:52.690 --> 09:00.010] predicts will be exploited in the next 30 days. So, that's much more manageable for people to use, [09:00.010 --> 09:05.810] right? So, the data's there and the data is doing what we want the data to do. It's kind of an odd [09:05.810 --> 09:13.010] thought to think that we want to weed out 95, 98% of all CVEs, but that is the goal of the EPSS [09:13.010 --> 09:20.270] project is to say that here are the CVEs that we have high expectation to be exploited in the next [09:20.270 --> 09:31.630] 30 days in the wild. I will start this slide by saying I am not a data scientist. So, if you want [09:31.630 --> 09:36.090] to talk to our data scientist, Jay Jacobs runs the data science program, and he'll be happy to dig [09:36.090 --> 09:42.990] into the geek stuff with you there and the math. But when they built V3 and released it in 2023, [09:42.990 --> 09:48.550] we saw an 82% increase over the V2 model. So, that was really good. And we're looking again, [09:48.550 --> 09:53.930] and we will release a new model in the fall and the V4. And we really think that we're going to [09:53.930 --> 09:59.850] get about another 80% increase in efficiency again. So, the model is really, really starting [09:59.850 --> 10:05.150] to shape up and be hard to defeat in what it does, in predicting what CVEs are going to be [10:05.150 --> 10:14.430] exploited in the next 30 days. So, the data sources used in CVE in EPSS is pretty interesting. [10:14.590 --> 10:20.510] We work with a lot of companies in the threat space and in the technology space, and they give [10:20.510 --> 10:25.850] us their data for free, and we give them back the EPSS score to the community. That's the [10:25.850 --> 10:34.010] working agreement we have with them. But we bring in probably 2,500 variables at the end of the day [10:34.010 --> 10:40.190] to calculate these scores. There's a white paper that you can go read that talks about how to use [10:40.190 --> 10:47.430] EPSS for vulnerability scoring and get into all the math if you need it. So, let's just talk about [10:47.430 --> 10:53.730] what you guys are here for, using EPSS for vulnerability management. So, this is a warning, [10:53.730 --> 11:02.850] EPSS is not a one-size-fits-all thing, right? We think that when we do it, we look at what an [11:02.850 --> 11:10.470] average network is, and we build the model against an average corporate network. If your [11:10.470 --> 11:15.150] network is different, we would suggest that you do all the testing and all the research and [11:15.150 --> 11:20.090] understand. You know, we're not testing it, we're not a hospital network, so we don't have that kind [11:20.090 --> 11:25.010] of stuff sitting around. So, we're not an IoT network, we're not an OT network. So, if you guys [11:25.010 --> 11:31.630] have IoT or healthcare stuff on there, this might not be the model for you because it doesn't weigh [11:31.630 --> 11:36.430] heavily in there. We would love to talk to you guys about that though, especially if you're [11:36.430 --> 11:42.650] interested in building a healthcare-specific or an OT-specific model of EPSS, so that we [11:42.650 --> 11:48.670] could lean in and say, here's EPSS for OT providers, here's EPSS for healthcare providers. [11:50.310 --> 11:57.250] So, the best way to use EPSS for VM is to understand that it's for network-based attacks [11:57.250 --> 12:04.410] because of where we get the data and how CVEs are weighted, this model is heavily for network [12:04.410 --> 12:08.670] attacks. So, if you have a network that you let students connect to or that you have a big [12:08.670 --> 12:14.330] corporate network, this is the model to use because those are the vulnerabilities and the [12:14.330 --> 12:20.390] exploits that we can detect and are probably 99% of the exploits that people see in the wild. [12:20.390 --> 12:26.130] There are very few keyboard hackers these days, right? Like, I have to be in front of the machine [12:26.130 --> 12:31.470] to make this exploit work. So, this model understands that and has been built back [12:31.470 --> 12:40.110] to use network-based attacks as its primary course. EPSS should only be used primarily [12:40.750 --> 12:47.550] after all known exploited vulnerabilities are off your network. Let me say that again. EPSS [12:47.550 --> 12:52.710] should only be used as a primary source of information after you remove all exploited [12:52.710 --> 12:57.510] known vulnerabilities from your network. How many people have removed all known [12:57.510 --> 13:03.710] exploited vulnerabilities from their network? Yeah. So, there are very few people who have done [13:03.710 --> 13:12.190] that. I love for people to use EPSS in deciding what to patch, but EPSS does not stop and does [13:12.190 --> 13:18.690] not pivot away from fixing stuff on your network that you know bad guys are attacking now. [13:18.690 --> 13:23.210] In some point, we get to a point where everybody has all the known exploited vulnerabilities [13:23.210 --> 13:28.310] patched, then EPSS is a superstar, right? Because then you're just patching what you think the bad [13:28.310 --> 13:34.890] guys are doing. But 99.9% of us right now have vulnerabilities on our network that you can go to [13:34.890 --> 13:43.310] GitHub and find an exploit for and run it against it, right? There's a super in-depth app, in-depth [13:43.310 --> 13:50.330] guide that we just built on EPSS at risk-basedprioritization.github.io that sits you all [13:50.330 --> 13:56.090] through this. We worked with Yahoo, Microsoft, and a couple other companies that gave us data [13:56.090 --> 14:00.750] on the vulnerabilities on their network to kind of help build out a model to show you what it would [14:00.750 --> 14:06.210] look like if you deployed EPSS on there. I'm not going to spend a lot of time digging into that [14:06.210 --> 14:11.430] today because our time is so short, but I would suggest that you go there and look at that. [14:13.950 --> 14:19.790] I've also built patchthis.app, which isn't the primary focus of this call, but if you do not [14:19.790 --> 14:26.170] have a threat intelligence program today, I take what 80% of all threat intelligence [14:26.170 --> 14:32.030] platforms are built on, put it in a CSV, and give it to everybody for free every night. [14:32.050 --> 14:37.570] What it does is it goes out and checks what hackers, what quote unquote bad guys are using [14:37.570 --> 14:43.430] to exploit networks, puts and combines that together, breaks it down, and gives you a list [14:43.430 --> 14:50.550] of about 6,000 CVEs that we know are being actively used to exploit networks. So if you [14:50.550 --> 14:55.310] need a place to start and a place to look, I suggest this. I'm happy to take any pull requests [14:55.310 --> 14:59.710] or any information you guys have on this site, too, as it's one of my side projects that I'm [14:59.710 --> 15:07.790] really, really into. So EPSS and the deployment pipelines. This is where it gets interesting, [15:07.790 --> 15:16.450] especially for sec and DevOps people. EPSS is built to be ran this way, and a lot of tools [15:16.450 --> 15:23.810] already have it built in. If you use any of the major code repositories, either GitLab or GitHub, [15:23.810 --> 15:29.610] it's both built into there, into their scanning already, so when it finds a CVE in your code, [15:29.610 --> 15:35.550] it will tell you that, hey, here's the CVE, here's the EPSS score, here's the CVSS score. [15:35.550 --> 15:40.850] So I would really suggest that if you dev on one of those, if that's one of the places where you [15:40.850 --> 15:49.310] keep your dev tools, that you enable both EPSS on both GitLab and GitHub. There's also a GitHub [15:49.310 --> 15:55.770] action that I love to have people use, especially if you're using Kubernetes or Docker in your [15:55.770 --> 16:01.710] environment, because what it does is it uses an open source program, either Trivy or something [16:01.710 --> 16:06.830] along those lines, to scan your Docker container files and your development files for known [16:06.830 --> 16:13.750] vulnerabilities. It will then go in and run EPSS against it, and you can set a threshold. Like, [16:13.750 --> 16:20.790] I don't... if it's above a .6 in EPSS, please do not let this push to prod so that your teams can [16:20.790 --> 16:25.630] go back and fix that. It's super simple. I'm super proud of the team that's built that. It's [16:25.630 --> 16:33.210] made the main GitHub advanced security toolkit, so it's built into what GitHub tries to have [16:33.210 --> 16:38.730] used internally and tries to have their best customers use. Here's a little screenshot of [16:38.730 --> 16:44.770] what that looks like. And with that, I am done. I want to take your questions. I want to understand [16:44.770 --> 16:50.810] what you guys want and kind of use that. So if you have any questions, I'm here for them. If not, [16:50.810 --> 16:54.630] I hope you guys enjoyed the AppSec Village this year. This was one of my favorite villages, [16:54.630 --> 16:59.310] and I'm super glad to end the conference here. Question in the back? [17:09.580 --> 17:17.420] So nothing goes to one. That's the model, right? Because we have to see it happen, [17:17.420 --> 17:25.020] and since we don't run any IPSs or IDSs ourself, we can only assume that it happens, [17:25.020 --> 17:32.840] so those bump up into the high 90s really quick. 97, 98, 99. But there's no such thing as a 1.0 [17:32.840 --> 17:40.940] in EPSS today, because we don't have firsthand knowledge, and we're always looking at data from [17:40.940 --> 17:47.760] other IDS, IPS vendors, and since we can't see at the end if that was actually a successful attack, [17:47.760 --> 17:58.160] it kind of gets fuzzy. Yes, yeah. Yes, yes we did, and we actually released a study. If you [17:58.160 --> 18:04.260] go to Scientia.com, the company that builds and maintains the model, they just released the EPSS [18:04.260 --> 18:10.140] study that puts it against that. So it's on LinkedIn or Twitter if you can find it. If not, [18:10.140 --> 18:25.670] I'm happy to share it with you. Yes, CWEs give me a headache, to be completely honest. It's so hard [18:25.670 --> 18:34.470] to get CVEs to line up with CWEs correctly, because the CWE pool is so wide. We work closely [18:34.470 --> 18:39.470] with the CWE program. I've talked to them about that. We'd love to get CWE data in there, [18:40.390 --> 18:49.290] but it's so complicated. It's going to take much more stronger and well-built models to be able [18:49.290 --> 18:53.890] to build that data out correctly, because one cross-site scripting is not like another cross-site [18:53.890 --> 19:00.010] scripting. So knowing severity across CWEs is where it gets really, really difficult, especially [19:00.010 --> 19:14.780] if you just don't want it to be static. So we have talked with the CVSS SIG quite a bit, [19:14.780 --> 19:19.280] and the problem with seeing the CVSS SIG environmental factors is that they're always [19:19.280 --> 19:24.920] turned on. You can only lower a CVSS score by saying that we don't know that this is exploited, [19:24.920 --> 19:30.180] we don't. If the CVSS model was built the other way, where when you flip the flag it made the [19:30.180 --> 19:35.340] score go up, we would love to do that. But now all you can do on CVSS is flip a flag and make [19:35.340 --> 19:46.680] the score go down. So it's kind of hard to marry that to a probability model. Yes. [19:48.500 --> 19:52.780] No, we're just looking for people who would be interested in kind of talking about that and [19:52.780 --> 19:59.240] joining the SIG and to help us kind of understand, A, where can we get the data on who's attacking [19:59.240 --> 20:04.840] OT, what those look like, like what the IDS IPS rules look like, and kind of build a mirror model [20:04.840 --> 20:10.200] of the regular EPSS score. So if you know anybody who has that data or whatever, that would be [20:10.200 --> 20:14.620] great. We'd love to have you. If you just go to first.org slash EPSS, there's a sign up for the [20:14.620 --> 20:32.110] SIG there. There was, oh, go ahead. Sorry. Yeah. I mean, it really depends. I like, I like 0.5, [20:32.110 --> 20:37.870] that cuts you down to about 5,000 CVEs. And then you get to, then you get to marry that list [20:37.870 --> 20:42.750] against what's actually on your network. And most people we've seen, when you take that 5,000 and [20:42.750 --> 20:49.290] against actual networks, you get down to 50 or 60 CVEs that are 0.5 or above. Right. But that's the, [20:49.290 --> 20:53.110] that's the hard work and the homework that you have to do is to take the list and then actually [20:53.110 --> 20:58.570] match it against the CVEs that are still on your network and then figure out what, what works for [20:58.570 --> 21:04.690] your VM groups. Right. Because in some organizations, 50 tickets to patch CVEs might be [21:04.690 --> 21:10.470] nothing. And in other organizations that might, you know, cripple a VM team for a month. [21:16.350 --> 21:20.970] Yeah. I will put this on my Twitter account, at jgamblin, and I will share it with the, [21:20.970 --> 21:25.750] and I will share it with the village. And I think that they will put them all somewhere [21:25.750 --> 21:40.830] at two at the end of the thing. Yes. Yeah. So we, we did. There's a couple of things about that. [21:40.830 --> 21:47.470] CISA has stepped up and started providing fill-in CVSS scores. So we are leaning into those. [21:48.150 --> 21:53.530] We are also missing a bunch of data from NVD. So it does hurt the model a little bit. [21:53.650 --> 21:56.450] That's why we're having a new model come out at the end of the year that, that [21:56.450 --> 22:03.210] relies less on NVD and more on the CNA data. So you'll see a big push for us too, to have the [22:03.210 --> 22:09.670] CVE publishers require more data in the CVE records. For the longest time, all you needed [22:09.670 --> 22:14.810] to publish a CVE was three data points. And that's just not enough for people to make informed [22:14.810 --> 22:37.660] decisions in 2024. Yes, sir. Yeah. And I think that's where you just have to like really lean [22:37.660 --> 22:42.340] into the exploitable, known exploitable, right? Like no matter where your known exploitable is, [22:42.340 --> 22:47.680] it's, we took care of 95% of everything that had a known exploitable and everything else gets [22:47.680 --> 22:52.280] pushed off into our large patching sections, either quarterly or monthly or whenever they [22:52.280 --> 22:58.640] happen. But yeah. Yeah. I, if I ran a VM team right now, I would never ring the fire bell [22:58.640 --> 23:03.220] unless there was known exploit code on, on the internet actively being exploited, [23:03.220 --> 23:08.020] right? Like I wouldn't trust CVSS. I wouldn't even trust an EPSS score, right? Like, [23:08.020 --> 23:11.460] like before I make somebody work over a weekend, I would have to see, [23:11.460 --> 23:27.170] see code somewhere that, that made me do that. Just POC exploits. We try really hard on our [23:27.170 --> 23:32.410] model to be able to determine if we're seeing the exploit versus it just being POC code. [23:32.410 --> 23:38.730] We also lean really heavy on, we, we want the model to see if it's a network based POC code [23:38.730 --> 23:43.410] versus a local based POC code. Cause a lot of times we see POC code for network based [23:43.410 --> 23:48.150] vulnerabilities that you actually have to run on the system. And that never seems to make a [23:48.150 --> 24:05.250] lot of sense. Yes, ma'am. That's a good question. We don't know yet, but bias in CNAs is a whole [24:05.250 --> 24:11.310] another talk because you become a CNA so you get control over what CVEs you publish for your [24:11.310 --> 24:17.850] software or not. So there's always some bias in CNA data at, at its root because that, that's why [24:17.850 --> 24:24.350] most companies have become CNAs. All right. With that, I think I will, will call it my time and [24:24.350 --> 24:28.670] say thank you guys very much again for coming to the AppSec village and to have a good rest of your [24:28.670 --> 24:29.250] DEF CON.