1 00:00:00,000 --> 00:00:04,840 Before we start with the talk, I would have a small request to turn your phones on silent. 2 00:00:05,300 --> 00:00:11,660 And if there's anything you'd like to say, I'd rather be happy to give you the mic, because it's better if you speak. 3 00:00:13,780 --> 00:00:36,520 So, our next talk is building local knowledge graphs for OSINT, bypassing rate limits and maintaining OPSEC, which presents a practical solution using knowledge graph technology, combined with RDF, which is Resource Description Framework, to build query-able offline OSINT repositories. 4 00:00:36,840 --> 00:00:41,700 Before we go ahead with the talk, we've got one of our sponsors who's also on the stage over here. 5 00:00:41,700 --> 00:00:43,020 He's Fenderster. 6 00:00:43,080 --> 00:00:53,280 And I'd like to give a thanks to our sponsors, Fenderster, OSINT Industries, Square-X, SINAC, Argelis Labs, Cat Networks, and Red Hat Labs. 7 00:00:54,080 --> 00:00:57,120 This next talk will be given by Dr. 8 00:00:57,120 --> 00:01:06,840 Pellegrino, who has over 20 years of research and development experience in information science, and has built systems for Pentagon, U.S. 9 00:01:06,840 --> 00:01:09,720 Department of Defense, Homeland Security, U.S. 10 00:01:09,720 --> 00:01:10,480 Army, U.S. 11 00:01:10,480 --> 00:01:12,440 Navy, and many other organizations. 12 00:01:12,580 --> 00:01:14,360 So, it's a great honor to have you here. 13 00:01:14,360 --> 00:01:16,180 Please welcome Dr. 14 00:01:16,200 --> 00:01:18,100 Pellegrino on the stage. 15 00:01:18,920 --> 00:01:19,280 All 16 00:01:22,860 --> 00:01:23,580 right . 17 00:01:23,640 --> 00:01:23,980 Thanks. 18 00:01:23,980 --> 00:01:27,420 So, just before I begin, as was mentioned, we couldn't do it without the sponsor. 19 00:01:27,420 --> 00:01:29,480 So, we have Ryan Montgomery from Pentester. 20 00:01:29,700 --> 00:01:31,120 Just wanted to say hello. 21 00:01:32,280 --> 00:01:33,360 I don't think they're on. 22 00:01:33,360 --> 00:01:34,040 Are they on? 23 00:01:34,520 --> 00:01:35,040 Yeah. 24 00:01:36,920 --> 00:01:38,040 So, you've got to be real close. 25 00:01:38,040 --> 00:01:38,720 Okay. 26 00:01:39,180 --> 00:01:39,520 Hey. 27 00:01:39,520 --> 00:01:41,060 So, my name is Ryan Montgomery. 28 00:01:41,060 --> 00:01:42,720 I'm a sponsor in Recon Village. 29 00:01:42,720 --> 00:01:59,260 And I just wanted to jump up here and say, if anybody hasn't been to pentester.com, specifically for Recon on yourself, just throw in your email for yourself, you know, a new email, an old email, a loved one, maybe it's some staff that worked with you at your company, 30 00:01:59,260 --> 00:02:01,720 and check out what our free scan does. 31 00:02:01,720 --> 00:02:04,980 No credit card, no sign up, and any requirements like that. 32 00:02:05,000 --> 00:02:15,380 If you like what you see, you can obviously sign up and, you know, I think, yeah, there's a coupon code, HACKTHEPLAN at 1337, that gives you like 15% off. 33 00:02:15,380 --> 00:02:17,300 So, check out pentester.com. 34 00:02:17,300 --> 00:02:18,140 Thanks, guys. 35 00:02:18,900 --> 00:02:19,600 All right. 36 00:02:19,600 --> 00:02:21,280 Thank you, Ryan Montgomery at Pentester. 37 00:02:21,280 --> 00:02:21,960 Thank you. 38 00:02:21,960 --> 00:02:23,040 Yeah, of course. 39 00:02:24,140 --> 00:02:25,300 All right. 40 00:02:25,300 --> 00:02:34,040 So, that's a great lead-in, because when we get into the case study on here, we did an analysis of the speakers for this conference. 41 00:02:34,040 --> 00:02:37,140 So, would have been great to use their tool for that. 42 00:02:37,220 --> 00:02:41,160 A little bit about myself as it relates to just this talk and this audience. 43 00:02:41,160 --> 00:02:55,280 So, the thing to understand about me is I come from a software development background and good old-fashioned artificial intelligence, expert systems, knowledge bases, AI before the large language models and machine learning as we know it today. 44 00:02:55,520 --> 00:03:16,520 So, what we're gonna look at is a tools and methods approach to demonstrate application of large language models and local analytics, leveraging some of that historical approach from good old-fashioned AI with the modern tooling to enable the investigator or the analyst. 45 00:03:18,380 --> 00:03:29,960 One note is you'll see on my slide, my organization's DesiSim, so it's supposed to be a portmanteau of decision symbols with a nod to that good old-fashioned rule-based expert systems and knowledge management. 46 00:03:30,680 --> 00:03:42,860 And for the investigator today, we're gonna look at how you can do data integration to set up a sandbox for analysis in a general methodology with some examples with tooling. 47 00:03:46,110 --> 00:03:54,430 So, hopefully this is, you know, if all goes well, you'll be able to walk away having achieved knowledge in a couple of key areas here. 48 00:03:55,870 --> 00:03:58,750 As I said, the key takeaway is a method. 49 00:03:58,810 --> 00:04:01,830 There's also a GitHub repository that goes along with this. 50 00:04:01,830 --> 00:04:04,310 There'll be a QR code again on the final slide. 51 00:04:04,410 --> 00:04:07,270 And for interactive demo, you can sort of play along at home. 52 00:04:07,270 --> 00:04:14,070 We've put that GitHub repository publicly that'll reproduce the case study that we'll go into next. 53 00:04:16,070 --> 00:04:21,190 The not-so-secret way to bypass rate limits is to use local caching. 54 00:04:21,190 --> 00:04:41,630 So, the final takeaway, to give it all away at the end, is that you can create the local repositories, index them effectively, and find methodologies that allow you to query external services, collect the data, but not necessarily reveal the specific target. 55 00:04:41,630 --> 00:04:51,230 So, the overall way to do that is to collect more than maybe you need, and then bury the target into the larger collection. 56 00:04:51,230 --> 00:05:00,430 The counterpoint of that is then you have to manage a larger collection of data, and we'll show how that can become manageable when following a certain methodology. 57 00:05:01,510 --> 00:05:11,650 For this, to complement this particular talk, we did do a custom Rust implementation, and that's in those supplementary materials on GitHub. 58 00:05:12,110 --> 00:05:26,410 Two parts to it, one collecting the information via traditional web scraping with a few variations, and then the key of enriching what's been collected to represent the investigative salient points of interest. 59 00:05:26,890 --> 00:05:37,550 And we're going to walk through this case study where we looked at the Recon Village website, analyzed the speakers at this year's conference, and tried to cross-reference that with source materials. 60 00:05:37,570 --> 00:06:01,070 In this case, we took some Wikipedia source material, and then the source material hand-collected by an expert analyst, and sort of walked through workflows to demonstrate how you could scale your own individual efforts as an investigator or analyst to work within the context of previous work or work done by others to create a virtuous cycle of your work product. 61 00:06:08,290 --> 00:06:18,470 So within the key challenges we're addressing here, the rate limits prevent analysis by using a live service. 62 00:06:18,470 --> 00:06:38,790 So if you've decided, okay, you're going to query a web service 2,000 times to get 2,000 different data points, or run an aggregate query, or these other things, you're effectively limiting your ability to conduct that analysis because you're going to be butting heads with the policy and rate use of whatever the service provider happens to be. 63 00:06:38,890 --> 00:06:42,190 So to overcome that, we'll show how to build the local storage. 64 00:06:42,410 --> 00:06:45,610 And then again, each query reveals the investigative focus. 65 00:06:45,790 --> 00:06:52,790 So the final point here is then how do you reuse that, and we can decompose that local storage that you've built into portable containers. 66 00:06:55,880 --> 00:07:05,100 So realizing that we've got a range of an audience here, for those who are knee-deep in OSINT and doing traditional analytics, you'll recognize the CIA triad. 67 00:07:05,100 --> 00:07:24,080 For others who are coming at this from knowledge graphs or just using LLMs or checking out your social profile, there's a great textbook referenced here at the bottom, and we've organized the work in the next couple of slides to look at each one of these classic risks from two points of view. 68 00:07:24,080 --> 00:07:28,900 What's the classic risk that we can mitigate? 69 00:07:29,020 --> 00:07:38,480 And then a second component on what is the LLMs that kind of makes that a little bit more of a challenge or a twist for the modern analyst. 70 00:07:39,640 --> 00:07:50,320 So as we already mentioned, the data providers can see your queries, and LLM prompts aren't just very dissimilar from your classic search techniques. 71 00:07:50,540 --> 00:08:02,460 Regarding the integrity, for those scraping the web, as was mentioned earlier, if you just grab a website, things aren't always so simple where wget or curl will give you reproducible work. 72 00:08:02,460 --> 00:08:16,620 So one of the themes here that we go over is how to take the content that's really designed for a human set of eyeballs and visual cognition processing, where a human can make insights about meaning that a machine can't really participate in. 73 00:08:16,620 --> 00:08:28,360 How do we take something like a website that's visually engaging for the human cognitive system and then put that in a way that the same salient points can be extracted by automation, such as a large language model? 74 00:08:28,860 --> 00:08:31,400 And of course, the availability issue is sort of a freebie. 75 00:08:31,400 --> 00:08:40,080 If we get the local cache and then we have our own tooling, well, I suppose the availability could go down depending on what servers you're using, but at least it's under your own control. 76 00:08:41,720 --> 00:08:48,840 So following this design pattern, this slide's not telling anybody new information here. 77 00:08:48,840 --> 00:09:01,160 This should be concepts that have been well-tread, but if you're doing a Google search and you put your conditionals in for APIs, the implication is, what is search? 78 00:09:01,160 --> 00:09:04,460 Well, psychologically, it's an indicator of interest. 79 00:09:04,460 --> 00:09:13,440 And if you read Larry Page's patent on PageRank for the founding of Google, there's a reason that advertising is so effective in this area. 80 00:09:13,440 --> 00:09:15,940 There's a human psychology on what's going on here. 81 00:09:15,940 --> 00:09:25,640 So it's not a huge leap to say, well, people searching for something are interested in that something, which can have significant consequences to investigative work processes. 82 00:09:26,060 --> 00:09:31,920 So this bulk collection approach, you still hit rate limits. 83 00:09:31,920 --> 00:09:50,740 Nobody's going to get you past the rate limit of an individual query, but systematically over time, allowing multiple collection efforts to grow on each other to build up that local collection, allows one to not have to continue to push up against the service provider to collect that information. 84 00:09:53,200 --> 00:09:55,280 So what's different about LLMs? 85 00:09:55,280 --> 00:09:58,200 How does that matter when you look at confidentiality? 86 00:09:58,200 --> 00:10:02,380 Well, there's a little bit of a usability issue in LLMs. 87 00:10:02,380 --> 00:10:03,840 They can be a bit opaque. 88 00:10:03,980 --> 00:10:10,120 The upside of that is you get a nice app on your phone that you ask questions to, and this magic box gives you an answer. 89 00:10:10,720 --> 00:10:23,180 However, when you're asking that question, just as with a Google search, you're shooting over, again, your psychology, your indicator of what you're interested in, and that can be logged just as any search engine or API would have done so. 90 00:10:24,580 --> 00:10:31,080 Running local LLMs, it can be resource intensive, and there's, you know, nothing in this talk is going to change that. 91 00:10:31,080 --> 00:10:43,820 But when doing systematic work for prompt engineering to make it scientifically repeatable, then you can be more deliberate about choosing a smaller LLM that's purpose-built for a particular kind of analysis. 92 00:10:43,820 --> 00:10:47,320 And that's a little bit different than search. 93 00:10:47,320 --> 00:10:57,520 Typically, you'd be beholden to search algorithms that were a handset or an oligopoly of open source search solutions for your local repository. 94 00:10:57,620 --> 00:11:07,500 Here, there's a richness in a wide range of thousands of models on Hugging Face, and you want to create a methodology that allows you to pick and choose the right one at the right time. 95 00:11:10,120 --> 00:11:11,440 Integrity risk. 96 00:11:12,300 --> 00:11:35,940 This is, again, the first slide in this pattern is old news to investigators, but it's becoming, let's say, more and more challenging as the visual elements come together, which, you know, Recon Village is a wonderful site, very engaging, but you'll see as we try to pull out the information that getting a large language model to participate in your analytics can be a challenge, 97 00:11:35,940 --> 00:11:38,640 particularly when what you've scraped is missing the information. 98 00:11:39,420 --> 00:11:46,020 Running JavaScript dynamically on the page or having content only appear when you scroll to the end is an ongoing issue. 99 00:11:46,880 --> 00:11:56,460 Now, there are solutions out there using browser automation, Playwright and Chromium were used for this particular example, but it's just a problem to be aware of. 100 00:11:56,460 --> 00:11:59,040 We'll get into how we handle that in the case study. 101 00:11:59,600 --> 00:12:03,860 And then the LLM risk around integrity is sort of a variation on this theme. 102 00:12:03,860 --> 00:12:09,520 So, you can see here, who should I target and influence at this year's DEF CON Recon Village, right? 103 00:12:09,520 --> 00:12:16,120 So, Claude refused to play along, says, I can't help you with identifying individuals to target and influence. 104 00:12:16,120 --> 00:12:19,600 So, okay, perhaps I need to vary my terms, right? 105 00:12:19,600 --> 00:12:22,900 But a target of investigation to an investigator is still a target. 106 00:12:22,900 --> 00:12:32,120 So, this can become problematic whenever a community of practice uses a vocabulary that some corporation has suddenly deemed inappropriate. 107 00:12:32,240 --> 00:12:36,720 So, we can compare that with ChatGPT's response to the same question. 108 00:12:37,020 --> 00:12:45,460 It sort of, it fudged it a little bit and just randomly inserted a completely different source than the list of speakers at this conference today. 109 00:12:45,640 --> 00:12:52,880 And also interesting, it didn't really reveal that it made that change in creating the response. 110 00:12:52,880 --> 00:13:06,480 So, even if the external LLMs are meeting someone's needs, they also have to be conscious that it's not just the rate limits, it's somebody else making a qualitative decision about what you're allowed to be interested in. 111 00:13:08,300 --> 00:13:12,960 And the availability risk, again, the first slide in the pattern, sort of old news. 112 00:13:13,300 --> 00:13:21,740 You have the rate limiting, sites go offline, you've got a deadline , you don't want to depend on tools or services that are maybe out of your span of control . 113 00:13:21,920 --> 00:13:24,160 And we've talked about the local caching. 114 00:13:24,920 --> 00:13:34,140 When we start looking at the LLM access, then the solution here, the no-brainer, is LLMs running locally. 115 00:13:34,400 --> 00:13:42,600 There are a number of great toolkits out here, VLLM, LLAMA, CPP, which is behind LLM Studio, which is a terrific front end. 116 00:13:42,780 --> 00:13:44,100 And that list goes on. 117 00:13:44,100 --> 00:13:48,900 I won't try to create a comprehensive list, but this is a very doable approach these days. 118 00:13:50,480 --> 00:14:12,440 So, let's look at the overall methodology on what could be accomplished now by combining a local knowledge graph as a resource, an artifact for indexing the discoveries, the insights of past analyses, as well as the source materials in a way to manage an analytics with an LLM. 119 00:14:12,600 --> 00:14:28,860 So, in the traditional approach, if you were sticking with your external sources, you query them over and over again, process with cloud LLMs, you might just use what's available to you with chat GPT or a subscription to an Anthropic product, and then you move on, 120 00:14:28,860 --> 00:14:32,980 you discard, you can't reuse those same prompts without rerunning them. 121 00:14:32,980 --> 00:14:42,720 You can't do an experiment with 500 runs to test the stochastic response over an LLM without running it 500 times. 122 00:14:42,720 --> 00:14:48,200 So, if you download the local models, then you free yourself from some of these constraints. 123 00:14:49,460 --> 00:15:07,080 So, the overall procedure we're going to review here is collecting the sources, extracting the information, building that knowledge graph, and then leveraging the knowledge graph in combination with how you query your artifacts and source material today in a more systematic way. 124 00:15:07,880 --> 00:15:15,060 The top overview of the large language model query is it's a multi -component query. 125 00:15:15,060 --> 00:15:19,360 It includes a system prompt, which sometimes can be configured by the user. 126 00:15:19,360 --> 00:15:28,920 It contains a user prompt, which is that direct indicator of your interest, and it can have a context window that remains of variable size depending on the model. 127 00:15:28,940 --> 00:15:31,580 So, it becomes a challenge depending on which source. 128 00:15:31,580 --> 00:15:35,520 If you've got a high volume source, it's not all going to fit into that context window. 129 00:15:35,580 --> 00:15:49,600 So, the way to understand the limitation, the mechanics here, is that if you have source material that's a 500 page, 500 pages of evidence or source that you want to run through, it's not so easy to just say run retrieval augmented generation. 130 00:15:49,600 --> 00:15:56,120 You're necessarily doing a data reduction and adding a search that's over the reduced data in those 500 pages. 131 00:15:56,120 --> 00:16:07,140 So, there needs to be a deliberate selectivity about what subset of your investigative artifacts are being introduced into the context window along with the prompts that have been pre-engineered. 132 00:16:07,140 --> 00:16:24,740 And then, oh, by the way, the training is going to introduce bias into the model consistent with how it might do tools or whatever the training provider actually wanted to use to influence the characteristics of the model. 133 00:16:26,710 --> 00:16:30,930 So, let's look just at the collecting sources as a prerequisite here. 134 00:16:31,910 --> 00:16:44,270 Again, just to provide some code to make this repeatable, there's this Rust code base and following tours shift to a Rust code base with what they call their RD client. 135 00:16:44,350 --> 00:16:53,290 We were able to put together a quick proof of concept here to scrape the website, but make sure that you use the RD Rust library and give it a try. 136 00:16:53,290 --> 00:17:03,310 So, methodologically, there's a million ways to skin this particular cat and, you know, you can always wrap your collectors and your web crawlers under tour infrastructure. 137 00:17:03,330 --> 00:17:13,550 But just for the supplementary materials for this talk, we have a nice hello world version of using the underdevelopment tour Rust library for a custom crawler. 138 00:17:13,690 --> 00:17:26,470 And we see that that immediately gave some advantages on medium complexity Recon Village website, where you're gaining more data than you could achieve with a wget or a curl. 139 00:17:26,530 --> 00:17:35,330 And if you look further down that horizon, the vision for an investigator or an analyst is to exert more and more control. 140 00:17:35,370 --> 00:17:40,770 And the LLMs, when working with this, can help write that code. 141 00:17:40,770 --> 00:17:56,370 So, it's sort of a breakthrough methodological approach where you can now vibe code out based off a core stub to tune your crawlers in ways that go beyond your traditional even robust set of flags and curl or wget. 142 00:18:00,730 --> 00:18:06,010 So, when we look at information extraction, this one's a little bit moving away from tradition here. 143 00:18:06,010 --> 00:18:06,550 Why is that? 144 00:18:06,550 --> 00:18:07,110 What is this? 145 00:18:07,110 --> 00:18:08,510 And why does this matter? 146 00:18:09,630 --> 00:18:20,570 So, when you do the analysis of the data, particularly using automations, you don't want those automations to be phoning home and reporting what your interests were. 147 00:18:20,990 --> 00:18:24,990 But we still have to do it and we still have to put those interests somewhere. 148 00:18:25,190 --> 00:18:32,270 So, if we look at a quick introduction to resource description framework, this is a worldwide web consortium standard. 149 00:18:32,590 --> 00:18:40,670 And if you're not fully indoctrinated into the body of work of semantic web and linked data, let's just walk through a simple example. 150 00:18:40,670 --> 00:18:47,050 We could say the argument between tab-separated and comma-separated is finally over in its resource description framework. 151 00:18:47,050 --> 00:18:52,470 Mathematically, it's a way to express graph data and most other data formats can be reduced to it. 152 00:18:52,470 --> 00:19:01,730 So, it gives you a canonical encoding that you can target so that multiple analysts working together can get to the same expressivity with their information. 153 00:19:01,770 --> 00:19:13,930 Further, it can be targeted by LLMs so that they can do the data reduction to the salient points of your source materials and distill that into a common expressivity or syntax. 154 00:19:14,030 --> 00:19:20,390 The other thing that we have here is that it expresses relationships and can be manifest as a graph database. 155 00:19:21,590 --> 00:19:25,530 So, the example that we'll work through is you have HTML pages. 156 00:19:25,530 --> 00:19:29,490 It's a human eyeball designed expression. 157 00:19:29,790 --> 00:19:37,750 It represents itself in a syntax that if you know HTML, you can read to varying degrees, but even then there's internal automations on JavaScript. 158 00:19:37,790 --> 00:19:41,870 And you have to consider your workforce in terms of how you're doing your analyses. 159 00:19:42,010 --> 00:19:48,730 Do you want every investigator to have to know the ins and outs and every syntax and technology of every source material? 160 00:19:48,750 --> 00:19:54,990 Or can you lean on analysts who have that expertise to sum it up for you or an LLM to sum it up? 161 00:19:54,990 --> 00:19:58,850 Can you take those summaries and then organize that into a canonical framework? 162 00:19:58,970 --> 00:20:04,570 So, by doing that, we open up the way you can scale out from multiple analysts. 163 00:20:04,570 --> 00:20:07,210 Another good example might be different linguists. 164 00:20:07,210 --> 00:20:17,750 Somebody who's got expertise in source material in one language has to work together with somebody in another language and they need a common ground, a common language, to aggregate their material. 165 00:20:17,750 --> 00:20:26,330 So, the classic role of ontology, which is built off this RDF framework as part of Semantic Web, is to help normalize these terms. 166 00:20:28,980 --> 00:20:37,880 So, an example here on the right, let's just say we wanted to build a knowledge graph and or a link analysis chart or a Maltego plot. 167 00:20:37,880 --> 00:20:42,140 This is a common work product that exists in a lot of analytical work processes. 168 00:20:42,240 --> 00:20:49,440 And we say, okay, John knows Jane and Jane and John were both speakers at a village and the village was a track at DEFCON. 169 00:20:49,520 --> 00:20:59,320 So, those people may then have some sort of implicit connection or relationship as you're looking through a sociogram for an analytic analysis. 170 00:20:59,500 --> 00:21:03,440 So, these knowledge graphs manifest in lots of different ways. 171 00:21:03,640 --> 00:21:05,920 There's property graphs and triple stores. 172 00:21:05,920 --> 00:21:08,620 We're talking about the triple store dimension. 173 00:21:08,760 --> 00:21:14,200 The common vocabulary that can unify them together is what the role of the ontology is. 174 00:21:14,200 --> 00:21:19,120 So, there's a friend of the friend ontology that's been standardized. 175 00:21:19,360 --> 00:21:23,520 It came out many years ago and was a way to encode social networking data. 176 00:21:24,360 --> 00:21:31,140 So, that represents almost a schema for a database, if you will, and you can align your data to this one schema. 177 00:21:31,140 --> 00:21:37,480 But you can avoid the classic problem in data warehousing of one ring to rule them all, right? 178 00:21:37,480 --> 00:21:43,320 So, the multiple ontologies can represent multiple domains of knowledge and provide interoperability. 179 00:21:43,320 --> 00:21:52,740 The takeaway here is that you can build your sub graph and connect it to a larger graph or slice and dice the different sub graphs and gain that data integration. 180 00:21:56,400 --> 00:22:01,980 And then, once you've built the thing, once you've got your knowledge graph constructed, it's a database, right? 181 00:22:01,980 --> 00:22:04,900 If it's a relational model, you query with SQL. 182 00:22:04,900 --> 00:22:08,640 If it's a link analysis chart, you use GraphQL. 183 00:22:08,660 --> 00:22:12,960 In this particular case, the query language has got the lovely acronym SPARQL. 184 00:22:13,560 --> 00:22:17,780 And that works just as any of those other techniques for querying structured data. 185 00:22:19,280 --> 00:22:24,140 The challenge now is to fully leverage the LLMs into the workflow. 186 00:22:24,580 --> 00:22:32,340 We've got retrieval augmented generation, which combines the pre-calculated weights with the source materials, your documents, the knowledge that you're bringing. 187 00:22:33,040 --> 00:22:40,860 And graph retrieval augmented generation is the way to now say systematically, let me get my knowledge graph to help manage that context window. 188 00:22:40,860 --> 00:22:58,460 So, it provides a way to scale out to large collections of source material under a deliberate management on what you would want the LLM or the analyst to consider, versus the state of the art today on retrieval augmented generation defaults to text search over documents. 189 00:22:58,460 --> 00:23:04,560 And it's usually a fairly naive text search to handle performance issues at the LLM. 190 00:23:05,160 --> 00:23:15,900 And the example queries here are very conducive to the kinds of questions that OSN and investigative analysts would want to look at from a link analysis chart. 191 00:23:15,900 --> 00:23:17,080 Who knows who? 192 00:23:17,280 --> 00:23:21,920 Common speakers, network clusters, graph analytics all fall smoothly into place. 193 00:23:22,920 --> 00:23:32,500 So, let's just put together a baseline that's not nearly on par with a lot of the talks that we've had so far this year in the village. 194 00:23:32,500 --> 00:23:35,900 But just what would a human doing a manual effort look like? 195 00:23:35,900 --> 00:23:41,440 And then how can we contrast the application of this methodology to that particular workflow? 196 00:23:41,580 --> 00:23:47,860 So, if you look today at the Recon Village website, and again, excellent website built for purpose, very modern. 197 00:23:47,860 --> 00:23:49,060 It's very engaging. 198 00:23:49,060 --> 00:23:51,140 It's a static image, doesn't do it justice. 199 00:23:51,140 --> 00:23:53,200 It's got a video playing there in the background. 200 00:23:53,380 --> 00:23:55,400 And then we can see that here are the speakers. 201 00:23:55,400 --> 00:23:56,640 It's right there in a block. 202 00:23:56,640 --> 00:23:57,480 Why is this hard? 203 00:23:57,480 --> 00:24:01,600 It's not hard to figure out who's speaking today at this conference. 204 00:24:01,740 --> 00:24:09,220 Well, if you go down into the schedule, it turns out that, okay, there's a tab for Friday and a tab for Saturday, and they have different parts of the schedule. 205 00:24:09,220 --> 00:24:13,380 And they only load if you manually scroll down and go hit the different tab. 206 00:24:13,380 --> 00:24:22,620 So, it turns out, well, if you're human and you just scrape this speakers list, you may miss some. 207 00:24:23,540 --> 00:24:26,660 So, what you might do next, okay, click on things. 208 00:24:27,080 --> 00:24:31,380 A canonical tool for this body of work would be the Maltego. 209 00:24:31,840 --> 00:24:37,340 It's very accessible, very classic in creating link analysis charts. 210 00:24:37,560 --> 00:24:43,260 You can put together a knowledge graph here using an interactive interface. 211 00:24:43,500 --> 00:24:49,680 And that's exactly what I did as I went through this exercise on my own. 212 00:24:52,020 --> 00:24:52,520 Okay. 213 00:24:52,520 --> 00:25:06,880 So, what if we wanted to add some automation because we wanted to check, I don't know, 100 conferences and look for patterns in a field of science or collaborators across different industries and start to scale this higher. 214 00:25:07,550 --> 00:25:20,020 So, if we look at the Git code repository there, we had to swap out immediately Wget and curl because they completely missed those iframes or JavaScript generated content. 215 00:25:20,060 --> 00:25:28,720 And it was just a great opportunity to look at bringing this new underdevelopment already rust crate into the mix. 216 00:25:30,800 --> 00:25:34,800 So, a caveat here, this doesn't solve all the problems. 217 00:25:34,800 --> 00:25:35,920 It's not a silver bullet. 218 00:25:35,920 --> 00:25:41,360 It helps increase the integrity of the data that you've collected to get it more accurate. 219 00:25:41,520 --> 00:25:47,720 But this is only a short list of still outstanding issues where you might be giving away more than you think. 220 00:25:47,720 --> 00:25:56,540 And of course, the methodology I'm presenting here, the case study does use Chromium, which has its own issues in terms of ways that signatures could still get out. 221 00:25:56,840 --> 00:25:59,260 So, I'm going to leave that a bit out of scope for today's talk. 222 00:25:59,260 --> 00:26:10,840 The tour group is usually here and they have lots of excellent resources on the nuances of maintaining operational security in that particular step of the method. 223 00:26:15,150 --> 00:26:36,030 So, here we see an example of the collect command line interface that was built just bespoke for this particular talk today and what that might look like with a basic collect automation to get you those raw source materials a little closer to the raw source insofar as that's reproducible at all. 224 00:26:36,730 --> 00:26:40,310 Because now you've got to say, well, did they scroll all the way to the bottom of the page? 225 00:26:40,310 --> 00:26:41,070 Did everything load? 226 00:26:41,070 --> 00:26:44,350 Did everything that could potentially have loaded to JavaScript get clicked? 227 00:26:44,610 --> 00:26:48,130 There are degrees of fidelity for that and a number of challenges. 228 00:26:49,650 --> 00:26:52,370 So, now we've collected the source material. 229 00:26:52,370 --> 00:26:55,130 We have it on hand and it has the information in it. 230 00:26:55,330 --> 00:27:04,890 Somewhere buried in the large HTML file and JavaScript automations and their imports of JavaScript libraries that we know the information's there. 231 00:27:04,890 --> 00:27:14,350 So, I use this as a ground truth and I just ask a couple of LLMs, create me a list, just a list of the names of the speakers at the conference. 232 00:27:14,530 --> 00:27:16,210 And how about that? 233 00:27:16,210 --> 00:27:18,530 It beat me with minimal effort. 234 00:27:18,530 --> 00:27:31,570 Two seconds later, it finds four additional speakers that I had completely missed because I hadn't scrolled down out of the speaker list, gone through the schedule and realized there are a few people that are on panels or there are other people that are listed as co-speakers. 235 00:27:31,630 --> 00:27:46,890 And the data reduction on the first part that I had assumed when I looked at it as a human must be complete because it literally was fit to purpose for what I was trying to collect was in fact actually incomplete for my real use to do the aggregate analysis. 236 00:27:47,090 --> 00:27:50,030 So, this is just a highlight that there's value here. 237 00:27:50,150 --> 00:28:05,170 What the nature of that value is and how LLMs will fit into overall workflow for investigative analytics I think is still to be determined, but it's probably at least my assertion here is that they're not to be ignored either. 238 00:28:05,290 --> 00:28:18,850 To not have run this step and to have only done it with manual effort, I would have been immediately wrong before I did any analysis because I would have missed key data points from a single source. 239 00:28:20,950 --> 00:28:26,230 And you can see on my slide why my annual search failed and you can judge for yourself whether it's just me being sloppy. 240 00:28:26,410 --> 00:28:29,570 So, there's... hey, I tried. 241 00:28:31,350 --> 00:28:34,550 So, we talked about link analysis and link charts. 242 00:28:34,550 --> 00:28:38,310 This is a little bit different than the speaker list and how they're related. 243 00:28:38,310 --> 00:28:45,790 We've gone meta here, not meta the company, but meta and then a layer above, right? 244 00:28:45,790 --> 00:28:51,130 So, this is a link analysis chart for the vocabulary that we're using as our canonical target. 245 00:28:51,130 --> 00:29:14,850 So, we can express a relationship between organizations and persons, but by leveraging this standard, this friend of a friend framework, somebody's already attacked this problem and they've realized, well, let's introduce agent as a way to express the role between a person and an organization and get into the dynamics of people can be in multiple roles or people can be in multiple organizations. 246 00:29:15,150 --> 00:29:25,890 And again, if I had done this on my own in a rush, I probably would not have come up with a well-thought-out data structure to express the results of my very trivial analysis. 247 00:29:25,950 --> 00:29:39,090 So, by introducing this technology around ontology into the mix, it allows me to express my results with minimal additional effort that leverage a well -thought-out way of representing my work. 248 00:29:39,090 --> 00:29:51,850 And the other advantage here is when you take that extra step, you gain not just a better representation of the domain knowledge, but you start to create a way that the LLMs can participate in a teaming way over that same data. 249 00:29:51,850 --> 00:30:05,270 Because if you're not expressing your information in a way that they can participate, then you're really limiting the range of analysis that can be done, particularly with automation. 250 00:30:05,650 --> 00:30:17,750 So, it's a a way to shift in a minor way individual effort, but gain a dramatic advantage in the kinds of analysis that can be done. 251 00:30:20,110 --> 00:30:43,670 So, here we see another use of an LLM in the pipeline is before the before times, the before the breakthroughs in LLMs, natural language processing, rule-based expert systems, this sort of thing of generating the ontologies, aligning to them, it represented a more significant body of work than we're now seeing with some of the top tier large language models. 252 00:30:44,050 --> 00:30:50,630 So, merely by prompting a quen 30 billion parameter model and say, hey, you know, you got me that list. 253 00:30:50,630 --> 00:30:51,470 That's great. 254 00:30:51,470 --> 00:30:54,090 You found things that the human missed. 255 00:30:54,090 --> 00:30:55,610 Don't just give it to me in a list . 256 00:30:55,610 --> 00:30:59,070 Now express it in this resource description framework. 257 00:30:59,070 --> 00:31:00,570 Make a link chart for me. 258 00:31:00,570 --> 00:31:06,370 But, oh, by the way, align it to the standard data model for creating link charts amongst people in organizations. 259 00:31:06,630 --> 00:31:12,250 And this was very eye-opening for me as I conducted the experiment because it just did it. 260 00:31:12,250 --> 00:31:22,370 I was expecting to have to go back and forth with this at this phase of the method for weeks, maybe a month, right, to fine-tune it, to customize everything. 261 00:31:22,370 --> 00:31:24,630 And it got the answer immediately. 262 00:31:24,710 --> 00:31:41,110 Because I fed it semantic information in a computer-readable way and I gave it a list that it had generated, it just really moved the needle in the terms of the methodological opportunities that are now available to an investigator. 263 00:31:43,010 --> 00:31:48,230 So, now we can take a look at where we stand along the case study. 264 00:31:48,230 --> 00:32:01,050 So, we had a list of speakers that we can create as an artifact, let's say a derivative, an enriched artifact from the original source material, the HTML from the Recon Village website. 265 00:32:01,290 --> 00:32:05,130 And then we can collect additional materials to bring that to bear. 266 00:32:05,130 --> 00:32:09,350 So, okay, I've listed the speakers. 267 00:32:09,590 --> 00:32:18,050 And then if I also then go back to my same source material and realize, well, I want their affiliation and then maybe I want to know their role in that organization. 268 00:32:18,050 --> 00:32:19,810 That's my speaker dataset. 269 00:32:20,390 --> 00:32:21,930 But I want to know more, right? 270 00:32:21,930 --> 00:32:25,710 So, I want to expand or pivot, if you will, to another source. 271 00:32:25,850 --> 00:32:30,110 Let's collect information on public companies from Wikipedia. 272 00:32:30,130 --> 00:32:33,090 So, that represents another content. 273 00:32:33,370 --> 00:32:38,510 Under normal, traditional analysis, trying to join those two things can be problematic. 274 00:32:38,510 --> 00:32:43,890 I could write a query where I went through and iterated through every speaker and then queried Wikipedia. 275 00:32:43,890 --> 00:32:53,610 If I do that, though, I'm informing Wikipedia of each and every company that I'm interested in, because each query is now conditionalized on the salient points of my investigation. 276 00:32:53,910 --> 00:33:01,230 So, another approach that we can look at is just get me all the tech companies out of Wikipedia and create a larger dataset locally. 277 00:33:01,290 --> 00:33:07,070 Now, I haven't given away precisely which organizations I'm interested in, and I've put it locally. 278 00:33:07,070 --> 00:33:14,790 The other advantage here is Wikipedia is republished via Wikidata, which is the API endpoint where I pulled all of this. 279 00:33:14,790 --> 00:33:17,870 That's already expressed in RDF, so that was a quick win. 280 00:33:18,910 --> 00:33:26,310 Once you've gone to RDF and used OWL, then you can use, at a minimum, the entirety of Wikipedia, which can be useful. 281 00:33:27,110 --> 00:33:37,070 And then I'll show later how we can have this other human analyst doing a totally different exercise and maybe has manually dug up information about private companies that aren't listed on Wikipedia. 282 00:33:37,190 --> 00:33:42,110 How would I then, even if I knew about that data, leverage that? 283 00:33:42,110 --> 00:33:50,970 We can imagine that would typically, under normal conditions, be a body of work where some programmer has to reconcile different data types in different formats. 284 00:33:53,820 --> 00:34:07,800 So, when we went at the Wikipedia analysis and we joined it with a friend of a friend network, the key field I added in is I said, well, how old... when were the companies that speakers are affiliated with founded? 285 00:34:07,800 --> 00:34:15,280 So, that information's not on the Recon Village website, and Wikipedia doesn't know specifically who's speaking here, so we have to do a join. 286 00:34:15,340 --> 00:34:20,820 And the join we do is over that RDF data because that expression makes it natural. 287 00:34:20,820 --> 00:34:22,280 And just some findings. 288 00:34:22,960 --> 00:34:25,580 If you wanted to know about Recon Village, it was exciting. 289 00:34:25,580 --> 00:34:29,420 We have somebody here from Tyson Foods, which is a 90 year old company. 290 00:34:29,480 --> 00:34:37,300 Somebody from Microsoft, Fortinet, OWASP, Palo Alto, and we start to get into younger companies here. 291 00:34:40,860 --> 00:34:48,260 And then what we can do is we bring in, after I've collected those first two sources, I asked a colleague, hey, what more could we do? 292 00:34:48,260 --> 00:35:03,360 And they just took the manual list and went and said, okay, there's some other data set here, and it has the results of that manual effort, but again, instead of being in their own made-up-in-the-moment data format, they align it to the same standards, 293 00:35:03,360 --> 00:35:13,720 and we can expand the list and start really growing this to say, now characterize the nature of the industries and the age of the companies, cross-referenced by who shows up to talk, right? 294 00:35:15,760 --> 00:35:26,600 So before we go into the stack, it doesn't take a lot of imagination to see that this is potentially an easy growth to then go to info.defcon.org and say, well, now compare one village to another. 295 00:35:26,600 --> 00:35:28,820 Tell me about the characteristics over time. 296 00:35:28,820 --> 00:35:34,320 How have technologies and companies changed as a function of speaker titles? 297 00:35:34,440 --> 00:35:41,400 That would, for an individual analyst, have gone beyond what I could achieve by the time I had to put this talk together, right? 298 00:35:41,400 --> 00:36:00,100 But by systematically, along each step of the investigative process, expressing the information along these classic standards, the RDF and these technologies for link data and semantic web have come around well before the shift in large language model capability. 299 00:36:00,100 --> 00:36:23,760 But now when you combine the two, you can create an investigative pipeline that scales much more robustly than we could in the past by leveraging parts of the LLM that can be controlled in a repeatable scientific way by running them locally, creating systematic comp files for every part of the context with the user prompt and the system prompt and bringing that all together. 300 00:36:24,560 --> 00:36:29,620 So this particular stack just shows the key distinction here is what are the user decisions? 301 00:36:29,620 --> 00:36:32,220 What's the investigator now really focusing on? 302 00:36:32,280 --> 00:36:34,240 Well, they can look at the source selection. 303 00:36:34,240 --> 00:36:35,600 They always had that problem. 304 00:36:35,600 --> 00:36:37,740 And then what do they want to learn from the source? 305 00:36:37,740 --> 00:36:38,380 Okay. 306 00:36:38,440 --> 00:36:40,880 The key here is now they have somewhere to put it. 307 00:36:40,880 --> 00:36:42,720 And then the ontology selection. 308 00:36:42,720 --> 00:36:45,760 What are the vocabularies and the data models to align to? 309 00:36:46,640 --> 00:36:59,800 So there's a workflow support, investigative analytics, to start tying together LLMs as a first class analytic participant into these workflows. 310 00:37:00,280 --> 00:37:08,900 Crawlers are an ongoing challenge that's a little bit out of scope here, but it would be hard to set up the problem without explaining it as we did here. 311 00:37:08,900 --> 00:37:11,180 And a triple store is a certain kind of database. 312 00:37:11,180 --> 00:37:20,420 There's a couple of... there's a industry of graph databases and triple store databases and a large collecting of vendors there. 313 00:37:20,780 --> 00:37:39,140 One move we've looked at is creating these data packages in a way that they can take one analyst's work product and easily share it without saying, okay, it's all going to go into a centralized classic database the way you would have in a good old-fashioned Oracle or an IBM DB2 or these other approaches. 314 00:37:39,220 --> 00:37:43,100 So there's a little bit more to that beyond the scope of today's presentation. 315 00:37:43,140 --> 00:37:49,200 But you start to see a lot of opportunity emerge when you ground into this basic methodology. 316 00:37:49,200 --> 00:37:55,200 We happen to use GWEN3 for testing with VLLM and it did require a GPU. 317 00:37:56,580 --> 00:38:05,120 So the final takeaways here that, yeah, you can bypass the LLM rate limits by building the local cache. 318 00:38:05,120 --> 00:38:08,300 That's not some breakthrough revelation. 319 00:38:08,300 --> 00:38:13,260 People in intelligence and investigative analytics have been doing that for a long time. 320 00:38:13,260 --> 00:38:20,120 But there's a way you can do it so that each time that it's done, you can start to build and curate a local library of resources. 321 00:38:20,340 --> 00:38:31,080 And then as you do a new analysis on that library, it can go into the fold in a virtuous cycle and include the LLMs as full participants in those analysis to gain insight over time. 322 00:38:31,080 --> 00:38:32,740 And that's the little bit of the twist. 323 00:38:32,740 --> 00:38:38,720 It matters maybe a little bit more now that the LLMs have capabilities to contribute to that workflow. 324 00:38:39,040 --> 00:38:57,920 And then maintaining OPSEC, the LLM has a lot of classic OPSEC challenges as we covered in the earlier part of the risks with maybe a few twists that I think are easily comprehensible to those versed in the art of investigative analytics on sending their query to a search engine. 325 00:38:58,700 --> 00:39:11,320 I would expect or I could hypothesize that there's still more work to be done in this area to make sure that you can exert control over the LLMs and not have them tell you you're not allowed to target somebody in Recon Village today. 326 00:39:12,440 --> 00:39:17,440 And of course doing it systematically opens up for the scientific repeatability. 327 00:39:17,440 --> 00:39:32,880 This is particularly key when you're dealing with things like inventing sources that don't exist or adding additional information and maybe not even knowing what a temperature value is for an LLM to control its creativity. 328 00:39:33,120 --> 00:39:48,240 So because there are stochastic mathematical models, then the balance for that from a scientific standpoint is to create a repeatable methodology and run it multiple times and use a stochastic approach to evaluation. 329 00:39:48,320 --> 00:39:59,900 And by combining those two things you can start to exert that control over the tooling and have it bend towards the will of the analyst without having to give up all of your interests and psychology to a provider. 330 00:40:01,460 --> 00:40:09,500 So again with the QR code on the screen, it just repeats sort of what's there on the left with the contacts. 331 00:40:09,520 --> 00:40:13,340 And for those who want to play along at home, there's that public GitHub repo. 332 00:40:13,420 --> 00:40:16,760 It's a Rust code base and it basically stubs out. 333 00:40:16,760 --> 00:40:20,160 A lot of it was written in combination with Claude Code. 334 00:40:20,160 --> 00:40:26,380 And oh, by the way, this slide deck I wrote is LaTeX and put in the same code base as the rest of the project. 335 00:40:26,400 --> 00:40:33,600 So Claude was able to read the full slide deck, compare it with the code, cross-reference it, and make suggestions if I've got anything wrong. 336 00:40:33,600 --> 00:40:36,100 So if there's anything wrong, it's Claude's fault. 337 00:40:36,100 --> 00:40:39,760 If there's anything right, then I guess I'll take credit for it. 338 00:40:39,760 --> 00:40:42,500 But that's all I had today. 339 00:40:42,500 --> 00:40:47,480 I think we've got a few minutes for questions. 340 00:40:50,680 --> 00:40:53,000 Okay, I'm hearing two minutes for questions. 341 00:40:55,680 --> 00:40:56,920 I can't hear you. 342 00:40:59,820 --> 00:41:01,600 Okay, thanks for an amazing talk. 343 00:41:02,020 --> 00:41:04,020 I'm sure you have a lot of questions. 344 00:41:04,500 --> 00:41:05,580 That was a good one. 345 00:41:08,160 --> 00:41:10,220 So I'm sure you have a lot of questions.