WEBVTT

00:00.000 --> 00:04.840
Before we start with the talk, I would have a small request to turn your phones on silent.

00:05.300 --> 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.

00:13.780 --> 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.

00:36.840 --> 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.

00:41.700 --> 00:43.020
He's Fenderster.

00:43.080 --> 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.

00:54.080 --> 00:57.120
This next talk will be given by Dr.

00:57.120 --> 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.

01:06.840 --> 01:09.720
Department of Defense, Homeland Security, U.S.

01:09.720 --> 01:10.480
Army, U.S.

01:10.480 --> 01:12.440
Navy, and many other organizations.

01:12.580 --> 01:14.360
So, it's a great honor to have you here.

01:14.360 --> 01:16.180
Please welcome Dr.

01:16.200 --> 01:18.100
Pellegrino on the stage.

01:18.920 --> 01:19.280
All

01:22.860 --> 01:23.580
right .

01:23.640 --> 01:23.980
Thanks.

01:23.980 --> 01:27.420
So, just before I begin, as was mentioned, we couldn't do it without the sponsor.

01:27.420 --> 01:29.480
So, we have Ryan Montgomery from Pentester.

01:29.700 --> 01:31.120
Just wanted to say hello.

01:32.280 --> 01:33.360
I don't think they're on.

01:33.360 --> 01:34.040
Are they on?

01:34.520 --> 01:35.040
Yeah.

01:36.920 --> 01:38.040
So, you've got to be real close.

01:38.040 --> 01:38.720
Okay.

01:39.180 --> 01:39.520
Hey.

01:39.520 --> 01:41.060
So, my name is Ryan Montgomery.

01:41.060 --> 01:42.720
I'm a sponsor in Recon Village.

01:42.720 --> 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,

01:59.260 --> 02:01.720
and check out what our free scan does.

02:01.720 --> 02:04.980
No credit card, no sign up, and any requirements like that.

02:05.000 --> 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.

02:15.380 --> 02:17.300
So, check out pentester.com.

02:17.300 --> 02:18.140
Thanks, guys.

02:18.900 --> 02:19.600
All right.

02:19.600 --> 02:21.280
Thank you, Ryan Montgomery at Pentester.

02:21.280 --> 02:21.960
Thank you.

02:21.960 --> 02:23.040
Yeah, of course.

02:24.140 --> 02:25.300
All right.

02:25.300 --> 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.

02:34.040 --> 02:37.140
So, would have been great to use their tool for that.

02:37.220 --> 02:41.160
A little bit about myself as it relates to just this talk and this audience.

02:41.160 --> 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.

02:55.520 --> 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.

03:18.380 --> 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.

03:30.680 --> 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.

03:46.110 --> 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.

03:55.870 --> 03:58.750
As I said, the key takeaway is a method.

03:58.810 --> 04:01.830
There's also a GitHub repository that goes along with this.

04:01.830 --> 04:04.310
There'll be a QR code again on the final slide.

04:04.410 --> 04:07.270
And for interactive demo, you can sort of play along at home.

04:07.270 --> 04:14.070
We've put that GitHub repository publicly that'll reproduce the case study that we'll go into next.

04:16.070 --> 04:21.190
The not-so-secret way to bypass rate limits is to use local caching.

04:21.190 --> 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.

04:41.630 --> 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.

04:51.230 --> 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.

05:01.510 --> 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.

05:12.110 --> 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.

05:26.890 --> 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.

05:37.570 --> 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.

06:08.290 --> 06:18.470
So within the key challenges we're addressing here, the rate limits prevent analysis by using a live service.

06:18.470 --> 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.

06:38.890 --> 06:42.190
So to overcome that, we'll show how to build the local storage.

06:42.410 --> 06:45.610
And then again, each query reveals the investigative focus.

06:45.790 --> 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.

06:55.880 --> 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.

07:05.100 --> 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.

07:24.080 --> 07:28.900
What's the classic risk that we can mitigate?

07:29.020 --> 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.

07:39.640 --> 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.

07:50.540 --> 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.

08:02.460 --> 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.

08:16.620 --> 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?

08:28.860 --> 08:31.400
And of course, the availability issue is sort of a freebie.

08:31.400 --> 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.

08:41.720 --> 08:48.840
So following this design pattern, this slide's not telling anybody new information here.

08:48.840 --> 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?

09:01.160 --> 09:04.460
Well, psychologically, it's an indicator of interest.

