start	end	text
0	4320	Hey, thanks for choosing to spend some of your DEF CON time coming here to listen to this talk.
4320	9800	It's Digital Forensics and the Internet of Things and the Intersection of the Tube.
9800	13200	The talk is called The Things Know What You Did Last Session, just like the slide says.
13200	18640	I look like some over-caffeinated Stone Cold Steve Austin up here swilling the Celsius, but here we are.
19000	27800	I'm Will Baggett, former human and cyber collection for NATO, soft cyber trainer for them, and actually did the job for CIA for years.
28320	31380	Now Director of Digital Forensics for Operation Safe Escape.
31380	35700	It's a volunteer assistance group for domestic violence victims.
36140	40920	And my day job, I'm Lead Insider Threat Digital Forensics at a Fortune 25 firm.
41000	43920	If I say who they are, corporate has to approve it.
43960	48760	There have to be meetings, there have to be more meetings, and pretty soon I might make the talk for DEF CON 40 or 50.
48760	53300	So I have a job, I get paid, they're not getting credit here.
54380	56600	This talk is going to cover three different issues.
56600	62840	It's going to cover a Chinese voting machine we received at the DEF CON voting village in 2022.
63260	72700	It's going to cover a workplace fraud case, and the North Korean IT worker issue that has been prevalent in our industry for the past two years.
76600	77640	Okay?
78340	82600	Start off with just some of the bare basics for digital forensic processing.
82780	84260	We start off with the collection.
84260	85920	You have to have data to work with.
85920	87880	It doesn't get more basic than that.
87880	98780	From there, once you have a complete image, you do the examination, the analysis, and then it doesn't matter what you've done if you don't write the report and state your findings after the fact.
99960	111880	So there's a principle that a perpetrator will come into a crime scene and leave with something from it and take something with them generally, even when it's an edge device, Internet of Things device, that also applies to this principle as well.
112720	114320	So again, just the four basics.
114320	124100	I know it's one-on-one stuff, but we all start off now here, and the core is still, it's still going to be applicable as long as we're going to be in business and not a career.
127500	132680	So the first thing, basically, TLDR, if you image a device, you can't change the data.
132700	148300	There was a case we talked about last year, the Internet, the voting village, where a, I want to say well-intentioned, but I don't think so, person took a voting machine, drove it to his private compound, changed data, and then said the election was stolen,
148300	155400	and I have the proof based on data that he inserted himself, and I believe he might have three hots and a cot and some silver handcuffs off of that.
155400	159080	You can't steal a device and load your own data, because that's theft.
160640	170700	Part two, if you're going to do forensic on a device, you have to be qualified by your company, by your employer, by the DoD, by someone to say yes, this person is qualified to do it.
170700	175480	It's not just something you can drop off down at Best Buy's Geek Squad if they're still in business.
176320	181940	If you're going to do it, there has to be an audit trail of what's been examined, what's been looked at, where, what, when, and why.
182520	188240	Some softwares like Magnet, Axiom, and Celebrite have an audit trail for what the person looked at.
188240	202080	Others like Autopsy or Detex for IM, there's no audit trail, ostensibly you can, but it's a lot of work to get it, but there's still an effort of this person looked at these files, nothing was changed, the hash values are identical.
202560	208480	Last pillar, basically, if you can't... I skipped ahead, sorry.
209360	212120	There's only audit trail that someone else can reproduce.
212120	223040	Basically, like the book says downstairs, POC or GTFO, if we can't reproduce the finding, that's going to get tossed out of court or it can't be withheld or can't be used.
223700	233340	Last, the person overseeing this, whether it's a manager, superior officer, an army, law enforcement, they have the final say in what goes on with this and it must go by the law.
233340	235900	There's no, but this time we can make an exception.
235900	238260	It has to be the same collection process every time.
238540	241940	Now, all that said, I feel like a car commercial with the terms and conditions.
242560	258140	Just because you upload Rick Astley to a voting machine where you have time, permission, concurrence, free will, a USB drive of who the hell brings a USB of Rick Astley in year 2025, but people do, and it still gets on CNN that a voting machine has been hacked.
258580	261160	That's not actually hacking a voting machine.
261160	263220	That's just control C, control V.
263220	275270	I have to say it every time because every year since I've been involved with Voting Machine Village since 2017, that's usually inevitable result that comes out of voting machine hacked with this, again.
276090	290310	Getting into the core of the presentation, 2020-21, Harry Herstey, founder of Defcon Voting Machine Village, he got a voting machine prototype from China that U.S.
290310	296350	politicians unnamed requested with all their bells and whistles specifications that sounds good.
296350	298010	Some steering committee met.
298230	303490	They decided what would be the best optimal software hardware for a voting machine.
303870	305170	Harry bought the prototype.
305170	307410	It was $70,000 plus shipping.
310930	312470	150 pounds to move.
312470	315230	It's not something that Meemaw and Peapaw could move in the voting poll center.
315230	316810	This sucker was heavy.
318750	323850	And to start off with, the voting machine had an LED touch screen.
323850	324610	That's fine.
324610	328330	A lot of voting machines has a camera to record you voting.
328330	329050	That violates U.S.
329050	329830	law.
330750	335710	It also records your fingerprint so we can know who recorded the vote for candidate A, candidate B.
335910	337810	You can also scan your driver's license.
337810	339670	Anybody concerned about this yet?
340310	341510	Oh, wait, there's more.
342630	348430	Of course, the keyboard, battery, the ticket printer, the machine will not run if it runs out of tape.
348590	362490	And if anyone's ever done a corporate expense report using Concur, I can't make the hand gesture, but it's a thermal piece of paper and that lasts about 15 to 20 seconds before the thermal paper is vanished.
362490	364490	Not that bad, but it's pretty bad.
364490	369890	And a copy is dropped into a sensible garbage can underneath for collection for re-audit.
369890	372410	So right off the bat, this is failing.
372550	374030	But wait, there's more.
375790	380590	You two guys in the front can't answer because you've heard this, but where do you get the device manual?
384740	387920	Directly from the manufacturer through the Alibaba channel.
387920	388900	It's not open source.
388900	391100	It's not available for public dissemination.
391100	399640	If you buy the voting machine for my precinct, I send you drivers and you patches directly for your individual precinct that the open source community can't investigate.
400400	403700	That's not the way things are generally done in this community.
403700	410740	So, cutting to that, we were located with the Internet of Things village.
412280	420400	So we're opening and someone's eager to start unplugging everything because that's the number one way to do forensics is just fucking unplug everything.
422520	428900	This isn't like any traditional device we've seen, hence why we're here and not in Windows 11 village.
432520	444820	We found the circuit board and someone had the idea to take a photo of it, do reverse image analysis on both TenEye images, Google.com and Yandex to see if there's anything like it.
444820	453660	Turns out this is a normal, standard Android board, but we weren't expecting Android board with open source software inside a $7,000 device.
453660	457740	We thought it would be something a little bit more polished, but here we are.
460320	468960	We ended up having to get Trevor and the other folks from the Internet of Things village to come and do a chip off extraction that ran all night.
471280	485540	And we came out with 128, I can't talk, 123.8 gigabyte file of just this wall of text after we got done doing the chip off.
492490	497310	So going back to the bare solution on this, the basics, well, one more.
497350	503230	The voting machine also had Bluetooth, Wi‑Fi, 4G, a bevy of ports on the back for connections.
503370	522470	So when it was fired up, there's a tool called a dope scope, it's a monocle style, geez, I feel like a hipster, a monocle style Kali Linux on a Raspberry Pi so you can see that it's Bluetooth and Wi‑Fi networks being created by a device and DFN on it so you can see what's being created.
522470	532130	Nothing new was created by this Chinese voting machine, but that's still a concern that we don't have control over what Bluetooth network is being beaconed out when you turn a voting machine on.
533790	544110	We eventually got what they claimed was the operating system on their Android 7.1 OS, but when we went down to ‑‑ well, I'm ahead of myself.
545210	560550	When we imaged it, the other reason this talk is here to support IoT village, I brought a $1,500 Pelican case for imaging out with me, all the fancy tools, everything else, I don't know if you all know, but TSA kind of crushes stuff when they go through it,
560550	565830	and here's this Pelican case, they're expecting firearms, it's worse, it's just cables, nothing fun there.
566350	576210	The one USB 3.0 type A to type B cable got crushed in the end, they just put it in the very edge of the case, shut the lid and gave it back to me.
576330	585210	So the entire kit was destroyed, IoT village guys were able to rebuild the ends of and that comes into this instructor mode slide of two is one, one is none.
585670	598910	The critical piece that runs the entire imaging for the DEF CON voting machine village was this one cable, and now that Fry's is gone, if they hadn't been able to fix it, we could have imaged the hard drive itself.
599790	602030	So always plan for the worst and have a backup.
602870	618690	Eventually getting to the core basics, took the 123.8 file, did grep to actually find what OS it was, and then from there, now that we have a known OS, we pivot over to the NIST database, if y'all want to take pictures or whatever, it's out there, it's free,
618690	634890	it's your tax dollars, but it's a list of all the known good OS software files, hash values on there, so you can load this database into whether it's Magna Axiom, Blacklight, Cellbrite, whatever, and filter out the known good files so you're only left with the anomalies.
635010	647770	So when you have this Chinese voting machine with a ton of unknown files filtering out what's known, what's good, and seeing the anomalies, now we can pivot to reverse engineering the malware, the stuff that's not up here, just because it's a little more sensitive,
647770	659450	but that's how we're able to extract the unknown device, filter it down to what device, what files are of interest, and then we have an advantage to see is this actually a trustworthy machine or not.
659630	665990	The consensus among the voting officials has been we absolutely do not want this machine in our precincts, period, full stop.
665990	671990	Thank you for the attempt, but this is about probably the worst design we could have ever come up with.
673330	675170	Next one, let me check time.
676810	678550	Not too many slides on this one.
678670	689730	Theoretically, this case didn't happen, but theoretically, if it did, there may have been a phone call that there was a device found in the corporate environment.
690550	700610	It was underneath a box, which is already in your, whatever, that's not sketchy, but there's a power cord going under a box, hidden beneath a bookshelf.
701070	705190	They're concerned that it's a bomb, because that's what everyone assumes, it's a bomb.
707930	722710	Somebody, probably a janitor moves the box and sees this as an iPhone, older generation iPhone, because, I'll get ahead of myself, they took a picture, sent it to my team, okay, it's not an explosive WTF over.
723770	735710	With my handle being iOS forensics, that's what I've worked on since 2007, I could tell right away it's a 30 pin phone, it's not the lightning bolt connector, it's not the USB-C connector that's now, it's an older device.
735710	743430	You know, once you go from the 5 to the 6, the 6 is much wider, like a really large candy bar versus a narrow 4 or 5.
743670	762310	So, okay, this is an older generation device, it's plugged in, and then, to make it worse, the reason there's a robot hand, there is a automated, there are gloves, where you can actually touch the device, you know, for people that live where it's cold and not in God's crematorium like Las Vegas,
762310	764810	it touches the device, okay?
764810	766310	This is really odd.
766610	770150	We don't have any iPhone 4s connected to our network.
770270	779110	Pivot over to the guest network, looking for iPhone 4 and Splunk in the connectivity, find that and see that it beacons out every day at 9 a.m., 5 p.m.
781190	785750	So, once we're sure this isn't a bomb, like, again, that's a big thing people freak out about, whatever.
790270	793750	Had to say that's still better than dealing with JIRA, but that's probably too dark.
796330	811510	So, we looked at this and saw this is registered also, don't register your device in true name, don't have Will's iPhone connected to the network, and definitely don't have the name of the contractor and his company on the iPhone.
811870	819570	So, okay, there's that, and we look for similar and saw not just his, but ostensibly multiple other coworkers for that contractor.
820030	828210	They had it set with these devices every day at 9 a.m., they would click on the device to log into our site and 5 p.m.
828210	833270	log off ostensibly on this site for time card fraud where they never actually had to show up to work.
833270	834890	It was just completely automated.
836810	844730	Yeah, so Internet of Things, the traces were still there on the network and the visual analysis helped us cue in Splunk to see what was there.
845070	850910	But getting into this, looking at the device, again, there's no photos because I like keeping my job and this never happened.
850910	852490	This is ostensible, allegedly.
853870	860850	So because it's connected and plugged into power, it's not battery driven, which means it can be left behind for a long period of time.
861890	867330	That means it has a higher level of collection or output because it can constantly connect to the Internet and beacon out.
867370	872610	But if it didn't have power, it's going to have a lower collection and storage is going to be limited as well.
872610	875950	So these three alone are going to tell you what's there.
875950	888930	For example, if it's a USB drive recording audio only, those are good for 128 hours of audio and battery, but someone physically still has to go into the site, retrieve it and pick it up.
888930	893910	So it's going to tell you what type of collection operation is being conducted against organization.
894010	899690	Because this was connected to Wi-Fi for Xfield and had power, we knew this was a leave behind device.
899690	905290	Plus, once you log in and see that contractor's ID, you can correlate the badge logs within Splunk.
905290	907130	We'll get to that with North Koreans as well.
907390	911010	And you can see this person is just purely committing time card fraud for a job.
911010	921590	All he has to do is show up eight hours a day in this economy, get a paycheck, but he went plus one to get creative and now he's upgraded to being a customer of the company instead of being a contractor.
923030	926610	The last one in the talk is the North Korean IT worker.
927290	929090	Anyone familiar with this issue?
929090	930510	Heard a couple of talks on it?
930510	930950	Okay .
931710	934510	We went with the Trojan Unicorns.
934510	937470	They look like the absolute best possible candidate.
937470	940150	They've always got ten years experience, no more, no less.
940150	942470	It's like a bad Monty Python skit.
942590	943990	They're the master of everything.
943990	946810	They have a resume that looks like the best of the best.
946810	950270	They've never accomplished anything, but it's familiar with, worked in.
950270	951850	They don't have any analytics.
952310	953590	But they look great.
954710	960330	So one of the people in the threat hunting chat said, you know, they love calling themselves minions.
960630	963530	They see Kim Jong-un is Groot.
963630	967830	They know they're just the minions collecting revenue from their day job, sending it back to him.
968190	971590	So the North Korean workers are brought to you by the red, white, and Groot.
973170	978990	Again, getting back to the Internet of Things angle on this, generally, these are remote workers.
978990	980470	They've never been on site.
980610	988250	When they get a physical asset, it is typically sent to a known North Korean laptop farm where it might be a U.S.
988250	993990	residence house, 20, 30, 100 laptops there, all maintaining different personas.
994090	999890	You'll have two or three people logging in every day on Teams, maybe attending meetings, maybe not.
999890	1001330	The camera never works.
1002310	1007150	But this has become such an issue now that the IoT and telemetry is out there, we can tell what's happening.
1007630	1010570	The biggest one is a Pi KVM.
1011170	1013330	Anyone in the audience have one of these?
1013350	1013830	One.
1013830	1015150	How much was it?
1019830	1020870	Okay.
1021250	1023590	Two or three hundred dollars for him.
1024170	1029470	The ones we've seen, not arguing, are around $800 for this model.
1029470	1031170	This isn't an accidental device.
1031170	1034730	This isn't the vendor was giving a swag in the hall on the mountain floor.
1034750	1051830	This is an intentional device that connects 20 devices, 20 different network connections to one keyboard, mouse, and monitor, so that one person can have up to 20 different jobs at the same time, collect 20 streams of revenue from North Korea, send it back to bypass sanctions,
1051830	1054590	help fund the North Korean nuclear effort.
1055030	1066570	Also, they're getting access to load malware, and you've now got the insider threat loading command and control software, too, for part three of the operation.
1066570	1068150	All right.
1068150	1069550	More audience participation.
1070450	1071790	Who's got an iPhone?
1072510	1073710	A couple people.
1073710	1074910	Who's got an Android?
1077340	1079840	Who's got a Linux emulator?
1083840	1086280	My North Korean friend over here.
1089340	1092580	It's not a common thing for the majority of the community.
1092580	1103660	But when we're looking at North Koreans, skip ahead to a slide, and we're using either Splunk with the 2FA logs or Microsoft Defender, it's going to be column A or column B.
1103800	1118660	Most people are going to have, you can see here, they're either going to have the Linux device, the smart people have no device connected because teams 365 collects everything you do on your phone, and everything.
1118660	1119980	That's a whole different talk.
1119980	1121120	Or it's going to be the iPhone.
1121120	1123640	Having the anomaly is going to stick out.
1123640	1128760	So you multiply the PyKVM and the Linux emulator device.
1129400	1138760	We're going to dig into that further because now you've got a third party contract worker with these two other TTPs of North Koreans, and you have a problem.
1140000	1141500	So we've got five minutes left.
1141500	1142900	We're almost at the homestretch.
1142900	1145060	We look at the device connections.
1145780	1164220	What iPhones are connected because instead just most of us only have one device, they'll have multiple devices connected to the same instance, whether you're looking at RedRipper, Autopsy, or DTEX, whatever UBEA tool you've got, forensic tool, multiple connections for one account is a major anomaly.
1164220	1165840	Same for the wireless headphones.
1165840	1167260	AirPods are not cheap.
1167260	1177940	And to see multiple pairs of AirPods connected to one remote device over the day, that's another clue that we've got Another is the 2FA numbers.
1179080	1181980	This is the data that's collected from your 2FA process.
1181980	1188340	I don't know how familiar... I was surprised, once again, insider threat to see how much 2FA collects on you.
1188800	1197040	Geolocation, latitude, longitude, if this is actually where you say you're working and you're running off a VPN while you're working from the Caribbean, that's going to beacon out.
1197440	1200460	So this is all OSINT we can collect on as 2FA.
1201420	1207180	Somebody as simple as Duo makes it this easy for your admins to collect all that PII on you.
1208240	1212700	And getting down into the OSINT on the Internet of Things.
1212860	1213620	Love this one.
1213620	1214680	It's spydialer.com.
1214680	1216760	I don't work for them, but it's a free tool.
1216780	1225460	You put in the phone number and you can listen to someone's voicemail as well as see who the TCOM provider is or if it's a Linux emulator or VoIP number.
1225500	1235760	Again, all this combined is going to give us more credibility for this is a person we need to investigate versus yeah, he had a PI KVM, but it's actually a Dell monitor.
1235760	1236620	This person is clear.
1236620	1238160	We can stop the investigation.
1238860	1254260	Digging further, the wiggle.net that the hard hat brigade collects on so frequently for DEF CON, we'll take the IP address from the 2FA to drop it to see if this person's actually working there or if it actually relocates back to a North Korean form.
1254800	1256760	Same for Splunk badge logs.
1256840	1261080	Your badge logs, I'm sure we know this, but there's so much in cyber that, oh, yeah, that makes sense.
1261080	1262500	You just don't think about it.
1262500	1266980	The badge logs are also an ingestible log for Splunk, so we can co-locate that.
1267100	1270820	They say they're badging in, but the laptop's at the farm and they've got an emulator.
1270840	1278840	Let's terminate access, investigate and see what they've been doing to protect the company because odd is just odd sometimes.
1279320	1281180	But I think we're about out of time.
1281180	1283700	The short version, the devices change.
1284160	1285820	The tradecraft doesn't.
1286160	1287540	The principles don't.
1287820	1290820	And you have to put out the fire first, then identify the arsonist.
1290820	1296980	Trying to identify the arsonist of the North Korean while they're still inside the company just doesn't work well.
1297240	1298320	So that's it.
1298320	1299220	This flew by.
1299220	1300760	Questions, comments, concerns?
1300760	1301940	Get off the stage.
1303220	1304060	Yes.
1311670	1312870	That's one of the hallmarks.
1312870	1314450	That's a whole different... not shutting you down.
1314450	1315450	That's a whole different talk.
1315450	1320370	They've got tons of excuses why video conference don't work.
1321350	1322750	I was on one call.
1322750	1326870	We asked them just simply walk to the window.
1327070	1329450	They said they were in North Virginia time zone.
1329450	1332390	It was pitch black outside, Beijing time zone.
1332390	1333230	Just walk to the window.
1333230	1336310	I'm sorry, Wi-Fi doesn't reach my window.
1337030	1344030	I can see your window like five feet, but you're not going to lose that much connectivity if you do this.
1344890	1350330	Or to quote little John, turn the laptop from the window to the wall.
1350350	1351910	Just do that.
1352830	1354510	And usually it'll disconnect.
1354510	1355290	They won't come back on.
1355290	1360390	Another one is watching the guys in the back so I know when I'm over-talking.
1360910	1364370	You just flat out human of, if your name is Bob, hey, Alan, how you doing?
1364370	1374910	If they just roll with it because, to quote Robert Downey Jr., if they're playing a dude who don't know what dude he is, they're going to take whatever you take as gospel truth and not correct you because they've forgotten who they are.
1375210	1379530	Or if, oh, that weather's terrible in Las Vegas, horrible rain, and it's this.
1380150	1386430	Just a little bit of human-style misdirection to see if they're being truthful with you or just they know they're being caught.
1386430	1389890	These people get fired so many more times than the average worker.
1390950	1394670	But any other questions before I get chased off the stage?
1398760	1399460	All right.
1399460	1400280	Thank you.
