1 00:00:00,000 --> 00:00:04,080 Without further ado, I want to introduce John Dunlap and he's 2 00:00:04,080 --> 00:00:08,000 currently a pen tester at GES. I'll let him explain everything 3 00:00:08,000 --> 00:00:10,500 that he's about as he goes through DNA encryption 4 00:00:10,500 --> 00:00:20,600 discussion. All right. I don't think I'm hot. There we go. Hey 5 00:00:20,600 --> 00:00:23,640 everybody. Who's ready to encrypt some stuff in living 6 00:00:23,640 --> 00:00:27,840 organisms. My name is John Dunlap. I am a security 7 00:00:27,840 --> 00:00:31,560 researcher, reverse engineer, pen tester, whole nine yards to 8 00:00:31,560 --> 00:00:35,000 do security. I work for a firm called GES Security. We have 9 00:00:36,080 --> 00:00:40,000 offices in New York, London. They don't do much with DNA, but 10 00:00:40,000 --> 00:00:43,420 I thought I would just on a lark. I'll tell you more about 11 00:00:43,420 --> 00:00:47,200 how I got interested in that and using DNA as a side channel for 12 00:00:47,200 --> 00:00:55,260 encrypted messages. Now let's be clear. I'm a hacker. I'm a 13 00:00:55,260 --> 00:00:57,820 researcher. I'm a programmer. I'm curious, stubborn, and I'm 14 00:00:57,840 --> 00:01:02,460 perhaps foolhardy. I am not a biologist. I'm not a geneticist. 15 00:01:02,600 --> 00:01:05,440 I'm not a lab professional. I'm not a full-time cryptographer. 16 00:01:06,160 --> 00:01:09,940 But none of this has dissuaded me from synthesizing DNA and 17 00:01:09,940 --> 00:01:14,080 making synthetic life forms. Maybe it should, but it doesn't. 18 00:01:15,560 --> 00:01:19,740 So what was the emphasis for this talk? Well, I've had a 19 00:01:19,740 --> 00:01:22,960 long-term interest in biology. I mean, like many hacker-type 20 00:01:22,960 --> 00:01:26,740 people, I have a wide range of special interests, deep hobbies. 21 00:01:27,840 --> 00:01:31,360 I really liked reading about biology, and there was a local 22 00:01:32,000 --> 00:01:37,040 sort of biohacker space that was offering classes on doing PCR. I 23 00:01:37,040 --> 00:01:41,540 went and did some gene editing on E. coli to implant a glowing 24 00:01:41,540 --> 00:01:45,380 fluorescent protein. You can see this is the results of my 25 00:01:45,380 --> 00:01:49,580 experiment. These are E. coli bacteria inserted with green 26 00:01:50,600 --> 00:01:53,540 fluorescent protein. Actually, no, it's red cherry. Yeah, red 27 00:01:53,540 --> 00:01:57,540 cherry MX or something like that. Fluorescent protein. So, 28 00:01:57,840 --> 00:02:01,080 I began, like, talking with the people who ran the space about, 29 00:02:01,180 --> 00:02:03,500 like, you know, I'm a security researcher. I'm a security 30 00:02:03,500 --> 00:02:08,340 engineer. I think I have a project that we can do. I'm 31 00:02:08,340 --> 00:02:10,360 willing to become a member of the space and pay the monthly 32 00:02:10,360 --> 00:02:13,740 fee if you guys will help enable me to do some crazy security 33 00:02:13,740 --> 00:02:18,520 stuff with these living organisms. And I did. You know, 34 00:02:18,580 --> 00:02:22,440 and just a note on that is you have a local community biohacker 35 00:02:22,440 --> 00:02:26,980 space. You know, this is a new idea in life. Please support them. 36 00:02:27,900 --> 00:02:32,000 Please be responsible. Shoutouts to Mike and Will at Genspace for 37 00:02:32,000 --> 00:02:36,580 helping me out with all this. That's my local biohacker space, 38 00:02:36,700 --> 00:02:41,080 by the way, Genspace in New York. There are so few of these. And 39 00:02:41,080 --> 00:02:44,460 you'll see in a second why I couldn't have done this without a 40 00:02:44,460 --> 00:02:50,220 community space to do it in. We'll talk about it. So, what is 41 00:02:50,220 --> 00:02:53,860 what we're going to attempt here is a form of DNA data storage, 42 00:02:54,280 --> 00:02:57,800 which is not a new thing. I didn't invent a lot of these. I 43 00:02:57,840 --> 00:03:01,580 have a lot of ideas. I'm just looking for a DIY implementation 44 00:03:01,580 --> 00:03:05,380 of it that someone with a minimal molecular biology 45 00:03:05,380 --> 00:03:10,820 background could implement on a minimal budget and do 46 00:03:10,820 --> 00:03:14,100 successfully. And if you want to think about the dream attack 47 00:03:14,100 --> 00:03:18,280 here, what we're looking to do is take, you know, the codes, 48 00:03:18,520 --> 00:03:23,100 maybe the launch codes, and put them into a bacteria where your 49 00:03:23,100 --> 00:03:27,720 local TSA agent, where it's not going to think to look for them 50 00:03:27,840 --> 00:03:31,000 and, you know, oh, hey, this is just my bottle of E. coli, think 51 00:03:31,000 --> 00:03:33,760 nothing of it. They can't ask you to decrypt that hard drive. And 52 00:03:33,760 --> 00:03:39,460 then even if they were to be smart enough to sequence your DNA, 53 00:03:39,540 --> 00:03:42,560 they wouldn't know where the heck to look for it. It's such a big 54 00:03:42,560 --> 00:03:47,000 space of area to look for that data. And it's encrypted, is the 55 00:03:47,000 --> 00:03:50,380 other thing, what we're going to do here. So, we're going to attempt 56 00:03:50,380 --> 00:03:55,920 to implement biological encryption, you know, living stego, if you will. 57 00:03:58,960 --> 00:04:02,180 Now, people have been trying this on a research and 58 00:04:02,180 --> 00:04:05,960 experimental level for a while. There's some great, going back to 59 00:04:05,960 --> 00:04:10,640 the 90s even, some great papers suggesting this and going through 60 00:04:10,640 --> 00:04:14,860 the viability of various encryption schemes, all the way from, 61 00:04:14,920 --> 00:04:20,160 you know, one-time pads to RSA and that kind of stuff, or, you 62 00:04:20,160 --> 00:04:24,460 know, doing public key cryptography in DNA. The vast majority of it 63 00:04:24,460 --> 00:04:26,000 is sort of theoretical. 64 00:04:27,840 --> 00:04:30,600 There are groups working on this in practical terms, but there's 65 00:04:30,600 --> 00:04:33,840 limitations. I'll talk about that in a second. It's not really the same 66 00:04:33,840 --> 00:04:39,540 as what I'm trying to do. And there are definitely limitations that 67 00:04:39,540 --> 00:04:44,560 hold you back from doing this. You know, if you read my slides later 68 00:04:44,560 --> 00:04:50,280 on, you can take in the breadth of the research. A lot of it proposes 69 00:04:50,280 --> 00:04:55,440 using something called a DNA chip, which is sort of a hybrid between 70 00:04:55,440 --> 00:04:57,820 something you buy and something you cook up in the lab that lets you 71 00:04:57,840 --> 00:05:03,740 have a stable binding of the DNA that can be easily read and written 72 00:05:03,740 --> 00:05:12,220 to. Too expensive for me, so I am disregarding it entirely. And this 73 00:05:12,220 --> 00:05:16,500 sort of side channel attack or segmentography in DNA was proposed 74 00:05:16,500 --> 00:05:22,260 as far back as 1999 and continues to be talked about. Here's what one 75 00:05:22,260 --> 00:05:27,540 of those DNA chips looks like, by the way. But in general, there's a lot 76 00:05:27,540 --> 00:05:27,820 of cryptography. There's a lot of cryptography. There's a lot of 77 00:05:27,840 --> 00:05:33,540 papers, papers from cryptographers less than biologists, talking about how you 78 00:05:33,540 --> 00:05:38,820 would do this, the data science of whether it's viable, how you would 79 00:05:38,820 --> 00:05:44,100 implement the encryption, but not a whole lot of practical lab results. And again, I 80 00:05:44,100 --> 00:05:49,080 get the sense that people are doing this, but it's a lot of the actual 81 00:05:49,080 --> 00:05:55,340 experimental data isn't public. Like for instance, I'm aware there's a lot of DNA 82 00:05:55,340 --> 00:05:59,960 data storage research going on at like IBM, and you know their practical results 83 00:05:59,960 --> 00:06:07,540 are not public. So my idea is to do it small and do it simple. I don't 84 00:06:07,540 --> 00:06:14,800 have a lab of my own or funding or a team of grad students or microarrays... I'm 85 00:06:14,800 --> 00:06:18,820 just going to cook some cryptography up in an ECO-like culture that can be 86 00:06:18,820 --> 00:06:24,860 replicated by DIY people, and the way I'm gonna do that is to edit a plasmid 87 00:06:24,860 --> 00:06:25,320 we'll talk a little bit later. 88 00:06:25,320 --> 00:06:26,700 a little bit about what that is in a second, 89 00:06:26,840 --> 00:06:28,920 via restriction enzyme digestion, 90 00:06:29,520 --> 00:06:32,000 which is the classic gene editing technique 91 00:06:32,000 --> 00:06:34,420 that goes back to the 70s with Watson and Crick. 92 00:06:35,440 --> 00:06:37,140 And we'll sequence the culture 93 00:06:37,140 --> 00:06:39,260 and see if we can get the plain text back out. 94 00:06:39,860 --> 00:06:42,180 And then maybe giggle at the results madly 95 00:06:42,180 --> 00:06:43,260 because this is just too cool. 96 00:06:44,660 --> 00:06:46,860 So what we're gonna wanna do is first 97 00:06:47,360 --> 00:06:48,700 construct something called Oligo, 98 00:06:48,740 --> 00:06:51,060 and for our purposes, simplifying this talk, 99 00:06:51,180 --> 00:06:54,040 we're just going to make a little crust of DNA 100 00:06:54,040 --> 00:06:59,120 that we're going to implant into our host organism. 101 00:07:00,600 --> 00:07:03,100 If you're going to get DNA synthesized, 102 00:07:03,140 --> 00:07:05,800 if you're going to have some arbitrary DNA made up for you, 103 00:07:06,140 --> 00:07:10,080 the various DNA shops that will build the DNA for you 104 00:07:10,620 --> 00:07:13,620 have guidelines on what Oligo should be. 105 00:07:13,760 --> 00:07:15,800 We'll talk about the practicalities 106 00:07:15,800 --> 00:07:18,420 of how that falls into my project in a second. 107 00:07:19,740 --> 00:07:23,180 But there are a few no-gos 108 00:07:23,180 --> 00:07:24,460 for what can go into DNA. 109 00:07:25,220 --> 00:07:29,360 And we're going to put our Oligo into a plasmid. 110 00:07:29,980 --> 00:07:34,920 And a plasmid, you can think of as like a DNA donut. 111 00:07:36,750 --> 00:07:39,980 For our purposes, in our host organism, 112 00:07:40,140 --> 00:07:42,380 plasmid is like a little ring of DNA 113 00:07:42,690 --> 00:07:45,320 that exists outside of the chromosome, 114 00:07:46,410 --> 00:07:48,420 which is nice for a couple of purposes, 115 00:07:48,810 --> 00:07:52,480 mainly that it's unlikely to directly negatively affect, 116 00:07:52,660 --> 00:07:53,160 you know, the host organism. 117 00:07:53,160 --> 00:07:55,440 And that's the life cycle of the host organism. 118 00:07:56,220 --> 00:08:01,080 And also, bacteria share these plasmids 119 00:08:01,080 --> 00:08:03,040 between each other rather promiscuously, 120 00:08:03,180 --> 00:08:05,800 so it's a very easy environment to do gene editing in. 121 00:08:06,340 --> 00:08:09,760 Bacteria normally just swap out these plasmids on their own. 122 00:08:10,100 --> 00:08:15,100 So like, inserting them forcibly into the bacteria 123 00:08:15,100 --> 00:08:18,800 is actually not going to be abnormal to their life cycle. 124 00:08:19,640 --> 00:08:21,120 If you've ever heard of 125 00:08:23,340 --> 00:08:25,000 antibiotic-resistant bacteria, 126 00:08:25,180 --> 00:08:30,360 one way that that property is sort of passed between bacteria 127 00:08:30,360 --> 00:08:32,100 is via plasmid transfer. 128 00:08:34,040 --> 00:08:35,740 Here's what a plasmid looks like 129 00:08:35,740 --> 00:08:37,100 under a scanning electron microscope. 130 00:08:37,440 --> 00:08:38,800 Again, this is a donut structure. 131 00:08:39,160 --> 00:08:41,960 And here are some bacterias sharing plasmids 132 00:08:41,960 --> 00:08:44,100 via what's called bacterial conjugation. 133 00:08:44,100 --> 00:08:48,720 They actually sort of reach out this long kind of tendril 134 00:08:48,720 --> 00:08:52,460 and swap stuff out, which is pretty freaking cool. 135 00:08:57,720 --> 00:09:01,280 So, step one, we're going to pick an amenable model organism. 136 00:09:01,520 --> 00:09:04,880 In my case, I picked E. coli because it is cheap, 137 00:09:04,900 --> 00:09:06,540 easy to work with, readily available, 138 00:09:06,680 --> 00:09:07,640 and I've worked with it before. 139 00:09:09,760 --> 00:09:13,380 Next we're going to pick an amenable encryption strategy. 140 00:09:14,540 --> 00:09:16,840 We want something that works with a small amount of data, 141 00:09:17,960 --> 00:09:20,700 that's low complexity, high integrity, and low cost. 142 00:09:21,260 --> 00:09:22,580 And it's cheap, and it's cheap. 143 00:09:22,580 --> 00:09:24,740 And I can do it in a community lab. 144 00:09:25,700 --> 00:09:26,140 Okay? 145 00:09:28,400 --> 00:09:31,620 Affordable DNA synthesis, and if you're a little confused 146 00:09:31,620 --> 00:09:32,680 when I keep talking about synthesis, 147 00:09:32,840 --> 00:09:35,280 you can just pay a company to make you arbitrary DNA. 148 00:09:35,460 --> 00:09:37,940 You can order DNA in the mail, which is freaking cool. 149 00:09:38,300 --> 00:09:39,680 Every time I explain that to people, 150 00:09:39,720 --> 00:09:40,420 they're like, no, really? 151 00:09:42,400 --> 00:09:44,380 So, but size is a factor. 152 00:09:44,560 --> 00:09:47,140 Anything over about 60 nucleotides 153 00:09:47,140 --> 00:09:49,280 gets radically more expensive. 154 00:09:50,320 --> 00:09:51,300 And things like 155 00:09:52,580 --> 00:09:54,220 Health complements are palindromes, 156 00:09:54,220 --> 00:09:59,260 basically any time that the complimentary DNA nucleotides 157 00:09:59,260 --> 00:10:01,860 are repeated backwards on each other 158 00:10:01,860 --> 00:10:03,560 creates the situation where you can get something 159 00:10:03,560 --> 00:10:06,040 like a hairpin that will ruin your synthesis. 160 00:10:06,540 --> 00:10:09,000 Repeating patterns can be a problem for sequencing. 161 00:10:09,320 --> 00:10:10,580 We want to avoid all that 162 00:10:22,300 --> 00:10:29,500 complex. And, you know, there are papers that attempt to do this in DNA, but it would 163 00:10:29,500 --> 00:10:35,160 involve sequencing a lot more DNA than I want to spend money on. We'll talk about practical 164 00:10:35,160 --> 00:10:39,720 costs in a few slides. So I decided to keep things classic and keep it simple and go with 165 00:10:39,720 --> 00:10:45,480 a one-time pad. It can be small. It can be perfect. I don't want to mess with key sharing 166 00:10:45,480 --> 00:10:53,500 for DNA. And the likelihood of anyone even finding where the encrypted data is pretty 167 00:10:53,500 --> 00:10:59,800 low. And since our message sharing is going to be so slow anyway, and we're talking about 168 00:10:59,800 --> 00:11:06,420 mailing or walking DNA back and forth between our crypto partners, you know, the keypad 169 00:11:06,420 --> 00:11:15,460 problem with one-time pads isn't going to really be a practical problem. So, you know, 170 00:11:15,480 --> 00:11:22,540 here is just some nucleotides. We have to find a way to encode our message. Right? We've 171 00:11:22,540 --> 00:11:32,840 got to turn ASCII text into nucleotides. So we're going to convert ASCII into ACGT. And 172 00:11:32,840 --> 00:11:40,940 the exact method by which we do this determines the density of data we can encode. Let's check 173 00:11:40,940 --> 00:11:44,720 that out. So we can map 0, 1, 2, 3. 174 00:11:48,260 --> 00:11:56,300 I had no idea before that a base 4 integer is called a quat, by the way. I think that's 175 00:11:56,300 --> 00:12:01,880 really funny. There is no standardized term for a base 4 byte either. Because there's 176 00:12:01,880 --> 00:12:08,080 bytes for, you know, normal bits to bytes. And then trits to trites. But quats to quites? 177 00:12:09,100 --> 00:12:12,440 You know? I think everyone just gives up at that point. 178 00:12:14,420 --> 00:12:15,220 You know, I 179 00:12:15,220 --> 00:12:15,460 think everyone just gives up at that point. 180 00:12:15,460 --> 00:12:19,900 I found only fragmentary data of what you're supposed to call that. So we have our base 181 00:12:19,900 --> 00:12:24,100 4 integer. And then we have to decide, and this is the most important thing, is like 182 00:12:24,100 --> 00:12:29,240 byte width. How big our bytes are going to be is going to affect how much data we can 183 00:12:29,240 --> 00:12:37,120 encode. And also like the size of our ASCII table. Yeah, some people call base 4 quat 184 00:12:37,120 --> 00:12:43,800 bytes crumbs. I've run into that. That's really weird. And here's our comparison. So if we 185 00:12:43,800 --> 00:12:44,240 use a 186 00:12:45,680 --> 00:12:53,980 4 quat byte, we can get the entire ASCII table. 3 is acceptable. 2 is kind of sketchy. So for 187 00:12:54,500 --> 00:13:01,960 simplicity's sake, I went with 4. Next we have to design a primer. And so easiest way to think 188 00:13:01,960 --> 00:13:06,720 about this is that when we make our oligo, we're going to have encrypted data, right? And on each 189 00:13:06,720 --> 00:13:13,940 side of that data, we need some sticky bits that are going to help anneal that data onto our plasmid. 190 00:13:13,940 --> 00:13:18,860 So we have like most of a plasmid ready to go. Just bought from the lab. And we're just going to 191 00:13:18,860 --> 00:13:30,100 stick on our data that's synthesized. So what we want is a 20 nucleotide primer, binding site, 192 00:13:30,380 --> 00:13:35,720 and 20 nucleotide reverse primer. And it's going to be in the shape of a primer binding 193 00:13:35,720 --> 00:13:41,640 site payload and reverse primer. And, you know, I had to check with my lab to make sure that 194 00:13:42,080 --> 00:13:43,860 format would work. And then I had to check 195 00:13:43,940 --> 00:13:45,100 with synthesis people to make sure 196 00:13:45,100 --> 00:13:46,240 they were okay with it. 197 00:13:47,880 --> 00:13:49,540 Lots of advising going on. 198 00:13:50,920 --> 00:13:54,000 If you check with each of the synthesis companies, 199 00:13:54,180 --> 00:13:56,040 they'll give you some advice on what's good for them. 200 00:13:56,460 --> 00:13:58,380 It might vary, synthesis company, synthesis company. 201 00:13:58,560 --> 00:14:00,300 I use a company called IDT in my case. 202 00:14:01,540 --> 00:14:03,740 Usually, they have some pretty elaborate 203 00:14:03,740 --> 00:14:07,180 like JavaScript toys to like try and give an idea 204 00:14:07,180 --> 00:14:08,340 of the sequence you've given them. 205 00:14:08,360 --> 00:14:10,240 It works, but it's not bulletproof. 206 00:14:11,600 --> 00:14:13,860 You want to avoid, like I said before, 207 00:14:14,060 --> 00:14:16,400 repeating sequences can cause some problems. 208 00:14:17,800 --> 00:14:20,240 Self-complements can cause some problems. 209 00:14:23,880 --> 00:14:27,000 There's a good explanation of the self-complement problem 210 00:14:27,880 --> 00:14:28,700 right there. 211 00:14:29,120 --> 00:14:30,980 Basically, each nucleotide has a complementary 212 00:14:31,720 --> 00:14:37,640 sort of letter, and it can cause the DNA to fold in 213 00:14:37,640 --> 00:14:39,820 and sort of bind with itself, which is bad. 214 00:14:40,240 --> 00:14:42,580 You also have to do some analysis on annealing temperatures 215 00:14:43,100 --> 00:14:47,360 depending on exactly what base pairs you put on. 216 00:14:47,440 --> 00:14:49,560 It affects the annealing temperature, 217 00:14:49,780 --> 00:14:53,020 and if the primer and the verse primer 218 00:14:53,020 --> 00:14:54,820 have radically different annealing temperatures, 219 00:14:55,460 --> 00:14:57,520 that can throw off the entire experiment. 220 00:14:59,080 --> 00:15:00,620 Then, once you've done all that, 221 00:15:00,780 --> 00:15:05,220 you can put your little oligo into BLAST, 222 00:15:05,340 --> 00:15:08,720 which the National Institute of Health has a website 223 00:15:08,720 --> 00:15:10,220 where you can search for the DNA. 224 00:15:10,220 --> 00:15:13,360 You can search to make sure that your oligo 225 00:15:13,360 --> 00:15:15,980 isn't part of some pathogen or something like that. 226 00:15:16,040 --> 00:15:20,100 Here's the results for my oligo 227 00:15:20,100 --> 00:15:22,060 that I most recently had synthesized. 228 00:15:22,660 --> 00:15:23,880 It comes up. 229 00:15:23,920 --> 00:15:24,960 It's such a small pattern. 230 00:15:25,080 --> 00:15:29,720 It comes up in all kinds of other fragments 231 00:15:29,720 --> 00:15:30,720 from other organisms. 232 00:15:31,260 --> 00:15:32,880 Nothing too scary in there. 233 00:15:34,440 --> 00:15:37,240 I automated this process with a program. 234 00:15:38,180 --> 00:15:39,820 It converts ASCII into, 235 00:15:40,820 --> 00:15:42,240 our base four representation, 236 00:15:42,640 --> 00:15:43,980 and applies a one-time pad. 237 00:15:46,620 --> 00:15:48,120 You can configure the byte size 238 00:15:48,120 --> 00:15:49,380 and just the description as well. 239 00:15:50,320 --> 00:15:51,460 It's up on my GitHub. 240 00:15:51,800 --> 00:15:53,460 It's still marked private right now. 241 00:15:53,520 --> 00:15:56,000 I'm going to send it public right after this thought. 242 00:15:57,440 --> 00:15:58,720 Let's do a POC on that. 243 00:15:59,620 --> 00:16:02,040 We're going to convert some leetspeak into DNA 244 00:16:02,040 --> 00:16:03,760 because that makes me laugh. 245 00:16:05,740 --> 00:16:07,500 A commercial synthesis company 246 00:16:07,500 --> 00:16:09,040 actually took this same leetspeak 247 00:16:10,460 --> 00:16:11,660 and synthesized it for me 248 00:16:11,660 --> 00:16:13,220 and made DNA without any complaints, 249 00:16:14,160 --> 00:16:15,580 which also amuses me. 250 00:16:16,960 --> 00:16:19,400 What it doesn't do is do some of the more robust 251 00:16:19,400 --> 00:16:20,740 structural checks on the DNA, 252 00:16:20,880 --> 00:16:22,020 like self-complement, temperature. 253 00:16:22,280 --> 00:16:23,700 I use the external tools for that. 254 00:16:23,760 --> 00:16:25,480 That's on the to-do list for the tool itself. 255 00:16:27,560 --> 00:16:29,960 Also, again, when you order from synthesis companies, 256 00:16:30,100 --> 00:16:31,540 they will do some of that for you. 257 00:16:35,920 --> 00:16:37,260 For our one-time pad, 258 00:16:37,480 --> 00:16:39,760 you need a key that's the same size as message. 259 00:16:40,220 --> 00:16:41,700 User-specified by the tool. 260 00:16:42,920 --> 00:16:44,580 Believe me, you'll have plenty of time 261 00:16:44,580 --> 00:16:46,140 to figure out new keys 262 00:16:46,140 --> 00:16:48,960 in between one-time messages in this process 263 00:16:48,960 --> 00:16:50,640 because it's like a two-week turnaround 264 00:16:50,640 --> 00:16:55,660 to get the entire E. coli gene editing thing going. 265 00:16:57,840 --> 00:17:00,180 If you're not familiar with one-time pad encryption, 266 00:17:00,440 --> 00:17:03,120 you need a book of unique keys that are never reused. 267 00:17:03,740 --> 00:17:06,660 Having that going between two labs, it's doable. 268 00:17:10,220 --> 00:17:12,380 The plaintext we're going to use is Elite Feet 269 00:17:12,380 --> 00:17:14,200 because we accomplished something cool. 270 00:17:15,100 --> 00:17:17,000 The key is going to be CryptKid 271 00:17:17,000 --> 00:17:18,880 because we're using this script 272 00:17:18,880 --> 00:17:21,020 to become a genetic engineering script kitty. 273 00:17:21,660 --> 00:17:24,200 Here are the help and arguments for my tool. 274 00:17:25,300 --> 00:17:28,340 You can load the key from a file. 275 00:17:28,740 --> 00:17:32,460 You can do different byte sizes and whatnot 276 00:17:33,260 --> 00:17:34,740 if you want to do this at home. 277 00:17:35,100 --> 00:17:36,760 If you need to squeeze in more information, 278 00:17:36,880 --> 00:17:39,260 you can use a smaller byte size, etc. 279 00:17:42,060 --> 00:17:43,660 Here's what it looks like being run. 280 00:17:44,080 --> 00:17:47,300 It spits out some nice nucleotide encodings, 281 00:17:47,340 --> 00:17:47,880 which is cool. 282 00:17:49,040 --> 00:17:50,120 Here's a decryption. 283 00:17:50,280 --> 00:17:51,440 Decrypts to Elite Feet. 284 00:17:51,920 --> 00:17:55,240 Once I had that and pasted on my primer and reverse primer, 285 00:17:56,180 --> 00:17:57,980 I could order the DNA for synthesis. 286 00:17:59,200 --> 00:18:00,040 Except not. 287 00:18:00,300 --> 00:18:02,300 This is where the community lab thing comes in. 288 00:18:03,160 --> 00:18:04,420 For better or for worse, 289 00:18:04,540 --> 00:18:06,280 at least in the United States, in our system, 290 00:18:06,500 --> 00:18:08,540 you can't just order stuff from labs anymore, 291 00:18:08,720 --> 00:18:09,920 which is kind of sad, 292 00:18:10,220 --> 00:18:11,340 but I guess it's for the best. 293 00:18:12,600 --> 00:18:15,060 If you're ordering DNA from a place like IDT, 294 00:18:15,140 --> 00:18:17,300 they're going to ask for your credentials as a biologist, 295 00:18:17,520 --> 00:18:19,140 what lab you work for, etc. 296 00:18:20,540 --> 00:18:22,660 Which is some pluses and minuses, 297 00:18:22,680 --> 00:18:23,700 but it sucks if you're a hacker. 298 00:18:24,400 --> 00:18:27,560 In my case, without the relationship with the community lab, 299 00:18:27,740 --> 00:18:29,660 I would be unable to order this DNA, period, 300 00:18:29,780 --> 00:18:32,800 even though there's not much I could do with it 301 00:18:32,800 --> 00:18:34,000 without a lab in the first place. 302 00:18:35,720 --> 00:18:37,080 There's a lot of stuff in science 303 00:18:37,080 --> 00:18:39,560 you can't order without access to a legitimate lab. 304 00:18:40,220 --> 00:18:40,760 Which kind of sucks. 305 00:18:43,060 --> 00:18:45,460 It would be pretty tough to do the synthesis on your own 306 00:18:45,460 --> 00:18:47,900 because it requires some nasty chemicals 307 00:18:47,900 --> 00:18:48,800 that are hard to handle. 308 00:18:48,880 --> 00:18:51,860 You'd end up having to do it in a lab in the first place. 309 00:18:52,580 --> 00:18:53,660 Unless you're very brave. 310 00:18:55,380 --> 00:19:00,160 Next step, we're going to be editing our E. coli. 311 00:19:01,780 --> 00:19:03,620 High-level protocol here. 312 00:19:03,700 --> 00:19:05,280 We're going to use a restriction enzyme 313 00:19:05,280 --> 00:19:06,900 to edit our plasmid. 314 00:19:08,420 --> 00:19:09,220 Same technique. 315 00:19:09,440 --> 00:19:10,180 Watson and Crick. 316 00:19:10,220 --> 00:19:11,160 Hughes and 70s. 317 00:19:11,900 --> 00:19:13,440 We're going to snip the plasmid, 318 00:19:13,480 --> 00:19:15,040 leaving some sticky ends, 319 00:19:15,340 --> 00:19:17,360 which are synthetic DNA you may attach to. 320 00:19:19,720 --> 00:19:22,980 If you want to see lab protocols for how to do that, 321 00:19:23,240 --> 00:19:25,380 I give you some suggestions. 322 00:19:25,880 --> 00:19:28,140 Genscript.com is a really great site 323 00:19:28,140 --> 00:19:29,840 for checking out genetics protocols. 324 00:19:30,320 --> 00:19:31,860 They list out stuff like this 325 00:19:31,860 --> 00:19:35,920 or how to do really accessible versions of PCR. 326 00:19:36,360 --> 00:19:38,540 One of the reasons I did this version of the experiment 327 00:19:38,540 --> 00:19:39,980 because it's very well documented. 328 00:19:40,220 --> 00:19:41,440 There are many protocols on it. 329 00:19:41,480 --> 00:19:42,480 There's lots of advice on it. 330 00:19:42,520 --> 00:19:43,880 People do it in college all the time. 331 00:19:47,380 --> 00:19:49,180 Let's show some cool pictures 332 00:19:51,680 --> 00:19:53,840 because it's not real until you see it. 333 00:19:54,740 --> 00:19:56,780 Here's the DNA I ordered from IDT. 334 00:19:57,580 --> 00:19:59,480 It comes in little vials like this. 335 00:19:59,660 --> 00:20:00,540 Here's some more. 336 00:20:01,680 --> 00:20:03,460 That's leetspeak-carrying DNA. 337 00:20:05,580 --> 00:20:09,680 The PCR machine had to do some amplification on this. 338 00:20:11,940 --> 00:20:15,500 Plates, little carriers for the vials, 339 00:20:16,260 --> 00:20:19,020 more plates, and PCR gels, 340 00:20:19,260 --> 00:20:22,840 trying to amplify the stuff pre-sequencing. 341 00:20:27,040 --> 00:20:29,740 Here's Genscript's protocol on this. 342 00:20:32,440 --> 00:20:36,940 A little too nitty-gritty to go through in deep detail, 343 00:20:39,400 --> 00:20:41,820 but you add a bunch of reagents together, 344 00:20:43,000 --> 00:20:44,460 do some centrifuging, 345 00:20:45,780 --> 00:20:48,400 and there's a temperature cycling step 346 00:20:48,400 --> 00:20:52,760 that gets the plasmid to accept our DNA. 347 00:20:54,180 --> 00:20:55,720 Tons of variations on this. 348 00:20:56,660 --> 00:20:58,020 Once we have this done, 349 00:20:58,160 --> 00:21:02,140 we can verify that the DNA is in our E. coli. 350 00:21:02,200 --> 00:21:03,720 We want to send it out for sequencing. 351 00:21:04,220 --> 00:21:06,680 Again, this is another thing you're going to have trouble doing 352 00:21:06,680 --> 00:21:06,920 with a DNA test. 353 00:21:06,920 --> 00:21:10,240 You can't do this without access to a legit lab. 354 00:21:10,700 --> 00:21:12,940 A lot of places will sequence your human DNA. 355 00:21:13,160 --> 00:21:15,900 It's a little different than getting stuff like 23andMe. 356 00:21:16,760 --> 00:21:19,500 Asking people to sequence bacteria is a little different. 357 00:21:19,840 --> 00:21:22,600 They want to know that you know what you're doing. 358 00:21:24,700 --> 00:21:26,380 They're also going to charge you more 359 00:21:26,380 --> 00:21:27,340 if you don't know what you're doing 360 00:21:27,340 --> 00:21:29,000 because you can send them a plate of bacteria 361 00:21:29,000 --> 00:21:30,220 and ask them to figure it out, 362 00:21:30,320 --> 00:21:31,780 but they're going to charge you a lot more 363 00:21:31,780 --> 00:21:34,020 than if you have something very purified for them. 364 00:21:35,860 --> 00:21:38,640 At that stage, once you've done that, 365 00:21:39,960 --> 00:21:42,140 you're free to go interpret your results. 366 00:21:43,020 --> 00:21:46,880 The lab's going to send you basically chromatograph readings. 367 00:21:47,720 --> 00:21:50,860 They're going to turn out to be a bunch of nucleotide strings. 368 00:21:52,120 --> 00:21:55,400 It's your time to check and see if things went wrong or right. 369 00:21:56,280 --> 00:21:58,100 Results look kind of like this. 370 00:22:01,380 --> 00:22:03,900 That's where, if you had the repeating pattern, 371 00:22:04,020 --> 00:22:05,240 or the self-compliments, 372 00:22:05,360 --> 00:22:07,300 things could have gone very badly 373 00:22:07,300 --> 00:22:09,200 because, again, the repeating patterns 374 00:22:09,200 --> 00:22:13,300 tend to throw the sequencing machine for a loop. 375 00:22:13,440 --> 00:22:15,600 It makes the head kind of think 376 00:22:15,600 --> 00:22:17,700 like it's gotten stuck or something like that. 377 00:22:18,920 --> 00:22:20,340 Once you have done all that, 378 00:22:20,520 --> 00:22:22,180 you can take your secret data anywhere. 379 00:22:25,320 --> 00:22:26,940 Anywhere that E. coli is accepted. 380 00:22:27,220 --> 00:22:28,600 I don't know if that's the airport or not. 381 00:22:30,120 --> 00:22:31,640 How much did this cost me? 382 00:22:32,740 --> 00:22:33,740 Maybe about $300. 383 00:22:34,020 --> 00:22:34,740 $300 for lab membership. 384 00:22:35,000 --> 00:22:36,800 Synthesis cost me about $40 385 00:22:36,800 --> 00:22:39,140 for a pretty good quantity of the DNA. 386 00:22:41,080 --> 00:22:43,480 I did pay about a couple hundred bucks 387 00:22:43,480 --> 00:22:47,640 for lab expendables like enzymes and that kind of thing. 388 00:22:48,400 --> 00:22:50,400 That's more than enough to last me for a while. 389 00:22:51,460 --> 00:22:53,560 Sequencing cost me a bit more 390 00:22:53,560 --> 00:22:57,160 because I paid for a primo sequencing kind of situation. 391 00:22:57,800 --> 00:22:58,780 About $800. 392 00:22:58,940 --> 00:22:59,740 If I did it again, 393 00:23:00,340 --> 00:23:02,320 or I'm continuing to do it right now, 394 00:23:02,900 --> 00:23:04,000 it costs less. 395 00:23:04,020 --> 00:23:04,540 Less every time 396 00:23:04,540 --> 00:23:06,420 because I don't have to buy most of that upfront stuff. 397 00:23:08,740 --> 00:23:09,440 What's the benefit? 398 00:23:09,600 --> 00:23:10,000 What's the point? 399 00:23:10,920 --> 00:23:13,440 No one is going to ever guess your data is in that bacteria. 400 00:23:13,720 --> 00:23:15,060 No one's going to ask you to decrypt it. 401 00:23:15,520 --> 00:23:16,960 It's not an obvious storage medium. 402 00:23:18,300 --> 00:23:20,880 There will never be any key escrow on your bacteria. 403 00:23:22,900 --> 00:23:24,920 It would take a very dedicated effort 404 00:23:24,920 --> 00:23:26,840 for the NSA to backdoor your bacteria. 405 00:23:27,600 --> 00:23:29,600 You get to birth synthetic life, 406 00:23:29,760 --> 00:23:30,480 which is pretty cool. 407 00:23:32,320 --> 00:23:33,500 But it is pretty expensive. 408 00:23:34,020 --> 00:23:34,640 It's slow. 409 00:23:35,300 --> 00:23:37,280 Keeping one-time pad books sucks. 410 00:23:39,140 --> 00:23:40,700 And there is a problem of, 411 00:23:41,720 --> 00:23:44,240 since our synthetic DNA or whatever 412 00:23:44,240 --> 00:23:47,980 does not provide any evolutionary advantage 413 00:23:47,980 --> 00:23:51,440 to the bacteria, to E. coli, 414 00:23:52,200 --> 00:23:54,300 it has a high chance of generationally 415 00:23:54,300 --> 00:23:56,260 just doing away with it, 416 00:23:56,320 --> 00:23:58,720 evolving away the plasmid you put in there 417 00:23:58,720 --> 00:24:00,480 because it has no reason to keep it. 418 00:24:01,440 --> 00:24:03,480 Bacteria sort of evolves pretty quickly. 419 00:24:05,920 --> 00:24:07,660 And, you know, you can't really do this 420 00:24:07,660 --> 00:24:09,180 without the involvement of several labs. 421 00:24:11,740 --> 00:24:13,340 But if you're really dedicated, you can. 422 00:24:15,220 --> 00:24:16,960 Yeah, the cost per bite is a little high 423 00:24:16,960 --> 00:24:18,640 compared to on-chip AES. 424 00:24:19,100 --> 00:24:19,780 Just saying. 425 00:24:20,340 --> 00:24:22,200 So what am I going to do with this in the future? 426 00:24:23,180 --> 00:24:25,260 I'm going to try this out in new model organisms. 427 00:24:26,000 --> 00:24:31,320 Put it on stuff like yeast genomes with CRISPR. 428 00:24:32,360 --> 00:24:34,000 Try and implement some new models. 429 00:24:34,020 --> 00:24:36,140 Some more lab algorithms, yet cheaply. 430 00:24:37,540 --> 00:24:39,640 And then maybe a viable method to package 431 00:24:39,640 --> 00:24:41,600 a living colony for stealthy transport. 432 00:24:42,900 --> 00:24:45,080 And to do some longer-term testing 433 00:24:45,080 --> 00:24:47,600 to see how long our encrypted information 434 00:24:47,600 --> 00:24:49,960 is capable of living in the bacteria 435 00:24:49,960 --> 00:24:50,740 without being corrupted. 436 00:24:51,480 --> 00:24:52,960 There's a lot of talk in literature 437 00:24:52,960 --> 00:24:54,620 about error code implementations 438 00:24:54,620 --> 00:24:57,640 to make sure that your stuff doesn't go bad. 439 00:24:59,540 --> 00:25:02,160 And, you know, making the lab people less mad 440 00:25:02,160 --> 00:25:04,000 with fewer bags for health. 441 00:25:04,000 --> 00:25:06,940 So, you know, promising idea, yeast. 442 00:25:07,140 --> 00:25:09,580 Might be able to make a dried yeast or something 443 00:25:09,580 --> 00:25:13,000 where our information stays alive pretty well. 444 00:25:13,920 --> 00:25:15,460 So I hope you guys had fun. 445 00:25:16,720 --> 00:25:19,220 If you're a well-informed molecular biologist, 446 00:25:19,340 --> 00:25:19,920 I'm so sorry. 447 00:25:21,220 --> 00:25:23,840 This has got to be like when I watch CSI Cyber or something. 448 00:25:25,160 --> 00:25:25,640 Yeah. 449 00:25:26,300 --> 00:25:27,420 But I'm a hacker. 450 00:25:27,460 --> 00:25:27,920 I dabble. 451 00:25:27,920 --> 00:25:28,360 That's what I do. 452 00:25:29,720 --> 00:25:32,000 You know, please get involved in biohacking community 453 00:25:32,000 --> 00:25:32,840 if you're not already. 454 00:25:33,140 --> 00:25:33,960 This stuff is... 455 00:25:34,000 --> 00:25:34,780 is pretty accessible 456 00:25:34,780 --> 00:25:36,620 and there's people who are willing to teach you. 457 00:25:37,140 --> 00:25:39,320 Just, you know, make sure you're around people 458 00:25:39,320 --> 00:25:40,080 with the right credentials 459 00:25:40,080 --> 00:25:42,560 to teach you to handle lab equipment safely 460 00:25:42,560 --> 00:25:44,240 and, you know, you don't get bacteria 461 00:25:44,240 --> 00:25:45,200 in your eye or something. 462 00:25:46,440 --> 00:25:49,280 There's also a lot of fun bioinformatics work to be done. 463 00:25:51,540 --> 00:25:53,380 If you're thinking of starting a community lab, 464 00:25:53,580 --> 00:25:54,160 please do that. 465 00:25:54,220 --> 00:25:55,280 The world needs more of those. 466 00:25:55,800 --> 00:25:58,240 And please do hit me up on GitHub or Twitter 467 00:25:58,240 --> 00:26:00,520 if you're interested or have questions about my project. 468 00:26:01,000 --> 00:26:03,680 And in general, you know, have a happy time biohacking. 469 00:26:04,000 --> 00:26:06,700 Thank you. 470 00:26:06,700 --> 00:26:08,020 Thank you.