09:04.460 --> 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.

09:13.440 --> 09:15.940
There's a human psychology on what's going on here.

09:15.940 --> 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.

09:26.060 --> 09:31.920
So this bulk collection approach, you still hit rate limits.

09:31.920 --> 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.

09:53.200 --> 09:55.280
So what's different about LLMs?

09:55.280 --> 09:58.200
How does that matter when you look at confidentiality?

09:58.200 --> 10:02.380
Well, there's a little bit of a usability issue in LLMs.

10:02.380 --> 10:03.840
They can be a bit opaque.

10:03.980 --> 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.

10:10.720 --> 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.

10:24.580 --> 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.

10:31.080 --> 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.

10:43.820 --> 10:47.320
And that's a little bit different than search.

10:47.320 --> 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.

10:57.620 --> 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.

11:10.120 --> 11:11.440
Integrity risk.

11:12.300 --> 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,

11:35.940 --> 11:38.640
particularly when what you've scraped is missing the information.

11:39.420 --> 11:46.020
Running JavaScript dynamically on the page or having content only appear when you scroll to the end is an ongoing issue.

11:46.880 --> 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.

11:56.460 --> 11:59.040
We'll get into how we handle that in the case study.

11:59.600 --> 12:03.860
And then the LLM risk around integrity is sort of a variation on this theme.

12:03.860 --> 12:09.520
So, you can see here, who should I target and influence at this year's DEF CON Recon Village, right?

12:09.520 --> 12:16.120
So, Claude refused to play along, says, I can't help you with identifying individuals to target and influence.

12:16.120 --> 12:19.600
So, okay, perhaps I need to vary my terms, right?

12:19.600 --> 12:22.900
But a target of investigation to an investigator is still a target.

12:22.900 --> 12:32.120
So, this can become problematic whenever a community of practice uses a vocabulary that some corporation has suddenly deemed inappropriate.

12:32.240 --> 12:36.720
So, we can compare that with ChatGPT's response to the same question.

12:37.020 --> 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.

12:45.640 --> 12:52.880
And also interesting, it didn't really reveal that it made that change in creating the response.

12:52.880 --> 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.

13:08.300 --> 13:12.960
And the availability risk, again, the first slide in the pattern, sort of old news.

13:13.300 --> 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 .

13:21.920 --> 13:24.160
And we've talked about the local caching.

13:24.920 --> 13:34.140
When we start looking at the LLM access, then the solution here, the no-brainer, is LLMs running locally.

13:34.400 --> 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.

13:42.780 --> 13:44.100
And that list goes on.

13:44.100 --> 13:48.900
I won't try to create a comprehensive list, but this is a very doable approach these days.

13:50.480 --> 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.

14:12.600 --> 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,

14:28.860 --> 14:32.980
you discard, you can't reuse those same prompts without rerunning them.

14:32.980 --> 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.

14:42.720 --> 14:48.200
So, if you download the local models, then you free yourself from some of these constraints.

14:49.460 --> 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.

15:07.880 --> 15:15.060
The top overview of the large language model query is it's a multi -component query.

15:15.060 --> 15:19.360
It includes a system prompt, which sometimes can be configured by the user.

15:19.360 --> 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.

15:28.940 --> 15:31.580
So, it becomes a challenge depending on which source.

15:31.580 --> 15:35.520
If you've got a high volume source, it's not all going to fit into that context window.

15:35.580 --> 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.

15:49.600 --> 15:56.120
You're necessarily doing a data reduction and adding a search that's over the reduced data in those 500 pages.

15:56.120 --> 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.

16:07.140 --> 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.

16:26.710 --> 16:30.930
So, let's look just at the collecting sources as a prerequisite here.

16:31.910 --> 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.

16:44.350 --> 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.

16:53.290 --> 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.

17:03.330 --> 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.

17:13.690 --> 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.

17:26.530 --> 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.

17:35.370 --> 17:40.770
And the LLMs, when working with this, can help write that code.

17:40.770 --> 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.

18:00.730 --> 18:06.010
So, when we look at information extraction, this one's a little bit moving away from tradition here.

18:06.010 --> 18:06.550
Why is that?

18:06.550 --> 18:07.110
What is this?

18:07.110 --> 18:08.510
And why does this matter?

18:09.630 --> 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.

18:20.990 --> 18:24.990
But we still have to do it and we still have to put those interests somewhere.

