Without further ado, I'm going to let Vlad introduce himself, but thanks guys for attending. I know it's Sunday morning. Hopefully you're not super hungover. All yours, brother. Good morning. This is the presentation on Jumping the Epidermal Barrier. My name is Vlad Gustamelsky. I've been doing penetration testing, red team stuff, breaking embedded systems and medical devices professionally for about 18 years. To do research for this talk, I worked with Dr. Stan Niden. Unfortunately, he couldn't be here today because he had issues with his flight. Something about delays at the airport and somebody taking a flight for a joyride. Quick disclaimer, the opinions are my own, not of my employer. There are FDA regulations about devices. The device we're going to be talking about does require a prescription. You're not supposed to just go on eBay and buy it. You're not supposed to just order one from Europe and have it shipped to your house. So definitely don't do that. I'm not picking on any one particular vendor. The device I'm presenting on about today is actually one of the slightly more secure ones that we found. We found devices that were far worse. And until somebody actually fixes them, we're not going to release the findings publicly because it's only fun to kill people when it's in a pen test report, not in real life. The device we're talking about is a device that we're going to be talking about today. The device we're playing with is a Freestyle Libre device. It's a continuous glucose monitor. So for those who don't know, let's quickly go over what it is and what it does. So as I mentioned, it is a control device. You can't just walk into a CVS and pick one up unless you have a prescription. The reason people use them is because it doesn't require continuous fingerprints. It's a device that is continuously attached to your skin. According to the FDA filings and the FCC filings, the sensor is supposed to work for 14 days. For some reason, the sensors I've been given only work for 7 to 10 days. The way that the sensor communicates with the reader is using RFID protocol. It's a passive sensor in 13.56 megahertz range. It's supposed to be readable to 3 meters. From what I've been able to see, it's actually more like maybe 1 meter. It's a fully passive sensor. It's a fully passive device, meaning unless you have the reader near the sensor, the sensor will not broadcast information. You essentially have to ping the sensor. It's not like your E-ZPass, which is an active transmitter. It's more like the tags that you see in a store or the kind of tags that your employer typically gives you to badge into a building, which are most typically passive sensors. This is roughly how the ecosystem is supposed to work. There's three typical use cases. The one that really got me interested in doing this is the E-ZPass. The one that really got me interested in doing this research is the continuous glucose monitor attached to your skin paired with a pump that actually injects insulin as needed based on the way that you and your doctor configured it. The second use case is just using the reader and being able to use the reader to inject insulin to yourself or to take other action based on the numbers. The third one is if you have a cell phone that actually can do RFID reads, is you can actually hold up your cell phone up to the reader and get the reading. And then it can then push the information to your watch or push to Apple Health or whatever other management software you use for your readings. As I mentioned, when we selected this device for doing the presentation, it's one of the less horrible ones that we've seen. The way the ecosystem works is that this reader actually activates the sensor. You're not continuously broadcasting, unlike some of the other sensors we've seen in the market. If you were to take a sensor and come up to me, your reader would not be able to read my sensor because it has not been paired. That's completely artificial. I use an RFID protocol, so you can actually do a wideband scan and read any kind of RFID device. So the logic in this reader is what prevents it from reading somebody else's sensor. Once you activate the reader that's attached to you, you can actually configure it to be readable by any reader or by the phone. But when you first activate it, when you first place the sensor in your skin, it is in a non-active state, and it cannot be read by a phone. It has to be activated by one reader, and by default, that's the reader that's paired to it. So after that, this reader would only be looking for that particular card ID. Some of the things we didn't like about this is that the sensors are officially time-banked. As I mentioned, I was getting about 10 days' worth of readings from my sensor. Upon opening up the sensor and examining it, the battery still had sufficient charge in it to operate quite a bit longer. If you're speculating that this may have something to do with sensor calibration or sensor corrosion, since there is a needle that pierces your skin, the needle is actually slightly longer than I was expecting when I was going through this research. Not a fan of needles. The battery life, as I mentioned, is pretty impressive, but it's artificially time-banked either to make you buy a new sensor. By the way, each of these sensors that lasts only 10 days is $100. And it's set up to require authorization. Keep in mind I said authorization, not authentication, so it's actually quite easy to bypass and spoof. So this is what the two major components look like. This is the reader, and this is what a packaged up sterile sensor is before we apply it. I'm hoping not to fly with it with TSA trying to pull it off because sometimes they're not too familiar with this hardware. So, as I mentioned, there's no actual authentication. When this reader is placed on your skin, it will accept activation from any reader. The reader, it looks for a particular serial range of sensors. So if you have an American reader and you buy a sensor from Europe, it actually will not activate. They're trying to force you to pay U.S. prices for these sensors, which is pretty interesting. Looking at this device, you'll notice that there is a USB port. The device does support USB mass storage, but it's not activated by default. You actually have to mess with the firmware to activate mass storage, and then you can pull off an entire CSV file of your readings from this device. You can also push firmware updates over USB. I have not been able to get my hands on official firmware. I've seen some on the forums, but they were not for U.S. readers. So if anybody does have a copy, I would love to get my hands on it. The device is also running a USB debug interface, so it's easy to fuzz and make the device crash. It's also possible to introduce false readings into the device, which gets us into data integrity. If you were to use a radio, a standard RFID reader, you could read a tag, modify the data, and change the glucose reading, and change the time stamp. You can write it back to the reader. There's no integrity check. It's also highly susceptible to replay attacks. For example, I can take a reading, so since this device doesn't keep a time stamp, I can keep playing back the same reading, and the device will happily log it, which is pretty bad if you're relying on it for making medical decisions or treatment decisions. What we've found is a lot of times the patients will actually call their doctor to discuss their readings before taking action if they're out of norm. So the doctors also rely on this data. Don't make somebody come into the hospital. From speaking to doctors, sometimes don't make a patient actually do a fingerprint, a fingerprint reading, as opposed to just relying on a CGM. There is an add-on product that works with the sensor. It provides a Bluetooth bridge, which means that even if your phone doesn't have an RFID interface, you essentially wear a band over your sensor, and it'll continuously transmit your CGM data. There's some really fun Bluetooth attacks, which means you can actually force a legitimate cell phone to unpair from the Bluetooth bridge, and you can then pair with that sensor. Since it's not made by the same manufacturer as this glucose monitor, we didn't focus on it too much, but you can read up on it. So the Bluetooth bridge is actually not a prescription device. You can buy it and play with it, because the FDA regulated device is the sensor and the reader. Not the Bluetooth bridge. There's also a long-range RF bridge. This is mostly designed for institutional situations where somebody may be in a hospital, and they're trying to collect large amounts of data all at the same time. We were able to find one on eBay that was decommissioned by a hospital, and we were playing with it using a HackerRF. We ended up writing a small little program for the port-a-pack, so you could actually just walk around with the HackerRF and the add-on, and continuously pull the data from people around you wearing the CGMs. So this is what the device actually looks like cracked open. This is the part that goes up against the skin, and the needle module is right there. It's been removed, but there's a fairly long needle that would come out here, and a little metallic seal. There's the battery pack and the sensor. The wire traces they see going around the perimeter is the actual RFID antenna. This is what it looks like. As I mentioned, the needle is a little longer than I was expecting before opening up for the first time. This is the clear cover, and this is the part that we'll be facing outside when the sensor is deployed. Quickly, before we go any further, you'll notice the tamper detection and tamper protection on this device. Namely, there is none. Essentially, if you get your hands on the sensor, you could open it up, you could modify it, you could reseal it. There's no way to know the sensor has been tampered with. The packaging in itself is simply a sterile packaging. It doesn't really have any tamper detection, no tamper protection systems. Fairly trivial to get this open, modified, and reseal it, so you have no idea that it was opened. This is a shot of the actual reader opened up. Again, no protective seals on the outside. Sorry, no tamper evidence seals on the outside. No tamper detection, no tamper protection inside. After the device is cracked open, you can easily modify it, without any issues. After realizing it has absolutely no protection for reads, that it's a completely passive device, I had a really cool idea. How much data could I harvest without people around me who actually do our CGMs, since it's using a simple RFID, 13.56 megahertz. You could place a kill zone, so as people walk through, you could force a reading from their sensors. Obviously, there's a number of solutions for them. This particular solution is actually at a school for attendance, so somebody could read student IDs. I was hoping to get something a little bit less intrusive looking, something that would be essentially almost invisible and not make people ask questions. You'll notice there's two readers in the doorway. That's the kind of model I was going for. The mock-up was a little rough, but I think I still nailed it. Cheap Chinese RFID card reader, nice large antenna, Raspberry Pi, battery pack, and the 7-inch LCD for the Raspberry Pi. Privacy risks. As I mentioned, it's a passive sensor, no authentication. Simple authorization is essentially based on good faith, so you could read it with any commercial reader. So if you were essentially getting into medical privacy risks, somebody could walk around and continuously poll your reader and gather the same medical data that is only really meant for you and your doctor. So you're getting into HIPAA violation issues. Data integrity. Read the data, and if you have a device that's trying to get more power, then you're now broadcasting the new glucose readings. Fairly trivial to get more power. So this sensor, when activated by this device, uses .3 watts, which is pretty much nothing. It's very feasible to get your hands on transmitters that will push out one or two watts in 13.56 mHz. The best reader that I've found to actually emulate it is this one. You have an entry price of under $50 to play with this. There are cheaper readers. This is in the $12 range, but the range is very limited. You're getting 3-6 cm range, which basically means you're essentially at contact distance. We did disclose some of the findings. We were working with the manufacturers who actually fared worse than this device first. Simply because of how easy it was to mess with our data. Any questions? Yes? How much trouble did you have working with this equipment to take a lot of debugging? So the question was if I had any trouble working with the equipment or debugging. It was actually fairly straightforward because it's a consumer medical device. It's meant to be used by kids. It's meant to be used by people with no IT experience or medical experience. The hardest part was actually getting the sensor onto you and getting it to stick. The actual RF part was very straightforward. It's 13.56 MHz. There's already tons of tools to work with it to parse up the data and to transmit. Yes? Have you thought about any solutions to some of the problems you listed in terms of privacy violations and what not? So my thoughts on it is not using the RFID protocol. They use it primarily for power consumption. It's because they're using a passive protocol the reader pulls it and provides the actual power. There are ways to do it but not necessarily. But it would make the sensor a lot bulkier than it currently is and heavier. So they could license a different frequency for example and not use 13.56 MHz that would force an attacker to retool, use different antennas perhaps change the code a little bit. But it wouldn't be possible to use the tools that are already out there essentially prepackaged for an attacker. Yes? Have you been able to share this list with the vendor to see if they can improve their security there? We have not spoken with this particular vendor. We don't have a really good point of contact for them. We've contacted the other manufacturers that we've used for initial research that we've done. Did you ever have a chance to maybe recommend that update or something that is taken into account to make those changes? Is there a way to do that? So the vulnerabilities with 13.56 MHz and RFID are widely documented. As far as the vulnerabilities to be found with the replay attack and USB, we feel that's really up to their R&D department and their own internal security department. It feels like they haven't really done basic security testing on their own. There's a new law in Europe, the General Data Protection Regulation. These things are sold in Europe, right? They are sold in Europe and Eastern Europe, yes, as well as the United States. What do you think of the possibility that if there was an actual privacy breach, someone could file a GDPR complaint and the company could be fined 4% of their annual income? That's pretty interesting. You could essentially do that by forcing an event. As I mentioned, if you were to place a reader on there and do something similar to Wall of Sheep and just transmit people's CGM data on the wall, you'd essentially force the event. You need to have it happen more in the wild. If somebody else did it, if you were going to file a complaint, you wouldn't want to be part of the cause. You essentially need somebody to set up a sensor and a projector right there in an airport and broadcast it on the wall, and there you go. I predict someone will do this within the next month or so. Maybe not on this device, right? It might happen in the next 24 hours as everyone's flying home. Any other questions? I'm available offline if you want to ask any other questions publicly. Thank you very much for coming.