Now, without further ado, we have our next two speakers. Cory Hudson is a computational biologist at Sandia National Laboratories. Cory leads teams in cybersecurity, machine learning, symbio, and genomics. His main work is modeling and simulating cybersecurity risks in realistic and large-scale genomic systems and highly automated symbio facilities. And his co-speaker, Charles Frachia, is a bioengineer who has worked at the intersection of biology and computer science for the last decade. He is the founder and CEO of BioBright, a company dedicated to making biomedical workflows more data-centric and secure. And now, without further ado, please welcome our speakers. Thanks so much. We're going to do a back and forth a couple times on this. I'm going to be talking today, and Charles and I are going to be talking about a particular buffer overflow in a common piece of genomic software that leads to some really unexpected and unintended consequences, and how this is a more general case of some issues that are really common in biomedical file formats. So, over the last decade, really over the last two decades, costs of genomics have rapidly declined. It was expected that we'd be at about a penny a genome, but really we're at about $1,000 a genome. It stayed pretty steady for a long time. But since it hit $1,000, what dramatically happened is that the value of just doing genomics in general became much easier and much more simple than doing standard genetic tests. You get a lot more out of it. There's a lot more reason to move to genomics in general. And this is being driven by two characteristics. One is that there are healthcare drivers in genomics. Genomics allows you to segment and split up populations based on disease prevalence. It allows you to take individuals that may have a particular phenotype that is, the correct precision treatment for them. That's what we're talking about when we're talking about precision medicine in general, is this use. The second main driver in this has been an industry. And this industry has been growing considerably and has been really motivating a lot of the work that's happening in genomics. The issue is that you have two highly commercial fields with high amounts of data sensitivity, industry, and the medical field coming out of genomics. But this whole environment really came out of a much different trust model. The trust model for genomics over the last 20 years has really been about academia and academic collaboration. And so there was no necessary need to secure the system or to make sure that you weren't writing code that could potentially be incredibly risky, in large part because the individuals who were interacting all knew each other in some way or another and could trust each other. This is very similar to what happened with the rapid growth of the internet and the standardization that had to happen in the 90s. And so what this has led to is a coalescence around standardization and automation within this field. Yeah, so one of the things is if you look at the birth of modern biomedicine, especially experimental biomedicine, early 1600s, everything was manual. We would select a subject, with our hands, or dissect a cadaver with our hands. We'd observe what's happening with our hands, and then we'd make an analysis in our heads. And obviously some of those analyses are kind of comical these days, or our understanding is comical. But today, things have completely changed. We're really turning into a digitally driven workflow completely. And I would say that this has changed in the last, say, 10 years or 15 years, where this entire environment has moved from a manual process to a more digitally and automated workflow. So now we have liquid handlers that automate the subject selection. We have automated microscopes that will take pictures and images of what we're collecting. And then we have even automated analysis, which is an area of very rapid growth right now, especially in industry, where we're using, you know, kind of novel algorithms and statistical learning to describe what is going on in the sample itself. So if you were to map out what the stack, what the biodigital stack looks like today, you're actually using software at every single one of those environments. You're using it at the design step. So you're using computer-aided design tools to generate your materials that you will then order. Then you will get those built either as a service, in which you can order DNA and get it back. So you literally send bites and you get DNA back. So those will be automated with machines. And then the testing part where you will have an assay, that's perhaps the most manual today still, but that's very rapidly being automated. And finally, once you get the results from that test, you're using bioinformatic tools, software, to analyze those results. And so what does that look like today? Just a quick example. So as I said, you can actually design a plasmid in software, something like Genius or, let's see, I'm blanking on the name of the other one, but there's a number of tools or Vector NTI or things like that, where you're actually designing soft... you're using software to design your plasmid. You then order it at a DNA synthesis company and you get the vial back, right? And then you will build that into your biological systems using liquid handling robots. Once you do that, you culture it up. You end up getting plates like this. You will pick individual clones and those will get sequenced. Again, every one of these steps have both digital inputs and digital outputs. And at the end, you'll analyze the digital results using bioinformatic pipelines with bioinformatics tools. So what really has kind of snuck up on us in this field is that all of the critical workflows in biology and biological research rely on digital tools. So what happens if those are denied, right? What happens if there's a denial of service or a crash or whatever happens on these tools? What happens then? And so in order to understand what the impact would be, you really need to understand how deeply these tools are connected and where do they come from in the first place. So the reality is that the vast majority of these tools actually come from an academic environment, at least at the very beginning. So the vast majority of these tools, things like, you know, BioPython or BioConductor, Gentle, Gromacs, Integrated Genome Browser, all of these are actually academic software at their roots. And unfortunately, one of the issues with academic software, which come out of PhD theses or whatnot, is that they actually don't get supported once the student graduates or rarely do. This is one of the major issues that we have. So just looking at the list of alignment software, this is just genomic alignment software that is from academia, just a small list. I don't know if you can read it, probably not. But it's to tell you how many of these are actually either reproducing the same functionalities or having a small improvement, and they end up as kind of stale code on GitHub at best, or at worst, just as part of a paper. On the business side, not to say that there aren't any tools that come from industry, there are lots of them, but they tend to follow the same kind of environments. They're monolithic software that's been around for decades in many cases. The release cycles are not modular, it's not fast, it's not lean in most cases. And so you have some of these tools that have been there forever that haven't been audited, and yet the trust model has changed. So putting that into context, today, what we're going to be talking about is vulnerability in BWA, which is one of the academic software that's more alignment-focused. So Cory's going to talk about the vulnerability, and then we'll wrap up a little bit later. So the way that genomics works in terms of actual data flow is you have a machine, an Illumina sequencer typically, that's producing terabytes of images. Those terabytes of images are being transferred through a lot of pieces of software until you ultimately get some genetic variance. Once you get the genetic variance, then you're making clinical decisions based on that. The reason that the software gets transferred so many times through so many kinds of software is in large part because of the technology. So the technology, the way that it developed was to to do, to split the genome into really small pieces, and then to put those pieces together, or to map those pieces onto a reference. The software then has to interact in an environment. It's interacting with the sequencer, it's interacting with a firewall, it's interacting with government databases, and with software repos. Somehow it's going through a lot of tracks and paths before it gets to where it wants. And so my team had a particular question that we wanted to look at, and it was, could you hack the raw data using an in-the-wild vulnerability in this BWA software, or any software, to lead to a potentially malicious clinical outcome? Could you change it so that using only standard security assumptions, you had the data and it was completely corrupt, the entire raw data? You would have to resequence every individual to get the data back, and the outcome would be completely different. And so to do this, we looked into the main software pipeline that's been developed. This is the one that's going to be at most of your hospitals or most of the places that they're doing precision medicine to collect variants. They're going to run through what's called the Broad Institute GATK pipeline. And the first tool, the very first one that isn't just basic preprocessing, is one called BWA. And what BWA does is take a human genome and then map the reads that are coming off the sequencer back onto it. But we all kind of know that there's not just one human genome. There's all of our human genomes, and we're all more or less the same, give or take, about 20 megabytes. Like me and the person in this room, who are the furthest distance, are about 20 megabytes apart. But those 20 megabytes can be all over the genome. And so the more sophisticated techniques, and the one that BWA developed in 2014, was not to just map it to a direct genome, but really to map it to what they called an alt-aware. So, knowing that there's alternative potential alleles at various points in the genome. So, this was rushed through. It was an add-on to the main software that sort of showed up much later. But to have this kind of data, this population data, it doesn't make sense for any particular lab to have it, or for you to hold all this data yourself. It makes sense to have this at a major repo, where everyone's sort of collecting all the open source data and building this index for all the genomes out there. And this is done through NCBI. And so, BWA provides a tool that just downloads these indexes, which are actually pretty big from NCBI, and then the user stores them and runs the software as they want. So, in terms of how the software actually interacts with the environment, we have a tool called BWA that's interacting with these files, which are unencrypted plain text files called FASTQ files. They're interacting with GitHub through, uh, repo updates, and they're interacting with NCBI in terms of how they, uh, how they go back and forth. And ultimately, they're producing, um, uh, something called a SAM file, which is just a, um, an alignment. So, every individual, uh, that's run in it, you see where they fit relative to the, to a reference genome. And so, when we went looking for vulnerabilities, this BWA is, is written in C. And so, you kind of know where you're going with that for your first steps, at least. Um, so, in auditing the, the software and looking into it, this is the all-to-wear part that I mentioned is, shows up in 2014 as a new capability. And you look at it, and one of the easy first steps to go at in this, uh, is to look in the comment code and see where, or in the issues, and see where it's segfaulting. And when people are running this, what's happening is, uh, this particular, uh, part of the code right here, they had already recognized this causes a segfault, um, it, it, and the vulnerabilities. And so, then we asked the question, could we induce the segfault? Could we take control of the buffer, um, by doing that and take some, some command over the system? And, uh, so, so we, we developed a, a buffer overflow, um, uh, delivered it to the software and unsurprisingly, uh, had a segfault. So, we know how the exploit can happen at this point, but how do we get to it? Um, how do we get to the soft, to the actual software? Let's assume that the data that's in the database or that, um, is coming off the fast queue can't be touched. We're not allowed to sort of manipulate that directly. Well, what we have is the interactions with NCBI. So, NCBI assumed a particular threat model, which is that they were providing open source data, so they didn't need to encrypt their traffic, but they don't provide checksums. So, this is, it's common to deliver the data over unencrypted channels, but you need to provide checksums, otherwise there's no one, there's no guaranteeing that, that you've, um, that you've got what you wanted. And so, they're delivering these indices, which are 3.3 gigabytes in size over an unencrypted channel. So, what do you do? Sit on the network. Sit on the network, um, deliver some art, poisoning attacks, access the data as it's coming through, you know where to look for it coming from, because it's having to go to this particular FTP site, interact with it in the middle, change the format, have it go out the back end. And so, in terms of crafting the exploit, um, we set some particular limitations. Um, we wanted to turn a single A into a C. We didn't want to change all the A's into C's, just one particular instance in the genome. And we wanted to make it affect the raw data, so that if this exploit was run, the entire raw database would be suspect and corrupted. And so, to do that, or to design the actual target, we did a trick from PCR. So, the polymerase chain reaction. When you want to target a particular nucleotide in a wet lab, what you do is you design things called primers, which are sequences on either side of the nucleotide you're looking for. And so, we could do that. Um, we decided to craft an exploit using that, and we targeted a particular A on the 12th chromosome. It was a random choice. This isn't particularly clinically meaningful, but it can be done with any one. This was just the one we hit on. And seven base pairs upstream and nine base pairs downstream is all you need to target that site uniquely. And so, the actual exploit ends up looking like this. You have the first part, um, in, in blue, the part that triggers the, the overflow. You then, um, uh, create a shell, uh, issue some sed commands that are overriding every fast Q file and turning the sequence at the beginning into that sequence at the end. If you notice, all that is different between those minus the regular expressions that have been added in is an A being turned into a C. Then you live off the land a little bit. You, um, you take, uh, a hidden file that you've put into this 3.3 gigabyte file, um, you overwrite the index to the right index, restart the program as, as it's supposed to run, and then you've changed all the F, uh, dot FQ files in the directory. So, all your, all your, um, data is potentially corrupted. So, the question that we had is if we run this, what are the, what's the outcome? And so, I'll, I'll, um, this is the pipeline. We want to look at the very end of the pipeline now. These, what are called the VCF files, which are just the variant, variant calling format files. Are those different? If you, if you ran this, did you end up with an adverse clinical outcome or an adverse, um, uh, potential outcome? So, we set up three experiments. So, I'll say right up front, we worked with, um, the BWA developers to issue a patch on this, um, and did some responsible disclosure on that so that a patch did exist before we, um, before we ran this analysis. And so, the first version of this is we, we run all the standard analysis with, um, no patch, but no exploit. We then, um, run the analysis, uh, unpatched with the payload, um, where we, all we're doing is changing the A to a C, and then we run it, uh, patched with the payload. And so, it's important to, to understand what we're trying to do here. Um, so really what we're trying to do is see what you would see at the very end. Most of the people who are analyzing this data are not doing the IT and not doing the bioinformatics well beforehand. All they're getting is a variant in front of them. They're getting a case, um, that this individual has a, um, a C phenotype here, um, or an AC, um, heterozygous phenotype, uh, genotype, I mean. And as a result, um, they're making clinical decisions. So, there's 200 medicines that currently require a genetic test. Right now, those are being, being done with standard genetics, by and large, but there's, as genomics increases, like I was talking about in, in the end, there's, or in the beginning, there's no reason why you wouldn't do this using a genomics technique. You would, you would do a lot more tests at once as a result of it. And so, when we ran the first experiment, um, the unpatched version with no exploit, um, what we found was an individual, uh, all the, uh, raw data when it was run through at the final result always led to the genotype AA. So, uh, uh, we're deployed organisms, we have an A in both positions. So, because of how we run, ran the exploit and because of the sequence it looked at, the raw data doesn't know the direction of the DNA. So, it only changes it in one direction. It doesn't change it in the other direction. So, what we get is not a CC, but an AC. So, now an individual has a different genotype and potentially a different phenotype for this. They have a, a different clinical outcome from this. And we find that in the statistics of this, this is highly statistically significant as a result. Um, in, in the first case we ran it, it's, um, a probability, uh, less than, uh, two to the negative 200. Very highly non-random that, that this would, uh, that this would happen by chance. Um, in all the others it was, uh, uh, similarly high in, in terms of it. In any statistical test that a clinician is going to do, you're going to end up with, um, some significance there. And then when we ran it on the patched because we wanted to see how this actually looked when we, um, when we deployed the same experiment on the patched version, uh, we, thankfully and unsurprisingly, uh, uh, the software failed and it failed in the way that you hope it fails in this sort of situation where it just tells you, uh, we, we, we couldn't run this off. We couldn't run what we, what we wanted to abort. And so this is the result of this experiment. This is, um, not the world's most sophisticated piece of malware or sophisticated vulnerability, but it shows you, uh, a new area of where the vulnerability space is. So this is attacking raw data. This is using existing software. It's making very few security assumptions that are, um, that are not standard. And as a result, you're leading to potentially, uh, uh, some really bad, uh, possible clinical outcomes. Yeah. So, um, how I'm just curious, how many people in the room are biologists or have a genetics background? Awesome. So, um, the TLDR of that is basically that with a very simple exploit, you can change the clinical outcome for a patient. So by just doing a very simple exploit, you can actually change how a patient is going to get treated based on how they come out of this diagnostic test. Not something that we want to be happening in hospitals and environments. Um, which is why we're trying to raise awareness about these kinds of problems. And that's precisely the point is that this is kind of a larger problem in our field. Um, if we look at the biological, the biodigital stack, as I explained it earlier, and we look at it with an adversarial approach, um, what are the areas that we can attack actually? Well, um, pretty much all of them. The design step is vulnerable. The build step is vulnerable. The test step is vulnerable. And, uh, bioinformatics analysis pipeline, which is what we were talking about today, is vulnerable. And so if you think about what is the broader issue that we are tackling or we, we, we really have on our hands here, uh, in our field, um, is that it's actually, these vulnerabilities are just all over the map and we need to start fixing them. So, um, one way to look at it is what are the instruments and what are the tools that are actually at our disposal? So there are things, um, there's sequencers, there's mass spectrometers. This is a kind of a abridged list of all the instruments that are available in our workflows. Uh, in fact, if you were at the biohack here village, uh, four years ago or three years ago, I forget when I gave my first talk here, but, uh, I showed how we reverse engineered freezers and, and, and fridges, um, and how you could actually attack those too. Obviously, if you attack those, you could destroy all of the reference material that's in the freezers. That constitutes millions of dollars of work, um, often. So, uh, and this is just one of them. So if we look at this instrument list, let's look at the ones that have significant digital inputs, the ones that actually take files or digital input into their, into, uh, the normal course of operation. Sequencers obviously do that. Mass spectrometers, same thing. Uh, uh, mass spectrometers actually rely on a lot of similar approaches. It's not a reference file, but similar kind of ideas where there are tons of reference materials that are imported that are necessary to understand what, uh, output you're getting. Things like bioreactors, bioreactors is what's used to produce the medicines that we all consume. Um, so what would happen if you could deny those? Uh, filtration machines, same thing. Um, et cetera, go on and on and on. Um, not only that, but what do they output? And so I tried to make a very simple color gradient here. You know, how much data do they output? So sequencers actually output quite a bit of data. Uh, high content imagers, which we work with a lot. Um, it's not uncommon for those to output hundreds of thousands of files per day. So think about the kind of the human computer interaction problem here, right? There's hundreds of thousands of files being output by a machine overseen by one, often one human or a small team of two humans. And you are trying to comb through those to see if there are any exploits. Not going to happen. We just need better tools, right? So again, uh, what does the biodigital stack look like and what can you attack at each one of those steps? So on the design step, you're going to be attacking software and file formats. Um, this is, those are being consumed by the software itself to generate in, uh, instructions. At the build and test step, you're going to be looking primarily at firmware and operating systems. And finally, again, uh, as we explained today in one example, uh, you're going to be attacking software and file formats in the analysis step. So the vulnerability landscapes looks like this. On the software side, you've got things like private, um, privilege escalation and remote execution, which are rife in the software. Again, this is software that has been around for decades in many cases and not really looked at from a security perspective. File formats, we explained today how some of the alt file, um, can actually lead to buffer overflows. Um, you can also have kind of more of a denial of service, a corruption. What if you could actually just corrupt the files going through the wire and stop the whole pipeline? You know, you could actually deny a, uh, medical decision being made by just kind of seizing up the pipeline, the workflow. And so, uh, the firmware, same thing, you can lead to kind of biological or workflow level denial service. Uh, same thing, you can also do a financial attack on these things. So what if, if you actually time your attack, uh, just right, you can actually lead to something like 80, 90 percent of all the cost of goods of producing a, a drug going down the drain. That's gonna destroy, uh, a pharmaceutical company's ability to actually produce the drug and eventually putting it on the shelf so we can consume it. Uh, and on the operating system side, I just wanted to make a special slide for that because this is what we, uh, typically look at. Uh, unfortunately this is very, very, very common. Um, the OS is often Windows XP or if you're lucky, Windows 7. Um, it often has to be connected because it's generating hundreds of thousands of files. And so, you know, you're not gonna be moving those with USB sticks, although some, some of our customers do. Um, and often it's connected using SMBV1. So it's, it's often vulnerable to eternal blue. Now the kicker is, the scientists are not allowed to upgrade any of these machines because it actually impacts their ability for the machine to actually work. And that's something that's really unique in the biological space is that the scientists don't even have the means. We're not talking about the, the knowledge. We're talking literally, I would like to upgrade this machine because I'm uncomfortable with having a Windows XP machine that's connected off to the internet. Um, and, and they're just not allowed to, right? So this is kind of how we feel when we look at, it's high, high time that we work together to try to fix these problems. Um, you know, Corey and his team and my team are working towards this, but we need to have more folks, uh, have eyeballs on this. Uh, and as I said, uh, cyber biosecurity is kind of unique because there's this tension between the scientists and the IT department. And every time the IT department is gonna lose. Because it's, the conversation kind of goes like this. The IT department goes like, hey, you really shouldn't have this thing on the network. It's really awful. And the scientist goes like, yep, but I can't do my job if I don't have it. And that's, that's one of the issues. So the scientist is always going to win unfortunately on this one. Not only that, but IT departments and pharma companies and, and, uh, biotech are often seen as cost center. They're not really seen as kind of, uh, um, an actor that can help and really contribute to some of these issues. So here's what needs to happen. Uh, I said starting now, but really yesterday. Um, one, we need to have hardened parses for common formats. Really, really, really important. And, um, we're working on some of these things. Nothing we can announce right now, but, uh, if you are interested in this field, in this environment and you can help contribute, please come and talk to us afterwards. Second, and this is pretty obvious, but we need bug bounties specifically for key software in our field. Okay. And this is important. Why is that different from a traditional bug bounty is that a very low, very simple cyber vulnerability can lead to an enormous biological vulnerability. A very simple thing can actually lead to a, a, a denial of, of, uh, uh, production of an entire drug. Uh, and there are example out in the wild with pharma companies being hit by ransomware and things like this, where it actually leads to very clear problems, um, in the manufacturing supply chain. And finally, um, you know, instrument manufacturers should really publish file format specs and parser code. We are only going to be able to fix this if we put more eyeballs on it. Keeping it, uh, private and proprietary is not going to help. And I think I speak for everybody in this field to say, we all want to help and fix it. So let's just get our heads together and do that. Um, and I think there is really encouraging, um, next door that, uh, some companies like BD, for example, are actually explicitly having a vulnerability disclosure, uh, um, um, process. That's, that's really unique in our field. We have to have more of that. So the buyer-hacker bill is very clearly, uh, spearheading and, and pushing the community side of this. We got to get together and, and really push this kind of year round. Um, and so this really gets me to my, to our final asks here. Um, if you want to fund bug bounties, please come talk to us. There, we have some ideas on this and, and we're pushing this, uh, um, in the community. Please come talk to us. We, we really want to help make this happen for real. Uh, if you're an instrument vendor, please come talk to us. Likelihood is we have a ton of your files and file formats and ideas on, on, on how we can improve it. I think everybody, again, as I said, we got to get together and fix this. And finally, uh, send us sample files. If you have sample files from your workflows, um, from your environment, if you're an instrument vendor, just go to that, that goes to a Dropbox, uh, what kind of like Dropshare, uh, just send us files and we will start, uh, looking at those. So with that, uh, I think we'll take any questions and thank you very much. Yeah. So the, the question is if you can locally store the indices, take those indices, hash them and make sure as you're running the software that you're running the index that you think you are. Yeah. And this is what a lot of people do, um, for, uh, for actually reasons of speed. So the reason that people have ever done this is because they wanted it locally so they could do a local query. So blast, for instance, a common NCBI tool, uh, frequently you won't blast against the internet database. You'll blast against your own internal database in a sense, um, that limits you in some particular ways. And so you create a bit of a moral hazard out of that. And that hazard shows up because you want to be, um, searching against the most recent database. If the most recent database is being supplied over the FTP server, at some point you're going to have to get it. And so you can go out and, um, query offline and then transfer it in some other way, but roundabout, you're going to have to get that data from there to your machine. So you may not have to sit on the network, but you're going to have to get that file over. And, um, so there there's risk mitigation there, but there's also, um, a potential risk, uh, scientifically of not having the most recent database. That's the reason why people, um, continuously download NR for, which is the non redundant nucleotide database from NCBI. That's right. And so those dots were designed nonetheless to be, um, so the regular expression was designed to be singly indicative of that particular reasons or that particular region. So it was pinpointed even with the regular expressions, the reason to have a regular expression, not be exceedingly long or not be exceedingly, um, strict is that if there's any miss, uh, if there's any errors in the raw data, you're going to catch the errors and not change it. So you want to change it in instant and as many possible instances with this, uh, small irregular expression or as, um, in specific a regular expression as you can. Um, so I, I don't know. And one of the things that, um, is an issue here is that we haven't had very much, uh, trust and communication of this. This is handled internally. Um, and there's a, uh, there's no necessary disclosure that an IT department is, is seeing this. Um, you might have some... Yeah, I, I can, um, uh, so I can add to that a little bit. Um, given how wide open the attack surface is, um, so just to be very clear, we have not seen evidence in the wild that this is being open, but what we do see wide open is very worrisome. Like the technical proficiency that's required for doing some of these attacks is very, very, very low. Um, in all scenarios, you have to think about kind of what's the advantage of doing something like this. And so you can start thinking about what kind of adversary would want to do what kind of attack. Um, so the, the bottom line is the fact that there's no evidence is more a reflection on the fact that nobody's looked rather than it's not happening. Um, incidents around the world indicate that some kinds of facilities like this are actually targets for attack. Um, but no publicly available evidence of that.