18:25.190 --> 18:32.270
So, if we look at a quick introduction to resource description framework, this is a worldwide web consortium standard.

18:32.590 --> 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.

18:40.670 --> 18:47.050
We could say the argument between tab-separated and comma-separated is finally over in its resource description framework.

18:47.050 --> 18:52.470
Mathematically, it's a way to express graph data and most other data formats can be reduced to it.

18:52.470 --> 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.

19:01.770 --> 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.

19:14.030 --> 19:20.390
The other thing that we have here is that it expresses relationships and can be manifest as a graph database.

19:21.590 --> 19:25.530
So, the example that we'll work through is you have HTML pages.

19:25.530 --> 19:29.490
It's a human eyeball designed expression.

19:29.790 --> 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.

19:37.790 --> 19:41.870
And you have to consider your workforce in terms of how you're doing your analyses.

19:42.010 --> 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?

19:48.750 --> 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?

19:54.990 --> 19:58.850
Can you take those summaries and then organize that into a canonical framework?

19:58.970 --> 20:04.570
So, by doing that, we open up the way you can scale out from multiple analysts.

20:04.570 --> 20:07.210
Another good example might be different linguists.

20:07.210 --> 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.

20:17.750 --> 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.

20:28.980 --> 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.

20:37.880 --> 20:42.140
This is a common work product that exists in a lot of analytical work processes.

20:42.240 --> 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.

20:49.520 --> 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.

20:59.500 --> 21:03.440
So, these knowledge graphs manifest in lots of different ways.

21:03.640 --> 21:05.920
There's property graphs and triple stores.

21:05.920 --> 21:08.620
We're talking about the triple store dimension.

21:08.760 --> 21:14.200
The common vocabulary that can unify them together is what the role of the ontology is.

21:14.200 --> 21:19.120
So, there's a friend of the friend ontology that's been standardized.

21:19.360 --> 21:23.520
It came out many years ago and was a way to encode social networking data.

21:24.360 --> 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.

21:31.140 --> 21:37.480
But you can avoid the classic problem in data warehousing of one ring to rule them all, right?

21:37.480 --> 21:43.320
So, the multiple ontologies can represent multiple domains of knowledge and provide interoperability.

21:43.320 --> 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.

21:56.400 --> 22:01.980
And then, once you've built the thing, once you've got your knowledge graph constructed, it's a database, right?

22:01.980 --> 22:04.900
If it's a relational model, you query with SQL.

22:04.900 --> 22:08.640
If it's a link analysis chart, you use GraphQL.

22:08.660 --> 22:12.960
In this particular case, the query language has got the lovely acronym SPARQL.

22:13.560 --> 22:17.780
And that works just as any of those other techniques for querying structured data.

22:19.280 --> 22:24.140
The challenge now is to fully leverage the LLMs into the workflow.

22:24.580 --> 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.

22:33.040 --> 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.

22:40.860 --> 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.

22:58.460 --> 23:04.560
And it's usually a fairly naive text search to handle performance issues at the LLM.

23:05.160 --> 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.

23:15.900 --> 23:17.080
Who knows who?

23:17.280 --> 23:21.920
Common speakers, network clusters, graph analytics all fall smoothly into place.

23:22.920 --> 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.

23:32.500 --> 23:35.900
But just what would a human doing a manual effort look like?

23:35.900 --> 23:41.440
And then how can we contrast the application of this methodology to that particular workflow?

23:41.580 --> 23:47.860
So, if you look today at the Recon Village website, and again, excellent website built for purpose, very modern.

23:47.860 --> 23:49.060
It's very engaging.

23:49.060 --> 23:51.140
It's a static image, doesn't do it justice.

23:51.140 --> 23:53.200
It's got a video playing there in the background.

23:53.380 --> 23:55.400
And then we can see that here are the speakers.

23:55.400 --> 23:56.640
It's right there in a block.

23:56.640 --> 23:57.480
Why is this hard?

23:57.480 --> 24:01.600
It's not hard to figure out who's speaking today at this conference.

24:01.740 --> 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.

24:09.220 --> 24:13.380
And they only load if you manually scroll down and go hit the different tab.

24:13.380 --> 24:22.620
So, it turns out, well, if you're human and you just scrape this speakers list, you may miss some.

24:23.540 --> 24:26.660
So, what you might do next, okay, click on things.

24:27.080 --> 24:31.380
A canonical tool for this body of work would be the Maltego.

24:31.840 --> 24:37.340
It's very accessible, very classic in creating link analysis charts.

