1 00:00:00,000 --> 00:00:08,100 Joining us off this morning is Marie Fromm. She's going to be talking to us about cloud encryption, how to not suck at securing your encryption keys. Take it away, Marie. 2 00:00:09,320 --> 00:00:10,000 Thank you. 3 00:00:16,660 --> 00:00:19,460 Yes, that's going to be the goal of today's talk, how to suck less. 4 00:00:20,240 --> 00:00:26,260 So anyway, a little bit about who I am. I work in infosec cryptography and I'm trans. 5 00:00:26,260 --> 00:00:31,500 I've done a lot of stuff over the years, incident response, security testing, reversing, security architecture. 6 00:00:31,840 --> 00:00:35,220 And for the rest of my career, I really want to fix things. 7 00:00:35,480 --> 00:00:43,960 I see there's a lot of people that throw bricks through windows and stuff, and I want to work with builders to actually fix stuff. 8 00:00:44,220 --> 00:00:52,080 I think it's really important because right now there's a lot of really negative things happening because we're failing at security so badly. 9 00:00:52,280 --> 00:00:54,440 So I want to see things suck less. 10 00:00:54,900 --> 00:00:55,420 Now. 11 00:00:56,260 --> 00:01:03,820 What kind of got me thinking about this talk was something that affected probably most of the people in this room was the Equifax data breach. 12 00:01:04,100 --> 00:01:10,600 And they had the CEO up on the stand and they were asking, you know, one of the questions was obvious was, well, was your data encrypted? 13 00:01:10,920 --> 00:01:13,640 He actually said he didn't know, which was amazing. 14 00:01:15,640 --> 00:01:19,480 So I just I was just stupefied by that, first off. 15 00:01:19,640 --> 00:01:26,080 And then the thing that really, really, really upset me was after they said they kind of. 16 00:01:26,260 --> 00:01:32,780 Issued some clarifications and said, well, you know, maybe some of it was encrypted, maybe some of it wasn't, but, you know, encryption doesn't really help. 17 00:01:33,280 --> 00:01:41,120 And I just and then you saw the pundits, you know, in all the columns and stuff about, well, yeah, you know, encryption doesn't really help prevent. 18 00:01:41,420 --> 00:01:51,280 And I just I know that for the people in this room, I would almost guarantee that most of you would be able to encrypt something that I couldn't read. 19 00:01:51,600 --> 00:01:55,160 So, I mean, that's that's kind of a, you know, kind of a basic thing. 20 00:01:55,220 --> 00:01:55,920 And it makes statements. 21 00:01:56,260 --> 00:02:02,940 But, well, encryption doesn't really help prevent data breaches is a really bad message. 22 00:02:03,240 --> 00:02:13,500 And it's it's partly due to the way things are being done, the way cryptography has been used, both on ground and prim and data centers and in the cloud. 23 00:02:14,320 --> 00:02:17,140 So I'm going to talk through a few different areas. 24 00:02:17,360 --> 00:02:22,480 I'm actually going to start start on ground and talk about data center encryption. 25 00:02:22,700 --> 00:02:25,460 It's it's oftentimes kind of typical. 26 00:02:26,260 --> 00:02:28,060 Here's a big, big storage frame. 27 00:02:28,300 --> 00:02:32,120 You know, you'd find in a big I.T. shop and, you know, the product slick. 28 00:02:32,320 --> 00:02:36,280 It's got all these cool things, you know, strong data at rest protection. 29 00:02:36,400 --> 00:02:47,040 You know, it talks about and they go on and say, you know, this these these are protected by, you know, A.S., which is which will protect top secret government data. 30 00:02:47,160 --> 00:02:53,280 You know, so, I mean, they make these claims and, you know, the EMC dude, you know, makes a huge sale. 31 00:02:53,620 --> 00:02:56,160 You know, the the execs feel good, you know. 32 00:02:56,260 --> 00:02:57,520 Our data is encrypted at rest. 33 00:02:57,960 --> 00:03:03,720 And but let's talk a little bit about how these work before we get into the cloud. 34 00:03:05,120 --> 00:03:16,280 So system operation, you know, it boots up big hurricane machine, you know, and actually I should make a I started out this slide writing, you know, data written to rust. 35 00:03:16,440 --> 00:03:18,360 And I thought, oh, wow, you know, that is so. 36 00:03:18,420 --> 00:03:25,020 So for you younger ones, you know, in the old days, we had these spinning rusty things that we wrote data to. 37 00:03:25,120 --> 00:03:26,040 And now it's all flash. 38 00:03:26,260 --> 00:03:28,340 But, yeah, you'll have to Google that shit. 39 00:03:28,460 --> 00:03:29,840 It's really great. 40 00:03:31,780 --> 00:03:34,500 But, you know, it's but the main. 41 00:03:34,640 --> 00:03:36,780 So this these systems boot up. 42 00:03:36,860 --> 00:03:37,900 They read an encryption key. 43 00:03:37,980 --> 00:03:40,840 That's so, you know, it's they try to protect it. 44 00:03:40,940 --> 00:03:46,780 And then all data written as transparently encrypted as it writes right to the storage media. 45 00:03:47,340 --> 00:03:50,000 And then on reads, it's transparently decrypted. 46 00:03:50,820 --> 00:03:56,180 And so there actually is no awareness to the server of the application that this encryption. 47 00:03:56,260 --> 00:04:02,820 Is happening completely transparent, you know, systems connected via, you know, NAS or SAN. 48 00:04:03,020 --> 00:04:05,380 They just they think they're reading and writing data. 49 00:04:05,480 --> 00:04:05,920 And it's cool. 50 00:04:06,080 --> 00:04:08,140 And it's we're encrypted at rest. 51 00:04:08,220 --> 00:04:08,440 Right. 52 00:04:08,560 --> 00:04:09,660 You know, that sounds really good. 53 00:04:11,460 --> 00:04:17,700 So so one of the things about this, if we look at this and say, how well does this kind of encryption protect our data? 54 00:04:17,840 --> 00:04:20,300 Let's say say we had something like this. 55 00:04:20,380 --> 00:04:22,280 And, you know, it does meet compliance requirements. 56 00:04:22,440 --> 00:04:26,180 We check that box that, you know, hey, it's AES encrypted at rest. 57 00:04:26,180 --> 00:04:28,560 But what happens if we have a data breach? 58 00:04:29,540 --> 00:04:31,180 So attacker comes in. 59 00:04:31,340 --> 00:04:33,700 We actually do a flowchart, a real simple flowchart. 60 00:04:33,840 --> 00:04:35,320 Attacker tries to access the data. 61 00:04:35,540 --> 00:04:37,060 Was the storage frame on? 62 00:04:38,220 --> 00:04:38,740 Bummer. 63 00:04:38,940 --> 00:04:41,740 The encryption did not protect our data. 64 00:04:42,120 --> 00:04:44,300 Was the storage frame off? 65 00:04:44,680 --> 00:04:45,680 Hey, we win. 66 00:04:45,800 --> 00:04:46,920 We protected our data. 67 00:04:47,440 --> 00:04:55,800 So you have to, you know, that's that's one of the things that when people say encrypted at rest, you really have to understand what kind of threats. 68 00:04:55,800 --> 00:04:56,160 So you have to, you know, that's that's one of the things that when people say encrypted at rest, you really have to understand what kind of threats they're going to be. 69 00:04:56,160 --> 00:04:57,320 That protects against. 70 00:04:58,140 --> 00:05:02,000 So, you know, we look back at the storage frame example on the ground. 71 00:05:02,140 --> 00:05:06,040 You know, it protects against a pretty narrow model of threats. 72 00:05:06,580 --> 00:05:11,980 Like say, you know, I have some bad drives and the EMC dude comes in and to replace them. 73 00:05:12,040 --> 00:05:13,540 And he's taken them back to the depot. 74 00:05:14,220 --> 00:05:16,480 And a couple fall off of his bicycle. 75 00:05:16,900 --> 00:05:21,360 You know, that's, you know, I can say, you know, those drives were encrypted at rest. 76 00:05:21,400 --> 00:05:22,140 They were powered down. 77 00:05:22,240 --> 00:05:22,840 They weren't spinning. 78 00:05:24,460 --> 00:05:31,120 So this form of encryption, if you think about this, this thing that people say, oh, yeah, it's encrypted at rest. 79 00:05:31,400 --> 00:05:34,380 You know, it just protects against this very narrow threat. 80 00:05:36,260 --> 00:05:46,760 So when somebody says this, hey, my data is encrypted at rest, whether we're talking cloud or ground, you really need to dig a lot, lot deeper. 81 00:05:48,420 --> 00:05:50,360 So let's dive into the cloud. 82 00:05:50,360 --> 00:05:54,100 Now, first of all, I'll say, you know, not all data should be in the cloud. 83 00:05:54,300 --> 00:06:00,940 You really need to think about risk modeling, about, you know, understanding what your threats are, your compensating controls. 84 00:06:01,340 --> 00:06:02,960 And I'm not here to bash cloud. 85 00:06:03,460 --> 00:06:08,020 You know, I think, you know, AWS, Azure, people are using it successfully in a lot of cases. 86 00:06:09,280 --> 00:06:17,460 But a lot of people are not thinking about cloud implementations of cryptography that actually protects data. 87 00:06:18,320 --> 00:06:20,340 And, you know, so AWS is not. 88 00:06:20,360 --> 00:06:22,780 AWS, they give you all this amazing functionality. 89 00:06:22,800 --> 00:06:24,240 They do all sorts of stuff. 90 00:06:24,440 --> 00:06:26,540 It's almost, it's staggeringly complex. 91 00:06:26,960 --> 00:06:28,920 There's so many different things you can do with AWS. 92 00:06:29,380 --> 00:06:32,480 It's like every week I get an e-mail and new things are added to it. 93 00:06:32,500 --> 00:06:33,960 And it's like, wow, wow, wow. 94 00:06:34,260 --> 00:06:35,900 And it's like I don't know how you can stay up on it. 95 00:06:36,300 --> 00:06:46,740 But and actually I'll say AWS does give you some primitives that can apply a certain level of encryption to do things reasonably well for certain use cases. 96 00:06:47,280 --> 00:06:50,120 But you really have to do proper systems engineering. 97 00:06:50,280 --> 00:06:50,340 And I'm not here to talk about that. 98 00:06:50,360 --> 00:06:56,080 Because if you don't, this stuff is not going to be encrypted against the threats you care about. 99 00:06:56,240 --> 00:07:01,380 Like, you know, somebody actually trying to take over your system and steal your data. 100 00:07:02,020 --> 00:07:04,740 Now, you know, there is some interesting differences. 101 00:07:04,740 --> 00:07:09,940 Like in AWS, I don't know if you looked at it, but they've got different, they operate in different geographies. 102 00:07:11,040 --> 00:07:14,680 And I'll just say some of them are kind of interesting. 103 00:07:14,760 --> 00:07:18,360 Like China has stripped out all the encryption. 104 00:07:18,440 --> 00:07:20,340 Even the encryption built into the platform. 105 00:07:20,360 --> 00:07:23,360 It's got no IAM or two-factor authentication. 106 00:07:23,820 --> 00:07:28,420 And so that might have some security implications in what you're building. 107 00:07:31,100 --> 00:07:38,300 So as we get into, let's take a really simple example. 108 00:07:38,640 --> 00:07:42,540 So a simple building block is S3 encryption. 109 00:07:42,880 --> 00:07:45,260 And it's used for, you use it for all sorts of stuff. 110 00:07:45,400 --> 00:07:50,340 It's a basic fundamental piece of technology for storing a chunk of data. 111 00:07:50,340 --> 00:08:00,040 Now, a lot of people don't necessarily realize this, but there's actually quite a few different ways you can encrypt S3 data. 112 00:08:00,520 --> 00:08:07,980 So there's server-side encryption options include server-side with the key managed by S3. 113 00:08:08,300 --> 00:08:13,860 Server-side with the key managed by KMS or Amazon's key management service. 114 00:08:14,440 --> 00:08:19,940 And you can also do server-side encryption with customer-managed keys that you manage. 115 00:08:20,340 --> 00:08:22,620 Say in a variety of ways. 116 00:08:22,820 --> 00:08:24,640 It could be outside of KMS. 117 00:08:25,200 --> 00:08:28,520 And then there's actually client-side encryption options. 118 00:08:28,820 --> 00:08:33,460 Which can make a lot of sense to encrypt data before I ever stuff it up in there. 119 00:08:34,640 --> 00:08:42,720 But just this very basic primitive of, quote, encrypting data in S3 has got a whole bunch of different ways to do it. 120 00:08:43,340 --> 00:08:46,020 So like say I'm a dev and I'm trying to figure this stuff out. 121 00:08:46,520 --> 00:08:47,740 And I look at S3. 122 00:08:48,300 --> 00:08:50,120 And here's this default encryption. 123 00:08:50,480 --> 00:08:51,280 It's a checkbox. 124 00:08:51,520 --> 00:08:53,080 That looks really good to me. 125 00:08:53,340 --> 00:08:55,820 I love doing stuff with checkboxes. 126 00:08:55,820 --> 00:08:58,560 Because I can go and I can think about the application development. 127 00:08:58,840 --> 00:09:00,780 I can think about all this stuff. 128 00:09:00,880 --> 00:09:01,700 The wonderful things. 129 00:09:01,800 --> 00:09:03,580 The business benefits my app is going to do. 130 00:09:03,820 --> 00:09:05,740 And I can check that box. 131 00:09:05,960 --> 00:09:07,360 And the security folks are going to be happy. 132 00:09:09,140 --> 00:09:15,200 And there are some kind of interesting things about the way Amazon does this with the S3 encryption. 133 00:09:15,860 --> 00:09:16,860 They actually... 134 00:09:17,740 --> 00:09:20,220 They encrypt each bucket with a unique key. 135 00:09:20,320 --> 00:09:20,760 Which is good. 136 00:09:20,880 --> 00:09:24,220 You don't have this shared key that unlocks a whole bunch of stuff. 137 00:09:25,700 --> 00:09:29,640 They encrypt the key itself with a master key that it rotates regularly. 138 00:09:29,980 --> 00:09:30,800 That's kind of cool. 139 00:09:30,940 --> 00:09:31,440 You know, key rotation. 140 00:09:31,900 --> 00:09:34,260 Critical part of controlling your encryption keys. 141 00:09:36,660 --> 00:09:40,180 Again, it uses one of the strongest block ciphers available. 142 00:09:40,580 --> 00:09:41,820 This is right from the marketing material. 143 00:09:42,080 --> 00:09:43,280 AES-256. 144 00:09:43,360 --> 00:09:44,320 To encrypt your data. 145 00:09:45,400 --> 00:09:46,800 So this is... 146 00:09:47,740 --> 00:09:48,680 It's really easy to me. 147 00:09:48,780 --> 00:09:50,960 I can check a box and I'm done. 148 00:09:53,320 --> 00:09:53,880 But... 149 00:09:54,460 --> 00:09:56,080 It's not really that simple. 150 00:09:56,660 --> 00:09:57,640 And so... 151 00:09:57,640 --> 00:09:59,480 For an analogy... 152 00:10:01,540 --> 00:10:03,880 I would like to talk about a physical system. 153 00:10:05,080 --> 00:10:05,640 So... 154 00:10:06,460 --> 00:10:08,040 Taking this context. 155 00:10:08,500 --> 00:10:09,760 Of an S3 bucket. 156 00:10:10,080 --> 00:10:11,740 Where it's doing this automated encryption. 157 00:10:12,340 --> 00:10:14,220 If I apply it to a door. 158 00:10:14,560 --> 00:10:16,280 A door that I want to secure. 159 00:10:16,660 --> 00:10:17,720 In a room that's closed. 160 00:10:17,740 --> 00:10:18,820 And I've got some stuff in it. 161 00:10:18,860 --> 00:10:19,720 That I want to protect. 162 00:10:20,580 --> 00:10:23,200 I can go out and I can buy a really nice deadbolt. 163 00:10:23,380 --> 00:10:25,100 These are really good deadbolts. 164 00:10:25,240 --> 00:10:28,700 There's probably somebody in Lockpick Village that knows a way of opening these. 165 00:10:28,940 --> 00:10:31,720 But for most of us... 166 00:10:31,720 --> 00:10:33,100 I know I can't pick that deadbolt. 167 00:10:33,240 --> 00:10:34,820 I probably can't saw it. 168 00:10:34,840 --> 00:10:36,840 It's designed to not be beatable open. 169 00:10:37,680 --> 00:10:39,660 And imagine this deadbolt. 170 00:10:40,220 --> 00:10:41,460 In front of this door. 171 00:10:42,140 --> 00:10:44,680 And it's protecting people from going in. 172 00:10:44,980 --> 00:10:46,660 Grabbing the stuff I'm trying to protect. 173 00:10:46,660 --> 00:10:47,500 And walking out. 174 00:10:49,480 --> 00:10:49,960 So... 175 00:10:50,740 --> 00:10:52,640 This is kind of similar. 176 00:10:52,700 --> 00:10:54,180 To our S3 bucket. 177 00:10:54,360 --> 00:10:57,160 We want to make sure the right people are going in. 178 00:10:57,300 --> 00:10:58,280 And getting our stuff. 179 00:10:58,880 --> 00:11:00,620 But I would kind of assert. 180 00:11:00,800 --> 00:11:02,440 That that last example of saying. 181 00:11:02,640 --> 00:11:05,040 Apply the default encryption to S3. 182 00:11:05,320 --> 00:11:06,560 Is a little bit like. 183 00:11:06,640 --> 00:11:07,760 Having this massive door. 184 00:11:07,980 --> 00:11:09,060 This really nice deadbolt. 185 00:11:09,260 --> 00:11:10,980 But leaving the key in the door. 186 00:11:12,020 --> 00:11:14,600 Now that doesn't really protect that data. 187 00:11:14,760 --> 00:11:14,920 Right? 188 00:11:16,660 --> 00:11:17,000 Because if they get in front of that door. 189 00:11:17,860 --> 00:11:18,500 They see. 190 00:11:18,760 --> 00:11:20,040 And they can turn to walk. 191 00:11:20,160 --> 00:11:21,840 So they may have to do some positioning. 192 00:11:22,020 --> 00:11:23,100 To get in front of the door. 193 00:11:23,700 --> 00:11:27,320 Maybe to take it back to the controls you might have in a web application. 194 00:11:27,720 --> 00:11:29,420 Maybe they tunnel up through the floor. 195 00:11:29,580 --> 00:11:30,740 Or cut through the ceiling. 196 00:11:30,980 --> 00:11:31,820 Or punch in a wall. 197 00:11:32,140 --> 00:11:33,360 But if they can get in front of that door. 198 00:11:33,440 --> 00:11:34,120 If that key is there. 199 00:11:34,180 --> 00:11:35,300 They just turn and walk through. 200 00:11:36,160 --> 00:11:36,900 Grab your stuff. 201 00:11:37,100 --> 00:11:37,820 And walk out. 202 00:11:38,620 --> 00:11:40,760 So this is kind of a design pattern. 203 00:11:40,860 --> 00:11:42,460 That is not so great. 204 00:11:42,700 --> 00:11:44,280 Well we can actually point to it. 205 00:11:44,360 --> 00:11:45,300 We can say it's encrypted. 206 00:11:45,660 --> 00:11:48,260 We can sign a paper that's encrypted at rest. 207 00:11:48,300 --> 00:11:48,940 That's good encryption. 208 00:11:49,800 --> 00:11:52,620 But it's actually not really very effective. 209 00:11:52,920 --> 00:11:53,900 In stopping people. 210 00:11:54,080 --> 00:11:55,320 From walking out with our stuff. 211 00:11:56,420 --> 00:11:56,940 So. 212 00:11:58,180 --> 00:11:59,060 There's a principle. 213 00:12:00,760 --> 00:12:01,540 Kirchhoff's principle. 214 00:12:01,780 --> 00:12:02,380 It's kind of famous. 215 00:12:02,500 --> 00:12:05,040 And it says any crypto system should be secure. 216 00:12:05,240 --> 00:12:06,780 If everything is known about the system. 217 00:12:08,420 --> 00:12:09,520 Except for the key. 218 00:12:09,880 --> 00:12:11,720 That can all be public knowledge. 219 00:12:12,200 --> 00:12:14,560 Well if we're not managing our keys correctly. 220 00:12:14,760 --> 00:12:15,420 Or properly. 221 00:12:15,560 --> 00:12:16,040 Or securely. 222 00:12:16,260 --> 00:12:17,980 Or leaving them in the door lock. 223 00:12:18,740 --> 00:12:22,040 We certainly aren't really controlling this system. 224 00:12:22,080 --> 00:12:23,240 From a cryptography perspective. 225 00:12:23,760 --> 00:12:24,760 We're failing. 226 00:12:26,360 --> 00:12:27,640 So just maybe. 227 00:12:27,740 --> 00:12:30,160 I'm saying that if we check that little check box. 228 00:12:30,360 --> 00:12:32,360 And say using S3 server side encryption. 229 00:12:32,540 --> 00:12:34,160 With keys that are managed by S3. 230 00:12:34,240 --> 00:12:35,280 Which sounds so easy. 231 00:12:35,460 --> 00:12:36,740 Because it's just a check box. 232 00:12:37,820 --> 00:12:38,680 That isn't the protection. 233 00:12:39,100 --> 00:12:40,200 That we wanted. 234 00:12:40,340 --> 00:12:40,840 Or needed. 235 00:12:41,940 --> 00:12:44,380 So let's go on to the next way. 236 00:12:44,500 --> 00:12:46,060 Of encrypting data in S3. 237 00:12:46,160 --> 00:12:48,060 Remember I'm just talking about one service. 238 00:12:48,180 --> 00:12:49,540 And all these different ways of encryption. 239 00:12:51,120 --> 00:12:52,640 I can use server side encryption. 240 00:12:53,120 --> 00:12:55,120 But instead of having S3 managed keys. 241 00:12:55,600 --> 00:12:57,860 I can put those in AWS KMS. 242 00:12:58,120 --> 00:12:58,980 Which is their. 243 00:12:59,300 --> 00:13:00,560 Amazon's key management service. 244 00:13:01,440 --> 00:13:04,060 Now that comes with some kind of interesting things. 245 00:13:04,340 --> 00:13:05,460 That I'm going to dive into. 246 00:13:05,460 --> 00:13:07,620 There's a lot of different ways. 247 00:13:07,760 --> 00:13:09,360 You can set up Amazon KMS. 248 00:13:09,460 --> 00:13:10,480 And I'm going to get into those. 249 00:13:13,760 --> 00:13:14,560 So here's. 250 00:13:14,560 --> 00:13:15,820 I just change the check box. 251 00:13:16,240 --> 00:13:17,500 And I select the key. 252 00:13:17,580 --> 00:13:19,060 That I provisioned in KMS. 253 00:13:19,340 --> 00:13:20,480 And I'm off to the races. 254 00:13:21,760 --> 00:13:22,800 Sounds pretty good right? 255 00:13:22,980 --> 00:13:25,100 Now maybe I'm a dev and say. 256 00:13:25,180 --> 00:13:27,260 Okay well now I just got to generate a key. 257 00:13:27,320 --> 00:13:27,860 A thingy. 258 00:13:29,000 --> 00:13:30,960 And now I just encrypt. 259 00:13:31,020 --> 00:13:31,500 And now I'm good. 260 00:13:32,480 --> 00:13:34,020 Now KMS can be used for. 261 00:13:35,460 --> 00:13:36,260 A lot of things. 262 00:13:37,360 --> 00:13:38,640 They've designed it to integrate. 263 00:13:38,760 --> 00:13:40,080 With all their services. 264 00:13:40,540 --> 00:13:41,620 You've got S3 buckets. 265 00:13:41,800 --> 00:13:42,220 EBS. 266 00:13:42,860 --> 00:13:44,280 Glacier do long term storage. 267 00:13:44,860 --> 00:13:47,660 You've got RDS for relational database services. 268 00:13:49,200 --> 00:13:50,440 So it is pretty cool. 269 00:13:50,560 --> 00:13:52,440 I can build this simplified infrastructure. 270 00:13:53,060 --> 00:13:54,760 Somebody trying to build cloud apps. 271 00:13:54,900 --> 00:13:56,820 And I'm just trying to get my thing out the door. 272 00:13:57,420 --> 00:13:59,200 I can use this KMS thingy. 273 00:13:59,200 --> 00:13:59,780 To hold the keys. 274 00:13:59,940 --> 00:14:01,020 And that sounds kind of good. 275 00:14:01,180 --> 00:14:04,300 Because it says it manages keys. 276 00:14:05,460 --> 00:14:05,740 And I can do better right? 277 00:14:06,400 --> 00:14:06,880 Well. 278 00:14:07,460 --> 00:14:09,900 Let's dive just a little bit into KMS. 279 00:14:10,020 --> 00:14:12,200 And see if some of the problems that we had. 280 00:14:12,940 --> 00:14:15,400 With the key and the lock. 281 00:14:15,620 --> 00:14:16,340 With the deadbolt. 282 00:14:16,540 --> 00:14:19,380 If we can see how we can stay away from those. 283 00:14:20,620 --> 00:14:21,100 Well. 284 00:14:21,740 --> 00:14:23,220 Amazon's key management service. 285 00:14:23,300 --> 00:14:24,100 Is pretty interesting. 286 00:14:25,140 --> 00:14:25,940 And actually. 287 00:14:26,040 --> 00:14:27,340 As in everything Amazon. 288 00:14:27,600 --> 00:14:29,060 There's like five ways to do things. 289 00:14:29,820 --> 00:14:31,520 I can in key management services. 290 00:14:31,520 --> 00:14:34,340 I can use AWS managed. 291 00:14:34,540 --> 00:14:35,820 Customer master keys. 292 00:14:35,940 --> 00:14:36,540 CMKs. 293 00:14:36,820 --> 00:14:39,140 And these are keys that are created. 294 00:14:39,420 --> 00:14:40,020 Managed. 295 00:14:40,020 --> 00:14:42,280 And used on my applications behalf. 296 00:14:42,680 --> 00:14:44,360 By the AWS service. 297 00:14:44,440 --> 00:14:47,280 That is integrated with AWS KMS. 298 00:14:48,280 --> 00:14:49,560 I can also use. 299 00:14:49,700 --> 00:14:50,980 Customer managed keys. 300 00:14:51,600 --> 00:14:53,740 So rather than just letting Amazon. 301 00:14:53,880 --> 00:14:54,800 Just kind of do it automatically. 302 00:14:55,080 --> 00:14:56,680 I can actually generate. 303 00:14:56,840 --> 00:14:58,220 Use a customer managed key. 304 00:14:58,220 --> 00:15:00,380 And I can do. 305 00:15:00,460 --> 00:15:01,720 Some extra things with that. 306 00:15:01,820 --> 00:15:02,440 It's kind of cool. 307 00:15:02,680 --> 00:15:03,760 Some extra controls. 308 00:15:03,840 --> 00:15:06,580 That I would argue may be wise. 309 00:15:06,660 --> 00:15:09,060 On applications with very critical data. 310 00:15:10,560 --> 00:15:11,900 So these things. 311 00:15:12,000 --> 00:15:13,320 These include things like. 312 00:15:14,060 --> 00:15:16,100 Enabling and disabling the CMK. 313 00:15:16,280 --> 00:15:18,200 Which actually is an important thing. 314 00:15:18,300 --> 00:15:19,220 Come to later. 315 00:15:19,520 --> 00:15:21,940 Is if something bad is happening. 316 00:15:22,160 --> 00:15:23,900 And you can detect it later on in the stack. 317 00:15:24,260 --> 00:15:25,980 I can disable that CMK. 318 00:15:26,120 --> 00:15:27,640 And actually prevent it from being used. 319 00:15:29,040 --> 00:15:29,900 So I can. 320 00:15:29,940 --> 00:15:31,460 Rotate it's cryptographic material. 321 00:15:31,900 --> 00:15:34,500 I can also set up IAM policies. 322 00:15:34,620 --> 00:15:36,260 Or identity and access management policies. 323 00:15:37,740 --> 00:15:38,920 They cover access. 324 00:15:39,120 --> 00:15:40,620 To that specific CMK. 325 00:15:41,660 --> 00:15:43,080 I can use that CMK. 326 00:15:43,140 --> 00:15:44,160 In cryptographic operations. 327 00:15:44,660 --> 00:15:45,920 And I can do encryption. 328 00:15:46,440 --> 00:15:47,540 As part of my code. 329 00:15:47,660 --> 00:15:48,320 Which is kind of cool. 330 00:15:50,960 --> 00:15:52,760 But the important thing is. 331 00:15:52,880 --> 00:15:53,780 I as a customer. 332 00:15:54,000 --> 00:15:56,260 Maintain control of that CMK. 333 00:15:57,120 --> 00:15:57,640 So. 334 00:15:58,220 --> 00:15:59,340 Now there's data keys. 335 00:15:59,740 --> 00:16:01,560 And those live outside KMS. 336 00:16:03,280 --> 00:16:04,540 KMS doesn't manage. 337 00:16:04,580 --> 00:16:05,360 Or control those. 338 00:16:05,800 --> 00:16:08,740 And there's customer master keys. 339 00:16:08,860 --> 00:16:09,780 Key encryption keys. 340 00:16:09,860 --> 00:16:10,880 And data encryption keys. 341 00:16:11,140 --> 00:16:13,460 And so we've gotten a little bit more complex. 342 00:16:13,700 --> 00:16:15,240 And that dev that just wanted to click a box. 343 00:16:15,420 --> 00:16:16,660 And say yeah I want this thing encrypted. 344 00:16:17,080 --> 00:16:19,520 Now there's a whole lot of things to talk about. 345 00:16:19,700 --> 00:16:20,540 Or think about. 346 00:16:20,700 --> 00:16:21,520 Or design into. 347 00:16:21,840 --> 00:16:24,100 Multiple ways of encrypting with S3. 348 00:16:24,100 --> 00:16:25,040 And then if I use KMS. 349 00:16:25,120 --> 00:16:26,820 Multiple ways of managing KMS. 350 00:16:29,200 --> 00:16:30,480 So some things. 351 00:16:30,500 --> 00:16:31,920 You might be thinking about. 352 00:16:32,080 --> 00:16:32,300 It's like. 353 00:16:33,260 --> 00:16:34,640 What does this give me? 354 00:16:34,720 --> 00:16:36,600 Doing customer managed keys. 355 00:16:36,840 --> 00:16:38,220 I named a few of the benefits. 356 00:16:38,440 --> 00:16:40,360 I can do my own rotation. 357 00:16:40,580 --> 00:16:41,300 I can actually disable. 358 00:16:41,540 --> 00:16:44,080 There's some kind of cool things that I can do. 359 00:16:44,180 --> 00:16:45,820 It gives me a little more fine tuned control. 360 00:16:46,060 --> 00:16:47,380 And I'm going to the permissions in a bit. 361 00:16:47,460 --> 00:16:49,520 Which is even maybe better. 362 00:16:51,080 --> 00:16:52,280 But some of the things. 363 00:16:54,100 --> 00:16:55,040 That seems really critical to me. 364 00:16:55,180 --> 00:16:56,500 Is using really good random. 365 00:16:56,620 --> 00:16:58,340 Using a known good source of random. 366 00:16:59,740 --> 00:17:00,540 You know I think. 367 00:17:00,720 --> 00:17:02,460 I believe KMS has got. 368 00:17:02,620 --> 00:17:04,280 FIPS 140-2 rating. 369 00:17:05,560 --> 00:17:07,760 They're working on certifications. 370 00:17:08,140 --> 00:17:09,820 But picking random. 371 00:17:09,900 --> 00:17:11,880 For a key generation is a really big deal. 372 00:17:12,160 --> 00:17:13,300 And in cryptography. 373 00:17:13,440 --> 00:17:15,360 We've seen this fail over and over. 374 00:17:15,520 --> 00:17:16,700 And over and over again. 375 00:17:16,940 --> 00:17:18,880 It's like a long list of failures. 376 00:17:19,840 --> 00:17:21,460 Of poor random. 377 00:17:21,620 --> 00:17:22,880 Being used to generate a key. 378 00:17:24,100 --> 00:17:24,900 When the system gets owned. 379 00:17:25,380 --> 00:17:27,260 So this thing about. 380 00:17:28,340 --> 00:17:30,040 This thing about generating the key. 381 00:17:30,220 --> 00:17:32,080 You want to really be careful. 382 00:17:32,180 --> 00:17:32,720 Or understand. 383 00:17:33,080 --> 00:17:34,760 Where your random comes from. 384 00:17:34,920 --> 00:17:36,340 And that may give you a reason. 385 00:17:36,400 --> 00:17:38,600 Why you should be generating your own keys. 386 00:17:39,500 --> 00:17:41,140 There's also kind of another thing. 387 00:17:42,240 --> 00:17:44,340 Another reason maybe to do this. 388 00:17:44,440 --> 00:17:45,960 In customer generated keys. 389 00:17:46,340 --> 00:17:47,060 Is if. 390 00:17:47,700 --> 00:17:49,140 Think about the clouds. 391 00:17:49,480 --> 00:17:52,380 Sometimes they turn dark and stormy. 392 00:17:52,400 --> 00:17:53,520 And violent. 393 00:17:54,100 --> 00:17:56,300 And if you don't have. 394 00:17:56,300 --> 00:17:58,180 Your cryptographic key material. 395 00:17:58,180 --> 00:17:59,040 For your applications. 396 00:17:59,880 --> 00:18:01,560 Stored somewhere safe on ground. 397 00:18:03,920 --> 00:18:06,140 You could set yourself up. 398 00:18:06,240 --> 00:18:07,360 For a pretty significant. 399 00:18:08,560 --> 00:18:09,580 Availability issue. 400 00:18:09,760 --> 00:18:11,500 Because now you've got encrypted data. 401 00:18:11,660 --> 00:18:13,540 And no keys to access the application. 402 00:18:14,780 --> 00:18:16,060 But always. 403 00:18:16,300 --> 00:18:18,100 The selection of random. 404 00:18:18,240 --> 00:18:19,440 In cryptographic key generation. 405 00:18:19,760 --> 00:18:21,260 As I'm sure everybody knows here. 406 00:18:21,340 --> 00:18:22,560 Is a really really big deal. 407 00:18:24,800 --> 00:18:25,600 I'm going to talk. 408 00:18:25,780 --> 00:18:26,920 I'm going to go slide back in. 409 00:18:26,980 --> 00:18:27,580 To the KMS. 410 00:18:27,980 --> 00:18:30,000 And on that second option. 411 00:18:30,280 --> 00:18:30,960 Customer mastered. 412 00:18:32,400 --> 00:18:35,200 CMKs that are customer managed. 413 00:18:36,280 --> 00:18:36,740 Wow. 414 00:18:36,840 --> 00:18:37,620 That's a hard one to say. 415 00:18:38,320 --> 00:18:39,400 Customer mastered keys. 416 00:18:39,480 --> 00:18:40,320 That are customer mastered. 417 00:18:40,480 --> 00:18:40,940 Managed. 418 00:18:42,000 --> 00:18:42,460 So. 419 00:18:44,480 --> 00:18:44,940 There's. 420 00:18:44,940 --> 00:18:45,640 Again. 421 00:18:46,080 --> 00:18:47,320 Everything in AWS. 422 00:18:47,580 --> 00:18:49,000 There's a variety of ways. 423 00:18:49,320 --> 00:18:50,680 So we were talking. 424 00:18:50,860 --> 00:18:53,100 The multiple ways of encrypting S3. 425 00:18:53,480 --> 00:18:55,100 And multiple ways of using KMS. 426 00:18:55,560 --> 00:18:57,200 And now we're going to talk about. 427 00:18:57,340 --> 00:18:59,680 Multiple ways of applying controls to these keys. 428 00:18:59,980 --> 00:19:01,060 Which is kind of interesting. 429 00:19:03,820 --> 00:19:05,220 There's three things. 430 00:19:05,400 --> 00:19:06,560 That I can use to apply. 431 00:19:07,080 --> 00:19:08,920 What controls access. 432 00:19:09,140 --> 00:19:10,600 To these encryption keys. 433 00:19:11,420 --> 00:19:13,100 There's a key policy document. 434 00:19:13,440 --> 00:19:13,720 That's. 435 00:19:14,940 --> 00:19:15,660 That describes. 436 00:19:16,460 --> 00:19:18,060 Usage of the key. 437 00:19:18,100 --> 00:19:18,820 I'll show you in a second. 438 00:19:19,360 --> 00:19:21,740 There's IAM policies. 439 00:19:21,820 --> 00:19:24,220 Or identity and access management policies. 440 00:19:25,320 --> 00:19:26,520 And these. 441 00:19:27,120 --> 00:19:28,420 You can use those. 442 00:19:28,480 --> 00:19:30,260 In combination with the CMK. 443 00:19:30,500 --> 00:19:31,560 Key policy. 444 00:19:32,080 --> 00:19:34,300 To allow access to a. 445 00:19:34,900 --> 00:19:35,500 CMK. 446 00:19:36,560 --> 00:19:38,220 This actually gets kind of. 447 00:19:38,340 --> 00:19:39,400 Complicated to simulate. 448 00:19:39,840 --> 00:19:42,220 There's an IAM policy simulator tool. 449 00:19:42,500 --> 00:19:43,980 That Amazon has provided. 450 00:19:44,940 --> 00:19:45,580 To help people figure this out. 451 00:19:45,760 --> 00:19:48,180 Because I've been in the position. 452 00:19:48,300 --> 00:19:48,980 Of trying to review. 453 00:19:49,860 --> 00:19:52,220 What has access to this key. 454 00:19:52,380 --> 00:19:53,940 And it is non-trivial. 455 00:19:54,020 --> 00:19:55,420 To dig into sometimes. 456 00:19:57,020 --> 00:19:58,220 And then the third way. 457 00:19:58,380 --> 00:19:59,860 Of applying controls to this key. 458 00:19:59,920 --> 00:20:00,240 Is grants. 459 00:20:01,040 --> 00:20:02,600 And these are kind of cool. 460 00:20:02,920 --> 00:20:05,460 Because you can then specify. 461 00:20:05,860 --> 00:20:07,420 With a high degree of granularity. 462 00:20:07,800 --> 00:20:09,200 Exactly what service. 463 00:20:09,520 --> 00:20:11,980 And what thing can use a key for. 464 00:20:12,060 --> 00:20:12,460 And how. 465 00:20:15,020 --> 00:20:16,780 And I'll show a couple. 466 00:20:17,540 --> 00:20:18,020 Examples. 467 00:20:18,720 --> 00:20:20,160 Of the key operators. 468 00:20:20,600 --> 00:20:22,460 And how they can be different with grants. 469 00:20:22,620 --> 00:20:23,160 Which is kind of neat. 470 00:20:23,440 --> 00:20:25,620 And they're an alternative to the key policy. 471 00:20:26,020 --> 00:20:27,580 So we started the S3. 472 00:20:27,680 --> 00:20:28,960 Multiple ways of encrypting. 473 00:20:29,020 --> 00:20:29,420 KMS. 474 00:20:29,580 --> 00:20:30,720 Multiple ways of doing KMS. 475 00:20:30,940 --> 00:20:32,840 And now we've picked this one option. 476 00:20:32,960 --> 00:20:33,780 Customer master keys. 477 00:20:33,960 --> 00:20:35,360 We've got multiple ways of doing this. 478 00:20:35,940 --> 00:20:37,760 There's a lot of permutations here. 479 00:20:37,760 --> 00:20:39,280 And a lot of landfall. 480 00:20:39,720 --> 00:20:40,720 Minefields for devs. 481 00:20:41,260 --> 00:20:43,140 Here's a simple key access policy. 482 00:20:43,400 --> 00:20:44,800 And don't believe me. 483 00:20:44,820 --> 00:20:46,200 This is not real. 484 00:20:46,380 --> 00:20:48,300 You won't own my system. 485 00:20:50,060 --> 00:20:51,420 Nothing about this. 486 00:20:51,480 --> 00:20:52,080 This is all fictional. 487 00:20:53,380 --> 00:20:55,480 But this would be typical. 488 00:20:55,620 --> 00:20:57,180 For a key administrator. 489 00:20:57,220 --> 00:20:58,100 Or a custodian. 490 00:20:58,900 --> 00:21:00,320 In key management. 491 00:21:00,540 --> 00:21:01,560 One of your principles. 492 00:21:01,800 --> 00:21:03,260 Is you want to have a separation of duties. 493 00:21:03,580 --> 00:21:04,620 You want to have people. 494 00:21:07,760 --> 00:21:09,060 That are putting applications together. 495 00:21:09,480 --> 00:21:11,160 And they have a permission. 496 00:21:11,160 --> 00:21:12,480 To have an application. 497 00:21:13,080 --> 00:21:15,600 Tie a given key to an application. 498 00:21:16,260 --> 00:21:17,580 And that application. 499 00:21:17,600 --> 00:21:19,440 Has permission to use a key to do something. 500 00:21:19,800 --> 00:21:21,500 But then you typically have another team. 501 00:21:21,660 --> 00:21:23,240 If you're doing it right. 502 00:21:23,440 --> 00:21:24,720 With a separation of duties. 503 00:21:24,800 --> 00:21:27,060 That has management capability on those keys. 504 00:21:27,320 --> 00:21:28,760 And so this has got some. 505 00:21:29,760 --> 00:21:31,660 Some things like disable, delete. 506 00:21:31,980 --> 00:21:33,140 Schedule key deletion. 507 00:21:33,500 --> 00:21:34,700 Cancel key deletion. 508 00:21:34,720 --> 00:21:35,080 Revoke. 509 00:21:37,760 --> 00:21:37,880 All kinds of things. 510 00:21:37,880 --> 00:21:39,160 When you have that separation of duties. 511 00:21:39,360 --> 00:21:40,300 For a key management. 512 00:21:41,880 --> 00:21:42,720 So this is. 513 00:21:43,000 --> 00:21:43,620 Oh yeah. 514 00:21:43,700 --> 00:21:44,760 It's also possible. 515 00:21:45,880 --> 00:21:47,440 To constrain a CMK. 516 00:21:47,760 --> 00:21:49,300 So it can only be used. 517 00:21:49,420 --> 00:21:51,000 By a specific AWS service. 518 00:21:51,160 --> 00:21:52,540 Through the use of a KMS. 519 00:21:52,800 --> 00:21:54,400 Via service conditional statement. 520 00:21:54,780 --> 00:21:56,620 So I can actually really nail this key down. 521 00:21:56,720 --> 00:21:58,960 And say this can be used for this one thing. 522 00:21:59,040 --> 00:21:59,340 Period. 523 00:21:59,340 --> 00:22:00,820 Which is pretty cool. 524 00:22:00,920 --> 00:22:03,060 I can kind of limit the usage of that key. 525 00:22:04,580 --> 00:22:05,880 Now here's kind of a. 526 00:22:07,360 --> 00:22:08,140 Couple slides. 527 00:22:08,500 --> 00:22:08,980 Showing. 528 00:22:09,720 --> 00:22:10,680 Some differences. 529 00:22:10,840 --> 00:22:12,200 Of key access grants. 530 00:22:12,860 --> 00:22:15,000 Now I may want to bisect my application. 531 00:22:15,940 --> 00:22:16,620 And say. 532 00:22:16,760 --> 00:22:19,120 I have some internet forward facing logic. 533 00:22:19,560 --> 00:22:20,300 Where people. 534 00:22:20,620 --> 00:22:22,140 Enter something into a form. 535 00:22:23,200 --> 00:22:25,060 And you know that's what they do. 536 00:22:25,260 --> 00:22:26,780 Random people connect to the internet. 537 00:22:27,200 --> 00:22:28,800 You know enter some stuff in a form. 538 00:22:29,340 --> 00:22:29,940 And it goes in. 539 00:22:30,100 --> 00:22:31,400 Maybe there's an auth function. 540 00:22:31,520 --> 00:22:32,000 Some other stuff. 541 00:22:32,360 --> 00:22:33,840 And then I got a separate team. 542 00:22:33,980 --> 00:22:35,720 Of people that work for the company. 543 00:22:36,320 --> 00:22:38,020 That connect to the same system. 544 00:22:38,160 --> 00:22:39,680 And they need to do some management functions. 545 00:22:39,980 --> 00:22:41,000 They need to do some look ups. 546 00:22:41,120 --> 00:22:41,800 Maybe some edits. 547 00:22:42,140 --> 00:22:43,720 You know check some stuff. 548 00:22:44,720 --> 00:22:46,680 So if you bisect your application. 549 00:22:47,540 --> 00:22:50,140 To where you have the internet facing logic. 550 00:22:50,660 --> 00:22:52,380 And you have configured it. 551 00:22:52,900 --> 00:22:54,500 For instance to where. 552 00:22:54,820 --> 00:22:56,420 That internet facing logic. 553 00:22:59,340 --> 00:22:59,500 That key. 554 00:22:59,660 --> 00:23:00,560 That's all it can do. 555 00:23:00,600 --> 00:23:01,580 It can encrypt period. 556 00:23:01,780 --> 00:23:02,780 It can decrypt. 557 00:23:02,940 --> 00:23:04,620 So even if that application gets owned. 558 00:23:04,880 --> 00:23:07,080 It doesn't have the rights via this grant. 559 00:23:07,260 --> 00:23:08,280 To decrypt any data. 560 00:23:08,680 --> 00:23:12,680 So the attacker that got root on that box. 561 00:23:13,660 --> 00:23:15,680 They do not have the ability. 562 00:23:15,740 --> 00:23:17,440 To decrypt data with this grant. 563 00:23:17,960 --> 00:23:19,840 Now maybe you have a separate network. 564 00:23:20,180 --> 00:23:21,880 Maybe through a direct connect. 565 00:23:22,100 --> 00:23:22,980 Or a VPN. 566 00:23:23,380 --> 00:23:25,480 Where your people doing the management on the system. 567 00:23:25,700 --> 00:23:26,840 The maintenance of it. 568 00:23:29,340 --> 00:23:30,500 The application owners. 569 00:23:31,880 --> 00:23:32,680 They may be. 570 00:23:32,800 --> 00:23:33,820 You know they may need. 571 00:23:33,880 --> 00:23:35,880 They quite likely need the decrypt function. 572 00:23:37,180 --> 00:23:39,280 So this is an example of using. 573 00:23:39,380 --> 00:23:40,380 These different grants. 574 00:23:40,640 --> 00:23:42,560 To give different parts of the application. 575 00:23:42,600 --> 00:23:43,580 Different permissions. 576 00:23:43,720 --> 00:23:46,160 And help build a little bit more defensive depth. 577 00:23:46,340 --> 00:23:46,940 Into your app. 578 00:23:47,100 --> 00:23:48,800 And say you know the internet facing stuff. 579 00:23:49,080 --> 00:23:51,600 We don't want them to ever be able to decrypt any data. 580 00:23:54,120 --> 00:23:55,340 So I've been talking. 581 00:23:55,540 --> 00:23:56,880 You know I was working my way. 582 00:23:56,880 --> 00:23:58,340 Through S3 buckets and encryption. 583 00:23:58,880 --> 00:24:00,800 Now there's the last one. 584 00:24:00,860 --> 00:24:01,560 Server side encryption. 585 00:24:01,760 --> 00:24:03,740 Customer with keys that you manage. 586 00:24:03,880 --> 00:24:04,920 Maybe outside KMS. 587 00:24:05,060 --> 00:24:06,600 Or with a different system. 588 00:24:06,920 --> 00:24:09,180 And then there's also client side encryption options. 589 00:24:09,840 --> 00:24:11,260 And I really do like those. 590 00:24:11,420 --> 00:24:13,980 Because you get a fine grained control. 591 00:24:14,140 --> 00:24:14,980 Over your data. 592 00:24:15,140 --> 00:24:16,640 Of what you're encrypting. 593 00:24:16,680 --> 00:24:17,420 If you think about it. 594 00:24:17,500 --> 00:24:18,760 If I control the encryption. 595 00:24:18,920 --> 00:24:21,800 I get data encrypted before it's ever stuck in S3. 596 00:24:21,800 --> 00:24:23,860 I don't have to worry about. 597 00:24:24,280 --> 00:24:25,840 You know what happens. 598 00:24:26,000 --> 00:24:27,620 You know when somebody screws up permissions. 599 00:24:27,640 --> 00:24:28,300 On that bucket. 600 00:24:28,440 --> 00:24:31,040 Or changes an ACL or something like that. 601 00:24:31,260 --> 00:24:32,440 You know I think that's consistent. 602 00:24:32,600 --> 00:24:34,440 You know with ISO 27040. 603 00:24:34,780 --> 00:24:35,980 You know using encryption. 604 00:24:36,100 --> 00:24:39,000 To actually create these partitions. 605 00:24:39,440 --> 00:24:41,360 Of you know who can access things. 606 00:24:41,520 --> 00:24:43,660 And I think that client side encryption. 607 00:24:44,600 --> 00:24:45,600 If you encrypt it. 608 00:24:45,680 --> 00:24:46,820 Before you put it in S3. 609 00:24:46,940 --> 00:24:48,860 You won't be in the headlines about. 610 00:24:49,140 --> 00:24:49,980 And you manage it. 611 00:24:52,220 --> 00:24:53,600 And that whole process. 612 00:24:53,640 --> 00:24:54,800 That encrypts the data. 613 00:24:54,880 --> 00:24:55,460 And acts on it. 614 00:24:55,920 --> 00:24:57,540 You will not be in the papers. 615 00:24:57,700 --> 00:24:59,040 Which is really good. 616 00:25:00,200 --> 00:25:00,560 So. 617 00:25:02,140 --> 00:25:04,420 You know there's also not just the door. 618 00:25:04,660 --> 00:25:05,980 And I think one of the things. 619 00:25:06,180 --> 00:25:07,680 You know to extend this a little bit. 620 00:25:07,800 --> 00:25:08,820 And kind of the story I'm building. 621 00:25:09,200 --> 00:25:10,500 If you know that first story. 622 00:25:10,600 --> 00:25:11,420 I talked about that door. 623 00:25:11,620 --> 00:25:13,120 And I've got that awesome deadbolt on. 624 00:25:13,200 --> 00:25:13,940 I can point to it. 625 00:25:13,940 --> 00:25:16,800 And say that's my FIPS 140-2 rated deadbolt. 626 00:25:17,140 --> 00:25:18,340 And you know. 627 00:25:18,380 --> 00:25:19,800 I can't beat this thing open. 628 00:25:20,040 --> 00:25:21,100 I can't pick this lock. 629 00:25:21,680 --> 00:25:23,060 But I'm going to leave the key in the door. 630 00:25:23,180 --> 00:25:24,580 And people walk in and out with my stuff. 631 00:25:24,700 --> 00:25:25,160 Well I'm screwed. 632 00:25:25,720 --> 00:25:27,920 You know I don't know how many of you have been. 633 00:25:28,040 --> 00:25:29,560 To a commercial data center. 634 00:25:30,280 --> 00:25:32,000 But the process to get in. 635 00:25:32,080 --> 00:25:33,100 Is typically a little more involved. 636 00:25:34,800 --> 00:25:36,980 You walk up to a bullet proof window. 637 00:25:37,280 --> 00:25:38,960 And you provide your identification. 638 00:25:40,580 --> 00:25:42,160 They perform visual identification. 639 00:25:42,380 --> 00:25:43,180 Against your ID. 640 00:25:43,940 --> 00:25:45,600 They then look in the computer. 641 00:25:45,700 --> 00:25:47,000 And see if you're authorized to be there. 642 00:25:47,140 --> 00:25:49,320 And say yeah you have a ticket to go in. 643 00:25:49,400 --> 00:25:51,520 And do X and Y and Z at this time. 644 00:25:52,080 --> 00:25:53,220 This all looks right. 645 00:25:53,820 --> 00:25:55,600 And then rather than. 646 00:25:55,640 --> 00:25:57,580 You going to turn the key in the lock. 647 00:25:58,140 --> 00:25:59,940 They buzz a door into a man trap. 648 00:26:00,140 --> 00:26:00,640 And you go in that. 649 00:26:00,960 --> 00:26:02,760 And you stand there to get out of the man trap. 650 00:26:02,960 --> 00:26:03,400 And to proceed. 651 00:26:03,640 --> 00:26:07,580 You need some additional credentials. 652 00:26:07,820 --> 00:26:09,180 With some badging. 653 00:26:09,280 --> 00:26:11,320 And some two factor token and stuff. 654 00:26:11,540 --> 00:26:12,440 And then that gets you out. 655 00:26:13,940 --> 00:26:14,340 There's also. 656 00:26:14,500 --> 00:26:15,460 There's a human involved. 657 00:26:15,580 --> 00:26:16,480 And he's logging stuff. 658 00:26:16,640 --> 00:26:17,340 That you went in there. 659 00:26:17,440 --> 00:26:20,140 You had a ticket to go in and do X Y and Z. 660 00:26:21,420 --> 00:26:22,600 And hopefully they're. 661 00:26:22,700 --> 00:26:24,880 You know and they're typically awake enough to say. 662 00:26:25,160 --> 00:26:26,760 Yeah you come in here every three months. 663 00:26:26,840 --> 00:26:27,820 And you do a thing and you leave. 664 00:26:28,360 --> 00:26:30,880 Now if I come in. 665 00:26:31,140 --> 00:26:33,540 And I've made four trips in and out in a day. 666 00:26:33,660 --> 00:26:34,040 That's unusual. 667 00:26:34,920 --> 00:26:36,920 And if I try to haul boxes out. 668 00:26:37,160 --> 00:26:38,220 That's like double unusual. 669 00:26:38,220 --> 00:26:40,140 Because we're not supposed to be hauling boxes out. 670 00:26:40,540 --> 00:26:41,280 So it's like. 671 00:26:42,440 --> 00:26:43,720 That's a detective control. 672 00:26:43,900 --> 00:26:44,960 Built around that. 673 00:26:45,160 --> 00:26:46,500 You know the authentication. 674 00:26:46,880 --> 00:26:48,420 The authorization check. 675 00:26:48,640 --> 00:26:49,260 And all that. 676 00:26:49,480 --> 00:26:51,220 And so we've built a little bit more controls. 677 00:26:51,300 --> 00:26:52,960 Over whether I can walk out with the stuff. 678 00:26:54,180 --> 00:26:55,660 Now with AWS. 679 00:26:56,180 --> 00:26:58,580 Those are some of the things we need to be thinking of. 680 00:26:58,660 --> 00:26:59,500 As we're building applications. 681 00:26:59,900 --> 00:27:00,460 It's not like. 682 00:27:01,340 --> 00:27:03,900 Aren't we using strong encryption. 683 00:27:03,900 --> 00:27:06,000 This is not doing bupkis. 684 00:27:06,140 --> 00:27:07,080 To actually protect the data. 685 00:27:07,180 --> 00:27:08,380 We need to build these controls. 686 00:27:08,980 --> 00:27:10,400 These additional things. 687 00:27:10,580 --> 00:27:11,360 These additional layers. 688 00:27:11,440 --> 00:27:12,340 Around the application. 689 00:27:13,600 --> 00:27:15,240 To do this properly. 690 00:27:16,880 --> 00:27:17,480 So. 691 00:27:19,480 --> 00:27:21,060 There are other ways. 692 00:27:21,260 --> 00:27:23,840 Of managing encryption keys in AWS. 693 00:27:24,240 --> 00:27:25,480 Of course there are. 694 00:27:25,600 --> 00:27:27,380 There's many different ways to do these things. 695 00:27:28,260 --> 00:27:28,860 So. 696 00:27:29,120 --> 00:27:30,380 I just lost. 697 00:27:31,400 --> 00:27:32,140 Scared me. 698 00:27:33,960 --> 00:27:34,760 I'm panicking. 699 00:27:34,900 --> 00:27:36,240 It's like my laptop's plugged in. 700 00:27:36,340 --> 00:27:37,660 It's like I was freaking out for a second. 701 00:27:37,800 --> 00:27:38,520 But oh shit. 702 00:27:40,300 --> 00:27:40,700 So. 703 00:27:43,200 --> 00:27:45,380 Amazon actually has had a variety of things. 704 00:27:45,460 --> 00:27:46,360 For doing key storage. 705 00:27:46,580 --> 00:27:47,420 That aren't KMS. 706 00:27:47,920 --> 00:27:49,780 They had cloud HSM V1. 707 00:27:50,000 --> 00:27:50,940 Or the classic HM. 708 00:27:51,040 --> 00:27:52,300 And that's just a. 709 00:27:53,720 --> 00:27:54,540 Just a simple. 710 00:27:56,560 --> 00:27:57,520 Hardware security module. 711 00:27:57,720 --> 00:27:58,740 Hardware security module. 712 00:27:58,920 --> 00:27:59,460 If you don't know. 713 00:28:03,900 --> 00:28:04,140 They have these kind of. 714 00:28:04,140 --> 00:28:05,220 Random generated encryption keys. 715 00:28:05,280 --> 00:28:06,360 And protect them in hardware. 716 00:28:06,520 --> 00:28:08,220 And tamper proof kind of systems. 717 00:28:08,640 --> 00:28:12,200 To ensure that these keys can't be compromised. 718 00:28:12,400 --> 00:28:13,800 So HSM's are used for. 719 00:28:13,960 --> 00:28:15,660 You know for serious key management. 720 00:28:15,880 --> 00:28:18,040 For keys that have some pretty big implication. 721 00:28:18,380 --> 00:28:19,580 If they were ever to be compromised. 722 00:28:20,860 --> 00:28:22,580 So if you're not familiar with an HSM. 723 00:28:22,760 --> 00:28:23,480 They had Amazon. 724 00:28:23,900 --> 00:28:25,220 They still support it. 725 00:28:25,280 --> 00:28:26,140 A couple of the regions. 726 00:28:26,320 --> 00:28:27,380 Cloud HSM V1. 727 00:28:27,560 --> 00:28:29,320 Which is the Gemalto Luna. 728 00:28:33,900 --> 00:28:34,600 Which is kind of interesting. 729 00:28:34,740 --> 00:28:36,100 They've kind of produced their own. 730 00:28:36,360 --> 00:28:39,140 And they've submitted it for. 731 00:28:40,340 --> 00:28:40,940 FIPS review. 732 00:28:41,620 --> 00:28:42,600 And then you know. 733 00:28:42,680 --> 00:28:44,860 There's third party key management solutions. 734 00:28:45,160 --> 00:28:45,920 I listed one. 735 00:28:46,020 --> 00:28:47,740 There's a bunch of different ways to do this. 736 00:28:47,920 --> 00:28:49,660 There's different HSM vendors. 737 00:28:49,980 --> 00:28:51,180 There's different key management solutions. 738 00:28:52,920 --> 00:28:54,060 This is you know. 739 00:28:54,080 --> 00:28:55,580 If I had like a day to do this. 740 00:28:55,620 --> 00:28:57,180 I could talk about a whole bunch of different ones. 741 00:28:57,260 --> 00:28:57,840 But I got an hour. 742 00:28:57,940 --> 00:28:59,900 So I'm going to kind of focus on one. 743 00:29:04,680 --> 00:29:05,320 So. 744 00:29:06,040 --> 00:29:07,640 This is kind of interesting. 745 00:29:07,840 --> 00:29:07,900 You know. 746 00:29:07,940 --> 00:29:11,700 Amazon has submitted for FIPS validation. 747 00:29:12,260 --> 00:29:14,100 Their cryptographic module validation. 748 00:29:15,260 --> 00:29:16,260 And it's. 749 00:29:16,500 --> 00:29:18,600 They got the stuff on it. 750 00:29:18,660 --> 00:29:21,740 It's got some interesting design aspects to it. 751 00:29:21,820 --> 00:29:22,880 I really encourage you. 752 00:29:22,960 --> 00:29:24,520 If you're storing encryption keys. 753 00:29:24,740 --> 00:29:25,580 And you're doing it in hardware. 754 00:29:25,900 --> 00:29:27,400 You should actually read these. 755 00:29:28,300 --> 00:29:30,140 These module verification documents. 756 00:29:30,860 --> 00:29:31,480 They're fantastic. 757 00:29:32,000 --> 00:29:33,260 They're a wealth of knowledge. 758 00:29:33,900 --> 00:29:36,640 And how these things are protecting encryption keys. 759 00:29:36,720 --> 00:29:38,160 And what kind of threats. 760 00:29:38,420 --> 00:29:39,660 And what was their threat model. 761 00:29:39,840 --> 00:29:40,860 What's the security boundary. 762 00:29:41,160 --> 00:29:42,620 And how are these tested. 763 00:29:42,800 --> 00:29:43,780 And what do they protect against. 764 00:29:44,080 --> 00:29:46,040 And if you dive into these NIST documents. 765 00:29:46,200 --> 00:29:47,520 It's a really cool way. 766 00:29:47,940 --> 00:29:50,080 Of understanding a lot better. 767 00:29:50,300 --> 00:29:52,600 And you can also ask some interesting questions. 768 00:29:53,500 --> 00:29:55,940 When you're talking to the AWS people. 769 00:29:56,080 --> 00:29:56,400 For instance. 770 00:29:57,780 --> 00:29:58,240 So. 771 00:29:59,180 --> 00:30:00,740 As I talked about that option. 772 00:30:00,740 --> 00:30:01,120 You know. 773 00:30:01,140 --> 00:30:03,260 There's also HSMs that we use for key management. 774 00:30:03,500 --> 00:30:04,520 From Gemalto. 775 00:30:04,800 --> 00:30:05,400 From Talos. 776 00:30:05,760 --> 00:30:07,560 Gemalto is a big player in this stuff. 777 00:30:07,740 --> 00:30:08,780 If you've got a cell phone. 778 00:30:09,000 --> 00:30:10,920 Or a US passport with a chip. 779 00:30:11,100 --> 00:30:11,880 Or a credit card. 780 00:30:12,200 --> 00:30:13,860 You have technology that was made by them. 781 00:30:13,980 --> 00:30:15,300 I'm not a shill for the company. 782 00:30:15,480 --> 00:30:17,560 But they do make a lot of stuff. 783 00:30:18,980 --> 00:30:19,340 So. 784 00:30:20,060 --> 00:30:20,420 There's. 785 00:30:21,000 --> 00:30:23,060 This is an example of a pin entry device. 786 00:30:24,160 --> 00:30:24,840 That's used. 787 00:30:25,200 --> 00:30:25,500 With. 788 00:30:27,800 --> 00:30:28,560 Gemalto equipment. 789 00:30:29,280 --> 00:30:30,980 And there's an important principle. 790 00:30:31,300 --> 00:30:32,540 You've heard of two factor. 791 00:30:32,980 --> 00:30:34,960 Gotta use 2FA now. 792 00:30:35,660 --> 00:30:36,740 That's kind of common sense. 793 00:30:37,040 --> 00:30:39,120 But there's some additional things in here. 794 00:30:39,420 --> 00:30:40,820 And that we can use. 795 00:30:41,120 --> 00:30:42,920 K of N or M of N operations. 796 00:30:42,960 --> 00:30:44,380 So we say. 797 00:30:44,760 --> 00:30:47,080 We've got these five people on this team. 798 00:30:47,400 --> 00:30:48,420 And we want to have. 799 00:30:48,540 --> 00:30:50,620 At least three of them come together. 800 00:30:50,760 --> 00:30:51,780 To do this operation. 801 00:30:53,060 --> 00:30:53,320 And say. 802 00:30:53,520 --> 00:30:55,100 We want to do this operation. 803 00:30:55,100 --> 00:30:56,400 Of transferring these keys. 804 00:30:56,460 --> 00:30:57,840 One to this other thing. 805 00:30:58,100 --> 00:31:00,980 And we want to make sure it's done in a very controlled manner. 806 00:31:01,180 --> 00:31:03,100 We want to make sure there can't be collusion. 807 00:31:03,380 --> 00:31:05,540 Or an individual just can't go off the rails. 808 00:31:05,660 --> 00:31:07,240 And say I'm going to steal all the encryption keys. 809 00:31:07,420 --> 00:31:09,940 And go sell them to the Russian black market. 810 00:31:10,020 --> 00:31:10,540 Or something like that. 811 00:31:12,280 --> 00:31:14,080 So with these kind of systems. 812 00:31:14,540 --> 00:31:16,120 You kind of get beyond the Amazon. 813 00:31:16,400 --> 00:31:17,160 Hey I have a key. 814 00:31:17,260 --> 00:31:17,980 I can do a thing. 815 00:31:17,980 --> 00:31:18,940 And you say. 816 00:31:19,060 --> 00:31:21,700 We not only have a key to do a thing. 817 00:31:21,840 --> 00:31:23,960 But it takes multiple of us to come together. 818 00:31:24,000 --> 00:31:24,740 To do a thing. 819 00:31:25,180 --> 00:31:27,680 And then because we can set it. 820 00:31:27,700 --> 00:31:28,860 At any ratio we want. 821 00:31:29,000 --> 00:31:30,140 We can say we need three of five. 822 00:31:30,480 --> 00:31:31,940 Or four of seven. 823 00:31:32,120 --> 00:31:33,320 Or whatever it is we want. 824 00:31:33,580 --> 00:31:34,940 And to solve the oh my god. 825 00:31:35,000 --> 00:31:36,380 Marie got hit by a bus problem. 826 00:31:36,740 --> 00:31:39,460 So if I get hit by a bus. 827 00:31:39,620 --> 00:31:40,920 Or something like that. 828 00:31:41,100 --> 00:31:43,360 Or just had too much fun at DEF CON. 829 00:31:43,360 --> 00:31:44,220 And never go home. 830 00:31:44,680 --> 00:31:48,940 There are people that can carry on. 831 00:31:49,120 --> 00:31:50,600 So this is kind of cool. 832 00:31:53,620 --> 00:31:55,500 Having more than one. 833 00:31:55,760 --> 00:31:58,060 Having more than one user. 834 00:31:58,700 --> 00:32:00,940 Required to do critical encryption operations. 835 00:32:01,380 --> 00:32:03,260 Such as transfer of keys. 836 00:32:03,480 --> 00:32:03,740 And stuff. 837 00:32:03,820 --> 00:32:04,720 Backing up of keys. 838 00:32:05,160 --> 00:32:05,940 Because remember. 839 00:32:06,200 --> 00:32:09,160 This whole confidentiality. 840 00:32:09,180 --> 00:32:09,700 Availability. 841 00:32:09,800 --> 00:32:10,380 Integrity. 842 00:32:10,560 --> 00:32:12,680 If we lose keys. 843 00:32:12,840 --> 00:32:13,340 We lose the key. 844 00:32:13,360 --> 00:32:14,880 That data is like gone. 845 00:32:15,580 --> 00:32:17,040 So we've seen that in a few. 846 00:32:18,100 --> 00:32:18,900 Being weaponized. 847 00:32:18,900 --> 00:32:20,120 As a service now. 848 00:32:22,080 --> 00:32:22,660 Encrypting data. 849 00:32:22,840 --> 00:32:24,240 And hiding your keys for ransom. 850 00:32:25,760 --> 00:32:28,160 But when we're hosting stuff in the cloud. 851 00:32:28,280 --> 00:32:29,440 We really have to think about that. 852 00:32:29,560 --> 00:32:30,820 It's like we want to make sure. 853 00:32:31,040 --> 00:32:32,660 That we can get this back. 854 00:32:33,100 --> 00:32:35,340 Assuming an asteroid hits a data center. 855 00:32:35,600 --> 00:32:36,220 Or something like that. 856 00:32:37,300 --> 00:32:39,120 We want to be able to get the data back. 857 00:32:39,260 --> 00:32:42,240 So having a way of replicating keys. 858 00:32:42,400 --> 00:32:43,040 Across geography. 859 00:32:43,360 --> 00:32:44,160 In a secure way. 860 00:32:44,280 --> 00:32:45,880 In a very controlled environment. 861 00:32:46,700 --> 00:32:48,780 Between three trusted people. 862 00:32:48,980 --> 00:32:49,700 Or something on our team. 863 00:32:49,840 --> 00:32:51,180 Is a good way to do it. 864 00:32:52,160 --> 00:32:54,080 This concept of crypto officers. 865 00:32:54,340 --> 00:32:55,300 Versus crypto users. 866 00:32:57,260 --> 00:32:58,900 This is a total eye chart. 867 00:32:59,140 --> 00:33:01,520 But there's actually some kind of cool things. 868 00:33:01,600 --> 00:33:02,140 I'll talk about. 869 00:33:02,500 --> 00:33:04,520 As we get into some of these third party solutions. 870 00:33:04,840 --> 00:33:06,560 That I think are neat. 871 00:33:06,920 --> 00:33:08,140 And actually one you can do. 872 00:33:08,240 --> 00:33:09,000 Is you can actually say. 873 00:33:09,080 --> 00:33:10,720 Maybe the keys. 874 00:33:13,360 --> 00:33:13,860 When you're hosting your application. 875 00:33:14,060 --> 00:33:14,720 You got to understand. 876 00:33:14,920 --> 00:33:15,860 What is your data. 877 00:33:15,980 --> 00:33:16,840 What is your trying to protect. 878 00:33:17,140 --> 00:33:18,320 What is the blast radius. 879 00:33:18,520 --> 00:33:19,380 If this is breach. 880 00:33:19,740 --> 00:33:22,120 You may actually want to keep your keys on ground. 881 00:33:22,340 --> 00:33:23,860 You may not want them in the cloud. 882 00:33:24,140 --> 00:33:25,720 And so you can do things like say. 883 00:33:25,920 --> 00:33:27,680 You know we want to have. 884 00:33:29,160 --> 00:33:30,040 A Gemalto. 885 00:33:30,400 --> 00:33:31,660 Or for that matter. 886 00:33:31,740 --> 00:33:33,520 The other with Azure. 887 00:33:34,500 --> 00:33:35,420 HSM on ground. 888 00:33:35,420 --> 00:33:38,440 And we want to do our key management on ground. 889 00:33:38,580 --> 00:33:39,340 We want to have our. 890 00:33:39,460 --> 00:33:41,140 Cloud apps call for those keys. 891 00:33:41,380 --> 00:33:42,680 That gives us a little bit more control. 892 00:33:42,880 --> 00:33:44,380 We can see what's happening. 893 00:33:44,500 --> 00:33:45,440 We can rack a little quicker. 894 00:33:45,860 --> 00:33:48,120 We know we own the keys. 895 00:33:48,280 --> 00:33:49,420 They were never up there. 896 00:33:49,640 --> 00:33:51,460 So push comes to shove. 897 00:33:51,600 --> 00:33:52,780 We can cut off access to it. 898 00:33:52,960 --> 00:33:53,860 And that stuff is encrypted. 899 00:33:54,120 --> 00:33:55,180 Nobody can get out of it. 900 00:33:56,320 --> 00:33:58,200 But there are some kind of cool things. 901 00:33:58,360 --> 00:34:00,840 If I've got my key management on ground. 902 00:34:00,840 --> 00:34:02,540 I can go into the data center. 903 00:34:02,700 --> 00:34:03,540 And I can love it. 904 00:34:03,560 --> 00:34:04,080 And touch it. 905 00:34:04,220 --> 00:34:05,840 And watch it's blinking lights. 906 00:34:05,960 --> 00:34:06,380 Which is neat. 907 00:34:06,600 --> 00:34:07,200 It's cool. 908 00:34:07,640 --> 00:34:09,580 And know that all is right in the universe. 909 00:34:09,740 --> 00:34:11,680 And my key is protected in a very safe environment. 910 00:34:13,880 --> 00:34:15,700 So you know that gives us. 911 00:34:15,740 --> 00:34:17,860 Also gives us a fall back. 912 00:34:18,080 --> 00:34:19,840 You know when the cloud turns stormy and black. 913 00:34:20,020 --> 00:34:21,400 And parts of it evaporate. 914 00:34:21,400 --> 00:34:22,180 Because of whatever. 915 00:34:22,800 --> 00:34:25,460 We actually have our critical encryption keys. 916 00:34:25,580 --> 00:34:26,780 We maintain control of them. 917 00:34:30,840 --> 00:34:31,040 And we have our security solutions. 918 00:34:31,840 --> 00:34:33,020 To encryption problems. 919 00:34:33,960 --> 00:34:35,440 So let's take a database. 920 00:34:36,440 --> 00:34:38,140 How do we encrypt a database? 921 00:34:38,620 --> 00:34:40,260 And running through a couple of examples. 922 00:34:40,600 --> 00:34:42,720 Like if you use SQL Server Enterprise. 923 00:34:43,840 --> 00:34:44,620 Last version. 924 00:34:44,960 --> 00:34:46,440 You can use transparent data encryption. 925 00:34:46,720 --> 00:34:47,520 It sounds super easy. 926 00:34:47,600 --> 00:34:47,920 It is. 927 00:34:47,940 --> 00:34:48,440 It's really easy. 928 00:34:48,580 --> 00:34:50,300 You turn it on and just use it. 929 00:34:50,360 --> 00:34:50,820 And it just works. 930 00:34:51,180 --> 00:34:52,880 And your data is encrypted at rest. 931 00:34:53,360 --> 00:34:54,720 Which is pretty cool. 932 00:35:00,840 --> 00:35:01,720 So let's start to analyze it. 933 00:35:01,840 --> 00:35:04,020 Well one thing now that that's given me. 934 00:35:04,060 --> 00:35:07,440 Is by using the prior version SQL Server data encryption. 935 00:35:08,220 --> 00:35:09,140 Data encryption. 936 00:35:09,660 --> 00:35:10,820 Transparent data encryption. 937 00:35:11,260 --> 00:35:12,740 So I make a copy. 938 00:35:12,840 --> 00:35:14,540 Or if I make a backup of that database. 939 00:35:14,740 --> 00:35:15,660 And throw it somewhere. 940 00:35:15,860 --> 00:35:16,280 And leave it. 941 00:35:16,680 --> 00:35:18,880 Don't set access permissions to it. 942 00:35:19,020 --> 00:35:19,960 That's actually encrypted. 943 00:35:20,180 --> 00:35:22,600 So it keeps a person from getting a database backup. 944 00:35:22,800 --> 00:35:23,320 Which is awesome. 945 00:35:24,560 --> 00:35:26,940 Now cloud introduces an interesting problem. 946 00:35:26,940 --> 00:35:29,880 Because on the prior version. 947 00:35:30,000 --> 00:35:31,840 With transparent data encryptions. 948 00:35:31,920 --> 00:35:33,100 They may get the whole VM. 949 00:35:33,540 --> 00:35:35,480 The whole running instance in the cloud. 950 00:35:35,840 --> 00:35:36,920 If they do that. 951 00:35:37,300 --> 00:35:38,160 You're kind of screwed. 952 00:35:38,340 --> 00:35:39,960 Because they got the encrypted data. 953 00:35:40,120 --> 00:35:40,760 Which is in the database. 954 00:35:41,160 --> 00:35:42,100 And they got the key. 955 00:35:42,200 --> 00:35:42,860 Which is in the registry. 956 00:35:43,620 --> 00:35:45,360 So if they got a copy. 957 00:35:45,460 --> 00:35:46,160 Snap the VM. 958 00:35:46,880 --> 00:35:48,760 They had everything they needed to reconstruct that. 959 00:35:48,860 --> 00:35:49,260 Which sucks. 960 00:35:49,820 --> 00:35:50,520 Sucks for you. 961 00:35:56,940 --> 00:35:57,020 So you can say. 962 00:35:57,120 --> 00:35:58,400 I don't want to store the key in the registry. 963 00:35:58,520 --> 00:36:00,740 I want to store it in this strong key management system. 964 00:36:01,420 --> 00:36:03,220 Now this can be actually in the cloud. 965 00:36:03,340 --> 00:36:03,900 Or actually on ground. 966 00:36:05,120 --> 00:36:07,060 And then with solutions like. 967 00:36:07,740 --> 00:36:08,820 With the Jamalto solution. 968 00:36:09,100 --> 00:36:10,120 They take it a step further. 969 00:36:10,440 --> 00:36:11,120 And they can say. 970 00:36:11,220 --> 00:36:12,240 They can apply an encryption. 971 00:36:12,380 --> 00:36:12,900 For instance. 972 00:36:13,240 --> 00:36:13,880 So you can say. 973 00:36:13,920 --> 00:36:14,960 These stored procedures. 974 00:36:15,680 --> 00:36:18,900 Get privileged access to be able to utilize this key for decryption. 975 00:36:18,900 --> 00:36:21,660 So maybe I got a customer by lookup name or something. 976 00:36:21,860 --> 00:36:23,060 And it has access. 977 00:36:23,120 --> 00:36:24,900 To be able to get to this decryption key. 978 00:36:25,280 --> 00:36:27,400 To this key. 979 00:36:27,520 --> 00:36:29,220 To actually perform this customer lookup. 980 00:36:29,820 --> 00:36:31,540 And so I've got these stored procedures. 981 00:36:31,880 --> 00:36:33,340 That are defined in this application. 982 00:36:33,660 --> 00:36:34,760 That can actually utilize. 983 00:36:35,040 --> 00:36:35,960 This trusted connection. 984 00:36:36,400 --> 00:36:37,640 To a strong key management. 985 00:36:38,180 --> 00:36:40,680 And use these keys to perform operations. 986 00:36:41,260 --> 00:36:42,900 Now when somebody. 987 00:36:44,320 --> 00:36:45,240 When somebody does. 988 00:36:45,660 --> 00:36:46,960 Somebody pops your app. 989 00:36:47,140 --> 00:36:48,260 And they're doing a SQL injection. 990 00:36:48,900 --> 00:36:50,140 And they start using one equals one. 991 00:36:50,620 --> 00:36:51,960 Hopefully you didn't define that. 992 00:36:52,040 --> 00:36:53,160 As a valid stored procedure. 993 00:36:53,300 --> 00:36:53,640 Just saying. 994 00:36:54,840 --> 00:36:55,740 If you didn't. 995 00:36:56,260 --> 00:36:58,240 That won't be one of the stored procedures. 996 00:36:58,280 --> 00:36:58,820 That can be used. 997 00:36:59,220 --> 00:37:01,940 And instead of vomiting up the unencrypted. 998 00:37:02,440 --> 00:37:03,300 User table. 999 00:37:03,400 --> 00:37:04,960 It will vomit up the encrypted data. 1000 00:37:05,360 --> 00:37:07,120 And the attackers got buffed this. 1001 00:37:07,480 --> 00:37:08,400 There's some other things too. 1002 00:37:08,580 --> 00:37:09,600 Like with protect file. 1003 00:37:09,760 --> 00:37:12,900 I can do things like apply some extraordinarily fine grained permissions. 1004 00:37:13,200 --> 00:37:13,840 On files. 1005 00:37:18,900 --> 00:37:19,420 And I can say. 1006 00:37:19,520 --> 00:37:21,320 This service account ID. 1007 00:37:21,640 --> 00:37:22,920 Running this binary. 1008 00:37:23,080 --> 00:37:24,080 From this IP. 1009 00:37:24,220 --> 00:37:24,720 This machine. 1010 00:37:25,000 --> 00:37:27,380 Can transparently read and write these files. 1011 00:37:27,560 --> 00:37:28,320 Into that application. 1012 00:37:28,500 --> 00:37:29,400 It looks like they're decrypted. 1013 00:37:29,640 --> 00:37:31,320 But if I pop root on the box. 1014 00:37:31,640 --> 00:37:34,440 And my shell is bash or whatever. 1015 00:37:35,220 --> 00:37:36,420 I've got nothing. 1016 00:37:36,580 --> 00:37:38,860 I just get that data back in an encrypted form. 1017 00:37:39,180 --> 00:37:40,660 So I mean those are some of the extended. 1018 00:37:40,700 --> 00:37:43,240 More deeper layers of encryption. 1019 00:37:43,240 --> 00:37:44,060 We can apply to stuff. 1020 00:37:45,600 --> 00:37:46,840 So why would. 1021 00:37:47,020 --> 00:37:49,020 Why should I manage my own keys? 1022 00:37:49,200 --> 00:37:50,900 I mean Amazon's got a thing. 1023 00:37:50,980 --> 00:37:51,540 They manage keys. 1024 00:37:51,900 --> 00:37:53,160 There are some standards bodies. 1025 00:37:53,280 --> 00:37:54,880 And some frameworks that say. 1026 00:37:55,160 --> 00:37:57,760 You know maybe we should be kind of. 1027 00:37:57,900 --> 00:37:59,260 Hanging on to our encryption keys. 1028 00:37:59,580 --> 00:38:01,240 You know this is a good one. 1029 00:38:01,300 --> 00:38:01,780 HITRUST. 1030 00:38:01,880 --> 00:38:03,480 You know it has some verbiage in it. 1031 00:38:03,820 --> 00:38:06,660 Well you need to use validated cryptographic modules. 1032 00:38:06,960 --> 00:38:08,180 That's kind of a no brainer. 1033 00:38:08,780 --> 00:38:10,160 You need to store keys. 1034 00:38:10,300 --> 00:38:11,220 Separate from the data. 1035 00:38:11,600 --> 00:38:13,920 And key management. 1036 00:38:13,940 --> 00:38:14,740 And key usage. 1037 00:38:14,760 --> 00:38:16,560 Need to be separation of duties. 1038 00:38:16,980 --> 00:38:19,000 And keys shall not be stored in the cloud. 1039 00:38:20,340 --> 00:38:22,280 There's also the new NIST. 1040 00:38:22,360 --> 00:38:24,900 That's the 853-5. 1041 00:38:25,040 --> 00:38:25,640 Which is in draft. 1042 00:38:26,100 --> 00:38:27,500 And I love the line. 1043 00:38:27,740 --> 00:38:30,060 Maintain exclusive control of cryptographic keys. 1044 00:38:30,340 --> 00:38:31,600 And remember when you're in the cloud. 1045 00:38:31,680 --> 00:38:32,820 You're running on someone else's computer. 1046 00:38:33,000 --> 00:38:33,860 Your keys are up there. 1047 00:38:34,620 --> 00:38:36,540 And I kind of parse this. 1048 00:38:38,180 --> 00:38:39,780 Keeping Amazon from getting at it. 1049 00:38:39,900 --> 00:38:40,020 But. 1050 00:38:41,980 --> 00:38:42,420 There's. 1051 00:38:42,500 --> 00:38:44,980 You're putting the keys someplace else. 1052 00:38:45,020 --> 00:38:46,940 Where people that have access to that application. 1053 00:38:47,340 --> 00:38:48,600 Potentially have access to it. 1054 00:38:48,800 --> 00:38:50,340 So it's kind of a complicated question about. 1055 00:38:50,620 --> 00:38:52,560 You know it's not like Amazon gives away our keys. 1056 00:38:52,780 --> 00:38:55,980 But by provisioning an application to use those keys. 1057 00:38:56,240 --> 00:38:58,720 You can allow an attacker to utilize them as well. 1058 00:38:58,880 --> 00:39:00,240 In a way different than you intended. 1059 00:39:00,420 --> 00:39:01,620 That application to work. 1060 00:39:01,840 --> 00:39:03,740 So you intended the application to do a certain thing. 1061 00:39:03,820 --> 00:39:04,200 For people. 1062 00:39:04,200 --> 00:39:07,180 And he's using that same application. 1063 00:39:07,180 --> 00:39:08,740 To suck out all your data and sell it. 1064 00:39:09,000 --> 00:39:09,160 So. 1065 00:39:10,620 --> 00:39:11,040 Again. 1066 00:39:11,480 --> 00:39:13,760 Maintain exclusive control of cryptographic keys. 1067 00:39:13,900 --> 00:39:14,720 I love that line. 1068 00:39:15,880 --> 00:39:18,240 And so if an application makes sense. 1069 00:39:18,240 --> 00:39:19,420 To use Amazon KMS. 1070 00:39:19,540 --> 00:39:21,180 Again you've got to look at your threat modeling. 1071 00:39:21,260 --> 00:39:21,760 Your application. 1072 00:39:22,040 --> 00:39:23,920 What is the risk of the data you're storing up there. 1073 00:39:24,100 --> 00:39:25,440 There's a lot of cases. 1074 00:39:25,580 --> 00:39:27,260 Hey it makes sense to use KMS. 1075 00:39:27,420 --> 00:39:29,100 This extra stuff I'm talking about. 1076 00:39:29,100 --> 00:39:30,640 It doesn't fly. 1077 00:39:30,820 --> 00:39:31,700 It's not worth the expense. 1078 00:39:31,780 --> 00:39:32,440 The time. 1079 00:39:32,460 --> 00:39:32,900 The configuration. 1080 00:39:34,640 --> 00:39:39,460 There is this whole continuum of data risks. 1081 00:39:40,040 --> 00:39:41,280 Some data is low risk. 1082 00:39:41,360 --> 00:39:41,820 Some is high. 1083 00:39:42,580 --> 00:39:44,040 But you should use. 1084 00:39:44,140 --> 00:39:45,040 If you're using KMS. 1085 00:39:45,180 --> 00:39:47,800 You should only use the FIPS 140-2 certified endpoints. 1086 00:39:48,040 --> 00:39:49,600 They've got a table of them. 1087 00:39:50,160 --> 00:39:52,480 That's one of the things people screw up on. 1088 00:39:52,600 --> 00:39:55,120 Is they don't realize that not all endpoints. 1089 00:39:55,180 --> 00:39:57,040 Are FIPS 140-2 certified. 1090 00:39:57,440 --> 00:39:58,820 You have to design your system. 1091 00:39:59,100 --> 00:39:59,520 You've got to architect it. 1092 00:39:59,580 --> 00:40:00,740 So you've got a separation of duties. 1093 00:40:00,980 --> 00:40:02,920 And hopefully some using split keys. 1094 00:40:03,100 --> 00:40:03,500 Cave in. 1095 00:40:04,660 --> 00:40:05,620 Sharing secret. 1096 00:40:05,800 --> 00:40:06,280 It's really cool. 1097 00:40:06,440 --> 00:40:08,700 Split up a key into eight parts. 1098 00:40:08,820 --> 00:40:10,240 So any four people can come together. 1099 00:40:10,280 --> 00:40:11,180 And rebuild that key. 1100 00:40:11,960 --> 00:40:15,760 So no one person has all the information needed. 1101 00:40:15,960 --> 00:40:17,340 To own the thing. 1102 00:40:17,660 --> 00:40:20,100 And you have the Marie got hit by a bus problem. 1103 00:40:20,600 --> 00:40:22,900 And then employ key usage. 1104 00:40:23,180 --> 00:40:23,660 Monitoring. 1105 00:40:23,740 --> 00:40:24,720 Alerting and responses. 1106 00:40:29,100 --> 00:40:30,020 For using KMS. 1107 00:40:30,100 --> 00:40:31,800 They actually say to do some things. 1108 00:40:32,160 --> 00:40:34,840 But nowhere does it actually say how to do it. 1109 00:40:35,000 --> 00:40:36,400 And this is really kind of. 1110 00:40:36,540 --> 00:40:37,600 This is the hard part. 1111 00:40:38,380 --> 00:40:40,440 You should be monitoring for data plane operations. 1112 00:40:40,760 --> 00:40:41,800 And control plane operations. 1113 00:40:42,240 --> 00:40:43,680 But like data plane operations. 1114 00:40:44,160 --> 00:40:44,820 Quantitatively saying. 1115 00:40:45,000 --> 00:40:45,940 You know this application. 1116 00:40:47,020 --> 00:40:48,780 Normally calls this decryption key. 1117 00:40:48,900 --> 00:40:49,840 200 times an hour. 1118 00:40:50,100 --> 00:40:52,760 They just call it 2000 times in five minutes. 1119 00:40:53,140 --> 00:40:54,480 Something very different is happening. 1120 00:40:54,480 --> 00:40:57,000 So if I'm using those grants for instance. 1121 00:40:57,180 --> 00:40:58,780 I can actually detect that. 1122 00:40:59,260 --> 00:41:01,020 And say I don't know what's happening. 1123 00:41:01,240 --> 00:41:03,000 But I think a lot of data is leaving the building. 1124 00:41:03,220 --> 00:41:05,340 And you can actually flip that. 1125 00:41:05,500 --> 00:41:06,780 And revoke access to that key. 1126 00:41:06,900 --> 00:41:07,720 Until you can investigate. 1127 00:41:08,000 --> 00:41:08,860 Do an incident response. 1128 00:41:09,200 --> 00:41:11,520 Figure out hey was somebody just breaching me. 1129 00:41:11,640 --> 00:41:12,500 And at least stop the bleeding. 1130 00:41:12,920 --> 00:41:14,460 There's also control plane operations. 1131 00:41:15,000 --> 00:41:15,380 So somebody. 1132 00:41:15,940 --> 00:41:17,160 Say an attacker gets in. 1133 00:41:17,260 --> 00:41:19,620 And they want to start deleting some of your CMKs. 1134 00:41:20,160 --> 00:41:21,160 I would argue. 1135 00:41:24,480 --> 00:41:26,420 Something's happening to your CMKs. 1136 00:41:27,220 --> 00:41:28,080 Delete key. 1137 00:41:28,200 --> 00:41:29,100 Schedule key deletion. 1138 00:41:29,200 --> 00:41:30,040 It's kind of a big deal. 1139 00:41:30,160 --> 00:41:31,220 You do want to do that. 1140 00:41:31,260 --> 00:41:33,240 As part of normal key life cycle maintenance. 1141 00:41:33,560 --> 00:41:34,900 But that is a big deal. 1142 00:41:36,740 --> 00:41:38,360 Also building systems. 1143 00:41:38,660 --> 00:41:40,500 To do this alerting. 1144 00:41:40,880 --> 00:41:42,260 It's really hard work. 1145 00:41:44,660 --> 00:41:45,500 It's frustrating. 1146 00:41:45,740 --> 00:41:46,740 Because people say. 1147 00:41:46,860 --> 00:41:47,920 Well just use Splunk and shit. 1148 00:41:48,160 --> 00:41:48,640 Which is like. 1149 00:41:49,000 --> 00:41:50,760 That's not really an answer. 1150 00:41:54,480 --> 00:41:56,080 It's a complex problem. 1151 00:41:57,320 --> 00:41:57,980 I guess. 1152 00:41:59,220 --> 00:41:59,940 My approach. 1153 00:42:00,240 --> 00:42:01,660 I have a girlfriend. 1154 00:42:01,840 --> 00:42:02,920 Who has a PhD in statistics. 1155 00:42:03,320 --> 00:42:05,380 And she's really awesome at figuring out this kind of stuff. 1156 00:42:05,640 --> 00:42:06,180 But I can tell her. 1157 00:42:06,200 --> 00:42:07,900 These are the things I'm kind of looking for. 1158 00:42:08,080 --> 00:42:09,840 That I think represent a problem. 1159 00:42:10,140 --> 00:42:11,560 And she can help me build stuff. 1160 00:42:12,340 --> 00:42:13,180 This is the math. 1161 00:42:13,360 --> 00:42:15,380 This is how we deploy a statistics solution. 1162 00:42:15,680 --> 00:42:16,500 To look for that. 1163 00:42:16,660 --> 00:42:18,020 And so I would advise all of you. 1164 00:42:18,020 --> 00:42:18,640 If you're doing this stuff. 1165 00:42:18,720 --> 00:42:20,460 Get a girlfriend with a PhD in statistics. 1166 00:42:20,520 --> 00:42:20,940 I don't know. 1167 00:42:22,420 --> 00:42:27,040 I want to produce some additional stuff. 1168 00:42:27,380 --> 00:42:29,500 This would be like a full day workshop. 1169 00:42:29,780 --> 00:42:30,680 Instead of a one hour talk. 1170 00:42:31,220 --> 00:42:32,780 But there's kind of. 1171 00:42:33,120 --> 00:42:34,380 Some principles on there. 1172 00:42:34,600 --> 00:42:34,960 But anyway. 1173 00:42:35,060 --> 00:42:36,920 Encryption and key access controls. 1174 00:42:37,320 --> 00:42:38,940 You really need to design your plan. 1175 00:42:39,100 --> 00:42:40,560 I'm amazed at the number of devs. 1176 00:42:40,960 --> 00:42:43,900 When I analyze applications that are made by third parties. 1177 00:42:44,100 --> 00:42:44,300 It's like. 1178 00:42:44,300 --> 00:42:46,060 Do you have the documentation. 1179 00:42:46,120 --> 00:42:48,300 Of how you assign grants. 1180 00:42:49,500 --> 00:42:50,680 And IAM policy. 1181 00:42:50,940 --> 00:42:51,580 And KMS policy. 1182 00:42:52,020 --> 00:42:53,360 You can obfuscate all this stuff. 1183 00:42:53,440 --> 00:42:53,760 Please do. 1184 00:42:54,020 --> 00:42:55,380 But do you have any documentation. 1185 00:42:55,860 --> 00:42:56,560 Well no. 1186 00:42:56,800 --> 00:42:58,480 I guess the dev just did it until it worked. 1187 00:42:58,860 --> 00:43:00,380 I guarantee you. 1188 00:43:00,400 --> 00:43:01,500 That's going to be a problem. 1189 00:43:01,760 --> 00:43:03,520 I've seen that in third party apps. 1190 00:43:03,680 --> 00:43:05,400 Which is suboptimal. 1191 00:43:05,720 --> 00:43:06,700 To say the least. 1192 00:43:07,500 --> 00:43:10,480 So you really need to plan this. 1193 00:43:14,300 --> 00:43:16,700 And this really needs to happen. 1194 00:43:16,760 --> 00:43:17,940 In the application design phase. 1195 00:43:18,100 --> 00:43:19,360 This is not something. 1196 00:43:19,440 --> 00:43:20,460 That I can just swoop in. 1197 00:43:20,640 --> 00:43:22,220 And fix some stuff later on. 1198 00:43:22,720 --> 00:43:24,000 So in conclusion. 1199 00:43:25,940 --> 00:43:27,520 Encrypting data in the cloud. 1200 00:43:28,540 --> 00:43:29,960 It's very complex. 1201 00:43:30,120 --> 00:43:32,340 I just led you through something really simple. 1202 00:43:32,480 --> 00:43:33,840 I want to put a thing in an S3 bucket. 1203 00:43:34,200 --> 00:43:35,740 There's all these different. 1204 00:43:36,380 --> 00:43:38,540 Kinds of choices you have to make. 1205 00:43:39,080 --> 00:43:40,620 And there's no. 1206 00:43:40,800 --> 00:43:41,380 It's complex. 1207 00:43:41,640 --> 00:43:42,400 There's no magic answers. 1208 00:43:44,300 --> 00:43:46,540 Encrypting data to actually protect it in the cloud. 1209 00:43:46,720 --> 00:43:48,340 Is more than just a checkbox. 1210 00:43:48,980 --> 00:43:50,060 And you know. 1211 00:43:50,100 --> 00:43:52,000 We tell devs to never write their own crypto. 1212 00:43:52,060 --> 00:43:52,900 We taught them that. 1213 00:43:53,300 --> 00:43:55,740 But now with the complexity of cloud. 1214 00:43:56,100 --> 00:43:57,480 And some of these encryption solutions. 1215 00:43:58,020 --> 00:43:59,660 A large number of design choices. 1216 00:44:00,120 --> 00:44:01,980 We need to embed with devs. 1217 00:44:02,020 --> 00:44:04,420 And we need to help them implement. 1218 00:44:05,180 --> 00:44:06,480 Cloud cryptography architecture. 1219 00:44:06,960 --> 00:44:08,300 And that's going to be really critical. 1220 00:44:08,600 --> 00:44:09,820 I think that this is. 1221 00:44:09,900 --> 00:44:11,120 We're not going to get ahead of this problem. 1222 00:44:11,440 --> 00:44:12,900 Unless we sit down with the devs. 1223 00:44:14,300 --> 00:44:15,960 And talk through some of the aspects. 1224 00:44:16,160 --> 00:44:17,200 What we're trying to do. 1225 00:44:17,760 --> 00:44:19,620 And multiple. 1226 00:44:19,880 --> 00:44:21,860 Completely different ways of encrypting something. 1227 00:44:22,300 --> 00:44:24,140 Like a simple S3 bucket. 1228 00:44:24,500 --> 00:44:26,840 And multiple ways of using KMS. 1229 00:44:26,960 --> 00:44:28,160 Or external key management. 1230 00:44:28,560 --> 00:44:30,280 So you need to think about the threat model. 1231 00:44:30,540 --> 00:44:32,560 That is so so so critical. 1232 00:44:33,060 --> 00:44:33,540 So. 1233 00:44:33,900 --> 00:44:35,920 We want to make sure that. 1234 00:44:36,320 --> 00:44:38,460 Attackers can't decrypt our data. 1235 00:44:38,520 --> 00:44:40,220 By virtue of standing in front of the door. 1236 00:44:40,300 --> 00:44:40,920 And turning the key. 1237 00:44:41,140 --> 00:44:43,220 We want to add some additional controls. 1238 00:44:44,300 --> 00:44:44,460 Like authentication. 1239 00:44:45,280 --> 00:44:45,800 Authenticating. 1240 00:44:46,500 --> 00:44:47,860 Understanding your authorization. 1241 00:44:47,860 --> 00:44:48,520 Or monitoring. 1242 00:44:49,320 --> 00:44:52,960 We have to engineer these cloud cryptography solutions. 1243 00:44:53,180 --> 00:44:54,460 Properly to protect the data. 1244 00:44:54,980 --> 00:44:56,380 And just to recap. 1245 00:44:56,660 --> 00:44:59,860 There is no magic crypto fairy dust. 1246 00:45:00,120 --> 00:45:01,600 That I can parachute in with. 1247 00:45:01,740 --> 00:45:03,160 At the end of a project. 1248 00:45:03,500 --> 00:45:05,760 And somehow sprinkle that stuff on there. 1249 00:45:05,900 --> 00:45:06,660 And secure an app. 1250 00:45:06,740 --> 00:45:07,280 It can't be done. 1251 00:45:07,500 --> 00:45:08,220 I wish I could. 1252 00:45:08,220 --> 00:45:09,120 I'd be a millionaire. 1253 00:45:10,020 --> 00:45:10,740 You know. 1254 00:45:10,800 --> 00:45:11,360 I do have glitter. 1255 00:45:11,660 --> 00:45:12,180 But that's. 1256 00:45:12,640 --> 00:45:13,340 I don't know. 1257 00:45:14,340 --> 00:45:14,940 So anyway. 1258 00:45:15,020 --> 00:45:16,280 I'm not sure where I'm at on time. 1259 00:45:16,460 --> 00:45:17,220 Maybe getting close. 1260 00:45:18,280 --> 00:45:18,680 Yeah. 1261 00:45:18,840 --> 00:45:20,760 We have about ten minutes left for questions. 1262 00:45:20,920 --> 00:45:21,620 If you have a question. 1263 00:45:21,700 --> 00:45:23,000 Please come on up to the mic. 1264 00:45:23,240 --> 00:45:24,300 And if you don't feel comfortable. 1265 00:45:24,920 --> 00:45:25,840 We're recording this. 1266 00:45:25,840 --> 00:45:27,300 So if you'd rather not be recorded. 1267 00:45:27,400 --> 00:45:27,840 And on the mic. 1268 00:45:28,100 --> 00:45:30,300 Please approach Marie after the talk is over. 1269 00:45:30,440 --> 00:45:32,080 So we have ten minutes. 1270 00:45:32,080 --> 00:45:32,620 Come on up. 1271 00:45:35,260 --> 00:45:35,880 And first. 1272 00:45:35,920 --> 00:45:37,020 Let's give a big hand to Marie. 1273 00:45:37,160 --> 00:45:38,180 For an awesome talk.