1 00:00:00,000 --> 00:00:04,400 I'm Tim Elrod. This is Stefan Morris. We're going to talk to you today about healthcare, 2 00:00:04,640 --> 00:00:09,820 healthcare protocols, healthcare systems. I've been a penetration tester for Fishnet 3 00:00:09,820 --> 00:00:13,960 Security. I've been doing healthcare systems and assessing those for about seven years 4 00:00:13,960 --> 00:00:14,180 now. 5 00:00:15,060 --> 00:00:20,980 Same here. I also work at Fishnet. Only four years, though, so healthcare noob by comparison. 6 00:00:22,380 --> 00:00:28,260 Okay, so why would an attacker care about healthcare systems? Well, you know, obviously 7 00:00:28,260 --> 00:00:34,440 they're full of personal identifiable information, so identity theft, medical identity theft, 8 00:00:34,620 --> 00:00:39,560 protected health information, so that's going to be any diagnoses, any medical records, 9 00:00:40,260 --> 00:00:46,640 food allergies, drug allergies, things like that. Obviously, normal identity theft is 10 00:00:46,640 --> 00:00:52,320 always a concern, but medical identity theft, especially with legislation recently that 11 00:00:52,320 --> 00:00:56,100 says you have to have healthcare, medical identity theft is becoming bigger and bigger. 12 00:00:56,920 --> 00:00:58,200 Also, there are some... 13 00:00:58,260 --> 00:01:03,560 There are some political and social ramifications of disclosure of PHI. For example, from a 14 00:01:03,560 --> 00:01:08,380 political standpoint, McCain in 08, if you recall, there are questions about would he 15 00:01:08,380 --> 00:01:13,800 be healthy enough, would he be fit to serve in the presidency? Not all those records 16 00:01:13,800 --> 00:01:18,860 were disclosed publicly. Some were, but if they all were, maybe that would have been 17 00:01:18,860 --> 00:01:23,840 worse. Also, just embarrassing or compromising conditions for normal people or people of 18 00:01:23,840 --> 00:01:28,040 fame, whether that be something unfortunate like STDs. 19 00:01:28,260 --> 00:01:33,720 Or a mental health condition, these things still have real social ramifications in our 20 00:01:33,720 --> 00:01:41,480 society. Also, you see, for real, loss of life and limb. Some of these systems out 21 00:01:41,480 --> 00:01:48,140 there are exceedingly important, that they just remain active, that they do not break, 22 00:01:48,980 --> 00:01:53,300 go down, or are otherwise interrupted at all during treatment or during monitoring 23 00:01:53,300 --> 00:01:58,240 of a patient. And you will also see, you know, blood loss, blood loss, blood loss, blood 24 00:01:58,260 --> 00:02:03,400 loss in the medical system. I will tell you, if this is the study that you are going to 25 00:02:03,400 --> 00:02:07,480 consider, you will certainly see it. It is a very important study. Because, again, in 26 00:02:07,480 --> 00:02:16,300 a medical situation, some people have a lot to lose. There are a lot of issues that 27 00:02:16,300 --> 00:02:19,060 we are going to have to solve. It is a time of months, but then we will have to start 28 00:02:19,060 --> 00:02:19,620 Mike Evans, it is very interesting, although not an important issue, the state of the 29 00:02:19,620 --> 00:02:21,880 world. You know, we are – you know, the amount of people that we are going to be 30 00:02:21,880 --> 00:02:22,740 talking about is very small. 31 00:02:22,760 --> 00:02:27,800 So, let us make it short. We are not going to get to the point that we are going to 32 00:02:27,800 --> 00:02:32,520 to talk kind of basically, these protocols are based on a history of non-standard standards, 33 00:02:32,860 --> 00:02:37,480 meaning that every doctor kind of insists on documenting and doing things their own way. 34 00:02:37,660 --> 00:02:42,800 So these standards are formed by committees. And as we all know, standard by committee is kind of 35 00:02:42,800 --> 00:02:47,700 a bad thing. So these standards aren't very standardized. They're very open, a lot of 36 00:02:47,700 --> 00:02:52,060 unstructured data, and a lot of room to make mistakes for programmers that program these 37 00:02:52,060 --> 00:02:57,340 systems. Also, you'll see that a lot of the protocols and standards were initially dreamt 38 00:02:57,340 --> 00:03:03,400 up during the 70s and 80s. People didn't have as many off-the-shelf components from which to make 39 00:03:03,400 --> 00:03:08,520 pretty robust systems. And so they, well, they were inventing wheels or reinventing wheels they 40 00:03:08,520 --> 00:03:14,720 did not know about. So dreamt up in committees and also engineered in garages. That's something 41 00:03:14,720 --> 00:03:20,460 we like to say, because you'll see even big players today came from a not-so-distant past, 42 00:03:20,640 --> 00:03:26,280 maybe five, ten years ago, when this was a garage project, and now they are central to IT healthcare. 43 00:03:28,480 --> 00:03:35,480 So let's talk about HL7 a little bit. HL7 or Health Level 7 protocols and standards are basically 44 00:03:35,480 --> 00:03:40,740 the glue that holds a hospital healthcare system together. So in a hospital, you're going to have 45 00:03:40,740 --> 00:03:46,680 a lot of different systems that are disparate and normally wouldn't talk to each other. These 46 00:03:46,680 --> 00:03:52,000 may be admittance systems or billing systems or radiology systems. HL7 is the glue that holds 47 00:03:52,000 --> 00:03:56,900 all those together. It's a clear-text protocol. There is no security behind it. 48 00:03:57,340 --> 00:04:02,000 When you look at the standard, when it comes down to security, they recommend implementing 49 00:04:02,480 --> 00:04:09,320 IPSec because they just don't want to write it. HL7 segments are delimited by just a carriage 50 00:04:09,320 --> 00:04:15,000 return. They're clear-text. Segments, like we said, we'll go ahead and show this, always 51 00:04:15,000 --> 00:04:22,880 start with a three-letter identifier. So this MSH record is basically a record of a start 52 00:04:22,880 --> 00:04:27,320 of an HL7 message. It tells it that in the 9th, 10th, 11th, 12th, 13th, 14th, 15th, 16th, 53 00:04:27,320 --> 00:04:32,380 normally the 9th character field, you'll see it says ADT, caret, AO4. So this is an ADT message, 54 00:04:32,500 --> 00:04:39,500 which is an admittance message that just shows basically the information of a patient. So each 55 00:04:39,500 --> 00:04:43,440 one of these fields are pipe delimited, and then the subfields are caret delimited, 56 00:04:44,560 --> 00:04:49,180 which makes it very, very easy to fuzz, very easy to write fuzzers for these 57 00:04:49,940 --> 00:04:53,660 if you have the time to put into all the different fields. 58 00:04:55,060 --> 00:04:57,120 And while we're not showing it V3s, 59 00:04:57,320 --> 00:04:59,560 we're showing it just XML, so that's really easy. 60 00:04:59,720 --> 00:05:07,680 Right, so this is a V2 example. V3 is just an XML output. They've changed a lot, but it hasn't been implemented hardly anywhere yet, so. 61 00:05:09,380 --> 00:05:19,100 So at the core of these HL7 systems sit HL7 routers. These are very critical middleware to the hospitals in that they pass everything through them. 62 00:05:19,200 --> 00:05:27,120 So if I get admitted to a hospital, when I come in, they're going to take all my information, they're going to send it through the HL7 router to maybe a radiology 63 00:05:27,120 --> 00:05:27,300 machine, and then they're going to send it through the HL7 router to maybe a radiology machine, and then they're going to send it through the HL7 router to maybe a radiology machine, 64 00:05:27,300 --> 00:05:36,160 if I have to have an x-ray, over to the pharmacy machine, if I have to have some medications, to the billing department to bill me. 65 00:05:37,120 --> 00:05:44,220 All of that goes through this central HL7 router. So the HL7 router will take in HL7 messages and parse them based on their content, 66 00:05:44,400 --> 00:05:48,320 and then send them off based on the rules to where it thinks they need to go. 67 00:05:49,960 --> 00:05:57,280 These HL7 messages normally come from, like, EMRs and medical systems, but as we'll look at later, they can also be sent to the hospital. 68 00:05:57,280 --> 00:05:59,860 They can also come from malicious attackers from the internet. 69 00:06:03,240 --> 00:06:10,000 Alright, another key system that you'll see in any healthcare network is a PAC system, or Picture Archiving and Communication. 70 00:06:11,320 --> 00:06:17,520 So these are for centralized archiving and retrieval of medical images. They will have various components. 71 00:06:17,840 --> 00:06:22,800 You'll have servers for centralizing, archiving, and routing PACS images, much like HL7. 72 00:06:23,040 --> 00:06:26,580 Sometimes they don't end up at that server, they end up passed along somewhere else. 73 00:06:26,580 --> 00:06:35,360 You'll have modalities, which are just medical systems, x-rays, CTs, MRIs, they'll all fall into that category. 74 00:06:35,680 --> 00:06:42,560 And they'll communicate directly with your PACS system and dump information in there and can retrieve information and so forth. 75 00:06:43,280 --> 00:06:52,760 While retrieval viewing is usually left up to workstations, for viewing these things it can also be done over the internet with any number of portals. 76 00:06:52,780 --> 00:06:55,620 So they'd really like to have gone web portal. 77 00:06:56,920 --> 00:07:02,300 Capable recently, that's very new for healthcare though, so often it's very messed up. 78 00:07:02,800 --> 00:07:07,960 Also mobile, so take a look at those components of these systems, because they are very new. 79 00:07:09,700 --> 00:07:13,480 Let's see, and it is the standard format for medical image storage and transfer. 80 00:07:13,720 --> 00:07:16,800 So, DICOM is, excuse me. 81 00:07:18,060 --> 00:07:20,000 And that's what's used by these PACS systems. 82 00:07:20,340 --> 00:07:23,760 That means it is a network protocol as well as a file format. 83 00:07:26,580 --> 00:07:30,120 So as far as the network protocol goes, it's really easy to find. 84 00:07:30,660 --> 00:07:35,420 It can run over TCP, UDP ports 104 and 11112. 85 00:07:36,220 --> 00:07:43,640 There's also an authenticated encrypted version that you can find on 2761, which does a maximum of SCBC. 86 00:07:44,580 --> 00:07:47,120 And 2762, which will actually do TLS. 87 00:07:47,980 --> 00:07:50,780 Chances of finding these in the wild though, is pretty low. 88 00:07:51,320 --> 00:07:53,160 This is almost always clear text. 89 00:07:54,660 --> 00:07:56,440 In DICOM parlance. 90 00:07:56,580 --> 00:07:59,560 A client is just a SCU, or a service class user. 91 00:07:59,740 --> 00:08:02,820 And a server is a service class provider, or an SCP. 92 00:08:03,120 --> 00:08:05,020 So when you see those, that's all they're talking about. 93 00:08:05,680 --> 00:08:08,980 To make a connection successfully to DICOM server, 94 00:08:10,960 --> 00:08:15,440 you're going to just need the IP port and the AE, or application entity title. 95 00:08:15,580 --> 00:08:18,800 Which is just a unique string, often the host name of the system. 96 00:08:21,500 --> 00:08:26,560 Now, the server usually requires that the AE type that you know of, 97 00:08:26,580 --> 00:08:28,080 know it's AE title in order to connect. 98 00:08:28,220 --> 00:08:29,420 That's an almost always thing. 99 00:08:29,720 --> 00:08:33,340 And sometimes it will verify the client's AE title. 100 00:08:33,440 --> 00:08:34,580 And make sure it's on a list. 101 00:08:34,760 --> 00:08:36,960 Also, this is sometimes restricted by IP address. 102 00:08:37,440 --> 00:08:39,580 But those are your only protections here. 103 00:08:39,760 --> 00:08:41,420 So no real authentication. 104 00:08:43,980 --> 00:08:47,840 DICOM, as a network protocol, has any number of commands. 105 00:08:48,700 --> 00:08:49,920 It's not like FTP. 106 00:08:50,260 --> 00:08:53,920 Unlike FTP in many ways, you can store things, get them, 107 00:08:54,100 --> 00:08:56,280 move things around on the server, find them. 108 00:08:56,580 --> 00:09:00,080 Check to see if the system's up with an echo command, and so on and so forth. 109 00:09:00,460 --> 00:09:02,420 It's actually pretty easy to understand. 110 00:09:04,360 --> 00:09:07,660 And just if you're wondering if these things are all over the internet, 111 00:09:07,860 --> 00:09:10,820 I realized that I had forgotten to take a picture of this slide. 112 00:09:10,900 --> 00:09:13,600 So, for this slide, yesterday. 113 00:09:13,760 --> 00:09:17,900 So I ended up just running another in-map for 24 hours all over the internet. 114 00:09:18,020 --> 00:09:22,480 And I found 875 open ports that are likely to be DICOM. 115 00:09:24,060 --> 00:09:26,400 So, brute force opportunities are available. 116 00:09:30,500 --> 00:09:33,180 So, when you get into the file format, 117 00:09:33,380 --> 00:09:36,600 the file format's pretty typical of any number of other file formats. 118 00:09:37,060 --> 00:09:39,660 And this is for medical images, so think JPEG. 119 00:09:39,740 --> 00:09:42,220 There's a lot of metadata that can be stuffed beforehand. 120 00:09:42,920 --> 00:09:46,540 Except the amount and the sensitivity is much, much higher. 121 00:09:47,060 --> 00:09:51,460 Basically, you can stuff an entire medical record in the metadata 122 00:09:51,460 --> 00:09:55,760 that is available for any of these DICOM images. 123 00:09:56,480 --> 00:09:58,860 So you'll have a header, which is pretty standard. 124 00:09:59,960 --> 00:10:01,520 And then you'll have data elements. 125 00:10:01,820 --> 00:10:04,220 And they're broken down, and not like a TLV, 126 00:10:04,340 --> 00:10:09,220 but more like a type with your tag, a VR, which is another type, your length, 127 00:10:09,340 --> 00:10:10,640 and then the actual value. 128 00:10:11,380 --> 00:10:14,940 So just a little bit of complexity and this normal-looking message, 129 00:10:15,120 --> 00:10:18,480 which would be just a data element with an explicit VR. 130 00:10:21,400 --> 00:10:24,940 However, the thing about this file format 131 00:10:24,940 --> 00:10:29,480 is that it gets really, really crazy and complex 132 00:10:29,480 --> 00:10:31,600 and how it likes to nest things 133 00:10:31,600 --> 00:10:35,220 and how many options it gives you to represent metadata. 134 00:10:36,160 --> 00:10:39,740 So, you'll see here, this is simply an example of a data element 135 00:10:39,740 --> 00:10:43,780 with implicit VR defined as a sequence of items of undefined length 136 00:10:43,780 --> 00:10:46,840 containing two items, where one item is of explicit length 137 00:10:46,840 --> 00:10:49,420 and the other item is of undefined length. 138 00:10:49,700 --> 00:10:51,140 And this one's not that bad. 139 00:10:52,080 --> 00:10:54,360 So, when people implement this stuff, 140 00:10:54,360 --> 00:10:56,840 you'll find that it's almost never implemented correctly. 141 00:10:57,320 --> 00:11:01,820 And so, any DICOM parsing software I have seen so far 142 00:11:02,520 --> 00:11:06,020 just crashes constantly, and there are definitely exploitable bugs. 143 00:11:07,960 --> 00:11:10,420 So, yeah, pretty terrible, take a look at that. 144 00:11:11,080 --> 00:11:12,900 And just a couple more points on it. 145 00:11:13,420 --> 00:11:17,220 The pixel data, the actual images, you can have one or more frames, 146 00:11:17,320 --> 00:11:19,760 almost like one or more images within it, 147 00:11:19,880 --> 00:11:23,080 and they'll be encoded in RLE, JPEG, JPEG lossless, 148 00:11:23,080 --> 00:11:24,980 or the much-forgotten-about JPEG 2000. 149 00:11:25,340 --> 00:11:28,780 So, there are opportunities to fuzz those things, too, 150 00:11:28,920 --> 00:11:30,180 that would parse those image formats. 151 00:11:31,660 --> 00:11:34,780 It doesn't have the full metadata that any of those would have 152 00:11:34,780 --> 00:11:37,500 because it usually just strips out the encoding and uses that portion. 153 00:11:38,860 --> 00:11:41,180 Also, just so you know about a little bit more of the complexity, 154 00:11:41,300 --> 00:11:43,360 some of those elements can be required, conditional, optional, 155 00:11:43,520 --> 00:11:44,540 fixed length, undefined length. 156 00:11:45,640 --> 00:11:47,420 Nested, which I particularly like, 157 00:11:47,900 --> 00:11:51,180 BigIndian and LittleIndian, which can be negotiated before. 158 00:11:51,300 --> 00:11:53,060 Yeah, okay, so no problems there. 159 00:11:53,540 --> 00:11:54,820 Actually, it's a huge problem. 160 00:11:55,920 --> 00:11:57,780 Retired, private, and a myriad of other options. 161 00:11:58,780 --> 00:12:00,320 And so, as far as some of those options go, 162 00:12:00,440 --> 00:12:04,000 you do have like 100 or 1,000 registered VRs for that, 163 00:12:04,120 --> 00:12:06,640 which are just part of the data elements. 164 00:12:07,080 --> 00:12:09,660 And there are many, many more that are private and unregistered. 165 00:12:09,720 --> 00:12:12,220 So, you know, do take a look at this. 166 00:12:12,560 --> 00:12:13,400 It will fall over. 167 00:12:15,160 --> 00:12:17,420 So, we decided when we were going to do this talk, 168 00:12:18,080 --> 00:12:21,160 we wanted to release some sort of tools 169 00:12:21,700 --> 00:12:23,740 to try to help people look at healthcare systems. 170 00:12:24,040 --> 00:12:27,400 The fact of the matter is healthcare vendors in general 171 00:12:28,320 --> 00:12:35,200 are fairly bad about how it's kind of like hacking 10 years ago. 172 00:12:35,800 --> 00:12:36,740 It's pretty bad. 173 00:12:36,860 --> 00:12:38,400 There's no protections or anything like that, 174 00:12:38,480 --> 00:12:41,260 and they really hate to patch things, and they won't. 175 00:12:41,320 --> 00:12:46,100 We've tried to disclose bugs and had bugs sit for over a year, 176 00:12:46,560 --> 00:12:49,780 trying to just get the vendor to acknowledge us that there's a bug there. 177 00:12:51,160 --> 00:12:52,780 So, we figured the more people looking at this, 178 00:12:52,880 --> 00:12:53,760 maybe the better it'll be. 179 00:12:54,740 --> 00:12:56,240 So, we were going to release some fuzzers. 180 00:12:57,740 --> 00:13:00,320 We figured we could write them or we could just do it in Peach 181 00:13:00,320 --> 00:13:02,040 because Michael wrote it better than us. 182 00:13:02,160 --> 00:13:04,420 So, we decided to release some Peach pits. 183 00:13:05,100 --> 00:13:07,660 You'll be able to pick those up at metafuzz.com. 184 00:13:08,220 --> 00:13:11,200 The initial release will be two protocols, 185 00:13:11,440 --> 00:13:14,060 the HL7 and the DICOM, both the network and the file fuzzer. 186 00:13:15,080 --> 00:13:16,080 We're going to have more coming. 187 00:13:16,420 --> 00:13:18,960 If anybody's interested in this and wants to get in touch with us 188 00:13:18,960 --> 00:13:20,400 and maybe give us some ideas, 189 00:13:20,400 --> 00:13:22,120 or volunteer to code something up, 190 00:13:23,040 --> 00:13:23,800 you're more than welcome. 191 00:13:26,580 --> 00:13:30,060 So, we'll talk a little bit about EMRs and EHRs. 192 00:13:31,100 --> 00:13:33,340 So, the EMR or the EHR, 193 00:13:33,360 --> 00:13:35,420 you hear it kind of both ways depending on the vendor, 194 00:13:35,580 --> 00:13:37,420 are basically just a central repository 195 00:13:37,420 --> 00:13:40,000 for what used to be your paper medical record. 196 00:13:40,960 --> 00:13:42,660 So, back in the day, you would go to the doctor, 197 00:13:42,760 --> 00:13:45,200 you'd have a big thick file that had all your medical records in it. 198 00:13:45,260 --> 00:13:49,660 All that is now electronic and centrally located in an EMR 199 00:13:49,660 --> 00:13:50,420 or an EHR system. 200 00:13:51,180 --> 00:13:54,300 These systems are required by recent legislation 201 00:13:54,300 --> 00:13:55,560 that we'll talk about here in a minute. 202 00:13:55,740 --> 00:13:57,720 So, they will be at every hospital. 203 00:13:58,140 --> 00:13:59,780 If they're not now, they will be soon 204 00:13:59,780 --> 00:14:02,320 because they have a financial interest in making that happen. 205 00:14:03,580 --> 00:14:06,480 These basically take all the data in from different systems 206 00:14:06,480 --> 00:14:11,020 through an HL7 interface and into this one central location. 207 00:14:11,660 --> 00:14:13,140 It'll either be at the hospital, 208 00:14:13,320 --> 00:14:15,120 a lot of them are remotely hosted as well. 209 00:14:16,640 --> 00:14:18,500 Things like billing systems, PAC systems, 210 00:14:18,500 --> 00:14:21,700 practice management systems, scheduling systems, things like that. 211 00:14:22,280 --> 00:14:24,360 Prescription drug systems, which we'll talk about later. 212 00:14:25,400 --> 00:14:27,860 Vital monitoring systems, which we'll also talk about. 213 00:14:28,020 --> 00:14:29,180 And then business partner systems. 214 00:14:29,380 --> 00:14:31,920 So, this is kind of something new that's come about 215 00:14:31,920 --> 00:14:35,200 in that data is now starting to be shared between hospitals 216 00:14:36,200 --> 00:14:38,780 more regularly due to legislation as well. 217 00:14:39,360 --> 00:14:42,720 So, not only does your data get to, say, this EMR, 218 00:14:42,800 --> 00:14:46,640 but it'll also get to all the other hospitals around this hospital's EMR, for instance. 219 00:14:47,360 --> 00:14:48,160 So, obviously, 220 00:14:48,160 --> 00:14:51,040 this is a fairly juicy target for an attacker 221 00:14:51,040 --> 00:14:52,980 because all the data is in one location. 222 00:14:55,580 --> 00:14:57,160 So, health information exchanges. 223 00:14:57,500 --> 00:14:58,700 This is what I was talking about. 224 00:14:59,180 --> 00:15:02,080 Due to the HITECH Act that was just recently passed 225 00:15:02,080 --> 00:15:03,480 as part of the stimulus package, 226 00:15:04,340 --> 00:15:10,900 all hospitals are required to prove what's called meaningful use by 2015. 227 00:15:11,400 --> 00:15:14,680 What meaningful use basically states is that you're going to use an EMR, 228 00:15:14,720 --> 00:15:16,040 you're going to use an EHR, 229 00:15:16,080 --> 00:15:17,900 and you're going to contribute, 230 00:15:18,160 --> 00:15:21,560 and participate in what's called a regional health information exchange. 231 00:15:22,000 --> 00:15:24,300 So, these are systems that are set up by these companies 232 00:15:24,300 --> 00:15:26,800 to share data between hospitals. 233 00:15:26,980 --> 00:15:30,500 So, I can't go to hospital A and maybe get a script for morphine, 234 00:15:30,520 --> 00:15:32,120 and then go to hospital B and say, 235 00:15:32,180 --> 00:15:33,020 hey, my back hurts too, 236 00:15:33,040 --> 00:15:34,260 and get another script for morphine. 237 00:15:34,420 --> 00:15:35,180 Things like that. 238 00:15:35,200 --> 00:15:37,520 That's what they're trying to accomplish there 239 00:15:38,380 --> 00:15:40,060 and reduce fraud and waste. 240 00:15:40,660 --> 00:15:43,120 What they inadvertently do is they make data travel 241 00:15:43,120 --> 00:15:44,280 between all of these hospitals. 242 00:15:44,460 --> 00:15:46,780 So, if I were to get an HL7 message, 243 00:15:46,780 --> 00:15:49,220 perhaps into an EMR, 244 00:15:49,320 --> 00:15:51,580 that HL7 message that may be malicious 245 00:15:51,580 --> 00:15:53,500 could propagate not only to this hospital, 246 00:15:53,600 --> 00:15:55,200 but to hospitals around the country. 247 00:15:57,600 --> 00:16:00,640 So, yeah, these can be local, state, regional, 248 00:16:00,760 --> 00:16:01,860 or even national. 249 00:16:02,440 --> 00:16:04,260 And like I said, data entered into one 250 00:16:04,740 --> 00:16:07,740 will propagate to the others indiscriminately. 251 00:16:11,160 --> 00:16:13,800 And that brings us to personal health records. 252 00:16:13,800 --> 00:16:16,480 This is an interesting idea 253 00:16:16,480 --> 00:16:20,120 that a lot of people jumped on board with not too long ago. 254 00:16:20,640 --> 00:16:24,840 Microsoft Health Vault is the big player in the PHR space. 255 00:16:25,540 --> 00:16:27,360 Google Health, you may have heard recently 256 00:16:27,360 --> 00:16:28,940 that it's going to be discontinued 257 00:16:28,940 --> 00:16:30,200 at the start of next year. 258 00:16:30,480 --> 00:16:31,940 So, good move, Google. 259 00:16:32,140 --> 00:16:34,540 If there are any Google people in the audience, thank you. 260 00:16:36,440 --> 00:16:37,980 We're not big fans of these. 261 00:16:38,200 --> 00:16:39,340 Yeah, yeah, it's not Google. 262 00:16:39,440 --> 00:16:40,340 It's the idea. 263 00:16:41,380 --> 00:16:42,500 There are various others. 264 00:16:42,500 --> 00:16:46,140 Usually created by an EMR or EHR vendor, 265 00:16:46,320 --> 00:16:48,240 and sometimes by CMS vendors 266 00:16:48,240 --> 00:16:53,580 that build particular CMSs for the medical industry. 267 00:16:54,020 --> 00:16:55,600 And so you'll see that there, too. 268 00:16:55,840 --> 00:16:58,220 They're just patient-facing web portals, essentially, 269 00:16:58,900 --> 00:17:02,980 that allow access to records for patients. 270 00:17:03,940 --> 00:17:06,660 Now, typically, when you log into one, 271 00:17:06,780 --> 00:17:08,200 like, you can set up a free account 272 00:17:08,200 --> 00:17:09,680 with Microsoft Health Vault. 273 00:17:09,780 --> 00:17:10,660 It will be blank, 274 00:17:10,760 --> 00:17:12,480 and you can input your overall information 275 00:17:12,500 --> 00:17:13,580 or phone information manually. 276 00:17:13,780 --> 00:17:15,180 You can import it from a file, 277 00:17:15,280 --> 00:17:16,980 or you can create a trust 278 00:17:17,360 --> 00:17:19,300 between you and someone else. 279 00:17:19,840 --> 00:17:22,560 So other entities such as hospitals, doctor offices, 280 00:17:23,240 --> 00:17:25,380 your pharmacy, et cetera, and so forth. 281 00:17:25,680 --> 00:17:28,120 And these trusts can go both ways. 282 00:17:28,440 --> 00:17:30,620 They can pull data from your PHR, 283 00:17:30,700 --> 00:17:31,600 and they can push it. 284 00:17:31,780 --> 00:17:33,260 This can be a one-time operation. 285 00:17:33,560 --> 00:17:35,480 This can be an anytime operation. 286 00:17:35,780 --> 00:17:38,180 It just kind of depends on the level of control 287 00:17:38,180 --> 00:17:40,900 and granularity that you specify and agree to. 288 00:17:40,900 --> 00:17:43,600 It tends to be, however, more open than not, 289 00:17:43,720 --> 00:17:45,000 just to let you know. 290 00:17:45,740 --> 00:17:49,200 So one thing about healthcare in general 291 00:17:49,200 --> 00:17:52,640 is that doctors have very special ways 292 00:17:52,640 --> 00:17:54,660 of just kind of writing things down 293 00:17:54,660 --> 00:17:55,600 and documenting everything, 294 00:17:55,860 --> 00:17:57,580 and they don't like to standardize. 295 00:17:57,620 --> 00:17:59,900 Only recently are they starting to be forced 296 00:17:59,900 --> 00:18:01,220 to get on board with standardizing 297 00:18:01,220 --> 00:18:02,460 just how they document stuff. 298 00:18:02,660 --> 00:18:05,540 And I think that PHRs and EHRs and EMRs 299 00:18:05,540 --> 00:18:07,160 reflect this a lot. 300 00:18:07,300 --> 00:18:09,240 And so you'll see the text inputs 301 00:18:09,240 --> 00:18:11,660 are both structured to some degree, 302 00:18:11,740 --> 00:18:14,560 but highly unstructured in many, many areas 303 00:18:14,560 --> 00:18:16,440 where you can input data into these systems. 304 00:18:17,020 --> 00:18:20,140 Also, they'll accept nearly arbitrary file uploads, 305 00:18:20,320 --> 00:18:22,600 not just of images that might be useful, 306 00:18:22,760 --> 00:18:25,760 but also stuff like PDFs and other formats 307 00:18:25,760 --> 00:18:28,620 that we know have all kinds of security problems 308 00:18:28,620 --> 00:18:30,860 and would be kind of bad if a doctor 309 00:18:30,860 --> 00:18:32,820 inside of a network just opened up. 310 00:18:34,920 --> 00:18:36,260 Also, real quick, 311 00:18:36,460 --> 00:18:38,860 they do allow for automated data upload 312 00:18:38,860 --> 00:18:40,660 from medical and fitness devices, 313 00:18:40,840 --> 00:18:42,580 so that's another way of communicating with them, 314 00:18:42,640 --> 00:18:43,380 which is kind of interesting. 315 00:18:45,320 --> 00:18:48,100 So to talk about Microsoft Health Vault a little bit, 316 00:18:48,940 --> 00:18:51,060 first off, great documentation, 317 00:18:51,440 --> 00:18:53,580 SDK, development sandbox, I love it. 318 00:18:53,660 --> 00:18:56,300 It's really easy to work with and learn a lot about, 319 00:18:56,500 --> 00:18:57,560 so props to Microsoft. 320 00:18:59,120 --> 00:19:02,900 Third parties can create all kinds of web-enriched applications 321 00:19:02,900 --> 00:19:04,560 that interface with the Health Vault API, 322 00:19:05,240 --> 00:19:06,680 and it's not very hard at all. 323 00:19:06,680 --> 00:19:09,840 Data storage for Health Vault 324 00:19:10,400 --> 00:19:12,740 can follow any number of different modes. 325 00:19:12,980 --> 00:19:15,860 So you can basically have a web portal that you created 326 00:19:15,860 --> 00:19:18,880 that stores all of the information in Health Vault, 327 00:19:18,980 --> 00:19:21,620 and it's just sort of branded with your hospital, 328 00:19:21,740 --> 00:19:23,060 your institution's name, 329 00:19:23,220 --> 00:19:25,220 and that's a very common way of doing it. 330 00:19:25,620 --> 00:19:28,160 Or you can have some of that data reside 331 00:19:28,880 --> 00:19:32,500 in your local database as well as Health Vault, 332 00:19:32,620 --> 00:19:35,160 and you see that a lot when they're creating functionality 333 00:19:35,160 --> 00:19:36,540 that doesn't yet exist. 334 00:19:36,680 --> 00:19:41,560 So scheduling often with the internal systems at the hospital 335 00:19:42,460 --> 00:19:45,260 is a pretty common reason for doing that. 336 00:19:46,660 --> 00:19:49,240 And a lot of devices too, 337 00:19:49,440 --> 00:19:51,220 and it's a software that you might actually install 338 00:19:51,220 --> 00:19:52,120 on your computer, 339 00:19:52,280 --> 00:19:55,820 will have a local database local to your system. 340 00:19:56,260 --> 00:19:58,340 So that's a good thing to look for 341 00:19:58,340 --> 00:19:59,360 if you're trying to pillage data. 342 00:20:00,780 --> 00:20:03,040 One thing that's been hanging up there 343 00:20:03,040 --> 00:20:04,480 since I put this slide on there 344 00:20:04,480 --> 00:20:05,980 is that Health Vault doesn't seem to do much 345 00:20:05,980 --> 00:20:09,400 in the way of input validation at all. 346 00:20:10,180 --> 00:20:12,820 They won't reflect bad things back to you. 347 00:20:12,900 --> 00:20:14,240 They seem to be very good about that. 348 00:20:14,500 --> 00:20:18,520 But they do end up being a great way 349 00:20:18,520 --> 00:20:21,080 to store all kinds of good vectors, 350 00:20:22,140 --> 00:20:24,460 XSS being the really obvious one, 351 00:20:24,560 --> 00:20:27,620 for whoever might consume that PHR at a later date. 352 00:20:29,200 --> 00:20:30,720 Which brings us to the obvious. 353 00:20:31,420 --> 00:20:33,580 Malicious health records, MHRs, 354 00:20:33,600 --> 00:20:35,720 because we thought there needed to be another acronym 355 00:20:35,980 --> 00:20:36,120 in this space. 356 00:20:38,380 --> 00:20:40,280 So XSS is obvious, 357 00:20:40,980 --> 00:20:46,080 and CSERF from that is another great result. 358 00:20:46,780 --> 00:20:49,680 SQL injection, I've seen that be passed on. 359 00:20:50,720 --> 00:20:52,980 Databases being messed with, 360 00:20:53,080 --> 00:20:53,880 although it's pretty hard 361 00:20:53,880 --> 00:20:56,260 because you're a couple layers deep. 362 00:20:57,520 --> 00:20:59,740 And then of course the file uploads. 363 00:21:00,720 --> 00:21:02,840 So if you found some bugs with DICOM images, 364 00:21:02,980 --> 00:21:04,280 which they're expecting to see, 365 00:21:04,960 --> 00:21:07,260 or some viewers for DICOM images, 366 00:21:07,480 --> 00:21:08,760 that'd be a great way. 367 00:21:08,940 --> 00:21:10,400 PDFs, et cetera, and so forth. 368 00:21:11,300 --> 00:21:13,040 And this affects many a system. 369 00:21:13,240 --> 00:21:14,620 So practice management systems, 370 00:21:15,420 --> 00:21:17,140 EMRs, EHRs, PAC systems, 371 00:21:17,620 --> 00:21:20,660 HL7 routers, modalities that eventually view those things 372 00:21:20,660 --> 00:21:22,260 or interact with them in another way. 373 00:21:24,060 --> 00:21:25,820 PHR and other web users. 374 00:21:26,380 --> 00:21:30,040 So some of the PHRs often have doctor portals too. 375 00:21:30,240 --> 00:21:32,800 So that's a really easy way 376 00:21:32,800 --> 00:21:35,360 to take advantage of that XSS, for instance, 377 00:21:35,520 --> 00:21:37,080 because I'm sure that doctor has access 378 00:21:37,080 --> 00:21:38,640 to a lot more patient records 379 00:21:38,640 --> 00:21:40,380 than you do through the PHR. 380 00:21:42,220 --> 00:21:43,940 And also business partners 381 00:21:43,940 --> 00:21:46,520 and HIE connected systems are a possibility. 382 00:21:47,000 --> 00:21:48,720 We really haven't seen much of that yet, 383 00:21:48,820 --> 00:21:51,160 but it's just a matter of getting people 384 00:21:51,160 --> 00:21:52,640 to let us look a little bit more. 385 00:21:54,700 --> 00:21:56,540 So I got mad alert boxes, yo. 386 00:21:58,180 --> 00:21:59,480 Yeah, yeah, I said that. 387 00:22:00,940 --> 00:22:02,080 So once again, like I said, 388 00:22:02,080 --> 00:22:05,120 it's a great stored place for a stored XSS, 389 00:22:05,320 --> 00:22:06,560 Microsoft Health Vault is. 390 00:22:07,200 --> 00:22:09,280 And the underachievers are particularly bad. 391 00:22:10,080 --> 00:22:12,360 So you can just do a script alert, right, 392 00:22:12,480 --> 00:22:13,860 or your beef hook. 393 00:22:15,500 --> 00:22:18,980 And this will show up in all kinds of PHRs everywhere. 394 00:22:19,280 --> 00:22:20,680 If you get a little bit more creative 395 00:22:20,680 --> 00:22:23,040 and you actually try to bypass the minimal amount 396 00:22:23,040 --> 00:22:24,200 of filtering that some of them do, 397 00:22:24,320 --> 00:22:25,320 you will get a lot more. 398 00:22:28,360 --> 00:22:30,360 And, you know, there's just a tiny bit 399 00:22:30,360 --> 00:22:30,620 of proof. 400 00:22:30,620 --> 00:22:33,600 Health Vault with a beef hook in it 401 00:22:33,600 --> 00:22:37,180 and some random PHRs that are Health Vault enabled 402 00:22:37,180 --> 00:22:39,760 that popped alert boxes for me. 403 00:22:42,740 --> 00:22:44,830 But sometimes there are even worse 404 00:22:45,200 --> 00:22:46,500 and more obvious issues. 405 00:22:47,800 --> 00:22:50,480 So last week I was just gathering some screenshots 406 00:22:50,480 --> 00:22:52,080 for this presentation, 407 00:22:52,360 --> 00:22:54,760 and I was visiting some of these PHRs 408 00:22:54,760 --> 00:22:56,780 because the bugs come and go, frankly. 409 00:22:57,800 --> 00:22:59,880 And Injector here, Team Injector, 410 00:22:59,880 --> 00:23:02,860 they found this one called Spin PHR, 411 00:23:02,980 --> 00:23:05,640 and it looked like it was probably vulnerable 412 00:23:05,640 --> 00:23:06,760 to a Drupal bug. 413 00:23:08,360 --> 00:23:11,360 So I'm glad they just decided to deface the page 414 00:23:11,360 --> 00:23:13,980 and tell everyone that, hey, we have your PHR. 415 00:23:15,260 --> 00:23:17,840 Because there are real consequences to that. 416 00:23:19,660 --> 00:23:21,600 Compromise of at least every account 417 00:23:21,600 --> 00:23:24,840 that was accessed after the attack is trivial. 418 00:23:25,920 --> 00:23:29,280 Basically, all you typically need to access a record 419 00:23:29,280 --> 00:23:31,240 with Health Vault through the API 420 00:23:31,240 --> 00:23:33,720 is a person ID, a record ID, 421 00:23:33,860 --> 00:23:36,140 and the part of the record that you want to see. 422 00:23:36,440 --> 00:23:37,820 And these are just quids. 423 00:23:38,660 --> 00:23:42,120 So if you post to the right part of the page 424 00:23:42,120 --> 00:23:44,020 with the right format of things, 425 00:23:44,100 --> 00:23:45,580 which it's no problem to figure out, 426 00:23:46,060 --> 00:23:48,400 you will be able to pull back information pretty simply. 427 00:23:48,620 --> 00:23:50,440 So they would have had access to those 428 00:23:50,440 --> 00:23:52,280 in the sessions going on, no problem. 429 00:23:53,040 --> 00:23:54,900 And that would have carried on. 430 00:23:55,840 --> 00:23:57,760 And depending on the design of the application 431 00:23:57,760 --> 00:24:00,840 by the attacker, they may have had access 432 00:24:00,840 --> 00:24:03,300 to every Health Vault account that was still linked 433 00:24:03,300 --> 00:24:07,000 and trusted with that particular PHR. 434 00:24:08,120 --> 00:24:10,400 So what they'll typically do is, 435 00:24:10,520 --> 00:24:13,860 sometimes you'll see those person IDs and record IDs 436 00:24:13,860 --> 00:24:16,120 are used directly, and they'll be leaked all over the page. 437 00:24:16,300 --> 00:24:18,640 And this can be really easy to grab those. 438 00:24:18,960 --> 00:24:22,620 But other times, a PHR that uses Health Vault 439 00:24:22,620 --> 00:24:23,840 will have its own session management, 440 00:24:24,120 --> 00:24:27,140 and they'll typically hide the person IDs and record IDs 441 00:24:27,140 --> 00:24:27,900 somewhere in a database, 442 00:24:28,080 --> 00:24:30,280 and then use those later to access your account. 443 00:24:30,540 --> 00:24:31,760 But the thing is, they're static. 444 00:24:31,940 --> 00:24:33,040 They don't change. 445 00:24:33,640 --> 00:24:36,000 That person ID and record ID will always give 446 00:24:36,000 --> 00:24:38,020 that PHR access to your account 447 00:24:38,020 --> 00:24:39,500 as long as it remains linked. 448 00:24:39,780 --> 00:24:41,780 That is per PHR and per application, 449 00:24:42,080 --> 00:24:43,620 but it's bad enough. 450 00:24:43,900 --> 00:24:46,620 So those guys, Injector, 451 00:24:46,760 --> 00:24:48,620 they had access to some stuff, 452 00:24:48,660 --> 00:24:49,560 whether they knew it or not. 453 00:24:51,040 --> 00:24:53,320 But this does bring up a good question, though. 454 00:24:54,000 --> 00:24:56,540 Healthcare has significant breach disclosure laws 455 00:24:57,140 --> 00:24:58,620 but when it comes to PHRs, 456 00:24:58,620 --> 00:25:01,360 especially things that are like Health Vault, 457 00:25:01,460 --> 00:25:04,700 that are used by other people, 458 00:25:05,660 --> 00:25:07,760 who exactly is responsible for that? 459 00:25:07,880 --> 00:25:09,180 And who's disclosing breaches? 460 00:25:09,540 --> 00:25:11,060 I don't know. 461 00:25:11,200 --> 00:25:14,620 I'm not guessing that this is going to be disclosed at all, 462 00:25:15,280 --> 00:25:16,600 even though it's pretty public. 463 00:25:19,460 --> 00:25:21,900 So we did a bit of a medical hardware review 464 00:25:23,700 --> 00:25:27,000 on just some of the different medical devices 465 00:25:27,140 --> 00:25:27,600 that we'd seen. 466 00:25:28,180 --> 00:25:31,080 We took a look at a couple of vital monitoring systems. 467 00:25:31,400 --> 00:25:33,320 These are things that monitor your blood pressure, 468 00:25:33,460 --> 00:25:36,260 your heart rate, things like that. 469 00:25:37,540 --> 00:25:40,220 Infusion pumps, things that sit on IV poles 470 00:25:40,220 --> 00:25:42,600 that control the dosage of medication to you 471 00:25:42,600 --> 00:25:44,700 that are connected to a wireless network 472 00:25:45,300 --> 00:25:47,440 that can let anybody talk to them. 473 00:25:47,660 --> 00:25:49,100 Someone thought that was a good idea. 474 00:25:50,880 --> 00:25:53,640 We also looked at prescription drug cabinets. 475 00:25:53,840 --> 00:25:55,280 We figured since we were coming to Vegas, 476 00:25:55,280 --> 00:25:58,800 what better stuff to do than to see how to get free Oxycontin. 477 00:26:00,100 --> 00:26:01,680 So we took a look at those. 478 00:26:02,160 --> 00:26:04,760 Basically there are two vendors in that space, 479 00:26:04,980 --> 00:26:07,380 one called OmniCell, the other one called Pixis. 480 00:26:07,820 --> 00:26:10,420 Every hospital will have one of these vendors in their hospital. 481 00:26:10,560 --> 00:26:11,960 They'll have drawers on every floor. 482 00:26:12,520 --> 00:26:13,920 This is what the nurses go up to 483 00:26:13,920 --> 00:26:16,000 when you need a certain prescription for something. 484 00:26:16,080 --> 00:26:17,120 They'll get it out and bring it to you. 485 00:26:18,980 --> 00:26:20,400 We found some vulnerabilities in that 486 00:26:20,400 --> 00:26:21,520 that we'll talk about here in a second. 487 00:26:22,480 --> 00:26:25,020 We also looked at some radiology modalities. 488 00:26:25,600 --> 00:26:28,360 File format bugs on those are pretty rampant. 489 00:26:30,300 --> 00:26:34,480 These things are obviously controlling 490 00:26:35,020 --> 00:26:38,080 not only patient care, but lives in a lot of cases. 491 00:26:38,940 --> 00:26:40,660 They do have a lot of problems. 492 00:26:43,480 --> 00:26:45,540 We thought we'd take a look at them, 493 00:26:45,580 --> 00:26:47,540 and it is kind of as scary as you would think. 494 00:26:51,800 --> 00:26:54,760 We kind of wrestled with putting stuff out there 495 00:26:54,760 --> 00:26:58,540 that wasn't particularly bad 496 00:26:58,540 --> 00:26:59,840 when it came to some of these medical devices. 497 00:26:59,900 --> 00:27:02,000 As he said, when you have things like infusion pumps 498 00:27:02,000 --> 00:27:05,560 that are controlling the rate of drugs being put into an IV, 499 00:27:05,840 --> 00:27:09,420 that's something you don't just want to go talking to everyone about. 500 00:27:09,760 --> 00:27:12,040 But this one seemed relatively harmless, 501 00:27:12,080 --> 00:27:14,720 and it was actually, as we found, 502 00:27:16,100 --> 00:27:18,880 reported not terribly long ago in a roundabout way, 503 00:27:19,640 --> 00:27:21,720 not necessarily for this product, 504 00:27:21,780 --> 00:27:23,480 but the underlying product they use. 505 00:27:24,340 --> 00:27:25,740 OmniCell, one of the drug cabinets, 506 00:27:26,470 --> 00:27:29,400 uses an application called OmniExplore. 507 00:27:29,560 --> 00:27:32,120 It's for reporting and various other things, 508 00:27:32,260 --> 00:27:33,980 and it'll just run on the drug cabinets proper. 509 00:27:34,420 --> 00:27:35,280 It's a web application, 510 00:27:35,520 --> 00:27:38,320 and it uses a funny piece of software 511 00:27:38,320 --> 00:27:40,680 called Westwind WebConnect. 512 00:27:41,140 --> 00:27:42,960 I don't know if anyone's run into it 513 00:27:43,480 --> 00:27:45,040 on a pen test or anywhere else, 514 00:27:45,240 --> 00:27:46,940 but it has some problems, 515 00:27:47,080 --> 00:27:49,480 and it's really easy to misconfigure. 516 00:27:50,500 --> 00:27:53,460 This here is editing a configuration 517 00:27:53,480 --> 00:27:56,520 file on Westwind WebConnect, 518 00:27:56,700 --> 00:27:58,520 and it's truly easy enough. 519 00:27:58,760 --> 00:28:00,420 From here, you just modify a couple values, 520 00:28:02,400 --> 00:28:03,200 namely those, 521 00:28:03,480 --> 00:28:06,680 and it becomes a pretty simple thing to do, 522 00:28:06,720 --> 00:28:07,800 to own it. 523 00:28:09,400 --> 00:28:11,660 So, Hacker Center alluded to this issue 524 00:28:11,660 --> 00:28:13,520 with WebConnect in general, 525 00:28:14,900 --> 00:28:16,120 but didn't say, like, 526 00:28:16,140 --> 00:28:17,660 hey, you'll find this on drug cabinets. 527 00:28:18,120 --> 00:28:20,100 But basically, you just need to go to the host name, 528 00:28:20,340 --> 00:28:22,820 wc.dll, sometimes that's off a directory 529 00:28:22,820 --> 00:28:23,760 called WConnect, 530 00:28:25,120 --> 00:28:28,240 and just wwmate, tilde, editconfig. 531 00:28:28,480 --> 00:28:30,860 That'll pull up the previous slide, more or less, 532 00:28:31,520 --> 00:28:33,320 and you can just add an INI file 533 00:28:33,320 --> 00:28:34,560 for the application on the box, 534 00:28:35,340 --> 00:28:36,940 change the line that says exe file 535 00:28:36,940 --> 00:28:38,520 to whatever your executable is, 536 00:28:39,840 --> 00:28:42,420 update file, the location of the new file, 537 00:28:43,660 --> 00:28:46,280 and then whack that other URL at the bottom 538 00:28:46,280 --> 00:28:47,100 on number four, 539 00:28:47,220 --> 00:28:48,920 and it will actually update that for you 540 00:28:48,920 --> 00:28:51,000 and start a new server with that executable. 541 00:28:52,640 --> 00:28:54,080 So, yeah, there you go. 542 00:28:55,200 --> 00:28:56,460 It's also running a system, 543 00:28:57,800 --> 00:29:00,240 but afterwards I suggest that you get access 544 00:29:00,240 --> 00:29:03,420 to the desktop of whatever's on there, 545 00:29:03,540 --> 00:29:05,100 because you'll probably see an application running 546 00:29:05,100 --> 00:29:06,700 that will allow you to do some more things 547 00:29:06,700 --> 00:29:08,200 with the drug cabinet. 548 00:29:10,080 --> 00:29:11,240 And, like I said, 549 00:29:11,280 --> 00:29:12,940 we have no problem throwing this one out there 550 00:29:12,940 --> 00:29:14,040 since it's already reported. 551 00:29:16,820 --> 00:29:18,740 So, inevitably, when we're at a bar 552 00:29:19,520 --> 00:29:20,760 around here this week, 553 00:29:21,000 --> 00:29:23,280 we get asked about death packets. 554 00:29:24,080 --> 00:29:26,180 Can you kill somebody with a packet? 555 00:29:27,360 --> 00:29:29,060 Unfortunately, the answer is yes. 556 00:29:30,440 --> 00:29:32,060 Death packets do exist, 557 00:29:32,240 --> 00:29:34,020 and you probably already know about them. 558 00:29:34,340 --> 00:29:35,840 They're not anything special. 559 00:29:36,020 --> 00:29:38,840 So these systems are required 560 00:29:38,840 --> 00:29:40,300 to stay up for patient care. 561 00:29:40,780 --> 00:29:42,720 Things that do, for instance, 562 00:29:42,940 --> 00:29:45,020 systems that do things like dose 563 00:29:45,720 --> 00:29:48,480 high-intensity radiation at cancer patients, 564 00:29:49,280 --> 00:29:50,700 that if they go down, 565 00:29:51,360 --> 00:29:53,140 could potentially, you know, 566 00:29:53,680 --> 00:29:54,740 nuke a person. 567 00:29:55,980 --> 00:29:57,240 You know, these things are 568 00:29:57,780 --> 00:29:58,780 sitting on these networks, 569 00:29:59,320 --> 00:30:00,940 and they're running systems 570 00:30:00,940 --> 00:30:02,700 like Windows XP Service Pack 1, 571 00:30:02,860 --> 00:30:04,420 and they're not patched, 572 00:30:04,420 --> 00:30:05,760 because the vendor claims that 573 00:30:05,760 --> 00:30:08,020 the Food and Drug Administration certification 574 00:30:08,020 --> 00:30:10,720 for that device requires it to never be patched, 575 00:30:11,560 --> 00:30:12,440 which is not true, 576 00:30:12,520 --> 00:30:15,740 but that's what they let these hospitals know. 577 00:30:15,840 --> 00:30:16,760 And so you have these systems 578 00:30:16,760 --> 00:30:18,460 that sit out there for years and years and years 579 00:30:18,460 --> 00:30:19,360 and never get patched, 580 00:30:19,360 --> 00:30:20,200 and if they ever go down, 581 00:30:20,220 --> 00:30:21,320 could potentially kill somebody. 582 00:30:23,180 --> 00:30:24,880 And we thought this was pretty bad. 583 00:30:25,000 --> 00:30:26,380 So these systems, you know, 584 00:30:26,380 --> 00:30:27,420 are very fragile. 585 00:30:28,080 --> 00:30:31,380 If you're testing a hospital network, 586 00:30:31,620 --> 00:30:33,680 please be careful, 587 00:30:33,760 --> 00:30:34,740 because I may be there 588 00:30:34,740 --> 00:30:36,860 and I don't want to get nuked or something. 589 00:30:38,900 --> 00:30:39,500 So yeah, 590 00:30:39,540 --> 00:30:41,260 lack of operation of these systems can be bad. 591 00:30:41,740 --> 00:30:43,060 There are targeted attacks 592 00:30:43,060 --> 00:30:44,360 on things like infusion pumps 593 00:30:44,360 --> 00:30:46,700 that could cause physical harm to a person 594 00:30:47,220 --> 00:30:48,240 that we've discovered. 595 00:30:49,780 --> 00:30:51,240 Again, you know, 596 00:30:51,820 --> 00:30:53,100 HVACs are very important, too. 597 00:30:53,160 --> 00:30:54,540 The HVAC systems in most hospitals 598 00:30:54,540 --> 00:30:55,700 will sit directly on the network. 599 00:30:56,220 --> 00:30:58,300 Heat in a hospital is bad. 600 00:31:00,480 --> 00:31:00,960 Again, 601 00:31:01,100 --> 00:31:02,640 everybody probably has loved ones in hospitals, 602 00:31:02,740 --> 00:31:04,540 so, you know, 603 00:31:05,140 --> 00:31:06,180 be reasonable about this. 604 00:31:06,240 --> 00:31:08,600 Please don't disclose crazy stuff that'll kill people. 605 00:31:09,520 --> 00:31:10,420 Right, right. 606 00:31:10,480 --> 00:31:12,260 Disclose extremely responsibly. 607 00:31:14,740 --> 00:31:16,500 And that brings us to various 608 00:31:16,500 --> 00:31:18,860 miscellaneous healthcare notes. 609 00:31:19,360 --> 00:31:20,460 If you're doing a pen test. 610 00:31:20,980 --> 00:31:22,800 Once again, medical devices 611 00:31:23,160 --> 00:31:24,600 are exceedingly fragile, 612 00:31:25,260 --> 00:31:26,840 directly affect patient care, 613 00:31:27,520 --> 00:31:28,980 and can be down with 614 00:31:28,980 --> 00:31:30,180 simple resource exhaustion. 615 00:31:30,440 --> 00:31:33,560 So even just scans can be, 616 00:31:33,760 --> 00:31:34,800 you know, vulnerability scans 617 00:31:34,800 --> 00:31:37,100 can be pretty bad on these devices 618 00:31:37,100 --> 00:31:39,500 and can cause something just to go unreported, 619 00:31:39,500 --> 00:31:41,100 unmonitored, or worse. 620 00:31:42,760 --> 00:31:43,320 Also, 621 00:31:43,420 --> 00:31:43,920 you'll see 622 00:31:44,800 --> 00:31:47,380 one particular funny thing about hospitals 623 00:31:47,380 --> 00:31:49,200 and other places is that 624 00:31:49,360 --> 00:31:51,560 time to log in for doctors 625 00:31:51,560 --> 00:31:53,320 and nurses 626 00:31:53,320 --> 00:31:55,000 is of utmost 627 00:31:55,000 --> 00:31:55,620 importance. 628 00:31:56,380 --> 00:31:58,700 This really drives a lot of policy 629 00:31:58,700 --> 00:32:00,100 when it comes to security 630 00:32:00,100 --> 00:32:01,800 in a lot of different facilities. 631 00:32:03,100 --> 00:32:04,980 So you'll often find that authentication 632 00:32:04,980 --> 00:32:06,900 schemes are exceedingly 633 00:32:06,900 --> 00:32:08,720 lax, and 634 00:32:09,120 --> 00:32:10,380 this also creates problems 635 00:32:10,960 --> 00:32:13,020 where they think the solution 636 00:32:13,020 --> 00:32:14,580 is going to be a single sign-on 637 00:32:15,500 --> 00:32:17,080 solution or vendor that's 638 00:32:17,080 --> 00:32:18,400 going to come in and fix all their problems. 639 00:32:19,360 --> 00:32:21,380 But often these systems 640 00:32:21,380 --> 00:32:23,040 don't work terribly well either. 641 00:32:23,140 --> 00:32:25,220 If you've tried to wrangle one of them 642 00:32:25,220 --> 00:32:27,420 before, you probably have a good idea. 643 00:32:28,980 --> 00:32:29,660 Also, 644 00:32:29,720 --> 00:32:31,160 you'll see massive 645 00:32:31,160 --> 00:32:32,500 amounts of 646 00:32:33,360 --> 00:32:35,020 remote access technology used 647 00:32:35,020 --> 00:32:36,840 for legacy applications. 648 00:32:37,640 --> 00:32:39,060 And this is all going to be 649 00:32:39,060 --> 00:32:40,780 industry standard common stuff 650 00:32:41,360 --> 00:32:43,060 mixed with, of course, 651 00:32:43,160 --> 00:32:44,600 lax authentication policies. 652 00:32:44,700 --> 00:32:47,280 Often you have the recipe for 653 00:32:47,280 --> 00:32:48,560 a remote access nightmare 654 00:32:49,360 --> 00:32:50,000 from a security standpoint. 655 00:32:51,100 --> 00:32:52,760 These systems are typically used both 656 00:32:52,760 --> 00:32:55,000 internally and externally to give access 657 00:32:55,000 --> 00:32:55,500 to that. 658 00:32:56,580 --> 00:32:58,520 We had mentioned before the FDA approval 659 00:32:59,500 --> 00:33:00,100 process 660 00:33:00,100 --> 00:33:02,660 and the misunderstanding of it and 661 00:33:02,660 --> 00:33:04,520 the miscommunicating of it by 662 00:33:05,320 --> 00:33:06,300 various vendors 663 00:33:06,300 --> 00:33:09,060 creates a lot of unpatched 664 00:33:09,060 --> 00:33:09,420 boxes. 665 00:33:10,540 --> 00:33:13,060 So, you know, forget MS-08-067. 666 00:33:13,960 --> 00:33:15,100 You're looking at 667 00:33:15,100 --> 00:33:16,300 MS-04-011. 668 00:33:17,560 --> 00:33:18,960 They're going to be out there. 669 00:33:19,360 --> 00:33:20,720 Hacking like it's 2004. 670 00:33:21,220 --> 00:33:22,280 Yeah, yeah, definitely. 671 00:33:22,520 --> 00:33:23,600 It is 10 years ago. 672 00:33:25,580 --> 00:33:27,320 So, wireless is also going to be 673 00:33:27,320 --> 00:33:29,180 an issue in these locations. 674 00:33:30,500 --> 00:33:31,300 Handheld medical 675 00:33:31,300 --> 00:33:33,180 devices that will roam the 676 00:33:33,920 --> 00:33:35,220 networks are usually 677 00:33:35,220 --> 00:33:36,040 stripped down. 678 00:33:37,440 --> 00:33:39,240 Linux drivers that will only 679 00:33:39,240 --> 00:33:40,540 support things like WEP. 680 00:33:40,640 --> 00:33:42,580 So you'll see WEP networks on these networks 681 00:33:43,200 --> 00:33:44,900 that are going to be directly connected to the 682 00:33:44,900 --> 00:33:46,300 hospital network because they have to talk 683 00:33:46,300 --> 00:33:48,380 and they have to have those to support those older 684 00:33:50,980 --> 00:33:52,860 Again, at best, maybe you'll see LEAP. 685 00:33:54,020 --> 00:33:54,820 Maybe PEEP. 686 00:33:54,920 --> 00:33:57,100 There's going to be no CERT validation or anything 687 00:33:57,100 --> 00:33:58,900 like that on these networks. So wireless networks 688 00:33:58,900 --> 00:33:59,800 are always going to be bad. 689 00:34:00,900 --> 00:34:03,160 Also, I mean, these are public places. 690 00:34:04,060 --> 00:34:05,160 You know, everybody's 691 00:34:05,160 --> 00:34:07,000 usually pretty busy. So walking around 692 00:34:07,000 --> 00:34:09,060 with antennas on your backpack seems to not get 693 00:34:09,060 --> 00:34:10,500 you noticed, apparently. 694 00:34:11,280 --> 00:34:13,220 So, you know, you can just kind of walk around 695 00:34:13,220 --> 00:34:14,520 and look around at those things. 696 00:34:15,200 --> 00:34:17,180 Again, these are public places. They have to 697 00:34:17,180 --> 00:34:18,980 let the public into them. So you being there 698 00:34:19,360 --> 00:34:21,240 isn't going to go noticed necessarily. 699 00:34:22,280 --> 00:34:23,480 So social engineering 700 00:34:23,480 --> 00:34:25,340 in general is a 701 00:34:25,340 --> 00:34:26,980 huge, huge problem for healthcare. 702 00:34:28,920 --> 00:34:29,480 It's a 703 00:34:29,480 --> 00:34:31,360 really big issue in that they have to 704 00:34:31,360 --> 00:34:33,260 have the public come in. They have to 705 00:34:33,260 --> 00:34:35,340 interact with you because 706 00:34:35,340 --> 00:34:37,240 it's their job. But then, you know, bad 707 00:34:37,240 --> 00:34:38,240 things can happen from that. 708 00:34:40,180 --> 00:34:41,140 Also, due 709 00:34:41,140 --> 00:34:43,080 to the lack of standardization 710 00:34:43,080 --> 00:34:45,300 of a lot of these protocols that we've 711 00:34:45,300 --> 00:34:46,800 been talking about, especially DICOMP, 712 00:34:47,360 --> 00:34:49,220 it is not uncommon for 713 00:34:49,360 --> 00:34:51,140 patients to be given a CD 714 00:34:51,140 --> 00:34:53,300 with their medical images 715 00:34:53,300 --> 00:34:55,260 on it as part of their own personal health 716 00:34:55,260 --> 00:34:57,280 record. Those medical images will 717 00:34:57,280 --> 00:34:59,320 not view in every 718 00:34:59,320 --> 00:35:01,160 DICOM viewer because everybody's is a 719 00:35:01,160 --> 00:35:03,180 slight bit different. So you'll 720 00:35:03,180 --> 00:35:05,320 also have like an EXE on there that's a special 721 00:35:05,320 --> 00:35:06,500 DICOM viewer for those images. 722 00:35:06,880 --> 00:35:09,240 And doctors regularly will get these 723 00:35:09,240 --> 00:35:11,120 CDs from patients and put them into computers 724 00:35:11,120 --> 00:35:13,180 and run those EXEs and bring it up 725 00:35:13,180 --> 00:35:14,820 and look at those images. So 726 00:35:14,820 --> 00:35:17,420 you can literally just take the EXE 727 00:35:17,420 --> 00:35:19,300 and backdoor it and walk into a doctor's 728 00:35:19,360 --> 00:35:21,380 office and say, hey, my leg kind of hurts. 729 00:35:21,440 --> 00:35:22,840 Here's a picture of my broken leg. 730 00:35:23,040 --> 00:35:24,220 And you get shells everywhere. 731 00:35:28,700 --> 00:35:29,500 And I'm 732 00:35:29,500 --> 00:35:30,480 afraid that's it. 733 00:35:30,840 --> 00:35:33,240 You can go find our pits, which will be 734 00:35:33,240 --> 00:35:34,940 up very soon, at MediFuzz. 735 00:35:35,120 --> 00:35:37,020 We thought we were being clever and would make it 736 00:35:37,020 --> 00:35:39,200 something like MetaFuzz, but it's only led 737 00:35:39,200 --> 00:35:41,700 to confusion. So MediFuzz.com. 738 00:35:43,200 --> 00:35:45,300 Send us an email if you want to get a hold 739 00:35:45,300 --> 00:35:46,740 of us and talk more about this or 740 00:35:46,740 --> 00:35:49,240 talk to us in QA. Yeah, we'll be in the 741 00:35:49,360 --> 00:35:51,280 QA. You can buy us a beer. I'm all up for 742 00:35:51,280 --> 00:35:53,420 beer. Absolutely, especially after this. 743 00:35:53,540 --> 00:35:54,740 Thanks, guys. Thank you very much.