24:37.560 --> 24:43.260
You can put together a knowledge graph here using an interactive interface.

24:43.500 --> 24:49.680
And that's exactly what I did as I went through this exercise on my own.

24:52.020 --> 24:52.520
Okay.

24:52.520 --> 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.

25:07.550 --> 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.

25:20.060 --> 25:28.720
And it was just a great opportunity to look at bringing this new underdevelopment already rust crate into the mix.

25:30.800 --> 25:34.800
So, a caveat here, this doesn't solve all the problems.

25:34.800 --> 25:35.920
It's not a silver bullet.

25:35.920 --> 25:41.360
It helps increase the integrity of the data that you've collected to get it more accurate.

25:41.520 --> 25:47.720
But this is only a short list of still outstanding issues where you might be giving away more than you think.

25:47.720 --> 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.

25:56.840 --> 25:59.260
So, I'm going to leave that a bit out of scope for today's talk.

25:59.260 --> 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.

26:15.150 --> 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.

26:36.730 --> 26:40.310
Because now you've got to say, well, did they scroll all the way to the bottom of the page?

26:40.310 --> 26:41.070
Did everything load?

26:41.070 --> 26:44.350
Did everything that could potentially have loaded to JavaScript get clicked?

26:44.610 --> 26:48.130
There are degrees of fidelity for that and a number of challenges.

26:49.650 --> 26:52.370
So, now we've collected the source material.

26:52.370 --> 26:55.130
We have it on hand and it has the information in it.

26:55.330 --> 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.

27:04.890 --> 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.

27:14.530 --> 27:16.210
And how about that?

27:16.210 --> 27:18.530
It beat me with minimal effort.

27:18.530 --> 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.

27:31.630 --> 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.

27:47.090 --> 27:50.030
So, this is just a highlight that there's value here.

27:50.150 --> 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.

28:05.290 --> 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.

28:20.950 --> 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.

28:26.410 --> 28:29.570
So, there's... hey, I tried.

28:31.350 --> 28:34.550
So, we talked about link analysis and link charts.

28:34.550 --> 28:38.310
This is a little bit different than the speaker list and how they're related.

28:38.310 --> 28:45.790
We've gone meta here, not meta the company, but meta and then a layer above, right?

28:45.790 --> 28:51.130
So, this is a link analysis chart for the vocabulary that we're using as our canonical target.

28:51.130 --> 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.

29:15.150 --> 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.

29:25.950 --> 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.

29:39.090 --> 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.

29:51.850 --> 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.

30:05.650 --> 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.

30:20.110 --> 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.

30:44.050 --> 30:50.630
So, merely by prompting a quen 30 billion parameter model and say, hey, you know, you got me that list.

30:50.630 --> 30:51.470
That's great.

30:51.470 --> 30:54.090
You found things that the human missed.

30:54.090 --> 30:55.610
Don't just give it to me in a list .

30:55.610 --> 30:59.070
Now express it in this resource description framework.

30:59.070 --> 31:00.570
Make a link chart for me.

31:00.570 --> 31:06.370
But, oh, by the way, align it to the standard data model for creating link charts amongst people in organizations.

31:06.630 --> 31:12.250
And this was very eye-opening for me as I conducted the experiment because it just did it.

31:12.250 --> 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.

31:22.370 --> 31:24.630
And it got the answer immediately.

31:24.710 --> 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.

31:43.010 --> 31:48.230
So, now we can take a look at where we stand along the case study.

31:48.230 --> 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.

32:01.290 --> 32:05.130
And then we can collect additional materials to bring that to bear.

32:05.130 --> 32:09.350
So, okay, I've listed the speakers.

32:09.590 --> 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.

32:18.050 --> 32:19.810
That's my speaker dataset.

32:20.390 --> 32:21.930
But I want to know more, right?

32:21.930 --> 32:25.710
So, I want to expand or pivot, if you will, to another source.

32:25.850 --> 32:30.110
Let's collect information on public companies from Wikipedia.

32:30.130 --> 32:33.090
So, that represents another content.

32:33.370 --> 32:38.510
Under normal, traditional analysis, trying to join those two things can be problematic.

32:38.510 --> 32:43.890
I could write a query where I went through and iterated through every speaker and then queried Wikipedia.

32:43.890 --> 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.

32:53.910 --> 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.

33:01.290 --> 33:07.070
Now, I haven't given away precisely which organizations I'm interested in, and I've put it locally.

