1 00:00:00,000 --> 00:00:00,780 All right. 2 00:00:00,780 --> 00:00:03,340 Thanks, everybody, for coming to the AI Village. 3 00:00:03,340 --> 00:00:12,320 Our next talk today is by Yisroel on automated injection and removal of medical evidence in CT and MRI scans. 4 00:00:12,320 --> 00:00:14,260 We have a big round of applause. 5 00:00:19,110 --> 00:00:20,210 Thank you, everybody. 6 00:00:20,210 --> 00:00:21,010 Can you hear me? 7 00:00:21,010 --> 00:00:21,450 Okay. 8 00:00:21,450 --> 00:00:22,170 Great. 9 00:00:22,550 --> 00:00:25,870 So this is my first DEF CON, and I'm very happy to be here. 10 00:00:25,870 --> 00:00:27,650 This is quite an experience. 11 00:00:27,650 --> 00:00:29,250 My name is Yisroel Amorski. 12 00:00:29,250 --> 00:00:29,950 Thanks. 13 00:00:31,230 --> 00:00:35,450 And I'm a cybersecurity researcher at Ben-Gurion University. 14 00:00:35,810 --> 00:00:40,270 And I'm going to talk about how deep learning can be used, not just in the domain. 15 00:00:40,590 --> 00:00:50,890 Maybe you've heard of deep fakes before, where people have used deep learning to kind of do face swaps or create clones of individuals and make them do things. 16 00:00:50,990 --> 00:00:55,130 So in this case, we're actually going to take a look at deep fakes, but in the medical domain. 17 00:00:55,130 --> 00:01:05,510 And what we're going to take a look at specifically is how an attacker could possibly inject or remove medical evidence in CT scans and MRI scans. 18 00:01:09,080 --> 00:01:09,880 Okay. 19 00:01:09,880 --> 00:01:12,220 So a little bit of background. 20 00:01:12,220 --> 00:01:21,560 So for those of you who don't know, MRI and CT scanners are basically medical equipments that take 3D volumetric scans of your body. 21 00:01:21,560 --> 00:01:26,160 And they're used to diagnose various different medical conditions. 22 00:01:26,160 --> 00:01:35,540 So for MRI scans, they can be used to diagnose problems in your bones and your joints, ligaments, cartilage, herniated discs, and your brain as well. 23 00:01:35,560 --> 00:01:42,160 And CT scans are mostly used for diagnosing cancer, heart disease, appendicitis, trauma, and so on. 24 00:01:42,540 --> 00:01:43,800 And in the U.S. 25 00:01:43,800 --> 00:01:50,980 in 2016 alone, there was about 38 million MRI scans, almost 80 million CT scans, and those numbers keep on going up. 26 00:01:50,980 --> 00:01:58,460 And they're a very powerful and important tool in the medical community to be able to diagnose certain medical issues. 27 00:01:59,520 --> 00:02:01,120 So what's the vulnerability? 28 00:02:01,380 --> 00:02:08,220 First of all, there's so many radiology networks that are exposed to the internet, either intentionally or unintentionally. 29 00:02:08,220 --> 00:02:12,880 If you do a quick search on census.io, you find something like 10,000 of these different networks. 30 00:02:13,260 --> 00:02:18,400 And also, the healthcare industry in general has a port security track record, as we see in the past. 31 00:02:18,400 --> 00:02:29,340 And just one good example of that, just several months ago, McAfee researchers were able to get into one of these radiology networks, download a CT scan of a person's pelvis, and then make a 3D print of that. 32 00:02:30,740 --> 00:02:44,420 So the main reason for this, so there's various different reasons, but a lot of medical infrastructure, such as hospitals, use a lot of legacy systems, and they don't pair so well with new technologies. 33 00:02:44,420 --> 00:02:50,500 So they tend to use very downgraded protocols, as we'll take a look at in a few more moments. 34 00:02:52,520 --> 00:02:53,720 So what's a threat? 35 00:02:53,720 --> 00:03:01,420 So we're actually considering not just the case of somebody stealing your data and taking a look at your personal data, but actually what happens if the attacker goes ahead and changes that data? 36 00:03:01,420 --> 00:03:08,160 It's not just medical records, like what your blood test results were, but actual scans, manipulating those scans to then affect your diagnosis. 37 00:03:08,760 --> 00:03:10,460 So why would an attacker want to do that? 38 00:03:10,460 --> 00:03:12,240 So there's a few different aspects. 39 00:03:12,320 --> 00:03:17,180 The first aspect is psychological, that he wants to cause some sort of traumatization or life change. 40 00:03:17,180 --> 00:03:25,040 So think of a political leader, the attacker wants them to step down and rethink his life or perform some sort of global terrorism. 41 00:03:26,180 --> 00:03:35,060 The monetary aspect, so maybe the attacker wants to sabotage or falsifies through evidence, form a ransomware, or more likely case insurance fraud. 42 00:03:35,060 --> 00:03:48,920 So if the attacker gets his hands on his own scan and then injects some sort of small fracture in his spine or a small aneurysm, which is evidence which is very hard to refute through other tests, he can then claim some sort of quality of life insurance and get millions of dollars from that. 43 00:03:49,780 --> 00:03:54,420 And then the physical aspect, the attacker wants to cause physical harm, right? 44 00:03:54,420 --> 00:03:56,480 I think those cases are pretty clear. 45 00:03:58,260 --> 00:04:00,400 So what's the general approach? 46 00:04:00,400 --> 00:04:03,480 Let's take a look at how a CT scan is processed inside a hospital. 47 00:04:03,480 --> 00:04:18,480 So when you go into a CT scanner and it scans you, it takes basically these vertical slices, 2D images of your body, and those are stored in a format called DICOM format, a standard, and they're sent over the ethernet network to this PAC server for later viewing. 48 00:04:18,480 --> 00:04:29,860 And then the radiologist at some point in time will pull those scans, analyze them, write a report, and then forward that to the requesting doctor, whether it be an oncologist, neurologist, depending what they're taking a look at. 49 00:04:29,960 --> 00:04:34,340 And then that oncologist or neurologist, that doctor, would then give you some sort of diagnosis. 50 00:04:34,880 --> 00:04:45,700 So the point of entry here that is most effective for the attacker is somewhere between where the scan was made and before the radiologist gets to make his or her report. 51 00:04:47,500 --> 00:04:53,880 So this is a very basic topology of what the network inside a hospital looks like. 52 00:04:54,040 --> 00:04:58,080 And so you see on the left side, you have a bunch of different scanning modalities. 53 00:04:58,080 --> 00:05:02,800 You have x-ray machines, CT scanners, MRI scanners, and so on and so forth. 54 00:05:02,800 --> 00:05:09,700 These are all connected to PCs called modality workstations, which more often than not are Windows XP machines. 55 00:05:09,840 --> 00:05:17,360 And they capture the raw data from the scanners, convert them to this DICOM format, and send it over the network to the PAC server. 56 00:05:17,360 --> 00:05:24,920 Inside this network, which is supposedly segregated but not quite, you have other kinds of devices. 57 00:05:24,920 --> 00:05:41,040 You have a radiologist's workstations reviewing those scans, various different administrative systems, and of course it's many times bridged over to the entire hospital's network so that referring doctors can pull scans, take a look at them, and make their own prognosis. 58 00:05:41,920 --> 00:05:55,280 So those hospital networks of course also have their own Wi-Fi connections, and many times also the network itself is also connected to the internet for radiologists in other countries to perform off-hours viewing of those scans. 59 00:05:55,280 --> 00:05:59,580 And as you can see, there are many different kinds of attack vectors that result from this. 60 00:05:59,600 --> 00:06:02,820 Now, we have published a paper on ARCA if you want to take a look afterwards. 61 00:06:02,820 --> 00:06:06,160 It kind of goes into detail of all the different kinds of attack vectors. 62 00:06:06,540 --> 00:06:10,080 But I'll just say in very high level, there are three general attack vectors. 63 00:06:10,080 --> 00:06:17,440 One is from the internet, the other is through Wi-Fi access points, and then the other is via physical intrusion. 64 00:06:18,400 --> 00:06:31,980 But once the attacker is in, he can then plant some sort of malware, whether it be on the modality workstation themselves, or as a man-in-the-middle device, or on the PAC server, or wherever he places it, he has full control over all the scans going through the network, 65 00:06:31,980 --> 00:06:42,140 and it's very easy to pick out a very specific individual, because the DICOM format lists the patient's name and all his information, so he can automatically kind of find which scanning he wants to tamper with. 66 00:06:42,360 --> 00:06:51,200 And then there's other locations where he has kind of like chance of picking up the right scan, such as deploying the malware inside the viewer itself. 67 00:06:52,000 --> 00:07:03,160 Okay, so let's get to the interesting part, the deep fakery of it all, and let's talk about how exactly can an attacker automate the process of injecting or removing medical evidence. 68 00:07:03,160 --> 00:07:09,760 And we're going to focus on lung cancer, and how an attacker can inject or remove lung cancer from a CT scan. 69 00:07:11,480 --> 00:07:14,400 So let's talk about training this model. 70 00:07:14,400 --> 00:07:16,820 So the first step in training a model, we need data. 71 00:07:16,820 --> 00:07:32,880 So what we're going to do is, actually in our research, what we did is we went to these free databases of CT scans you can get online, and we found one with lung cancer, and we downloaded that database, and then we went through it, and we had already all the annotations of where all the lung cancers are, 72 00:07:32,880 --> 00:07:35,880 annotations meaning where, you know, x, y, z coordinates. 73 00:07:36,400 --> 00:07:48,080 And what we did is we extracted these cubes surrounding those areas, because what you want to do is you want to just have the neural network focus just on the area that's relevant, because if you give it the entire scan, you're talking about, you know, 74 00:07:48,080 --> 00:07:54,300 almost a billion pixels, you're not going to be able to train a network that way, and it's going to train on so much information that's not relevant. 75 00:07:54,300 --> 00:08:00,780 So instead, we're going to just cut out these small cubes, the areas of interest, and build the data set of these cubes. 76 00:08:01,020 --> 00:08:17,100 So we take out these cubes, we perform some pre-processing steps, histogram equalization, which helps all the features kind of pop out, it's kind of like contrasting, and standard normalization, zero-one normalization, and then we get this nice data set of these cubes of the cancer samples. 77 00:08:17,920 --> 00:08:26,300 And we perform some data augmentation, because often we don't have that many samples, something like anywhere between 600 to 1,000 samples is very, very small. 78 00:08:26,300 --> 00:08:34,240 So we'll augment that by maybe changing some rotation, shifting in different directions, adding a little bit of noise to augment that to a few thousand. 79 00:08:34,900 --> 00:08:39,920 And these cubes are about 32 by 32 by 32 pixels. 80 00:08:42,300 --> 00:08:45,780 Okay, so now that we have our data set, we can now train our neural network. 81 00:08:45,780 --> 00:08:53,060 And the neural network that we use is this kind of auto-encoder here, and it's a 3D auto-encoder, so the inputs are three-dimensional. 82 00:08:53,460 --> 00:09:07,840 And what we do is actually, before we put a sample through the network, we kind of mask the center, we kind of erase it with zeros, and then we pass it through the neural network, we ask the neural network basically to kind of predict what do you think is going to go inside this masked area. 83 00:09:07,840 --> 00:09:17,080 This process called in-painting is used to basically get the neural network to kind of guess what should be there based off the context of that blue area you see on the side. 84 00:09:17,100 --> 00:09:27,600 So that blue area acts as kind of like this kind of tissue context where the neural network can kind of figure out, okay, given the structure around, how can I complete this in a realistic way? 85 00:09:28,260 --> 00:09:39,900 And what happens if you train this neural network on many, many cancer samples, what's going to happen is no matter what cube you put in there, whether it's actually a cancer or not, once I erase the center and put it through again, it's going to try and complete that with cancer, 86 00:09:39,900 --> 00:09:42,420 and vice versa if I trained it on benign samples. 87 00:09:42,780 --> 00:09:49,120 So this process works decently, but what happens is that often the generated images are very blurry. 88 00:09:49,420 --> 00:09:58,880 So to improve that, we actually add another neural network, as some of you might already recognize this structure, and this extra neural network is called the discriminator. 89 00:09:58,940 --> 00:10:04,880 And he's in charge of basically policing the outputs to make sure that they look realistic, that there's no blurriness, so to speak. 90 00:10:06,380 --> 00:10:15,280 And so he's trained on samples that are actually real and samples which are fake generated from this neural network, and he has to decide which is real, which is fake. 91 00:10:15,280 --> 00:10:25,600 And during the training process, the generator gets the signal to try to learn what mistakes he had, where did he foul up and make this some sort of artifact or blurriness so that he can fix it. 92 00:10:25,600 --> 00:10:38,320 So this general architecture is referred to as a generative adversarial neural network, and the particular network we're looking at is a Pix2Pix network used for in-painting with these 3D inputs and 3D filters. 93 00:10:40,620 --> 00:10:42,540 Okay, so now that we... oh, one more point. 94 00:10:42,540 --> 00:10:47,820 So after we've trained it, I actually threw out the discriminator because all we're really interested in is the bottom half, that generator. 95 00:10:48,080 --> 00:10:52,100 Okay, so that way we trained our generator, how do we actually deploy that in a malware? 96 00:10:52,100 --> 00:10:54,160 How would an attacker actually go about doing that? 97 00:10:54,220 --> 00:10:56,780 So there's a kind of like an attack pipeline, if you will. 98 00:10:56,780 --> 00:11:11,060 So once the malware kind of sees that a scan is going over the network, the right DICOM tag for the particular patient, what it'll do is it will use a simple algorithm to locate where it wants to inject or remove that evidence. 99 00:11:11,080 --> 00:11:31,180 And it'll scale up that cube to the right proportions, because many scans are stored in different aspect ratios, go through the whole preprocessing zero out that center, use whichever neural network you want to either inject or remove the evidence, and then reverse the whole preprocessing step, 100 00:11:31,180 --> 00:11:36,400 add some noise, kind of cover up the interpolation blur, and then paste it right back in again. 101 00:11:41,720 --> 00:11:44,900 So the algorithm could also repeat that multiple times. 102 00:11:44,900 --> 00:11:51,700 You want to inject multiple different nodules in this case, and then eventually write it back into the DICOM file. 103 00:11:52,900 --> 00:11:55,480 So here's some sample results. 104 00:11:56,160 --> 00:11:59,860 So this is cancer injection, and we're looking just at 2D slices here. 105 00:11:59,860 --> 00:12:01,260 So obviously 3D. 106 00:12:01,400 --> 00:12:05,400 So the left side is before, the right side is after. 107 00:12:08,340 --> 00:12:09,900 And this is for removal. 108 00:12:09,900 --> 00:12:11,520 And you can see it does a pretty good job. 109 00:12:19,900 --> 00:12:24,100 And actually it lets you kind of inject and remove cancer as you go. 110 00:12:24,100 --> 00:12:26,520 So let's just give it a second here to start up. 111 00:12:28,960 --> 00:12:32,520 So once you train the neural network, you don't need GPU to execute it. 112 00:12:32,520 --> 00:12:34,700 This actually can run on the CPU just fine. 113 00:12:35,160 --> 00:12:35,840 So here we go. 114 00:12:35,840 --> 00:12:40,180 So I've loaded up a full scan of somebody's lungs. 115 00:12:41,420 --> 00:12:42,880 And I'm just going to pause it. 116 00:12:42,880 --> 00:12:47,320 And if I click somewhere, the first time takes a few seconds, because it's got to load the model. 117 00:12:48,540 --> 00:12:56,340 But you can see just by clicking a few different areas, you can just easily kind of inject cancer. 118 00:13:03,130 --> 00:13:08,250 And also, the same algorithm that we looked at before can be used to remove cancer. 119 00:13:08,250 --> 00:13:20,220 So if I click over here and remove this horrifically ugly GUI and find a cancer... oh, here's one. 120 00:13:25,650 --> 00:13:27,490 This is a big one, so we had to click twice. 121 00:13:27,490 --> 00:13:29,110 But let's see if we can find another one. 122 00:13:29,110 --> 00:13:30,150 Here's another one. 123 00:13:31,030 --> 00:13:33,610 So as you can see, it works pretty good. 124 00:13:33,610 --> 00:13:35,610 And that's nice, right? 125 00:13:35,610 --> 00:13:40,210 But that's not good enough just to say that, oh, okay, so we can play around with neural networks. 126 00:13:40,210 --> 00:13:41,730 We can generate some content. 127 00:13:41,750 --> 00:13:43,710 But is it realistic enough, right? 128 00:13:45,810 --> 00:13:47,250 This is a 3D view. 129 00:13:47,250 --> 00:13:48,490 Let me skip ahead. 130 00:13:50,050 --> 00:13:54,810 So this is also, by the way, this is with just showing it doesn't just work with lungs. 131 00:13:54,810 --> 00:13:56,670 It also works with all sorts of other conditions. 132 00:13:56,670 --> 00:13:59,610 So this is showing reconstruction of the brain tumors as well. 133 00:14:01,530 --> 00:14:04,290 Okay, so can we fool the experts, right? 134 00:14:04,290 --> 00:14:10,690 So we've showed how we can generate medical evidence or remove medical evidence. 135 00:14:10,690 --> 00:14:12,770 But is it realistic enough? 136 00:14:13,350 --> 00:14:15,410 So this is how we evaluated our system. 137 00:14:15,410 --> 00:14:20,090 We took 100 CT scans, and we split it up as follows. 138 00:14:20,090 --> 00:14:25,510 So 35 of them, which were actually malign, they had cancer in them. 139 00:14:25,510 --> 00:14:28,430 We used the tool to remove all the cancer automatically. 140 00:14:29,530 --> 00:14:39,310 And then we took 35 of them, which were actually clean scans with completely healthy, and we injected one or more nodules to each of these scans. 141 00:14:39,310 --> 00:14:44,190 And then we also added in 30 untampered altogether just as a baseline. 142 00:14:45,170 --> 00:15:01,890 And then with this data set of 100 tampered scans, we hired three expert radiologists and also got ourselves our own state-of-the-art lung cancer screening AI, which was downloaded freely online, which won the Kaggle 2017 competition. 143 00:15:03,070 --> 00:15:07,070 And the first evaluation, we did a blind trial. 144 00:15:07,070 --> 00:15:10,150 So we didn't tell the radiologists anything fishy about these scans. 145 00:15:10,150 --> 00:15:14,010 We just said, okay, go make, you know, diagnose them, tell us what you think. 146 00:15:14,430 --> 00:15:19,110 And then in the second trial, we took the last 20 scans, and it was open. 147 00:15:19,110 --> 00:15:21,250 We told them, hey, listen, we tampered these scans. 148 00:15:21,250 --> 00:15:25,570 Can you tell the difference between a tampered scan and an original scan? 149 00:15:26,750 --> 00:15:30,910 So for the blind test, the results were quite staggering. 150 00:15:30,910 --> 00:15:41,970 So we had a 99% attack success rate for removing cancer, 94% attack success rate, sorry, for injecting, 94% for removing. 151 00:15:42,210 --> 00:15:47,650 And we also asked the radiologists, we gave them a survey, asked them, what do you think about these cancers, the tampered ones? 152 00:15:47,650 --> 00:15:49,050 We didn't tell them they were tampered. 153 00:15:49,050 --> 00:15:53,770 And they gave us pretty high scores in terms of how malign they are, how dangerous they are. 154 00:15:53,770 --> 00:15:57,050 For most cases, if not all, they required some sort of biopsy. 155 00:15:58,710 --> 00:16:13,190 And then for the open test, where we revealed the truth, the radiologist's accuracy was still very low, anywhere between 30% to 60% accuracy, which means that they weren't really able to differentiate between what is real cancer and fake cancer. 156 00:16:15,350 --> 00:16:18,110 Okay, so we know that they're realistic. 157 00:16:18,870 --> 00:16:24,670 And we know how an attacker can go about this attack, what the attack vector might be. 158 00:16:24,910 --> 00:16:27,410 But how can we validate that? 159 00:16:27,410 --> 00:16:35,270 So, you know, this sounds kind of sci-fi, is it actually possible that an attacker can get into a hospital and manipulate those scans? 160 00:16:35,430 --> 00:16:38,530 So we decided, okay, we have to take this one step further. 161 00:16:38,530 --> 00:16:47,330 Let's go do a covert penetration test on an actual hospital and see if we can get in there and deploy a man-in-the-middle device and tamper those scans. 162 00:16:49,310 --> 00:16:50,750 So this is how it went down. 163 00:16:50,750 --> 00:16:57,650 So we took a Raspberry Pi and we got a USB to Ethernet adapter. 164 00:16:57,990 --> 00:17:02,570 We put them... we also printed out a small little Philips label so it looks legit. 165 00:17:02,950 --> 00:17:05,350 And we put it all together and it looks something like this. 166 00:17:05,350 --> 00:17:11,250 And you get this kind of like man-in-the-middle device that you can plug in between the CT scanner and the rest of the PAX network. 167 00:17:11,410 --> 00:17:15,970 And it would intercept everything, leaving no forensic evidence, make sure it left no traces. 168 00:17:16,630 --> 00:17:23,050 And it would also act as a very nice back door into the network because from the waiting room we can connect to its access point. 169 00:17:25,560 --> 00:17:28,300 So this is a short little video clip. 170 00:17:28,480 --> 00:17:32,920 And it's going to show you basically this penetration test. 171 00:17:35,020 --> 00:17:41,100 So what I did basically is I went to this hospital, of course with permission, but I didn't tell them I was coming. 172 00:17:41,560 --> 00:17:45,900 And I waited for the cleaning staff to open the door and I just walked right in. 173 00:17:45,900 --> 00:17:49,040 And if you walk in like you belong there, no questions are asked. 174 00:17:49,540 --> 00:17:56,580 And it took a few minutes and eventually I was able to find the radiologist workstations so I can go ahead and plant my device there. 175 00:17:56,580 --> 00:17:59,040 But that wasn't the prize. 176 00:17:59,620 --> 00:18:04,020 And not so far away was the one of their CT scannering rooms. 177 00:18:04,760 --> 00:18:06,600 And there's the CT scanner. 178 00:18:08,220 --> 00:18:21,400 And once I found it, it took no more than 30 seconds to unplug the Ethernet cable there, plug in my own little man-in-the-middle device, and very conveniently put it under this floor panel here so nobody will find it. 179 00:18:23,060 --> 00:18:24,040 And that was it. 180 00:18:24,040 --> 00:18:25,860 I was able to intercept all the data. 181 00:18:26,780 --> 00:18:33,020 And as you'll see also, I was able to get a nice strong Wi-Fi signal from the waiting room. 182 00:18:36,070 --> 00:18:39,810 You know, another interesting thing is that I learned a lot from this penetration test. 183 00:18:39,810 --> 00:18:42,290 It wasn't just about, you know, intercepting the scan. 184 00:18:42,330 --> 00:18:46,810 But I also found out that the internal security of many hospitals are actually very poor. 185 00:18:46,810 --> 00:18:55,470 They assume because it's segregated, somewhat segregated, that they don't have to rely on so many security protocols and can be quite relaxed. 186 00:18:55,690 --> 00:19:00,070 So after I showed them what I've done, I got into the network. 187 00:19:00,070 --> 00:19:01,610 They helped me perform a CT scan. 188 00:19:01,610 --> 00:19:03,450 I was able to intercept that scan. 189 00:19:03,450 --> 00:19:11,850 And I found that not only was the scan sent over in clear text, it was supposedly encrypted, but it was all in plain text. 190 00:19:11,850 --> 00:19:14,870 So I was able to manipulate the entire content. 191 00:19:15,290 --> 00:19:24,550 And I found out also that after about something like three minutes, I was got 27 credentials for doctors from that hospital just freely broadcasted over the network. 192 00:19:25,190 --> 00:19:29,850 Because again, there's supposedly, you know, no user except for internal users could use this network. 193 00:19:29,870 --> 00:19:36,270 But, you know, anybody who walks down this hospital can see ports on the wall, plug right in and get access. 194 00:19:38,390 --> 00:19:51,710 So after this, we went to the Washington Post and made article and through some excellent journalism there, they found that, you know, this is actually the general case in many different hospitals in the U.S. 195 00:19:51,710 --> 00:19:56,690 and around Europe, that hospitals in the internal network has very poor security. 196 00:19:56,690 --> 00:20:05,450 And the encryption is typically not enabled between the scanners in the network and the PACS server. 197 00:20:06,290 --> 00:20:08,270 So very briefly, some countermeasures. 198 00:20:08,470 --> 00:20:11,230 So there's a preventative countermeasures. 199 00:20:11,370 --> 00:20:14,570 So we can try and secure the data in motion. 200 00:20:14,650 --> 00:20:19,650 At least, the very least enable encryption on this network would solve a lot of problems. 201 00:20:19,870 --> 00:20:31,210 But as I mentioned before, a lot of hospitals, even though they could technically enable encryption, that would cause a lot of different components to fail because they're using a lot of different legacy components of this old x-ray machine that they're still using, 202 00:20:31,210 --> 00:20:33,450 doesn't support the latest, you know, protocols. 203 00:20:33,450 --> 00:20:35,570 So they'd rather just leave it all downgraded. 204 00:20:36,270 --> 00:20:38,030 Another thing they could do is staff awareness. 205 00:20:38,030 --> 00:20:42,850 You know, if somebody walks in, they don't belong there, they should ask questions, not just ignore them. 206 00:20:43,390 --> 00:20:45,530 And there's also ways for detecting, right? 207 00:20:45,530 --> 00:20:50,990 So actually in the DICOMF standard, you can actually enable digital signatures. 208 00:20:50,990 --> 00:20:56,390 And that's so that the CT scanner will actually put a digital signature and make sure... so you can verify that it hasn't been tampered. 209 00:20:56,390 --> 00:20:59,390 But unfortunately, as far as I know, nobody uses that. 210 00:21:00,610 --> 00:21:09,850 And there's more advanced techniques such as watermarking and image tamper detection, but none of these methods are deployed on site as far as I know. 211 00:21:09,850 --> 00:21:12,970 And there's a lot of ongoing research on this subject as well. 212 00:21:13,750 --> 00:21:22,510 So in summary, with deep learning, it's possible to inject medical evidence into CT MRI scans automatically and realistically. 213 00:21:22,570 --> 00:21:30,630 And the model can fool state-of-the-art AI 100% of the time and expert radiologists between 96 and 99% of the time. 214 00:21:30,950 --> 00:21:45,170 And as we've seen, the attack is viable and can also be easily mitigated if the healthcare industry takes a few steps forward and tries to push through and clean up their security hygiene. 215 00:21:46,250 --> 00:21:49,910 So I think maybe we have a few minutes for questions. 216 00:21:49,910 --> 00:21:51,330 If anybody has a question. 217 00:21:52,690 --> 00:21:54,010 And yeah. 218 00:21:58,540 --> 00:22:01,680 I mean, I'm running the demo you saw here. 219 00:22:01,680 --> 00:22:02,980 I just ran on my laptop. 220 00:22:02,980 --> 00:22:05,080 So any decent CPU can do it. 221 00:22:05,300 --> 00:22:08,520 The question is really how quickly you want to execute it. 222 00:22:10,260 --> 00:22:14,800 I think the model itself after training was about 500 megabytes. 223 00:22:15,100 --> 00:22:15,420 The model 224 00:22:34,260 --> 00:22:49,340 , so like I said before, all these scans, they're saved in different aspect ratios, I think for compression reasons. 225 00:22:49,500 --> 00:22:52,760 So the neural network has to see everything in the right units, right? 226 00:22:52,760 --> 00:22:58,740 You can't give it one scan that's, you know, half the measurement of the previous scan because things just won't match up. 227 00:22:58,740 --> 00:23:01,420 So we have to scale everything. 228 00:23:01,420 --> 00:23:06,120 And we just use simple interpolation, like, you know, Python and image interpolation. 229 00:23:06,400 --> 00:23:13,780 And that causes some blurring, which is why, as you saw, we also had to add a noise to kind of hide up those sins. 230 00:23:14,140 --> 00:23:15,560 But that's all we did, really. 231 00:23:19,150 --> 00:23:19,710 Yeah. 232 00:23:27,640 --> 00:23:31,800 The data sets, I think it was 800 scans total. 233 00:23:31,800 --> 00:23:34,520 We didn't use all of them because we only want the ones with cancer. 234 00:23:34,720 --> 00:23:44,180 And the real data set is actually just how many nodules we extracted, which I think in total was something around 600 before augmentation. 235 00:23:44,400 --> 00:23:49,240 And after augmentation, I think we got to probably 16,000. 236 00:23:49,620 --> 00:23:55,420 And even though there's 32 by 32 by 32 cubes, that's still a lot of pixels. 237 00:23:55,480 --> 00:24:01,400 So it took about 24 hours to 30 hours to train the network. 238 00:24:03,360 --> 00:24:04,340 Yeah. 239 00:24:04,780 --> 00:24:05,400 Okay. 240 00:24:05,400 --> 00:24:06,300 Last question. 241 00:24:21,140 --> 00:24:24,180 It can happen on the network itself, on the go. 242 00:24:24,180 --> 00:24:30,120 When the file is being sent from the scanner to the pack server, it's in clear text. 243 00:24:30,300 --> 00:24:36,080 So the Raspberry Pi that I had, it just captured it, changed the pixels, and sent it along. 244 00:24:50,660 --> 00:24:55,520 You don't have to do it as every single packet goes by, because it just opens a TCP channel. 245 00:24:55,520 --> 00:25:03,420 So you just kind of pretend, you know, as a classic man of metal tech, just gobble up all the data, process it in your own time, take a minute or two, and then pass it along. 246 00:25:04,860 --> 00:25:05,660 Yeah. 247 00:25:07,200 --> 00:25:07,740 Okay. 248 00:25:07,740 --> 00:25:15,780 So if anybody wants to come to the AI Unwind, you can play with the little tool that I made and check it out and speak with me. 249 00:25:15,800 --> 00:25:16,040 All right. 250 00:25:16,040 --> 00:25:16,700 Thank you.