start	end	text
0	2900	Good morning, everyone. Good morning.
4800	7740	Hopefully, everyone got some sleep. Ducks.
12160	16400	Before we begin, we got, what, two minutes? Oh, yeah, the clock... what am I doing?
16400	21500	The clock is right here. Who's here if this is your first DEF CON?
22480	26660	Wow. Okay. So, if this is your first DEF CON, welcome.
28100	35100	Um, you know, sitting in DEX, we haven't had a nice room like this for, you know, a while.
35100	40320	But 2019 was the last year. And every time I look at a room of this size, it feels like
40840	48200	DEF CON of the ye good old days when talks weren't like 20, like 2,000 people. And literally, like,
48200	51060	back in the ye good old days, like in the early 2000s, I mean, man,
51060	54500	talk room would be like this small and congregate.
55740	63380	You know, one of the things I tell people is, yeah, just like 30, 40,000 people now at DEF CON,
63380	69980	but the premise is the same. For anyone who, especially if this is your first time coming
69980	79070	to the conference, learn as much as you can. Make good use of your time. Talk to other people.
79890	86050	That's where the real learning happens. Hallway CON is always, always valuable. You'll learn
87290	94350	probably more than talking to the person next to you or sitting at the table than going to a lot
94350	100270	of talks. Oh, sorry, man. I didn't want to, I didn't want to, I didn't mean to say, I forgot.
102290	110470	But no, the, you know, it is the size of the talk rooms makes a big deal.
111510	116470	You know, it feels, this definitely feels like a more intimate setting than what it,
116470	121830	you know, than what it is now. I mean, I think my last DEF CON talk was like, holy, you know,
121830	127250	there's like, I didn't know what was, it was like, it went to 800 people and then it went to like
127250	136730	1,500 and like, never had the honor of talking to a group of this size. So enjoy your time here
136730	145130	at DEF CON. And we are now at the top of the hour. Good morning. It's 10 o'clock
145970	154330	from beautiful Las Vegas, Nevada. So our first of four talks of the day
156770	164930	are presented by that Packet Hacking Village. And we have the honor, and it seems like this
164930	171410	is like an annual, an annual get together and having Mike on stage to give a talk never,
171410	175510	ever disappoints. And you're going to learn a lot. You're going to love this talk.
176470	183410	It is my pleasure to introduce to you all someone that we consider a friend. Mike Rago, everyone.
191890	196710	All right. Well, thanks so much for having me again. Shouts out to the Packet Hacking Village
196710	203950	and Ming for having me back again. Really enjoy doing these particular talks at DEF CON.
203950	209950	I've been coming here for, I don't know how many years, I think since year 2000 and try to never
209950	214690	miss a con because there's just so much information and it's a great crowd and lots of friends.
215710	221910	And in this particular talk, we're going to talk about using AI for doing computer vision
222750	228010	to leverage all your data sets you may have across your OSINT data collections and performing
228010	234230	efficient analysis around that. This is a culmination of a lot of research that myself
234230	240270	and a very good friend of mine, Chet Hosmer, have collaborated on for many years and actually have
240270	246090	done talks in the past here in the Packet Hacking Village on OSINT data collection,
246090	251950	data analysis, reporting, pruning down that data, really making it very actionable rather than
251950	255930	really dealing with that wasteland of data and trying to prune that down. So we'll talk a lot
255930	260910	about some of the previous strategies and just kind of highlight those for you again and focus
260910	266150	on really what we're going to talk about today, which is looking at those images in video and
266150	270910	trying to do a variety of cool and interesting things in them, but in a very automated and
270910	275190	efficient manner and with, in my opinion, a lot better accuracy. But, you know, I'll let you guys
275190	284060	judge that for yourselves. So Ming knows I don't really like to talk about myself too much. So
284060	288940	instead, I'll tell you a funny story about how I got into cybersecurity. And Ming has heard this
288940	297020	story before. So it's circa 1994. I'm working at the NASDAQ stock market as a Unix system
297020	302100	administrator. And it was long before there were vulnerability scanners out there like Nessus and
302100	308460	other things. So I saw this article on Information Week by a gentleman by the name of Dan Farmer,
308460	313900	who presented the first couple DEF CONs. And he released a tool called, of all names, called
313900	318480	SATAN, which was an acronym for one of the first vulnerability scanners, and in this case, for old
318480	324280	Unix platforms. So I thought, hey, I was always one of those types of people, probably much like
324280	329080	yourselves. I'm going to download it and run it wide open on the trading floor in the middle of
329080	334540	the day and see what kind of vulnerabilities I can find. So obviously not a very bright idea,
334540	338460	because they accidentally knocked over a couple servers taking down the trading floor in the
338460	343960	middle of the day. But it was a good test of the failover for NASDAQ. Failed over without
343960	351280	missing a beat. But I was called into the CISO's office and I fully expected to be fired.
351280	355520	And he said, Mike, I'm here to offer you one of two options. You're either fired or you can take
355640	361020	a promotion. So I certainly didn't want to be fired. So I took the promotion and asked questions
361020	365360	later. But essentially, he said, listen, you clearly demonstrated you could take down the
365360	371560	network, albeit by accident. But, you know, now it's going to be your job to protect it.
371560	376500	So I had to build out the first security team there and really start protecting the network.
376500	383040	So one other thing I'd just highlight on this slide, you know, Chet and I collaborate on a lot
383040	386980	of research. If you go back and look at the YouTube videos from the Packet Hacking Village
386980	392680	and the Wall of Sheep, you'll see a plethora of talks that we've done, many of them around OSINT.
392680	397360	So certain callouts I make out in these slides, if you're looking to go back in time and look
397360	401980	in detail at some of those other presentations we've done around OSINT, they are out there and
401980	408780	on YouTube and Twitch and other places. One last thing, one of the things I've taken on
408780	415700	recently is also mentoring folks that are looking to get into cybersecurity. They may be in IT today,
415700	420600	they may have graduated college or something else. And we know that there's this big gap between,
420600	425380	you know, folks that want to get into the cybersecurity industry and a plethora of jobs
425380	430060	out there, millions of jobs around the globe. But they all ask for experience, which is kind
430060	435980	of odd considering it's an entry-level job. So what we do is we work with folks and mentor them,
435980	440940	give them research projects to work on, they get that hands-on experience to help build their resume
440940	448640	and hopefully land one of those jobs. All right, into the presentation. So we know
448640	455440	with OSINT data collection, whether you're investigating a person of interest, a top of
455440	461020	interest, or whatever it may be, you typically end up with a wasteland of data. Various types
461020	468200	of social media, information from various sites, RSS feeds, all kinds of different things. And then
468200	474140	you're left with the job of sifting through all that data to find the artifacts that are actually
474140	479320	the evidence that you're looking for. It's super time-consuming, the majority of the data is
479320	484140	worthless that you, you know, collect. And so what we've talked about last year, the year before,
484140	489740	in a variety of talks, is collecting a lot of data and using efficient methods for pruning that
489740	496220	down. In one particular case, we talked about leveraging Power BI to sort that data, transform
496220	502000	it, find the actual artifacts you're looking for, and or create dashboards. And that presentation,
502000	507360	I think, is last year that we did that here in the Packet Hacking Village. What we're going to
507360	513660	talk about today is beyond all of that collection, I've got a bunch of images, I've got a bunch of
513660	518600	videos. It's time-consuming to go through those things and find the artifacts you're looking for.
518600	524480	You may be looking for a particular object, like a gun or something else. In the video, you may want
524480	530200	to pull out certain audio, but if you've got a thousand video files and they're all more than a
530200	535640	gig in size, it's super time-consuming to try to watch all those videos and try to find the artifacts
535640	539800	you're looking for, and most of the time you're going to miss them. So we're going to talk about
539800	546720	using AI computer vision, and we'll talk about AWS as well as Azure. We'll talk a little bit
546720	552240	about ChatGBT, but really kind of give you some thought-provoking ideas and kind of a starting
552240	556620	strategy in terms of how you can get started with all of this, if it's something that's somewhat new
556620	564340	to you. One other thing I find is, I find it kind of humorous that people refer to it as OSINT,
564340	570800	because Chet and I agree that we kind of refer to it more as OSINFO. You're collecting a ton of
570800	577180	information. The intelligence is one small piece of it, right? So a lot of what people are doing
577180	583840	is collecting a wasteland of data, trying to convert it into intelligence or OSINT-type data.
584520	589080	So at the end of the day, this really all just begs for some type of automation,
589080	594800	and in testing AI and a lot of the research we've done, computer vision across these various
594800	599240	platforms, and even what you may be able to do to an extent within Python and other things,
599240	608650	can give you the ability to do this kind of thing. In terms of OCR, or optical character recognition,
608650	614270	there's a lot of cool artifacts that you can leverage and identify across images and video.
614270	619430	They may be things such as signs or license plates. There may be things in the foreground,
619430	624850	such as a store sign, or in the background, such as a military vehicle with a specific serial
624850	630090	number on it that maybe you can track in various locations across all your images. We'll talk about
630230	638670	a lot of those scenarios. Also, you can do object recognition or identification as well. So what
638670	646390	type of object or objects are you actually looking for? Are you monitoring events at sports games and
646390	651870	trying to identify amongst the crowd, either inside the stadium or outside, if maybe somebody
651870	657150	has some form of a weapon? Object identification can really help you with that, and AI is super
657150	664490	efficient at identifying those things across your data. Also, when we talk about video,
664950	670330	there's also speech recognition. So whether they're conversations in the foreground or
670330	677230	the background, being able to extract that and have the AI really map out all those conversations
677230	682950	for you. Maybe there's specific words you're actually looking for amongst the speech. All of
682950	689690	that speech recognition will also allow you to identify that too. And then what we really want
689690	695870	to do is, it's great that we've automated and found all of this stuff, but then how do we report on it?
695870	700790	How can we maybe consume it in an automated way into some kind of a dashboard? Maybe I want to
700790	705890	plot these things on a map. We'll talk about some of those things we covered last year and how you
705890	714050	can do that and some new ideas this year too. So getting started with this, we'll first talk a
714050	718610	little bit about Azure. I'll kind of pivot to AWS and we'll kind of go back and forth as we go
718610	725990	through the slides across these different topics. Within Azure, you can go to the main page, you can
725990	730570	upload images and play around with the optical character recognition as well as the object
730570	735790	detection. And there's also video analysis and a whole variety of other things that you can do.
735810	740290	There's also spatial analysis. So if you have a video and you're looking at people that maybe
740290	745430	come into a room and then leave a room or where they are spatially, you know, scattered throughout
745870	750350	a large room or something else that you are monitoring or that you want to look at,
750350	754890	there's a whole variety of different components that are available to you.
755070	758710	And if you start to dive into it, we'll talk about how you can train
758710	762490	as well based on large data sets, which we'll get into too.
766230	771590	So in a very simple way, you know, you can upload these images and perform optical character
771590	777150	recognition on it. You can upload an image and for a suite of images and say, like,
777150	782330	what have you found in this image? And let the AI computer vision identify that for you.
785330	793330	Anybody a fan of the cult movie, They Live? It was actually, you know, a part of DEF CON a
793330	797030	couple of years ago, right, where it was sort of the theme for the conference. So I was super
797030	802610	stoked when I saw that. Throughout the movie, there's all kinds of signs, right? And, you know,
802610	806970	the guys put on the sunglasses and they can actually see these signs that are
806970	812290	otherwise somewhat hidden to the casual viewer. But this is a good example that if you're
812290	817970	collecting images and or video, there's so much stuff going on. Like if you've got a cityscape
817970	822790	or something else that you're looking at, like, how do I even look at this? And am I going to
822790	826670	miss something like a license plate in the background or something else that's really
826670	830970	important? Maybe a document that somebody's holding and on the back of it, you can see
830970	836870	what it's about. So, you know, the optical character recognition obviously can create
836870	843030	bounding boxes or you can look at the entire image and have it automatically identify all of
843030	847610	this for you. As you can see here, there's a plethora of things that are identified in the image
847610	852670	in a very quick and efficient manner in a matter of a couple seconds. If you have, you know,
852670	858170	100,000 images, yeah, you can use the back-end training and actually go through that and we'll
858170	867280	talk about some of that too. Common questions I get, you know, what about international languages?
867280	872440	Those are supported as well. So it has the ability to identify that. If you're gathering a lot of
872440	879040	OSINT data through social means, in this case, this was a TikTok video. And not only did it,
879040	885000	you know, grab and identify all the characters of whether it be Ukrainian, Russian, or something
885000	890760	else, but furthermore, it captured something I didn't even notice in the image, which is at the
890760	896420	bottom in very fine print was their handle for actually for TikTok. So those kinds of things
896420	902000	will uncover artifacts that you probably missed trying to go through image by image yourself,
902000	906720	you know, using a, you know, human type of analysis to really do that vision and identify
906720	912160	those things. I will admit the majority of the time, it always finds something in almost every
912160	920870	image that I've missed just simply by trying to look at it myself. Geolocation information
920870	926190	becomes increasingly difficult. If you attended our talk a few years ago, we were talking about
926190	934830	how to collect data via Twitter and other means and actually do geolocation on it in a very unique
934830	942650	way. And as those things become locked down more and more and more, it becomes increasingly
942650	949210	difficult. But optical character recognition, object recognition, and all of these things
949210	955850	can actually help paint a new picture around the location information. In this particular case,
955850	962090	we had been and continue to do a lot of research around the Russian-Ukrainian war. In this
962090	967170	particular case, I was actually collecting images looking for military vehicles. And you can see
967170	972230	that there's one here in the background. What I didn't notice was the fact that there was a teeny
972230	978390	little sign in the foreground on the station facility there that actually tells me a little
978390	984110	bit more about the location and where this is. So again, if you're having issues with trying to
984110	989910	identify where was this picture taken or where is this activity going on, you know, again, the optical
989910	994770	character recognition of the bounding boxes might pick up on something really tiny in the background
994770	999970	or foreground that you didn't even notice. We'll talk later about how we took this data, automated
999970	1005470	it, and plotted it on a map, and how we used it for predictive analysis related to the war. And we
1005470	1014160	had more than a 95% accuracy with this data. In terms of MIST, I was wondering what it was. It's
1014160	1020000	actually a shipping company in the Ukraine. But there were other signs and things in this image
1020000	1025100	and others that exposed or enumerated in more detail, again, where these locations were of
1025100	1029780	these military vehicles. And hold that thought because we'll come back to that in just a moment.
1033730	1038530	Also, you know, during the beginning of the war, there were a lot of people trying to,
1038530	1045050	you know, leave the country. And there was, you know, a lot of interesting pictures with mobs of
1045050	1051930	people. And again, in trying to identify where some of this activity was going, the optical
1051930	1056590	character recognition was great at picking up, again, location information based on signs at the
1056590	1062370	train station and other things. Again, this became super useful when trying to plot this out on a map.
1066480	1073580	In addition, license plates. Again, whether it's serial numbers on a tank,
1073580	1079260	letters that are on military vehicles, license plates, and other things, these can be really
1079260	1086000	useful if you identify this vehicle in more than one location and also plotting that in a map over
1086240	1091840	a timeline. So again, just another example of, like, a lot of information you may have scattered
1091840	1096600	across, you know, thousands, if not hundreds of thousands of images or video that you have,
1096600	1099060	and which is really efficient at identifying this.
1102480	1109900	One of the things I also did was, and some of this was, we started to talk about it a little
1109900	1114740	bit in the last few talks over the last few years here at DEF CON, was around tracking all these
1114740	1118700	military vehicles and trying to predict where they were going to, where Russia was going to
1118700	1125680	attack next. And in doing so, I, you know, initially noticed that a lot of these military vehicles had
1125680	1130660	all these serial numbers and things on the sides of them. And, you know, my thought was thinking,
1130660	1135500	was that, you know, I don't exactly know where all of these images are coming from unless the
1135500	1140700	person, you know, that posted it or tweeted it or something else says spotted this vehicle at XYZ
1140700	1147500	location in Kiev or wherever it may be. But I was kind of wondering, you know, from these numbers,
1147500	1153560	if I could start to kind of determine, you know, how many, how often across my images, maybe this
1153560	1159360	particular vehicle showed up. So if I did have limited vehicle information, such as, you know,
1159360	1165380	the person posted from Kiev or something like that, and then I saw this vehicle over on the
1165380	1170840	other side of the country, which we actually did, we were able to plot that stuff on a map.
1170960	1175940	So pulling out these serial numbers was actually quite useful too. And there's sometimes various
1175940	1180320	codes, as you can see here too, that are representative of things too. So we're talking
1180320	1185620	more than just numbers and letters and some special characters. There may be weird codes,
1185620	1188280	international languages, things like that, that is very good at bringing out.
1191020	1195680	Interestingly enough, this was another picture I had, and you can see the same vehicle number
1195680	1201260	popped up. Now I was kind of wondering if it was maybe a category of vehicles or this number
1201260	1206740	represented, you know, a military team or things like that. But as we looked through the data more
1206740	1211020	and more, it was very unique to the truck. We looked at the characteristics of the truck and
1211020	1215220	some markings and scratches and things like that in the truck, and it was absolutely the same
1215220	1220960	vehicle. So again, it became super helpful in terms of the geolocation or really just plotting
1220960	1230510	these things on a map. Taking this data and making it useful, you know, there's a lot of
1230510	1235290	different tools out there. You know, people use Grafana, Splunk, a whole bunch of different things.
1235290	1241270	I personally like to use Power BI because I like how it can take the data and do transforms on it
1241270	1245210	and look at it in a lot of different ways I didn't think about looking at the data.
1245850	1252050	In addition, it allows a lot of click and point and create various widgets in your dashboard.
1252050	1257450	So now you can use it to kind of sort on the data, maybe by timeline, maybe by object type,
1257450	1263090	maybe by a keyword or, you know, that was identified via optical character recognition
1263090	1268890	and a whole variety of different things. This also became very helpful in tying together posts
1268890	1274910	and also the trustworthiness of those posts. So one of the things that is always a challenge is
1274910	1280310	is, you know, all of this content legitimate or is it meant to throw people off?
1281610	1290130	And so in doing so, we were able to sort on the top 5, 10, 25 posters and in cross-validating,
1290130	1294430	like the data that they had posted, said, you know, these are the most trustworthy people
1294430	1298790	that are posting a plethora of things around military vehicles or other things.
1298790	1303810	So sorting that became very useful, very practical, and was great because in a point
1303810	1308470	click, I could say, okay, I got it sorted in the way that I wanted. Now click, create a PDF
1308470	1313770	report, boom, I've got my triage report ready to use and, you know, put into action.
1315690	1319090	There's a variety of different widgets across all these different, you know,
1319090	1324970	tools and many others. In this particular case, there's all kinds of cool plugins.
1324970	1330510	So there's word clouds and things like this. What was really interesting about this one was
1330510	1337070	I was not looking at the Oblast region of Kiev at all. I was looking at other regions in Kiev
1337070	1342010	where people were posting from and things like that. And for whatever reason, I just overlooked
1342010	1348930	this part of the city. But you can see here, it's one of the top five largest words, meaning that
1348930	1354450	it's the, you know, in the top five quantity of posts where people were talking about Oblast.
1354450	1360650	What I uncovered was, because I was looking at tanks and military vehicles, it didn't even pop
1360650	1367050	up for me. This was being posted because they were destroying a lot of churches around the Kiev area.
1367050	1372450	So I started to take a look at the churches. That became one of the most interesting and key
1372450	1377770	ingredients to the attacks and what was going on. The Russians were really destroying the majority
1377770	1383510	of the churches across the Ukraine. And based on the timeline, we could see where they were
1383510	1389770	based on when the church was destroyed. So this really uncovered that artifact and it became
1389770	1395390	the most precision predictive component of the data we looked at, even more than the military
1395390	1399790	vehicles. So again, leveraging transforms and these other things that are built into these
1399790	1405110	reporting tools can help you look at the data from a completely different angle you had never
1405110	1414260	considered. As I mentioned, these things may show up in multiple pictures. So if you're not
1414260	1419300	exactly sure what you're looking for, but you kind of have a sense for what you're looking for,
1419300	1423600	again, this is where the computer vision is going to help you refine that and determine,
1423600	1428440	now I know what I am looking for. For me, I went into it looking for military vehicles,
1428440	1435760	it came out of it looking for destroyed churches. And so these, you know, things of interest,
1435760	1440460	person of interest, and more may be identified at multiple locations. And again, this can be
1440460	1449840	great for all kinds of location analysis. Again, a lot of this stuff I overlooked by
1449840	1454540	looking at it manually. And in addition, there may be a lot of things in the foreground and
1454540	1459620	the background that may be very informative. So bottom line, in my humble opinion, my two cents,
1459620	1463240	is if you're not using optical character recognition, you're probably missing most
1463240	1479270	of the important data points. So we talked about Azure and we'll get into AWS here in a moment.
1479270	1484450	But in addition, you can use ChatGBT for doing some optical character recognition.
1485010	1489950	There are, of course, APIs available, just like there are for AWS and for Azure.
1490770	1495910	I've had kind of, you know, limited luck with identifying things within this. You can see
1495910	1501150	I uploaded an image, but it doesn't really show me the image that I uploaded. It did find that
1501150	1505190	number on the side of the military vehicle, so it was quite good at doing the optical character
1505190	1510930	recognition. But again, I didn't really dive into it very deeply, but if you're looking for,
1510930	1515350	you know, if you prefer ChatGBT, you can do some of this stuff with ChatGBT as well.
1517130	1522470	All right. So object recognition. So up until now, we've talked about optical character recognition
1522470	1527070	and identifying license plates and serial numbers and military numbers for vehicles.
1527170	1531790	Now we're looking for objects. It may be a gun, it may be a military vehicle, it may be a person,
1531790	1539490	maybe a car. And, you know, again, fundamentally with the, you know, free interface that's provided,
1539490	1544630	in this case with Azure, you can upload, you know, an image and have it identify for you
1544630	1550150	things that are in the image. It may be very transparent to you, and that's fine, right?
1550210	1554570	But again, we want to see what we've missed. And furthermore, we probably have a massive data set,
1554570	1559550	so we're not going to necessarily upload these images one at a time, but the automation will
1559550	1564810	allow you to either have a storage with a plethora of images that you can automate that will look at it
1564810	1569550	in much the same manner. We'll also talk about how you can train these classifiers, too.
1570950	1577510	So in this particular case, we identified, you know, two individuals as well as a land vehicle
1577510	1582790	or a military vehicle, but not a tank. And I was trying to do some training on tanks and
1583310	1589130	really kind of test that out. It also will give you kind of a threshold value and accuracy
1589730	1594330	adjustments for the bounding boxes, how you want to carve up the image and have the computer vision
1594330	1598710	look at it. So there's a lot of different options that you can leverage here. And if it's something
1598710	1604490	you want to play around with, I certainly encourage you to go out to, you know, the Azure site and in
1604490	1608410	what I'll talk about in a minute with AWS, where you can test some of these things out and get more
1608410	1616290	familiar with them if you want to, you know, play around in your own sandbox. When you actually
1616290	1623350	create an account, you can actually go in there and train the model. And what this allows you
1623350	1628330	to do is if you are looking for certain things in particular, now you can upload from Kaggle
1628330	1635430	or something else a whole bunch of images, a huge corpus of data that is already pre-sorted for you
1635430	1640130	where they're all tanks, right? And this is going to give me the fundamental baseline by which
1640130	1646810	now when you automate the feed of all of these images, you have this wasteland of data to help
1646810	1651710	better identify in any of those images in this case, if there in any of those images, if there's
1651710	1658450	an actual tank. So I did exactly that. Went to Kaggle, downloaded a bunch of images, uploaded
1658450	1664310	them into this and had and trained it basically how to do this. And it wasn't difficult. This was
1664450	1669190	a lot of point and click, right? I'm not doing like command line coding, things like that.
1669190	1673530	I do use the API personally, but I really wanted to kind of help people understand how I could
1673530	1678130	get how someone could get started very easily with this. When you go ahead and create this,
1678130	1682490	it will go ahead and generate keys for you so you can do it from a command line. You could even use
1682490	1687050	curl. There's a bunch of different ways in which you can easily use it. And on GitHub and other
1687050	1691650	places, there's a whole bunch of Python code and other things if you want to leverage those bases
1691650	1699270	that people may have created to help you more efficiently refine a lot of this. As I mentioned,
1699270	1704130	it'll create a bounding box around the object that's identified. When you upload these images,
1704130	1709190	you'll go ahead and actually manually tag them. Again, this is for the training purpose only.
1709470	1713830	And so you have these, in this case tanks, you can go in there and label it as a tank.
1714370	1719290	And then once you're all done with doing that labeling, then you can go through the process
1719290	1723890	of training. So you'll upload or leverage the images that you've actually uploaded.
1723890	1728970	And as a last step, it'll go through and perform the training on all the images that you tagged.
1731070	1737610	Then you can start to test the accuracy of all of this. So in this case here, and one thing it
1737610	1742090	kind of does is it sort of grays out the image a little bit when it shows the overlay of what
1742090	1748650	it identified and the level of accuracy to kind of see how well your model worked. Within the training
1748650	1753770	is the ability to iterate. So there is a dropdown that you can leverage where you can say, you know,
1753770	1757690	it's pretty good, but I want to train again and put some more images in here, right? So you can
1757690	1762150	actually go through that iteration over and over to hit the level of refinement that you're looking
1762150	1770370	for. In addition, at the bottom, it'll also show you things such as the threshold value,
1770370	1775830	the accuracy. You can also see the accuracy in the bounding box too, 90% accuracy. I guess that's
1775830	1779810	pretty good. And we're going to show you in the next slide though, is we're going to realize that
1779810	1784630	this isn't quite as accurate as we thought, and it'll probably require additional iteration.
1784630	1793740	Okay. I love this episode, by the way. So, you know, Homer had this vehicle that, you know,
1793740	1797920	he designed that had, you know, the biggest cup holder and all kinds of other things, you know,
1797920	1802160	in it. And I was like, you know, kind of looks like a military vehicle, could maybe be mistaken
1802160	1807180	by, you know, the computer vision is maybe a tank. So, you know, let me upload this and see how good
1807180	1816080	this thing is. Well, lo and behold, 98% accuracy that this is a tank, right? We all know that it's
1816080	1821920	not, right? So it's not really a fault of the AI, right? It just means we need to upload a larger
1821920	1827280	corpus of data and do better training on it. How many images did I load when I did the training
1827280	1834080	on this? 11, right? So clearly not enough images to, you know, accurately go ahead and train this
1834080	1839720	model, right? And what they typically recommend is, you know, upwards of a hundred, 500, maybe
1839920	1845060	a thousand images. And again, websites like Kaggle and other things have, you know, large data sets
1845060	1850660	like that. I think you need an account, but you can download those and then upload those to the
1850660	1858700	training model to ensure better accuracy. I also decided, hey, well, you know, let me, you know,
1858700	1863120	with this limited training I've done, let me upload, you know, just a regular vehicle in this
1863120	1870360	case, a Land Rover. Well, it also identified it as a tank with 95% accuracy, right? Clearly not a tank.
1870360	1876120	So again, definitely want to go through iterations on this and upload large data sets. Not a difficult
1876120	1880420	thing, right? A lot of this stuff is just point and click. And if you do prefer command line,
1880420	1885860	you can do it via those means too. The API is available. It creates a key within this screen
1885860	1891040	here. You can click over to that. It'll give you your URL and the key and all that kind of stuff.
1891040	1899530	So you can leverage the API to do the exact same type of analysis. All right. So let's talk about
1899530	1907130	AWS. So in a talk I did about five or six years ago, I did a talk around optical character
1907130	1913550	recognition, object detection, and things like that, and using AWS. And continued to do testing,
1913550	1920170	you know, within AWS as well. And if you're familiar with AWS, you can download these
1920170	1926590	CloudFormation templates that are provided in the AWS store, upload that, and it will build out some
1926590	1931530	of this stuff for you so that you have kind of a cool interface by which you can upload images.
1931710	1936450	So if you have an AWS account or you get a free account, you can look at the marketplace. There
1936450	1941130	will be things sitting out there that people have built. You can load it or download a CloudFormation
1941130	1948430	template or Terraform if you prefer into AWS, have it build this out for you, and then you can do,
1948430	1953730	you know, similar kinds of things within AWS too. In this particular case at the time,
1953730	1961290	I was doing research around fake image detection. And these images, some of them were fake, some of
1961290	1968910	them were real, and the AI available with the computer vision within AWS, also known as
1968910	1975010	recognition with a K, allows you to do very similar things to what I showed you within Azure.
1975630	1981110	So you can see at the bottom, it identified a whole variety of characteristics of the image,
1981110	1988110	such as humans, flag, symbol. The symbol was identified actually from the flag that's orange
1988110	1995710	and white, which you can see in the background. Apparel, clothing, a tie, things like that. And so
1995710	2000070	that became quite helpful in kind of determining, comparing this to a couple different pictures,
2000070	2005350	which one is the real one? Well, the storyline was about a particular country, whereas the image
2005990	2010550	showed a flag from a different country with a different individual. And again, you know, you can
2010550	2015510	do facial recognition, too. I'll leave that up to you, you know, from a privacy standpoint. But
2015510	2023430	again, similar kind of thing that you can do also within AWS. If you prefer AWS, again, that's a
2023430	2027470	talk I did in the Packet Hacking Village maybe about five or six years ago, which I know is out
2027470	2037660	on YouTube and other things, too. All right. So what are the benefits of the object detection?
2037660	2041360	It can help build out that timeline. So if I can find characteristics of the image
2041360	2047720	that enumerate where the picture was taken, then I can actually map it out on a map just like this.
2048720	2054640	So I automated within Google Maps the ability to auto label these images and then plot them on a
2054640	2059620	map because I wanted to use it for predictive analysis. So here, and this is part of a
2059620	2065200	presentation I covered last year, but now using this with the optical character recognition and
2065200	2072600	object detection to map out a lot of these things. So as I had these fed into Google Maps
2072600	2079220	and then tagged and by location or estimated location, I could start to kind of map out
2079220	2086620	the formation and the ongoing war in terms of a timeline, location, and other things. Again,
2086620	2092120	which is super helpful if you don't have latitude, longitude, geolocation specific type data, which
2092120	2097560	many times you don't. So this became super helpful in mapping this out and understanding
2097560	2105630	where the Russians might attack next within the Ukraine. So again, if this is something you're
2105630	2112070	interested in, we dove really deep on this last year, but one of the things I will say is it became
2112070	2117190	very helpful with predictive analysis. So we started to identify churches that were being
2117190	2121450	destroyed, which was a data point I wasn't looking at at all. We talked about that earlier.
2121450	2125750	So in terms of looking at those data points that the church is being destroyed,
2125750	2130530	we actually could see the path of the military and where they were going from a timeline perspective.
2130550	2136170	If you're tracking a person of interest unrelated to war or something like that, again, you can
2136170	2142350	leverage this data and potentially map it on a map too. Very easy to do. I just used Google Maps,
2142350	2147850	went in there and leveraged the ability to create all of these pins, put all that data in there,
2147850	2152910	which was quite easy to do, and then started looking at the data from a predictive analysis
2152910	2162540	perspective. So some of the lessons learned on the object detection side. Definitely train and
2162540	2167880	then train again. This takes an iterative approach, but again, there's large data sets sitting out
2167880	2173140	there that are very easy to download and upload. The whole process, identifying that and getting
2173140	2178380	those images in there just takes a few minutes, but it might take a day or longer for it to train
2178380	2185240	if you have a huge corpus of data. But what's really great about it is when you do that training,
2185240	2189980	now it's focusing on the data you're most interested in. And I'll take a day's worth
2189980	2195380	of training versus two weeks of sifting through a wasteland of OSINT data any day.
2198140	2204620	So you can also do video analysis. This type of thing is available within AWS and Azure.
2204620	2210800	And the extraction is really interesting. You know, if you're trying to do this today,
2210800	2217900	it's very manually intensive. You may have a lot of videos, very, you know, time consuming as well.
2218440	2224240	And one of the cool things when I first started doing this a number of years back is the speech
2224240	2228900	recognition too, which actually helped me find some really interesting things going on with some
2228900	2233220	of the investigations I was doing and really brought out some cool evidence. So let's talk
2233220	2242510	more about that. So in the case of AWS recognition, it will identify objects throughout the video.
2242910	2248770	It will also tell you in the timeline where it showed up in the video, how often it showed up
2248770	2257670	in the video, and the location, as I mentioned, in the timeline. It may also miss a lot of subtleties
2257670	2264350	that you actually didn't identify. So much like the optical character recognition and the object
2264350	2269670	detection, you know, with the video analysis, very similar approach in that regard. But again,
2269670	2276650	help identify things in the foreground or the background. In the video, this was an interview
2278870	2286710	myself and a coworker did for CNN. I did a demo and later in the video was showing things in the
2286710	2292950	video and I was blown away with how it found all this stuff in the actual demo that I was actually
2292950	2297050	doing. Things I didn't even realize were in the image. So there's lots of cool stuff and you can
2297050	2302570	see at the bottom how you can really leverage this and automate this as a process. You can
2302570	2306530	upload all the images and just have it crank through all of them and create reports or
2306530	2312010	consolidated reports for you. Very clean and efficient way to do it. This was also related
2312010	2317050	to a talk I did a couple years back, which is also on YouTube if you're looking at this from
2317050	2324470	an AWS standpoint. You can do the same thing within Azure. From that home screen, if you want
2324470	2329350	to upload a sample video, it will do the same type of thing. It may look a little bit different,
2329350	2333530	right? Different cloud platform, but it effectively does the same kind of thing.
2333750	2338570	And here I uploaded a presentation Chet and I had done at a different conference, which was more
2338570	2344530	like slides and talking, but it did pick up on all the instances. In this case, I wanted to find
2344530	2349610	related to OSINT. So any slide that had OSINT on it and all of that stuff, it found it not by
2349610	2354390	virtue of the PowerPoint, but by virtue of the actual video itself, which I thought was pretty
2354390	2359390	cool. And this only took a couple minutes to run and it was an hour long presentation.
2362370	2368910	The speech recognition is also super awesome. In the case of AWS, again, it will help identify
2368910	2375030	where in the video, in the timeline, this occurred. It'll also then transform this into,
2375030	2382170	you know, words and phrases and how frequently they showed up, the confidence level,
2382170	2386450	and actually gives you a search capability to go through that if you're looking for somebody
2386450	2394370	talking about something suspicious to your investigation. So when you dive into the details
2394370	2399450	of it, you have all these various filters. You can see all the keywords, all the mentions,
2399450	2405350	and everything that were done as a result of, you know, analyzing the video using AWS
2405350	2411070	recognition and the speech recognition componentry. There are a variety of other
2411070	2416270	things that you can do with it. As you can see here, it used to have the capabilities
2416270	2420410	with celebrities. I know there's been some privacy lockdowns and things like that with
2420410	2426550	some of the cloud vendors, but also faces, words, cues. You could upload, you know, a face of a
2426550	2431730	person of interest that you're investigating, things like that. Again, rely on your laws,
2431730	2441170	privacy, you know, all of that kind of stuff, right? So some of the things that come out of
2441170	2447050	this then are trying to, you know, improve the accuracy, the efficiency, and your, what I consider
2447050	2452390	time to evidence. Again, if you collected a plethora of data or your team has, and now it's
2452390	2457930	your job to kind of sift through all of this, these automated approaches are kind of priceless.
2457930	2462170	I mean, you could just, you know, leverage all this ability to really find that data of interest
2462170	2468510	you're most interested in. It's impossible to do all of it manually. In addition, it can also kind
2468510	2474270	of validate narratives you may have or nefarious activity that you're trying to prove out.
2474310	2478990	So as you start to look at the data, you may eliminate things too that you thought were
2478990	2484730	important artifacts that are actually unrelated to the event, the activity, the investigation
2485210	2489950	as well. So there's that other side of the coin too, and making sure you kind of validate,
2489950	2497850	you know, the legitimateness of that evidence. And it's not a replacement for the human in the loop,
2497850	2504030	you know, but it will vastly distill down, you know, your valuable data, you know, to less than
2504030	2509510	one percent. And then as your team may be going through and manually, you know, visually looking
2509510	2515010	at a lot of these things to validate it, help create that, you know, really refined, curated
2515010	2519630	data set that you're really focused on. In other words, helps, you know, the human in the loop will
2519630	2525070	really come into play much more in that last mile with the analysis and the results of that.
2526250	2532170	So I know we have a few minutes left. Anybody have any questions or anything related to,
2532170	2537110	you know, what we've covered? Go ahead.
2537110	2542310	How are you, you know, these sorts of data that you're getting, you know, there's
2542310	2553490	these repositories and stuff like that, but say, you know, you're, you're, yeah,
2553490	2567290	you know, listed out there, and that's, you know, where, where would I go, where,
2567290	2572570	things like that, where do you find availability for these images like that?
2573330	2582250	Yeah, I have found over the years, the source, the sources that are best are related to the
2582250	2588190	type of thing you're doing. So here's an example. So yeah, X may have a plethora of data in the
2588190	2592210	case of like, I'll give a few examples, the first being the Russian-Ukrainian war.
2592210	2596750	But we also found that the second most useful resource was actually Discord.
2596750	2601490	So people were posting stuff from around the world on there that were both pro-Russian as
2601490	2606190	well as pro-Ukrainian, you know, not to get into the political side of it, but there was like
2606190	2612110	valuable data coming in from like both sides. So those became a wealth of information for the type
2612110	2616950	of research we did. Did we get information from other locations too? Sure, we got stuff from
2616950	2621670	Facebook and Instagram and other locations, but I would say those were the two standouts in terms
2621670	2627850	of the war. In other types of, you know, analysis and investigation we've done, for example,
2627850	2632970	an imminent weather event, you know, I live in Cape Coral, Florida, you know, and we were
2632970	2639290	hit directly by Hurricane Ian, you know, and really trying to get that intelligence,
2639290	2644470	I was going out there and gathering all kinds of weather-related data. I was also doing it
2644470	2649630	not by just hitting up social media, but RSS feeds and other things were incredibly useful
2649630	2654870	for my OSINT data collection. So I was able to gather a lot of that information, you know,
2654870	2660430	quite handy as well, and that became a really important data source. It was like, who uses RSS
2660430	2664090	anymore? And it was like, it's like bigger than ever. I couldn't believe how much data was out
2664090	2669270	there, you know. So at the end of the day, I think it becomes, you know, it becomes a little bit part
2669270	2674390	of the tradecraft in kind of determining like the type of investigation you're doing and what the
2674390	2680410	most useful, you know, locations are for that type of data, you know. I don't know if that
2680410	2695110	answers your question, but that's what I've learned. Yeah. Right, exactly. Cool. I know
2695110	2710290	someone had a question over here. Yeah, there are options to assign weighted values to it as well.
2710290	2714090	There's a bunch of dropdowns I didn't really get into in a lot of detail, like a 40-minute
2714090	2719510	presentation, but you're absolutely right. So whether it's in AWS or within Azure, there are
2719870	2725110	a lot of those weighted options and thresholds and performance stuff that you can actually
2725110	2729690	validate as you train and then retrain and go through those iterations. Good point. Yep.
2729690	2746780	Absolutely. Go ahead. Oh, interesting. I know that in the example for Azure with Power Automate
2746780	2754360	and Power Apps, you can do it kind of like a live feed. So as an example, I've done labs with
2754360	2761960	X or formerly Twitter doing exactly that. So as the tweets are coming out more based on the live
2761960	2766660	feed, whereas what you're viewing in the app is it may be a second old, but it's historical data,
2766660	2774560	right? Using the live streaming Tweepy API versus the historical feed, right? So techniques like
2774560	2779320	that, yes, to leverage that. So the short answer is yes. And I think that becomes a little part
2779320	2783520	of the tradecraft too. I know Chet and I did a presentation a few years ago on how to use
2783520	2788800	Tweepy to do that with, at the time it was Twitter, but we also tested when it morphed
2788800	2792660	into X as well. I'm sorry, there's so many people raising their hands. Go ahead.
2817060	2824300	We have, and we demonstrated it in the Packet Hacking Village, I think two years ago. So if
2824300	2829720	you go back and look at those videos, we created a Python tool and a little mini UI for doing that.
2829720	2835400	And it would collect from multiple sources to do that kind of thing. Again, kind of based on
2835400	2840040	the tradecraft and knowing what you wanted to collect. Again, we use the Russian-Ukrainian
2840040	2843300	war because there was a ton of data around that. We also did it around the election,
2843300	2848860	the previous election and things like that too, excuse me, to collect that data. So the short
2848860	2854220	answer is yes, you can definitely do that. The APIs may be quite different. So the API for Discord
2854220	2859100	versus X versus all of these different things are all slightly proprietary unto themselves,
2859100	2864080	right? But the short answer is yes. Yeah. Someone had a question over here. Go ahead.
2873710	2878890	Honestly, I can't really comment on that because it's changing so much and there's so many different
2878890	2885750	laws. Yeah. So you're absolutely right. The only advice I would really give is what you would
2885750	2890390	expect, which is like check your local vicinity, your country, like all of those things and
2890390	2895310	see what you are and are not allowed to do. There's so many overlapping laws now,
2895310	2901190	I'd probably get myself in trouble making any kind of recommendation. So my apologies. So yeah.
2915830	2922350	Um, so, so what you're talking about is, um, uh, like testing to see if it'll,
2922350	2928170	if you've created something that it will, will accidentally miss. Yeah. Yeah. So I have,
2928170	2932510	and that was in a presentation a couple of years ago when I did the AWS one, what I did in that
2932510	2938370	particular one was I come from a steganography background. So, um, I was really looking for
2938370	2943050	creative ways to circumvent the detection basically for the optical character recognition
2943050	2948650	in that presentation. I covered a couple of different types. The easiest one was taking
2949070	2954450	a word document, um, making it a black background instead of a white background,
2954450	2962990	and then changing the shade of my characters to just one off from the main page. So it looked
2962990	2968070	like black on black. If you looked at it at histogram or other type of analysis, you know,
2968070	2973270	the exposure, you know, type of analysis, you would see it, but I wanted to see if the AI could
2973270	2977270	actually detect it or not. And it didn't, you know, but I've talked about that, like in the
2977270	2983230	presentation. So, um, in, in the point I had made was like, and I think the presentation, um, I did
2983230	2989010	at the time was, uh, remaining covert in an overt world. I did it in the packet hacking village.
2989010	2992570	And then it was in that presentation where I talked about how you could covertly communicate
2992570	2996690	in a whole bunch of different ways. And that was one of them. And I showed how the optical
2996690	3001090	character recognition didn't detect it. So does that kind of help? Is that we were kind of
3001090	3006210	wondering? Yeah. Yeah. If you're interested in that topic, um, that particular presentation,
3006210	3012070	I cover a bunch of other methods too. Yep. So any other questions? Oh, go ahead.
3012070	3016650	So I, as we have that string surface, we have an object surface.
3017990	3023870	If we're looking for, like, let's say an object, a specific variation,
3023870	3028870	do we have to then create that object dictionary with those variations in it?
3029770	3034590	Instructed. So let's say I need to find a toy in the camera that has specifically
3035250	3042130	no hubcap. I'm going to have to upload 100, 500 images of that with no hubcap.
3042410	3060590	Yeah. It's a complex answer. So I'll see if I can kind of answer it with my,
3060590	3067130	you know, with my knowledge. And that is one, um, the most key ingredient in that case,
3067130	3073110	in my opinion, would be the bounding boxes, having bounding boxes focused on, you know,
3073350	3078190	a smaller portion of, of a picture, because in most cases, you're going to have a picture of
3078190	3082930	the whole car, including the wheels and the hubcaps, not just pictures of wheels with,
3082930	3088630	you know, hubcaps or not hubcaps. Right. And then in addition, you know, you're looking for,
3088630	3094870	you know, maybe the front left tire only. Right. And how does the AI know, like, am I looking at
3094870	3099070	the, you know, driver's side of the car or the passenger side of the car and those kinds of
3099070	3104730	things? So, um, I, I think a little bit of it would be testing, but the root of it, in my opinion,
3104730	3110910	initially it starts with, um, uh, the bounding boxes type stuff. So you're kind of training it
3110910	3116250	to do a more refined look at every image, which is mostly like each one is going to be a car
3116250	3120670	and the car is going to be at different angles, but that you specifically want to focus on the
3120670	3126850	wheels and the hubcaps. I know that on the Azure side, um, when you, when you go through the
3126850	3131730	training, it will ask you the level of refinement that you want for those bounding boxes. And in
3131730	3135550	addition, the kinds of things you're actually looking for. So it'll help you kind of get
3135550	3140170	started with it. And then you could kind of iterate with it to, you know, from there.
3140710	3146370	Sound cool? You're welcome. Cool. Well, awesome. Um, I know we're probably, uh, yeah, we're right
3146370	3150910	at 150. So, uh, thanks so much for attending. I hope you guys got a couple of good nuggets
3150910	3153130	out of this and, uh, thanks so much for coming.
