start	end	text
0	4920	And now it is one o'clock, top of the hour.
5140	10820	I want to welcome you here to today's Creator Stage Talk.
11580	18680	It is Deep Fake Image and Video Detection by an old friend of ours.
18680	20020	And how long has it been now?
20020	23400	I think it's been 10 years, over 10 years, if you can believe it.
23400	25860	We're not getting any younger, folks.
26000	28380	So we're not getting any younger.
28380	33780	But sometimes a relationship lasts a lifetime, like this one.
33980	38340	My honor, always my honor to introduce you to Mike Rago.
45980	46680	Awesome.
46680	48500	Can everybody hear me OK with the mic?
48500	49240	Cool.
49440	50720	My name is Mike Rago.
50720	53880	Super honored to be here in Humboldt.
54540	62480	And for any of you where it's your first DEF CON, this is my 25th DEF CON and I still get nervous.
63020	72980	So, but really huge shout outs and thank you to the Packet Hacking Village and the Wallace Sheep for having me again present on their stage.
72980	83500	Today's talk, as you know, will be Deep Fake Image, Video and Detection and is a compilation of a lot of research we've done over the last 25 years.
84060	91860	Chet Hosmer and myself, ranging from everything from steganography to all types of image analysis and detection.
91860	101920	So I won't really talk too much about myself, but to kick things off and loosen things up, I'll tell you a quick story about how I got into cybersecurity in 1993.
102100	104180	I was working at NASDAQ.
104380	108600	I was a Unix sysadmin and liked to download and play around with tools.
108780	112760	This was like, I don't know, roughly 30 years ago.
112760	120680	And I downloaded a tool called Satan by one of the guys that was part of DEF CON 1, a gentleman by the name of Dan Farmer.
120680	128820	And Satan stood for something like security assessment tool set, something or other, that basically allowed you to do vulnerability scanning at the time.
128820	133460	So I thought it'd be a cool tool to download, predated things like Nessus, stuff like that.
134000	138780	Downloaded it, ran it on a trading floor in the middle of the day and took down the stock market.
138780	142700	So it wasn't one of my better days and I wouldn't advise doing that.
142740	147380	But fortunately, we were doing virtualization long before people had even coined the term.
147380	150280	And so it failed over to our backup location.
150320	151240	Credit to them.
151240	154380	Didn't lose a single trade in the process, which was pretty amazing.
154380	162340	But I did get a golden pass to the VP of Information Security's office and basically said, Mike, I'm here to offer you one of two options.
162340	164660	You're either fired or you can take a promotion.
165000	167040	And I said, well, I'll take the promotion.
167040	167900	What's the promotion?
167900	171340	And he said, you're going to form our first security team here at NASDAQ.
171420	175560	So it was definitely an honor and learned a lot through it.
176060	176660	Anyways.
176660	177040	All right.
177040	178760	So we'll jump into the topic here.
179860	182840	So we're going to cover a variety of different techniques.
182840	187580	I'm going to try to not get too technical because you can always do your own research afterwards.
187580	195680	But what I really want to cover are a plethora of different ideas you can use for your own image in video analysis.
195680	203660	When you feel that you've got some kind of fake image, it may be AI generated, it may be photoshopped, it may be something else.
203660	209200	And there's a lot of different ways these can be created and they continue to grow like a carbon life form.
209200	212660	So this will be a mashup of a variety of those techniques.
213980	222300	We had we've been authoring a Python tool set for some time and I decided to take that and morph that into a free GPT for chat GPT.
222300	224820	So you can check that out.
224820	228200	It incorporates virtually everything we're going to cover today.
228200	229780	So you can play around the tool.
229780	235600	It's free and gives you that ability to do a lot of the different types of analysis and detections we're going to cover today.
236020	241180	So in terms of the agenda, we'll cover different types of AI and GAN techniques.
241180	244300	If you're not familiar with GAN, we'll talk about that for a moment.
244480	247780	We'll talk about the different methods by which these are created.
247780	258940	And then we'll get into kind of the next rock layer to talk about error level analysis, noise detection and noise maps, edge anomalies and a variety of things like that.
258940	273780	And then in addition, you know, kind of the old school methods before we really had, you know, social media, believe it or not, was, you know, sharing images on the Internet, but not really uploading them to social media that tends to strip all the metadata from it.
273780	278660	We have found that there are still remnants that are left behind and we'll talk about that in today's world.
278660	285480	So beyond exit metadata analysis, there are additional things you can do and we'll talk about that as well.
285780	288640	And then we'll demo for you the GPT tool.
288940	295880	I'll put a QR code up in case you want to follow along and dork around with it while we're going through the talk as well.
296160	305820	And then we'll get into some additional advanced techniques as well and then wrap up with some futuristic predictions and additional items.
308000	315820	So it's obvious when, you know, we see an image, you know, on social media and other places, some of them are quite obvious, right?
315820	321960	I mean, would a guy at 35,000 feet, a pilot, be doing a selfie outside a plane?
321960	322840	Obviously not.
322840	325120	In fact, his hair isn't moving, right?
325120	326880	His perfect hair, right?
326980	340080	But, you know, as you start to take a closer look at this and you need to prove this for forensic purposes, there's a lot of analysis you can actually do to more definitively say that it is definitely fake.
340560	343420	We work quite a bit with a lot of forensic investigators.
343420	350860	And while although some of these look, you know, from a topical standpoint that they are fake, sometimes they actually are not.
350960	367140	But bottom line, when we get into the advanced tool set, we're going to talk about some of the methods you can use beyond what we've got in the GPT to do some very advanced techniques and look at things what we call like within the pixels, such as the nearest closest neighbor,
367140	372280	and do advanced analysis like that, leveraging ML and training on real and fake images.
372280	373840	And we'll dive into that.
375420	385660	In addition, as part of scientifically proven that, you know, I'm sure many of us saw this picture out in the web a few months ago, right?
385680	396980	And, you know, through the GPT that we'll cover, which again is free, you can do this level of analysis to identify what characteristics in the image were maybe photoshopped in.
397140	403880	Or AI generated, whether it be with Valley, Mid Journey, and many of the other AI tools that are out there.
404440	408940	In addition, it's always good to kind of know within the image where this was placed.
408940	413580	Even if it's AI generated, the smoothing techniques and other things are imperfect.
413580	416240	And there's a variety of ways in which you can detect that.
417880	433100	Going back to our grassroots, though, if there is no metadata to find in terms of EXIF data, which would be at the beginning portion of the image, which might tell you what camera was used to take the picture, the time and date, and what we used to see a lot,
433100	441760	which would be the geolocation information, there are now advanced metadata analysis you can do, leveraging things like the ICC profile.
441760	446160	The ICC profile are still commonly used today with images.
446160	452540	For example, if you have an Android device, it'll drop in, you know, ICC profile information.
452540	460940	And the ICC profile information is intended to give you the visibility into how the image is actually being rendered and generated.
460940	466180	And it's used by the renderer to determine how it's going to show that picture to you.
467520	472920	And you can use those old school techniques like a hex editor to find this information.
472920	479340	So choose your favorite hex editor, go in there, and you can find a variety of fingerprints within the image.
479960	484200	So in this example, we do look at the ICC profile.
484200	492800	That's the International Color Consortium and a standard by which dictates how the image is actually going to be rendered when you actually take a look at it.
492800	499540	These artifacts do get left behind in the image, even after you upload it to social media many times.
499540	501760	So these are things that you can look for.
502220	504780	So let's dig into the extract layer here.
505860	519080	You may have also heard with many of the AI tools today for creating images, whether it be DALI, Copilot, Mid Journey, and many of the others, that they're starting to embrace this watermark capability.
519080	525780	It may be visible to you, or it may be very tiny but still visible under a lens, you know, if you zoom in and take a look at it.
525780	537960	For example, a lot of the new DALI methods do embed a watermark, a visible watermark, versus one that you might find using hex editor like we showed on the previous screen.
537960	539500	So it's visibly there.
539500	542280	It's usually at the bottom right hand corner of the image.
542280	547880	You can zoom in on the image and actually see the color code and know that it was created by DALI.
548500	559360	What's kind of interesting about that is, yes, you know, you could save that then as a PNG or a JPEG or something else that might spawn additional compression.
559560	562260	Some of it may survive, some of it may not.
562260	565360	Or if you crop it, you know, you could remove that watermark.
565360	570760	So it's not foolproof, but it's a first step at really standardizing a lot of this.
571220	579320	But if you're a fan of Discord and Mid Journey, you may find that there's not much that they're doing today around this.
579320	588400	So if you go into Discord and you're generating these AI generated images, they may be little to know any form of a watermark or anything left behind.
594170	599770	So when we talk about GAN, we're talking about generative adversarial networks.
599770	604230	And this is a method by which you can essentially leverage this technique.
604230	609570	And it's usually leveraged, as you might expect, by adversaries to circumvent detection.
609610	625650	So, you know, in the Dan Farmer theme, there's no better way to, you know, enhance your tool set and get better at this detection in this case than by understanding the adversary and diving in and understanding how they create this.
626150	637290	Like you see in many ML type processes or approaches, you can have a set of data or a corpus, if you will, of what's known to be real images.
637290	645430	And then also a set of either pre-created fake images or create them within the GAN and then leverage the discriminator.
646990	660730	So with the discriminator, it starts to distinguish one from the other, there is what's called a loss calculation, you know, which there is loss, right, when we're creating these and then re-compressing them and saving them and things like that.
660770	668490	And the whole idea from the adversarial perspective is to live through all of that so that people can't detect it.
668490	671270	This is essentially in a non-technical sense here.
671530	673950	And so we'll talk more about that when we get into it.
673950	683590	So as a backdrop here, then, we're going to, you know, go through some demo-related stuff and then peel this onion back and talk about the different detections.
683590	697110	So within ChatGPT, if you use it today, either the free or paid version, is the fake image forensic examiner that we created, a free GPT that you can use to do a lot of different types of analysis.
697110	700790	It is prompt-oriented, so you can have a conversation with it.
700790	715930	It's not just upload an image and tell me if it's fake or real, but furthermore, what techniques were used to create the AI image, what kind of tool was used, how, you know, what kind of things were hidden in the image, what kind of objects can I look for?
715930	720210	Can I do a reverse image search for this image afterwards and use it for OSINT?
720210	725490	There's a plethora of things you could do with this tool and leveraging the horsepower of open AI.
727030	730410	So if you want to follow along, there's a QR code.
731710	735130	You're welcome to, you know, click on the QR code if you trust it.
735130	740250	It should take you to ChatGPT, where you can then take a look at the tool.
740250	746390	And if you want to upload a random image and start doing this analysis as we're going through the talk, you can certainly do that.
749990	755310	I'll also be giving out cards afterwards, so you can get a copy of the QR code if you wanted to.
755490	759230	But this will kind of allow you to kind of follow along as we have fun here in the rest of the talk.
763620	767720	So as I mentioned, prompts matter, right?
767720	773540	Even a single word that might be slightly different with a prompt may yield a very different result.
774300	779240	We do provide a number of pre-baked prompts for you to help you get started.
779240	781720	And they do follow various sequences.
781720	789300	So if you want to dig into various portions of the detection, it'll give you a predefined set of prompts or you can type in whatever you want.
789300	793980	That's the beauty of ChatGPT and many of these other generative AI tools.
794960	801620	In addition, at the end, you know, if you're really using this for forensics, it will allow you to create a PDF report.
801620	808920	So you can ask it once you've done all your analysis, hey, please include this, please include that or all the research that you've done.
808920	814420	Please include this in a forensic report that I can export and have in a PDF form and share with other people.
814720	816760	Or you can continue prompting.
816760	822300	I've done a variety of, you know, continued prompts beyond what we provide or frame out for you.
822300	827740	And I've been really surprised with the reverse image search and OSINT stuff that I can do as a result.
829180	846160	If you attended some of our previous talks in the previous years, a couple of years ago, we did a talk in the Packet Hacking Village around leveraging images that we took from social media to do intelligence around the Ukrainian and Russian war.
846680	856560	And beyond the object recognition and optical character recognition that we demoed in that, you could now use that within here and you can also use it for your reverse image search.
856560	867700	So you don't have to jump out of the actual prompting, but actually do everything right in the tool rather than have eight different browser windows up trying to find images and find out where they're located and things like that.
869580	873660	All right, so let this play out while I talk a little bit more about it.
873660	892160	So when you actually go into ChatGPT, you can search for GPTs that are out there and you can look for this fake image analysis tool, fake image forensic examiner, to allow you to do the analysis.
892160	897260	And I'll pause on this and kind of click through it a little bit so you can see a little bit more about what it's going to do.
897260	902260	And we are going to break it down on the next few slides for you as well.
905990	914310	So once you select that, you can look up the tool or if you clicked on the QR code, it should take you right to it.
914510	919390	And then it's going to allow you to upload an image and then ask, hey, has this been manipulated or fake?
919390	923610	It says, yes, I'm going to run all kinds of forensic analysis on this for you.
923690	932190	First, I'm going to take a look at the image and see if I find any metadata, whether that's EXIF data, ICC profile data and other things we've actually put in there.
932190	942570	Artifacts we've seen that have either been pre-pended to the image within the file or appended to it and hidden in other areas, too, based on our steganographic experience.
943330	953970	In addition, it'll then kind of dive into what we're going to cover in the next few slides related to error level analysis, noise analysis and understanding what those do and what they mean.
953970	959250	And then additionally, a marked up image with all the artifacts that are found for you.
963050	965970	So first, we'll talk about a noise map.
966110	978350	Many times related to a variety of different image formats, for example, a JPEG, is the ability to detect manipulation and really uncover what's considered to be inconsistent noise patterns.
979770	989830	With a lot of the algorithms that are available out there, in this case with DALI that we're leveraging, is the ability to say, hey, do like a noise map.
989830	998410	Tune out all the stuff that has sort of less noise or if you want to look at, you know, this image here, you know, what is more pronounced, right?
998410	1004690	I can see thicker lines throughout the image and I can see more, you know, shadowed type lines and images.
1006130	1018570	And based on that composition is to really tune out what we consider the noise for less pixelated areas through this lens and really subtract that and then see what remains.
1018570	1025450	If there are very strong, you know, pixels left that frame out visually things that you look at, right?
1025450	1033330	And I'm describing this in very non-technical terms rather than getting into the algorithm, is starting to kind of frame out some interesting characteristics.
1033350	1038810	This particular image has a lot of very strong lines to it once we've tuned out the noise.
1038810	1051470	So as a result of doing this noise map, there's some really interesting information here and, you know, starts to kind of point to some level of, you know, either photoshopping or AI generation at this point.
1051470	1053030	But we still don't know yet, right?
1053030	1055730	It's just one of a number of data points we're going to look at.
1064010	1073970	We've run a variety of images through this, and this was one that was recent out on Facebook, that there was a big fire at one of the TEMU facilities.
1073970	1079150	And in this case, we run the error level analysis on it.
1079250	1086010	And what that does is it also creates sort of like a different lens in which you can look at this.
1086010	1101570	And it kind of really points out non-related type smoothing techniques and other things that it didn't really do a good job of being created when they created it, thus leaving behind a lot of like pixelated, you know, fingerprints and things like that.
1101570	1114770	So based on the artifacts leveraging the DALY and error level analysis algorithm, we actually found that the logo, some of the fire components and other things show that it's been superimposed.
1114770	1116430	Where is it superimposed?
1116450	1119730	A lot up around this characteristic here, right?
1119730	1125010	Versus it being predominantly flat or just a couple random dots here or there.
1125010	1127830	You see herds of dots, right?
1127830	1135890	And that's what the algorithm is doing is to kind of bring that out and give you another data point to say, I see another sign of manipulation here.
1142340	1151040	So some of this is related to kind of errors with the compression because someone maybe photoshopped this and dropped in that stuff.
1151040	1152880	Maybe they later ran it through AI.
1152880	1155540	Maybe they did a variety of things to touch it up.
1155540	1158780	There are a variety of weird like compression techniques.
1158780	1168900	The originating logo, the originating things that they put in there, carried forward to the image and left behind kind of a photoshopped fingerprint, if you will.
1169600	1174300	And again, gives you insights into fakeness, if you will.
1177600	1184960	The third thing is when we really start to get into edge analysis, I think this is one thing I find a lot of people can relate to.
1184960	1199500	If I overlay things in the image, maybe that originating component, like a logo, like, you know, whatever the object may be, maybe you didn't perfectly cut it out from the original image when you did the photoshopping, right?
1199500	1207640	And that leaves really definitive, really hard to find little edges that also carry forward in the resulting image when you photoshop it.
1207640	1218780	Some of those, again, may also appear, as it says here, like very, very sharp or very, very thick compared to how the rest of the image should be actually smoothed out in a way.
1219740	1226840	For example, earlier, although you saw it briefly, was an AI generated image of a woman on a horse.
1226840	1242920	And what's kind of interesting is, depending on how that was originally created, we're not entirely sure, but if you visually look at the image, there's one visually standout item, and that is six toes, right?
1242920	1255060	So these are things we can visually see, but there are other characteristics, like there was editing or things done by AI in the smoothing technique that actually had some imperfectness to it.
1255060	1263020	Where we can see right on the hands, things like that are not really properly smoothed.
1263020	1273900	You'll find a lot of times with Mid Journey, Dolly, and these things, you know, when you look at the image initially, the smoothing techniques, you know, it may look very realistic.
1273900	1284880	But when you look at certain portions of the image, you'll see that the smoothing is, for lack of better terms, weird, very detailed in certain portions, but in other portions kind of smudged, if you will.
1284880	1287540	And that's exactly what's going on with this image here.
1289200	1307640	So throughout the horse here is a lot of like weird smoothing techniques that AI did to try to create a real horse, but in its efforts to do that really left behind the ability to see that there was some leftover noise and the edges are quite perfect.
1307640	1314880	Dolly is quite good at also determining that, hey, this image was actually created in Mid Journey, not Dolly.
1314880	1319360	And furthermore, these are non-horse characteristics, actually.
1319360	1326360	So if you were to kind of draw a picture of a horse, I know I'm terrible at art, you know, I'd be lucky if it even looked like a horse.
1326360	1326800	Right.
1326800	1336020	But the point here is that by actually doing this gives you insights into, you know, how well or how badly the AI is doing its job.
1341020	1351940	So, as we mentioned earlier, you can see here that not only are there six toes, but we're starting to get into a lot of characteristics of the image that are inconsistent with the rest of the image.
1351940	1357240	So we see pretty clear architectural lines here to the horse's face.
1357620	1363480	We see characteristics of the lady, but some of these from an edge perspective look kind of anomalous.
1364020	1368800	The foot, not only six toes, but the lines around that seem kind of anomalous.
1368800	1375640	And some of the smoothing technique in the tool will tell you that these are characteristics of a horse.
1375640	1385240	So it is able to actually look at that, compare it to its massive database of what horses are supposed to look like, and then actually give you those insights.
1388300	1390380	And so it does exactly that.
1390380	1397420	We see over smooth skin and deformed anatomy, particularly around the toes, feet, which seem unnatural.
1398060	1401320	It almost looks like a plastic horse texture.
1401600	1407800	And the Photoshop metadata, no camera or device information actually found.
1407800	1414500	But so far, there's a lot of information here to imply that it's been AI generated and very synthetic.
1416200	1422600	And as we stated, what we then do is allow you to output a report with the marked up areas.
1422600	1427140	Still kind of refining this, you know, through a couple iterations here.
1427160	1430940	You know, for example, the red box should actually be overlaid on the foot.
1430940	1437000	I'm still kind of adjusting the GPT, so I don't know why it's a little off, but at least it's telling you what it is.
1437000	1449760	And furthermore, the other areas are more spot on with, you know, the characteristics that were found to give you that evidential information to build a case to say that this was synthetically generated by AI.
1456190	1462170	So we've been testing this for a while and had some other iterations of it.
1462170	1465270	And of course, the number one ask was, hey, can you do this with video?
1465270	1466850	And the short answer is yes.
1467470	1471670	GPT-5, you know, was just dropped, right, in the last week or so.
1471690	1474250	And it does allow you now to upload a video.
1474330	1484950	It can't directly do the video analysis, but it's going to do what we've always done from a forensics perspective, which is to break the video down into frames and then look at the individual frames.
1484970	1492110	The frames themselves for science of Photoshopping and or AI generation or synthetic generation.
1494190	1499690	So I made some edits literally this morning so that you could use this with images, too.
1499690	1510110	So you can use this free tool in chat GPT with the GPT to upload an image, have it break it down into frames, and then have them analyze the individual frames.
1510110	1516890	Then bring together all those individual frames to come up with a final report on what that looks like.
1516890	1524710	The report will actually give you an analysis of each individual frame and then a summary as well, all within the same report.
1524870	1526630	So be careful what you ask for, right?
1526630	1532430	If it's a long video and you ask to break it down into a million frames, you're going to have a really long report.
1532450	1535550	I don't even know if chat GPT will give you the PDF, right?
1535550	1537650	So just kind of keep that in mind, right?
1537650	1540730	Yeah, we're kind of breaking ground here, right, with some of this stuff.
1543150	1550230	So as you can see here, the GPT will ask you, like, hey, I'm used to doing this with individual images.
1550230	1558290	Do you want me to extract the key frames from the start, middle and end and maybe some random intervals and then look for anomalies?
1558390	1561150	I can do a lot of the things I normally do.
1561150	1567050	I can look for GAN texture patterns, things that are looking to circumvent the detection.
1567050	1571070	Because you can look for those characteristics, too, if they leave behind their fingerprints.
1571110	1579670	And then furthermore, there's any face swapping, morphing, warping, inconsistencies, error level analysis and a whole variety of other things.
1581630	1583810	And this is what the report will look like.
1583810	1589970	I haven't updated the GPT because I just, you know, put this together this morning, literally.
1590210	1596770	But it'll give you, you know, a report in a text format and probably in the next day or two.
1597050	1601910	You know, add it in there so it'll be a PDF for you and more colorized and look pretty cool.
1602510	1608330	But you can see here with the frame by frame analysis, this was actually a video I took at one of the hacker parties.
1608330	1611870	We're on the 61st floor of the Cosmo the other night.
1611870	1614970	So I just uploaded a random video that I actually took.
1614970	1620970	So, of course, it didn't, you know, find very many anomalies with that because it was a legitimate video that I uploaded.
1621010	1626630	But you can see all the stuff it went through, how it broke it down into frames, how it went through and did all the analysis.
1626630	1631750	And then came to a conclusion of no significant evidence of AI generation here.
1635360	1636240	All right.
1636700	1645340	So beyond the GPT, as I mentioned, this originated with a Python tool set that we've been working on for, I don't know, about eight years now.
1645340	1649180	We presented it six years ago at Sky Talks, actually.
1649180	1660400	And when we did, we talked about and we've enhanced it since then about how we're leveraging machine learning to effectively identify fake images.
1662620	1668440	What this allows you to do, then, is adjust a few parameters such as the level of sensitivity.
1668440	1676740	And we'll talk more about how it does what it does and how you can use this to dive deeper into the image, even beyond what the GPT does.
1680490	1685770	So here you have The Rock and Zack from one of the popular movies here.
1686090	1696750	And when you start to get into these very detailed images, you know, it's interesting to see, hey, I could run this through the GPT, but maybe I want to do a deeper level analysis.
1696870	1698770	What would that analysis include?
1698770	1701290	I'll cover that for you in the next two slides.
1701330	1703990	But the tool will take this image.
1703990	1710390	You'll, you know, upload it to the actual Python tool via the UI or command line.
1710390	1714190	And it's going to mark up a bunch of yellow dots that you see here on the screen.
1714250	1725350	Now, what we determined after running this is that, like in a lot of movies and in Hollywood, these images are in video are transcribed onto probably a green background.
1725350	1725590	Right.
1725590	1730190	Or somehow edited in their labs and stuff when they do the finalization.
1730190	1730670	Right.
1730670	1733430	So they weren't actually at the beach is what we found.
1733430	1733750	Right.
1733750	1736570	They had a fake background, superimposed them on it.
1736570	1738490	And that's what we're detecting here.
1739850	1746090	If we zoom in further, you'll see other characteristics of things they photoshopped in.
1746590	1754770	So if we zoom in further and it's a little cut off here, but the Rock's watch was dropped on there.
1754770	1757770	He wasn't wearing that when they took the picture, actually.
1757770	1761110	So they dropped that and things like that.
1761110	1767310	Now, we're going to zoom in so you can see these herds of dots that give you more evidentiary proof about what's going on here.
1768030	1770150	But how are we doing this?
1770190	1777370	Well, we're taking various types of observations and their features and actually comparing real to fake.
1777370	1784270	So with the ML, we're doing like you normally would, which would be have a set of real images and a set of fake images.
1784270	1789710	And then later and train on that and then later start to incorporate these unknown images.
1789710	1793890	And see if we can determine and validate the accuracy of it.
1793970	1799870	There are some components within Python that we're using in order to do that.
1802780	1805900	And what we're really doing is a nearest neighbor.
1805900	1812660	So we're breaking it out into a grid across the entire image, depending on how detailed you want to get.
1812660	1822720	That's what the sliders were on the previous screen to really say, I'm going to break this up into 100 squares or, you know, 1 million squares, depending on how you want, what level of detail.
1822760	1829260	Obviously, the more you drill in, longer it'll take for the tool to run, but it'll allow you to get that level of detail.
1831380	1835760	And you do have the option with the tool to do your own training as well.
1835760	1844940	So if you had your own corpus of data that included fakes and reals, you could train on that before you start actually testing your evidence if you really want to.
1844940	1849420	We give it and provide it pre-trained, but you can do further training with it if you like.
1850820	1854180	So let's get into some of the things that we actually tested with this.
1855880	1860260	We're all familiar with lots of, you know, disinformation, right?
1860260	1867100	And this is one of the, it was really the original genesis behind why we started doing this research and doing this tool set.
1867560	1875000	And here you can see Putin, you know, kind of doing a thumbs up to Trump and some other, you know, political people here in the picture.
1875000	1882120	And, you know, a lot of people kind of wonder, like, you know, what's with the thumbs up and what are they actually talking about?
1882120	1883060	Is this legit?
1883060	1893500	You know, well, with the image, we actually create, we upload it and then determine, like, what level of sensitivity we want to dive into here.
1893500	1899720	So I mentioned a moment ago, we actually break it up into a grid and then take a look at all the nearest neighbors.
1899720	1911680	So we're looking at all the adjacent chunks or squares that we take out to kind of take a look at their individual characteristics, many of which we actually talked about that we're doing with the GPT itself.
1911680	1912000	Right.
1912000	1917180	But now we're breaking it up into little bite sized pieces of doing that and then comparing them to one another.
1917380	1925560	Because maybe with that level of detail and pre-training of what we know about those characteristics, maybe we can get better accuracy.
1925560	1927020	And we found that we do.
1930440	1937300	So the result shows you herds of these dots around what has actually been photoshopped in.
1937340	1946020	And as you probably saw me leading into, you know, especially the thumbs up hand, that was photoshopped in and that's what was revealed.
1946020	1949420	And we validated that later with the creator of this, too.
1950100	1955080	But as you can see here, you know, there are some other characteristics, too.
1955080	1956600	We're doing analysis, right?
1956600	1968860	So we're really looking for is to then take the herds of those dots, things that are uncharacteristic of the smoothing and all the other techniques that we talked about to kind of see how this may have been edited.
1969180	1972240	It's quite possible they did other smoothing techniques.
1972240	1975240	It could be that they dropped in other people into the image.
1975240	1984940	What the the individual that we did this for really wanted to know is if that hand had been dropped in there and if Putin was really doing a thumbs up or not.
1984940	1986200	And we determined he was not.
1986880	1992860	We later did a reverse image analysis and found the original image without the thumbs up, too.
1996520	1999480	And just sort of a closer view so you can see.
1999480	2006020	Based on the sensitivity, you'll get herds of these yellow dots to give you a visual way to really kind of analyze this evidence.
2009700	2012900	You may have remembered this image as well.
2014100	2031740	When there was a hurricane that was actually reaching the northeast, this was actually released on the news on a number of news outlets as a real image of the hurricane coming in, obviously, over New York City.
2033800	2037860	But with our analysis here, we're able to debunk that image.
2037860	2042760	And later on, it was pulled from the newswire and determined to be actually a fake.
2046340	2050540	This one is particularly interesting because we've got Trump and we've got Putin.
2051200	2055160	And it looks like he's whispering something in his ear and Trump's kind of laughing, right?
2055620	2058540	Everybody wanted to know, like, is this a real image, right?
2058540	2059980	It's from a couple of years ago.
2062480	2064600	So we ran this through the tool.
2065200	2072440	And you can see from the characteristics here that these were photoshopped together into one image.
2073440	2074560	So that was cool.
2074560	2076820	We were able to kind of debunk those characteristics.
2076820	2087620	Because even at the bottom, a lot of that would either be empty or it might have a couple of anomaly dots, but not, like, pretty confident, like, herds here of dots that are framing out both faces, right?
2088260	2090520	But here's where it gets really interesting.
2090520	2091380	Oh, do you have a question?
2091380	2091800	Go ahead.
2109200	2114620	Yeah, and let me take that a step further.
2115180	2118320	So great comment on that.
2118320	2121780	So why does Putin have dots on his eye?
2122520	2125420	This was something we didn't expect from the tool.
2127040	2130800	They're on both of his eyes, and you'll see not really on Trump's eyes.
2130800	2138760	I mean, there's one anomaly here, but, you know, maybe that's due to, like, a reflection and, you know, other than seeing it's a characteristic of, like, yeah, that's his eyeball, right?
2138760	2141640	And maybe there was a flash, a little dot that it picked up on.
2141640	2144940	But clearly, there are two herds of dots over Putin's eyes.
2145080	2150560	We later found out that Putin wears colored contacts to make his eyes more blue.
2150560	2152700	So it actually picked up on that.
2152700	2155100	That was not a Photoshop artifact.
2155100	2161280	That was part of, like, the original image, right, before it was dropped in and as it seems now, right?
2161280	2167100	So we're able to refine it just with the slider enough that it brought these out, right?
2167500	2175240	So the other one that's really interesting is Trump has some herds of dots here around his front teeth, right?
2175360	2180360	We researched that, and we found out that Trump has caps on his front teeth, actually.
2180360	2183020	You know, so he had some dental work a long time ago, right?
2183180	2186300	The tool was sensitive enough to pick up on that, too.
2186320	2190720	So we're not talking about fake photos, and we're not talking about AI generation.
2190820	2195520	We're talking about legitimate, like, human characteristics and finding those anomalies.
2195520	2197880	We didn't realize the tool was that good.
2197880	2200940	So we both had like a, oh, wow moment, you know.
2200940	2210320	So in reference to that, with the contact lens and the caps, that's not really alteration of the image.
2210540	2213440	Are you classifying it as a false positive?
2213620	2215140	Yeah, great question.
2215140	2220260	The answer is you have the flexibility in the tool to choose one or the other, right?
2220440	2227580	And, you know, as part of, say, a forensic investigator, you know, if it prompts additional questions, which is always good, right?
2227580	2229560	Even if you later debunk it, right?
2229560	2235820	And you can explain why, you know, maybe you can't explain why, you know, those anomalies occur, right?
2235820	2248560	So what we have done is, if you turn the slider down for less, you know, break up of all of those squares or, you know, less components, those characteristics go away.
2248560	2251540	Because we found that they were, like, very refined, right?
2251540	2254400	So, and the models still learn, right?
2254960	2256800	But excellent comment.
2256800	2257500	Thank you.
2264220	2285160	Okay, so the other area we've been doing analysis around, and this dates back also to our experience in steganography for the last 25 years, I think we've presented on this topic at least five or six times at DEF CON, maybe more, around all the steganographic stuff that we've done over the years.
2285160	2302960	And as of late, we've started to see people that are embedding malcode in images to then perform a jailbreak or a DAN attack to jump out of an AI LLM, and then spawn something that is not desirable.
2302960	2318020	Some of the vulnerabilities that have been identified out there is it jumping out of the LLM and the malware, then spawning email and sending sensitive data, like out of network and things like that.
2318020	2320440	So we're continuing to do research around that.
2320440	2328840	If you do want to learn more about that, I dropped that link in here around some really good research from the military side of things.
2328840	2340640	And then in addition, you know, just like many of these things, you know, adversarial type techniques with what we talked about with GAN earlier and more, they're just going to get better over time, right?
2340640	2343260	So this will continue to be a cat and mouse game.
2343260	2347880	But hopefully you'll feel a little bit better armed with a free tool you can use.
2347880	2350120	And we're going to continue to mature that over time.
2350120	2353020	And you guys can use that through ChatGPT.
2354920	2359480	So lastly, if you didn't get the QR code earlier, you can click it here.
2359480	2362740	I also have little cards up front where you can take one as well.
2362740	2366400	If you want information, you can always reach out to us at that email address, too.
2366400	2371760	If you want to participate in the Python toolkit or do testing, you know, with us and things like that, too.
2371760	2373100	We always encourage that.
2373100	2375960	So I know we have a few minutes left.
2376440	2378420	And, you know, open it up for questions.
2378420	2380140	This usually piques a lot of people's interest.
2380140	2381160	You have a lot of questions.
2381160	2382400	So go ahead.
2394560	2395400	Yes.
2395820	2396220	Yes.
2396220	2397120	And I've done that.
2397120	2397500	Yep.
2397500	2402380	I've done that with Copilot and OpenAI and DALI and ChatGPT.
2402380	2404160	And then also with MidJourney.
2404340	2405920	And it'll work in all cases.
2405920	2407500	So we'll try to enhance it.
2407580	2408900	What is the result?
2408900	2413200	So the following question is like, so after you did that, did you find anything else?
2413200	2418320	I find more times than not, it breaks the image worse than makes it better.
2418320	2420100	It'll visually look better.
2420100	2426380	So like the smoothing we pointed out with like the horse and the non-horse characteristics seems to kind of fix that.
2426380	2431300	Because especially if you put the prompt in there and said like, make this look more like a real horse, right?
2431300	2432920	You know, it can fix those things.
2432920	2436240	But by introducing that seems to kind of break other things.
2436240	2438400	One of the key things being the compression.
2438400	2446480	Because once you compress it, compress it again, compress it again, the quality of the image typically starts to deteriorate.
2446480	2450060	And because of that, it brings out more of these remnants.
2450180	2451560	Is it always the case?
2451560	2453760	No, sometimes it can circumvent it too.
2453760	2462280	But I find, you know, if you're to kind of put a line in the sand, I find more times than not, it uncovers more of itself rather than hiding it.
2462280	2463640	But excellent question.
2463740	2465700	So yeah, go ahead.
2478950	2485070	Yeah, I know I saw a couple of them there too, because I was at Black Hat.
2485470	2491050	Personally, I personally wouldn't comment on them until I had a chance to actually test them.
2491290	2497530	But from what I saw in some of the demos that were going on, you know, they've looked very interesting, you know.
2498370	2507850	And, you know, if you go into chat GPT, and you look for other, you know, fake image analysis tools beyond the one, you know, we've highlighted here, there are other ones out there.
2507910	2523550	I found them to be, honestly, like not very good, you know, and we use that to kind of distinguish ourselves in terms of like, you know, we know the characteristics we're looking for here, let's refine our own GPT to improve that level of accuracy.
2523550	2532650	And especially the depth, a lot of them just do a quick like analysis and say, you know, fake or not, doesn't give you any detail, doesn't allow you additional prompting or things like that.
2532650	2534270	So, go ahead.
2538760	2543720	I've only found one false negative, and it was related to the astronomer guy.
2543740	2546300	So, you know, there's like a million images out there, right?
2546300	2552300	And I found one with Ben Stiller and somebody else.
2552320	2555300	All of them were testing positive, like we're finding it.
2555300	2557560	That one was not, and I don't know why.
2557560	2559000	So I'm still working on that.
2559000	2563900	So in full disclosure, occasionally, you know, it just means we have more tuning to do with this.
2563900	2565800	But yes, that was one example that I found.
2565800	2567440	And sorry to mention the astronomer.
2569360	2571460	You had a question in the back, right in the middle.
2571460	2572420	Oh, that was the question.
2572420	2573140	Okay, I'm sorry.
2573140	2573720	Go ahead.
2573720	2578620	Yeah, so I was just going to ask on moving some images to video.
2578620	2587360	I know that there are certain architectures that are better for camping videos, like on 2D, on 3D.
2587360	2589700	Is that something that I can do?
2594180	2599520	Yeah, my friend Chet, who we collaborate on and all of this research, he is looking at that.
2599520	2601460	So we're doing a ton of video analysis.
2601460	2604560	We have been for a while, but we're doing a lot of fine tuning.
2604560	2608780	So not there yet, but it's kind of the focus of what we're doing now.
2608780	2609460	So I'm sorry.
2609460	2610060	Go ahead.
2622400	2631540	Yeah, that's a good question.
2631540	2637460	In all honesty, we haven't had enough data that is like the Putin and Trump photo.
2637460	2653740	And knowing in advance that these are not AI or Photoshop characteristics, but a byproduct of the deep analysis we're doing of finding a non-human characteristic, which again, it was by accident, but those are the best findings to kind of mature the tool.
2653740	2655320	So we're still getting there.
2655320	2657860	So honestly, I don't have an answer for you.
2657860	2665340	Have we had a few ones that we haven't analyzed properly?
2665340	2665980	Yeah.
2665980	2670760	And that's something Chet and I are continuing to work on to refine the Python tool set itself.
2670960	2672520	Go ahead.
2672520	2674240	Sorry, I skipped over you a bunch of times.
2674420	2681220	Have you thought about incorporating this into something like Zoom in real time?
2681980	2684700	It's been a frequently asked question for sure.
2684700	2687260	Will there be an API for things like that?
2687260	2696780	I am running it in my own Azure tenant to kind of do that with a callback to chat GPT.
2696780	2698660	So I'm actively running that.
2698660	2706100	So then, you know, if you wanted to leverage Power Automate or Power App or whatever, right, to then, you know, gather that data.
2706100	2714180	It also allows you to upload a whole bunch of images rather than like one by one, where it was sort of a limitation of GPT.
2714180	2716660	It was a byproduct of chat GPT.
2716660	2718040	I mean, great analysis.
2718040	2719220	Not good at all.
2719220	2724620	But like the big question was like, hey, could I integrate this with Zoom or email or things like that?
2724620	2726560	And that is something we're working on.
2726560	2731060	And I've gotten as far as where I have it running within my own Azure tenant.
2731060	2736400	And you can upload a bunch of images and now starting to work on the back end to kind of do that.
2736400	2739500	There's something else I was going to say related to that, but it'll come back.
2739500	2745780	So to verify, you used noise exit data or metadata and the lines.
2745840	2749180	Was there any other features?
2749180	2750500	Yeah, there's a bunch of others.
2750500	2752820	So there's the error level analysis.
2753280	2760380	There's actually a GAN analysis and detection tool to see if it was GAN generated, leveraging an adversarial type of approach.
2762600	2765480	And I think there's one or two others in there too.
2765480	2769120	The tool will tell you all the tests it's going to run.
2769120	2776360	And if you're, you know, a professor and you're like, hey, it doesn't include this test and I want to have that in there.
2776360	2782540	I've been doing that with my own prompting too and say like, hey, you know, because you're having a conversation, right?
2782580	2784660	Rather than doing a one off test.
2784660	2786400	So I've done other prompts and stuff.
2786400	2788400	That's how I found like the reverse image stuff.
2788400	2793080	That's how I, you know, posted related data and stuff.
2793080	2796700	But if you have like another model, you could put that prompt in.
2796700	2800080	I don't know if OpenAI would support it or not.
2800080	2803480	It would depend on which ones they support and understand.
2803480	2806940	But I've had really, really good luck with doing that technique.
2806940	2809240	So I would encourage you to explore.
2809340	2812780	And if you want to let us know, we'll go live to the tool for sure.
2817220	2829360	What we're doing now is on a case by case basis, if you reach out via the email address that we provided, if you wanted to get involved in the research around that, we're kind of doing that.
2829360	2832420	You could also use it for your own testing and stuff too.
2832420	2834080	So that's how we're kind of handling that.
2834080	2838260	The GPT, it's already out there, you know, and it does a lot of what our tool does.
2838260	2842660	Obviously, there's a couple additional things that are not in the GPT because they're very unique.
2843040	2850620	Yeah, but short answer is, yeah, if you wanted to test it, reach out to us and, you know, we can talk more about that for sure.
2851360	2871560	I was wondering, does it ever get used to determine at X scale, like, J can do this, they can do this, and it threatens or that they have more to scale for research in other areas?
2872100	2873560	Excuse the microphone.
2873560	2883220	Yeah, so I think that's some of what we want to do next with what we've built out in our own Azure tenant is to kind of like do that.
2883220	2889580	Because we've done, you know, I have some experience in data science from some of my previous jobs and some of what I do today.
2889580	2896360	So just thinking about, you know, how we can leverage that, that knowledge set and different corpus of data and different methods.
2896360	2899280	So, you know, always happy to chat more about that, though.
2902460	2903460	Of course.
2903460	2904400	Yeah, absolutely.
2904400	2904860	Yep.
2904860	2907880	We, we work with two other universities currently.
2907940	2915600	Yeah, so one of them is the University of Arizona, because Chet and I have been or are adjunct professors.
2915600	2917360	I used to be an adjunct professor.
2917520	2918780	Chet continues to be.
2918780	2922100	Oh, OK, cool.
2922100	2922820	Yeah, absolutely.
2922820	2924220	We work with a...