33:07.070 --> 33:14.790
The other advantage here is Wikipedia is republished via Wikidata, which is the API endpoint where I pulled all of this.

33:14.790 --> 33:17.870
That's already expressed in RDF, so that was a quick win.

33:18.910 --> 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.

33:27.110 --> 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.

33:37.190 --> 33:42.110
How would I then, even if I knew about that data, leverage that?

33:42.110 --> 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.

33:53.820 --> 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?

34:07.800 --> 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.

34:15.340 --> 34:20.820
And the join we do is over that RDF data because that expression makes it natural.

34:20.820 --> 34:22.280
And just some findings.

34:22.960 --> 34:25.580
If you wanted to know about Recon Village, it was exciting.

34:25.580 --> 34:29.420
We have somebody here from Tyson Foods, which is a 90 year old company.

34:29.480 --> 34:37.300
Somebody from Microsoft, Fortinet, OWASP, Palo Alto, and we start to get into younger companies here.

34:40.860 --> 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?

34:48.260 --> 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,

35:03.360 --> 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?

35:15.760 --> 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.

35:26.600 --> 35:28.820
Tell me about the characteristics over time.

35:28.820 --> 35:34.320
How have technologies and companies changed as a function of speaker titles?

35:34.440 --> 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?

35:41.400 --> 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.

36:00.100 --> 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.

36:24.560 --> 36:29.620
So this particular stack just shows the key distinction here is what are the user decisions?

36:29.620 --> 36:32.220
What's the investigator now really focusing on?

36:32.280 --> 36:34.240
Well, they can look at the source selection.

36:34.240 --> 36:35.600
They always had that problem.

36:35.600 --> 36:37.740
And then what do they want to learn from the source?

36:37.740 --> 36:38.380
Okay.

36:38.440 --> 36:40.880
The key here is now they have somewhere to put it.

36:40.880 --> 36:42.720
And then the ontology selection.

36:42.720 --> 36:45.760
What are the vocabularies and the data models to align to?

36:46.640 --> 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.

37:00.280 --> 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.

37:08.900 --> 37:11.180
And a triple store is a certain kind of database.

37:11.180 --> 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.

37:20.780 --> 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.

37:39.220 --> 37:43.100
So there's a little bit more to that beyond the scope of today's presentation.

37:43.140 --> 37:49.200
But you start to see a lot of opportunity emerge when you ground into this basic methodology.

37:49.200 --> 37:55.200
We happen to use GWEN3 for testing with VLLM and it did require a GPU.

37:56.580 --> 38:05.120
So the final takeaways here that, yeah, you can bypass the LLM rate limits by building the local cache.

38:05.120 --> 38:08.300
That's not some breakthrough revelation.

38:08.300 --> 38:13.260
People in intelligence and investigative analytics have been doing that for a long time.

38:13.260 --> 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.

38:20.340 --> 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.

38:31.080 --> 38:32.740
And that's the little bit of the twist.

38:32.740 --> 38:38.720
It matters maybe a little bit more now that the LLMs have capabilities to contribute to that workflow.

38:39.040 --> 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.

38:58.700 --> 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.

39:12.440 --> 39:17.440
And of course doing it systematically opens up for the scientific repeatability.

39:17.440 --> 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.

39:33.120 --> 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.

39:48.320 --> 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.

40:01.460 --> 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.

40:09.520 --> 40:13.340
And for those who want to play along at home, there's that public GitHub repo.

40:13.420 --> 40:16.760
It's a Rust code base and it basically stubs out.

40:16.760 --> 40:20.160
A lot of it was written in combination with Claude Code.

40:20.160 --> 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.

40:26.400 --> 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.

40:33.600 --> 40:36.100
So if there's anything wrong, it's Claude's fault.

40:36.100 --> 40:39.760
If there's anything right, then I guess I'll take credit for it.

40:39.760 --> 40:42.500
But that's all I had today.

40:42.500 --> 40:47.480
I think we've got a few minutes for questions.

40:50.680 --> 40:53.000
Okay, I'm hearing two minutes for questions.

40:55.680 --> 40:56.920
I can't hear you.

40:59.820 --> 41:01.600
Okay, thanks for an amazing talk.

41:02.020 --> 41:04.020
I'm sure you have a lot of questions.

41:04.500 --> 41:05.580
That was a good one.

41:08.160 --> 41:10.220
So I'm sure you have a lot of questions.

