start	end	text
0	10360	So my name is Aapo. I do a lot of things with IoT, but especially for my work, security research,
10360	17340	consulting, and mainly look at IoT and other kinds of devices. I work a lot on cryptography
17340	24840	and network protocols. Outside of that, bug bounty. So if you run a hardware bug bounty program,
24840	29760	you know where to find me. And I'm also a coach for a Finnish CTFT.
33400	43440	But yeah, so here is some IoT and my trusty EPC and I want to kind of see how it works.
43440	49080	I might want to hack it or I might want to check out something about it.
50600	57300	This particular device connects to the internet with an ethernet port or Wi-Fi.
57660	62320	So that should be quite straightforward. If we want to know where it's connecting to,
62990	72200	and that's a big part of IoT, we can simply plug in an ethernet cable to the device and the other
72200	79460	ends to our laptop. And then on our laptop in the ethernet interface, we will see any traffic
79460	87480	it's trying to send. We can do the same with Wi-Fi. So if we have our access point, the device
87480	94860	connected to it. And then again, we will see the traffic on the ethernet interface.
97120	104640	But there are some kind of devices and especially industrial IoT that have a very specialized job
104640	111700	and they have been made to be very cheap. So they have only one way to connect to the internet.
111700	118960	And nowadays a big part of it is something else than ethernet or Wi-Fi.
119540	127280	So today we will be talking about these kind of devices. So some kind of 4G connection on this one
128180	135060	and how that works. There's a modem, you plug in a SIM card and it connects to 4G and it's connected
135060	144900	to the internet. But the problem is how do we actually see the data? So this is kind of the
144900	152140	topic of today. There are also different kind of devices. They might have multiple ways of connecting
152140	159080	to the internet. So here we have a phone currently connected to my Wi-Fi access point and I can see
159080	167060	everything it's sending to the internet. Or can I? So if you might not be able to see it, but there's
167160	174000	a little 5G icon there so it's actually connected to 5G as well. So question is, is there traffic
174000	183060	over 5G as well? So it might be something built in, there might be something malicious. So
185260	187320	let's talk about that.
189520	195860	So why would you want to look into mobile network traffic? If you're just a tinkerer, if you're at
195860	203340	Defcon here or watching this video, then you might be curious. You might care about your privacy.
203500	211660	You might think, where do my devices talk to? Is there some kind of unencrypted private
211660	217600	information flying through the air? And if you are in traveling in some countries you might want to
217600	227470	kind of know what exactly your devices are sending. From offensive security point of view, we
227470	232690	might think that can we tamper with the traffic and find vulnerabilities? If you do penetration
232690	240530	testing and you have these kind of devices, you need to hack them, you need to kind of do some
240530	248810	kind of security audit or something like that. You might want to look at the traffic. Can you
248810	255250	say we've kind of penetration tested this if you haven't looked at the mobile traffic?
257820	263960	From defensive point of view, you might want to detect malicious traffic or just filter some
263960	270560	unwanted things. You can do this in most cases on the device. So if you have a phone, you can
270560	277040	install something and it will kind of filter things or endpoint detection or whatever.
277040	283180	But if you have some advanced malware on your phone, it might not respect the on-device
283180	289980	protections. So if it's running on very low inside the operating system, it can easily just
291480	299840	not allow the endpoint protection to run. So we might not want to do the testing on the device,
299840	311750	we want to do it outside. So what are these mobile networks? Sometimes called like cellular
311750	322110	networks and these come in different flavors. There is 2G, 3G, 4G, 5G, etc. Some older ones,
323030	330970	but I think these are the currently used. And in 4G and in 5G, there are these slightly different
330970	341690	like NB-IoT is a special version of LTE. But the main thing is that you have different
342890	350250	frequency bands and special radios that can talk with these protocols.
352030	358270	Usually the mobile networks are operated by internet service providers, so ISPs,
358270	364410	and they have massive amounts of base stations all over the world. So if you
364410	371910	have civilization, you most likely have a mobile network there. And how you use these mobile
371910	379210	networks is you just buy a subscription from an ISP, they will give you a SIM card or send it to
379210	384630	you, and then you plug the SIM card into your device, the SIM card authenticates you to the
384630	395330	network, and then you connect. You can kind of send text messages or phone calls, but nobody
395330	402090	really does that anymore. So it's mainly used to route IP traffic from your device to the internet
402090	410530	or wherever you want to go. Usually this mobile network stuff, this is very specialized, and
410530	418410	it comes in this separate hardware module called a modem, and that's a separate device on your
419170	426690	device. These modems are very complex, usually run their own operating systems, and are basically a
426690	435450	small computer that you just connect to your board, and then it handles a lot of things.
437670	443030	Here you can see a picture of this, so on the left we have a mobile device.
443210	452350	It has a CPU and a modem, and the CPU runs some kind of operating system, Linux or Windows or
452350	459530	whatever, and then talks with the modem and offloads the actual mobile network thing to it,
459530	465290	and then you just give it data, and the data somehow finds its way into the internet.
467610	476030	On 4G we have these cell towers, so these are the base stations that are all over the world,
476030	483230	and your device usually connects to the nearest one or the one with the least amount of traffic,
483230	491280	so they handle it themselves. The cell tower is connected to the ISP infrastructure,
491280	498600	so there's different kind of things, we're not going to go that in depth, because this talk
498600	505760	not only covers 4G, but all kinds of mobile networks. But usually they have similar way of
505760	512440	operating, so first the radio connects to a serving gateway, and some kind of authentication
512440	519640	mechanism, so the SIM card from the modem talks with the auth, and then your
520620	526700	mobile device is then, the traffic is routed with these packet gateways to the internet.
530920	536040	So how do we intercept this mobile network traffic? So if we want to analyze it,
536040	541100	we need to see it, to see it we need to somehow intercept it at some point.
543860	551260	So of course the easiest way to intercept traffic is on the device. So just log in,
551260	558820	run TCP dump, and you will see the network connections. So if you have a Linux based device,
558820	565580	the CPU is sending the data to the modem, but you can look at the traffic already on the device,
565580	571500	so no need to any kind of fancy things. So if you can do this, it's very powerful,
571500	577160	and especially if you want to know if your device is accepting connections, you might want to take
577260	583680	a look at that from the device. So no need to scan all UDP ports if you just like, type in a
583680	591200	command that shows you all listening UDP ports. This however, requires root access to the device,
591200	597600	so if you want to hack something, um, you might not have this, or if you have some kind of secure
597600	604540	device, like an iPhone, you might not be able to, uh, have enough permissions to do this.
606020	611180	And also I said that the modem has its own operating system, might have some over there
611180	618080	updates, uh, some of the functionality can be offloaded to it, so for example FTP, uh, you can
618080	623900	just say to the modem that hey, download these files from this FTP server and hand them to me.
624680	630540	And that might not be secure, and if you're just looking at the traffic on the device, you will
630540	635520	most likely, you will not see that. And if you're doing penetration testing and you have been
635520	641580	relying on this, I have bad news for you, you haven't kind of done your work really well. And
641580	649540	we have found a lot of vulnerabilities in the modems. So if we actually want to intercept the
649540	656100	traffic, um, there is the CPU, there's a modem, so how this works is they have some kind of
656100	663580	serial interface, usually not encrypted because you don't really need to, and um, just kind of
663580	670100	look at the board and find the traces and sniff them. Um, this work with these AT commands,
670100	674860	sometimes a little bit different, but basically the CPU says to the modem that hey, please make
674980	680280	a connection to Google and then send this data through that connection and you will get the
680280	690780	traffic. So you can just kind of sniff the traffic and decode it and or even replace the modem
690780	698040	with your own software based simulator. So this is something that we've already done. Um, in
698040	704300	some cases it's quite simple. If you have kind of uh, clear traces and you just solder your
704300	712480	serial port adapter to it and pull the modem to reset, you can do this. But of course it requires
712480	721440	hardware reverse engineering and some tiny soldering and again, uh, there's very complex setup
721440	729900	sometimes, so um, it might not be as easy as is shown here. And we cannot see the modem's own
729900	739540	traffic, uh, here as well. Um, I usually have written my own because it's quite simple to do,
739540	746500	but I found this uh, GitHub project that seems to have uh, made similar thing. So if you want to
746500	756240	play around with this, you can look at that and uh, try it out. The next thing I tried uh, to run
756240	762500	my own base station because I want to see the modem traffic. I figured out just like I have my
762500	769300	Wi-Fi access point, I'll do a 4G access point. Um, you can uh, buy this, uh, you can build your
769300	777680	own and um, the software defined radios can do pretty much anything nowadays. Just a couple hundred
777680	785000	bucks and uh, open source software and, and you can do this. A basic setup, like a thousand bucks,
785000	790820	not that much if you're into kind of uh, professional uh, penetration testing. Uh, but it
790820	796680	requires a week worth of work to get some running. And if you want to buy the commercial thing
796680	805320	then it's, it's really expensive. Uh, the problem with these, the radio bands are heavily
805320	812940	licensed. They are used uh, quite a lot and that means that kind of all available bands have been
812940	818820	bought by someone. Uh, so it's illegal to run without a Faraday cage. So you need to have a kind
818820	826960	of pouch uh, that you put your radio in and your device in and you have to kind of uh, be careful
826960	832360	not to leak the thing because someone will find you and uh, come find you. Some of the frequency
832360	839420	bands can be licensed. Uh, some countries have unlicensed bands but then you're limited into that
839420	848800	one band or uh, that one physical location where you are running this. So if you're into this,
849510	855440	there's the Libra Cellular, they have good instructions how to do this, but I have something
855440	866370	better for you. So let's go back to the 4G mobile network. We have our mobile device, it talks
866370	873270	to the cell tower and then there's the authentication and some other stuff. But what exactly
873270	880270	is that other stuff? Like I said, the device is authenticated with SIM card, but it's not
880290	887350	authenticated with SIM cards. And then there's some kind of uh, packet filtering uh, going on.
887490	893770	There is this thing called lawful interception that uh, kind of means that your traffic uh, can
893770	899930	be inspected by the authorities. Uh, and I think if it can be inspected then it most likely
899930	909930	is. Um, but yeah. Other things that it does is policy enforcement. So basically it means uh, if
909930	917630	you buy a slow speed subscription it will make sure that you won't uh, get good speeds. They
917630	923390	calculate the billing so if you have a kind of per megabyte subscription then they calculate
923390	932110	the megabytes. Then they route the packets. So there might be some kind of ISP internal
932110	939790	things like uh, DNS servers. So some of the things might not go to the internet at all. Um, so
939790	950570	they might go to kind of uh, internal uh, DNS service or, or something else. But um, also the
951090	959230	packets can be routed internally in different ways. So we have these things uh, called APNs. Uh,
959230	969470	which basically mean that um, how to uh, route your packets uh, inside the ISP. So this is
969470	975410	something that if you're old you know what these are because you've kind of gotten a new SIM card
975410	979530	you put it in and it doesn't work. And then you need to go to these and then you need to type
979530	985830	something. But nowadays you might not even uh, know that these exist. So, and if you need to
985830	991850	type something you just type in internet and then you get to the internet. Uh, these are actually
991850	999450	used uh, so you might have some kind of uh, restricted internet or something. So uh, some ISP
999470	1008870	is um, uh, offer some kind of child safe things so they do more, more things uh, uh, or some kind
1008870	1014690	of uh, at some point you can kind of get more speed if you, from some, certain ISP. So if you
1014690	1018690	don't use the internet but you use something else then it's faster because there's less people
1018690	1025870	there or, or something like that. But usually just um, you use what the, comes with the
1025870	1032230	subscription. So these uh, a big change nowadays that these are pushed usually through the
1032230	1037910	network to your device. So when you connect and you don't have an APN, the modem asks the
1037910	1044810	network that hey, like do you have something for me and then it's automatically set up. You
1044810	1052170	can change these uh, configure them manually on the device um, but it might not be respected by
1052170	1057170	the ISP. So it basically just tells the ISP, hey this is what I want, but it can of course
1057170	1071210	offer you whatever it wants. So there is this uh, thing called private APN. So um, something
1071210	1078190	that uh, you can kind of buy as a service. So if you run uh, big fleets of IOT devices, you
1078190	1085190	might want uh, to buy this uh, from an ISP. So they will set you up with a internal network
1085190	1092130	where uh, your devices are connected to and they might not go to the internet at all or there
1092130	1097710	might be some uh, uh, kind of you can run your own server there or uh, something like that.
1097710	1106610	It's a private network um, and they can be configured uh, however. So routing, filtering,
1106610	1114750	everything can be configured and direct connection between the devices are kind of at least uh, you
1114750	1123250	can configure them to be allowed. So this is a big difference to normal uh, APNs that you cannot
1123250	1131390	really do device to device connections, but you just have to go through the internet. These also
1131390	1140470	by default usually they don't filter the traffic, so it's um, sometimes the ISPs don't really like
1140470	1146990	some kind of uh, traffic or if you do like port scanning over mobile network, they might shut
1146990	1157280	you down and you don't really know if it uh, works or not. But so you can also set the private
1157280	1162400	APN to connect you to the internet, so you have access to all these services and then you can
1162400	1169120	get uh, also access the internet uh, maybe even with a static IP that then you can configure your
1169120	1175220	servers to only accept that. So then, it's used quite heavily in IOT, so that's where I found out
1175220	1182900	that this exists and I, a lot of the customers are using this. So I kind of figured that this
1182900	1192200	sounds something that kind of, if we want to do this uh, inspect the packets and they use the same
1192200	1198860	things for the lawful interception things, then it might help me kind of uh, look at my traffic.
1199800	1208600	So, I had this question, could I get a private APN? Sounds expensive and uh, I went on a journey to
1208600	1216440	send a bunch of emails to different ISPs and uh, I found out that there's a huge variance in price
1216440	1225100	and usability. So, the first place I went, they had this uh, contact us for pricing and they were
1225100	1230860	like, yeah, we can do this uh, no problem, so you just pay us 3K to get started and then 500
1230860	1237760	monthly. So I was like, yeah, this sounds a bit too much for a proof of concept and I might as well
1237760	1244520	just run my own base station in a couple of offices. Uh, the next place they were also contact us
1244520	1250820	for pricing, but I was pleasantly surprised. So, they also said that hey, just go to our self
1250820	1258220	service portal and activate it and you're good to go. And they had a 100 USD setup fee and 150 bucks
1258380	1267000	a month. So this is completely doable. There's another place, so they have this uh, $10 setup fee
1267000	1274260	and 75 cents per hour. So different uh, pricing models, so if you look at the, in the similar
1274520	1282200	schemes here, so the first one, if you kind of no matter how much you use it, it's 250 bucks, but uh,
1282200	1290220	then for a year it's just 2K. So you can rent it out easily and uh, other one, so 30 bucks a day, 100
1290220	1297020	bucks a week and 6.5K for a year. So if you want to kind of uh, do it for longer times, you might
1297020	1304500	want to have this uh, local ISP and then uh, if you just want it for a day, then you can just
1304520	1313040	do it. You have options for that. There is a lot of difference in coverage, so some of them are
1313040	1317520	really global, they offer services in all the countries, some are US specific, some are EU
1317520	1324400	specific and even uh, some are just uh, inside your country. There's also differences in the
1324400	1328800	available data plans, so you still have to pay for your subscription even though you have the
1328800	1338180	private APN because it's kind of a different thing. Um, some of the like IOT orientated ISPs,
1338180	1344720	they offer a really good pricing that you only pay like 2 bucks a year if you send 100
1344720	1350320	kilobytes of data a year. But if you want to uh, look at your phone traffic, I recommend not
1350320	1358780	using these uh, IOT things uh, because it might be uh, costly. But some of uh, just the
1358800	1364240	regular ISPs offer this, so then you can uh, use your own uh, already kind of own
1364240	1370760	subscriptions and you can have like unlimited data for uh, whatever you are paying for it in
1370760	1379750	your country. And then you can push that to the private APN. So how to configure this? Like
1379750	1385990	once you buy it, first you want to disable the traffic filtering if there is one. Um, and
1385990	1390670	then disable routing to the internet because we don't want the devices to connect to the
1390670	1401410	internet without us seeing it. Next, just uh, site to site VPN between the private APN on kind
1401410	1407810	of our cloud server. We could do a bunch of these things inside the private APN, but I kind
1407810	1413030	of like to be in control uh, of what I do and have like command line access to the server
1413030	1420490	where, where the data is. But once we have the tunnel, we can set our cloud server as the
1420810	1425830	default gateway for the network and that basically means that all the data from the SIM
1425830	1432070	cards first go to the private APN and then it's just shoved through the VPN tunnel uh, into
1432070	1439770	our cloud server. And this basically should mean that the SIM card data is now on our cloud
1439770	1447890	server. And so we need to add some mobile devices to the private APN, so we have our SIM
1447890	1456450	card, we push it into the device. Uh, some ISPs uh, kind of require you to set some uh, APN
1456450	1463250	settings uh, on the device so they are not pushing anything to the devices or they uh, are
1463250	1469590	roaming and you kind of need to set it up. Uh, and kind of some of the ISPs that say that
1469590	1475450	you need to set the APN and you need to set it to this, you might be able to just set anything
1475450	1483230	and it works like on some carriers and then some it doesn't and it's, it's weird. So uh,
1484030	1492450	uh, yeah. And then there are some ISPs like if you actually run uh, both the kind of ISP and
1492450	1497330	you run the kind of infrastructure and you run the cell towers and everything, then you have
1497330	1503990	more control over things. So you have this easy check box that just redirect everything uh, to
1503990	1509550	the private APN no matter what settings or anything there's on the device. So this is uh,
1509550	1515850	something that uh, you want to look for uh, when you are uh, testing devices that don't want
1515850	1521650	to be tested. Uh, because then you just uh, it thinks it's connected to normal internet but
1521650	1533750	it's connected to you. And this should be it. So profit. Uh, let's see. So this is a proof of
1533750	1539810	concept for this. So I talked about there's the IOT device connected to some of uh, some
1539810	1547670	AS uh, ISP and then there's a private APN configured uh, inside the ISP. We have the IPsec
1547670	1561310	VPN tunnel to our server and then I'm SSH into the server. So uh, yeah. Let's see a demo. So uh,
1561310	1569870	here we have the trusty EPC. So it's kind of, it doesn't require fancy things. You just SSH into
1570490	1577550	your uh, server. My server is called private APN because it's connected to the private APN. Here
1577670	1584170	we are running a TCP dump. So the interface is the IPsec VPN tunnel interface and we're looking
1584170	1599660	for traffic from host uh, 10.2.2.2.0.1. And yeah. So we have the uh, 2.2.2.0.1 SIM card. So
1599660	1606660	that has like statically uh, static IP that every time that uh, SIM card is pushed to a device it
1606660	1614600	will get that IP address and here it is uh, booting up. And I'm really interested to see what it
1614600	1627460	actually does. So let's see. Of course takes some time to boot but uh, we have uh, yeah. And now
1627880	1636220	we see some traffic. So it wants to know the time. So not that interesting after all. But if you
1636220	1642320	leave the SIM card to the device then you will see some uh, unencrypted uh, location data from
1642320	1648620	that. So if you're running that tracker somewhere, uh, the ISP knows where you're kind of uh,
1648620	1655420	exactly where you're running it. It's kind of uh, one nice thing about this setup is also you just
1655420	1662220	kind of uh, put the SIM card into something and then you see the traffic. So here is a modem. It's
1662220	1670200	used to connect uh, laptops or ethernet based devices uh, to the internet with 4G. So here it's
1670200	1677020	booting up. And I like I said, it runs its own operating system. This is kind of a device but it
1677020	1682420	might also be a chip uh, inside your phone or whatever. But they run their own operating
1682420	1690920	systems. So once it's uh, booted up uh, we can see that it has, so it actually says here zero
1690920	1700060	devices connected. But there's uh, data there. So it's connecting to netgear.com and uh, a lot
1700060	1706060	of, doing a lot of things. So it's downloading or checking for software updates. But luckily we
1706060	1712360	can see that it's uh, 443 so it's DLS traffic and I couldn't use my certmetem tool to hack that
1712360	1720500	so it's, it can be okay, maybe. But now we at least know that it's, it's not uh, completely bad.
1722630	1732390	And also, so here, next up we have an iPhone. So we're booting it up and uh, I have the SIM card
1732390	1738030	tray and you can see me struggle getting it in. So this is the kind of hardest part of the setup
1738030	1743750	is actually kind of boosting the SIM card inside. One of our project uh, kind of penetration
1743750	1747770	tester pushed the SIM card and it, we heard this kind of clunk, clunk, clunk, clunk, clunk
1747770	1752270	because it was inside the device and it was a competition and we only had 30 minutes so we
1752270	1758190	had to shake it out of the device. But yeah, that was one joke and uh, that's all of them.
1758290	1762910	So if we push the SIM card into the device, you can see it's actually locked. So this is the
1762910	1770450	first boot before unlock. We push a SIM card into an iPhone, so let's see what happens.
1773360	1782320	Yep, so it's connecting to somewhere. So in here I think it's doing uh, some uh, push
1782320	1789340	notifications so it's uh, getting that. And I think it uh, won't do that many things before you
1789340	1794680	actually unlock it but we are actually seeing something. So if you are into hacking locked
1794680	1805740	devices, you might want to look into this. So yeah, so this is the demo. That's uh, how easy to
1805740	1825370	actually run it uh, once you've set it up. Yeah, and let's get back to this question. So is there
1825370	1831750	traffic over 5G as well? So of course when I made this slide I was like hey, I will need to kind
1831750	1838670	of uh, check it. So this is my phone, I connected it to a Wi-Fi, then I pushed the same SIM card
1838670	1846370	into it and this is what I see. So even though it's connected to Wi-Fi, you will see traffic. So
1846370	1852370	these are the, I think similar Apple push notifications. Uh, first when I Googled these IP
1852370	1858770	addresses I went kind of uh, the first match was some weird Russian forum and I got scared. Um,
1858770	1870310	but turned out it's uh, maybe not some uh, malware on my phone. But yeah, so there is uh,
1870910	1876510	something that the operating system does so it overrides the Wi-Fi and pushes directly uh,
1876510	1883470	through the 5G. And if there is some kind of advanced malware then it might also pop up here.
1885870	1901430	So proof of concept it's kind of uh, kind of uh, yes. So uh, from kind of moving on from the proof
1901430	1907530	of concept to an actual project that uh, you guys can use. Uh, so I collaborated with some IOT
1907530	1914010	security experts. Some of them are here in the room and they have had the same exact problems.
1914130	1921350	So, how do you, of course they have the problem of how do you kind of uh, look at your mobile
1921350	1928290	traffic and bunch of them were in the face of using their own uh, kind of mobile base stations
1928290	1935330	and uh, software defined radios and kind of trying to use an IOT device that you need to kind of boot
1935330	1940630	up and then you need to press a button. But once it's inside the bag it's kind of hard to best
1940630	1946410	press the button and uh, then I told about this that hey I, I kind of uh, think this is the way to
1946410	1954030	do it and, and kind of I can see them contemplating kind of uh, years worth of uh, doing all the
1954030	1964270	previous steps. Um, and yeah some uh, I also heard that they are running similar setup than I do.
1964270	1973190	Like one person I know that has been running this uh, and a bunch of that haven't. So of course
1973190	1978930	I'm from Finland. We have the kind of uh, holy land of uh, network connectivity so of course
1978930	1985450	everything works there. Uh, it's cheap and uh, stuff like that. So I wanted to look at the US
1985450	1994330	where it's uh, the opposite. There's, it's not cheap. Um, and also EU and global stuff. So it
1994330	2002230	turns out a lot of ISPs and companies offer affordable private APNs and um, they a little bit
2002230	2011290	different but uh, I created this uh, GitHub page so it's online now. And you can see this uh, to
2011290	2019610	get uh, some up to date things. So they are, there are global ISPs there. So one of the ten
2019610	2027530	bucks uh, to set up and twenty bucks per day thing works everywhere. Uh, if you've seen me uh,
2027530	2034050	before today I've kind of given out bunch of SIM cards so you can try this out. But uh, there
2034050	2040230	would, should be something there that works in your country. Uh, but of course the global IOT
2041570	2047670	providers might be too expensive for your use case if you want to use more data. Uh, and if you
2047670	2053970	want to use kind of your existing uh, mobile plans or you want to use your local ISP, you really
2053970	2060170	should kind of show them this GitHub page and ask them hey, do you want to go there on the GitHub
2060170	2068110	page so people will buy your services and uh, figure out if you can make it work. Uh, if they have
2068110	2073830	to do it manually it will be expensive. So uh, usually you want to look for something that has
2074370	2083950	a, a self service portal that works. But yeah. So this is my kind of uh, full set up. And this is
2083970	2092550	the GitHub that I run. So I have uh, multiple IOT devices connecting to an ISP and so a global ISP
2092550	2099830	one of the devices is in Helsinki in uh, in my home. One is here in Las Vegas. And they are kind
2099830	2106670	of in the opposite sides of the world but they still connect to the same ISP. And they do the ISP
2106670	2113950	stuff. Go into the private APN. Uh, different uh, ISPs have different kind of uh, different
2113970	2122750	tunnels. But uh, they end up in my, my server. There I run WireGuard but you can also set up uh,
2122750	2130210	another type of VPN uh, for your pentesting like uh, workstations. So here I have on the right
2130210	2136830	like a Kali Linux machine in Helsinki. Uh, some of my colleagues maybe be in Stockholm and they
2136830	2143170	have the same. And uh, with this uh, VPN server on the cloud server. So there's like one to one
2143170	2151530	mapping. So IOT like SIM card one goes to VPN profile one and the VPN profile one is opened uh,
2151530	2158390	in Helsinki. And then the traffic just magically goes there. So once you set up this uh, if you
2158390	2163690	are working in a company, your colleagues will love you. You just hand them out SIM cards. You
2163690	2169710	hand them out uh, uh, VPN profiles. And then like they're hey, what's this? And you just hey,
2169710	2174450	push that in there and then just double click that and then you see the data and everyone's
2174450	2181670	amazed and you're a hero. So uh, it's that easy. But you can of course don't have to have this
2181670	2189870	fancy set up if you just want to do everything on the cloud server you can do it there. Um,
2189870	2197810	also like I said on the GitHub you have um, a list of uh, private APNs. The list is quite small
2197810	2206610	because I use things that I found that work in Finland. When I flew here I tested uh, London. So
2206610	2213490	in London this works great. Uh, here uh, I run into the problem that the modem I was using to
2213490	2221210	kind of uh, figure out if they work in different ways. Uh, doesn't work in the U.S. because I
2221210	2228950	noticed that the U.S. has different mobile network stuff for some reason. But um, I tested that
2228950	2234650	these work well on my phone here. So I just push it into my phone and I can see the traffic uh, on
2234650	2245570	the server. So confirmed to work well um, everywhere in the world. But yeah, so let's wrap up
2245570	2252950	and um, go back to the kind of why do, would you want to do this? So curiosity and privacy.
2254030	2261050	Fifty bucks, couple days of tinkering on a device, like that's a good deal. Uh, it's actually the
2261050	2267610	fifteen bucks is like one evening of like six hours of of uh, tinkering with this. So not, not
2267610	2274090	much. And even if you use this uh, if you want to use it for a longer time you might want to look
2274090	2281410	into uh, other options that are kind of uh, less expensive in long term. But hackerspaces or even
2281410	2287890	tiniest penetration testing companies, like two K a year should be a no brainer to uh, if you
2287890	2296530	really want to look at the traffic. Offensive security. So if you do penetration testing on IoT
2297140	2302910	and you say to your customers that hey we kind of look at the device and look where it's
2302910	2308910	connected to, you really need some kind of setup to do this. And two thousand a year versus an
2308910	2314850	illegal setup that's kind of, you need to have your best engineers work a week on, so that's
2315550	2324050	really expensive as well. These devices, especially in industrial IoT, uh, they're
2324050	2329570	everywhere and people don't really look at their traffic that much. So there's just a handful of
2329570	2338890	companies that actually I know that do this, but now anyone can do this. And like I said,
2338910	2345030	maybe some new attack vectors for high security devices that if you can push a SIM card in and it,
2345030	2354270	you get the data then you can also uh, send some uh, malicious things uh, to it. Defensive point
2354270	2361590	of view. So these private APNs, uh, like I connect it to my server, but you can connect the
2361590	2367390	IPsec tunnel to your existing firewall. So if you are running some kind of uh, firewall, then
2367390	2375350	uh, you can just connect this to it. Um, kind of the first devices might kind of uh, cost something
2375350	2381590	and then you, it costs more to add devices but the cost goes down uh, gradually. So if you have
2381590	2390910	thousands of devices, it will be still uh, quite uh, inexpensive to do. And the mobile phone
2390910	2397370	malware infections, they might not communicate at all over Wi-Fi or VPN. So there was this uh,
2397930	2404410	hack, some kind of some triangles or something and uh, they said that when they noticed the
2404410	2409710	hack, uh, they were uh, scanning there or like they were looking at their Wi-Fi traffic at their
2409710	2416150	office and they noticed that some of the phones were sending things to some uh, C2 servers. And
2416150	2421970	they also analyzed the malware and the malware had these properties that it can detect if it's
2421970	2429890	been uh, run over Wi-Fi or VPN and not do it. So it might have been misconfigured to allow traffic
2429890	2434430	over Wi-Fi because why would you, people are looking at the Wi-Fi, why would you do your
2434430	2439410	malicious stuff over that? So it might have just been a misconfigured malware that they
2439410	2446190	happened to find through their Wi-Fi. So I, my thing that the advanced malware that sometimes
2446190	2452310	are not that advanced uh, might get better at this or they might already be doing this and that
2452310	2461810	was just one uh, slip up. Uh, so yeah, if you're targeted by uh, advanced malware, you might want
2461810	2470030	to do kind of, this kind of thing. But you can find the project details, you can uh, snap a uh,
2470030	2475910	photo of this to remember it and you can find me here at DEF CON or the internet and uh,
2475910	2479450	thank you for your uh, coming here.
