1 00:00:00,240 --> 00:00:01,800 create and Implement Security Solutions 2 00:00:01,800 --> 00:00:03,719 for his clients over the course of his 3 00:00:03,719 --> 00:00:05,759 career Micah has led teams both big and 4 00:00:05,759 --> 00:00:07,520 small across startups and large 5 00:00:07,520 --> 00:00:09,840 financial institutions this Workshop 6 00:00:09,840 --> 00:00:11,960 will focus on terraform implementations 7 00:00:11,960 --> 00:00:13,759 and ways a malicious user could abuse 8 00:00:13,759 --> 00:00:15,679 them during the workshop you'll all 9 00:00:15,679 --> 00:00:17,920 learn how terraform Works how ter 10 00:00:17,920 --> 00:00:20,240 terraform security controls work and 11 00:00:20,240 --> 00:00:21,880 multiple ways to bypass those security 12 00:00:21,880 --> 00:00:23,560 controls to gain further access to 13 00:00:23,560 --> 00:00:25,920 environments so everyone please give a 14 00:00:25,920 --> 00:00:28,960 warm welcome to my thank 15 00:00:28,960 --> 00:00:31,960 you 16 00:00:34,120 --> 00:00:35,920 um I also told him I'm 7 feet tall I 17 00:00:35,920 --> 00:00:37,280 didn't mention that but you should know 18 00:00:37,280 --> 00:00:38,920 that just by looking at me we'll get it 19 00:00:38,920 --> 00:00:40,840 in the post okay thank you thank you I 20 00:00:40,840 --> 00:00:43,440 paid $20 for that 21 00:00:43,440 --> 00:00:46,000 so thank you all for joining this is a 22 00:00:46,000 --> 00:00:47,680 packed house I'm honored that everyone 23 00:00:47,680 --> 00:00:51,160 came here um if the talk slw Workshop 24 00:00:51,160 --> 00:00:52,559 sucks at least you have a seat to sit in 25 00:00:52,559 --> 00:00:54,039 for the next hour or however long you 26 00:00:54,039 --> 00:00:56,559 want to hang out um so this is 27 00:00:56,559 --> 00:00:58,280 infrastructure as remote cut execution 28 00:00:58,280 --> 00:01:02,480 can you guys hear me okay cool so we do 29 00:01:02,480 --> 00:01:04,040 have a few Labs you don't have to do the 30 00:01:04,040 --> 00:01:06,000 labs I'll be doing demos but if you have 31 00:01:06,000 --> 00:01:08,280 a GitHub account just sign into it now 32 00:01:08,280 --> 00:01:11,159 we use code spaces the Wi-Fi is not 33 00:01:11,159 --> 00:01:12,520 amazing in code spaces takes a little 34 00:01:12,520 --> 00:01:13,640 bit of bandwidth but if you want to 35 00:01:13,640 --> 00:01:15,680 follow along you can look at the code um 36 00:01:15,680 --> 00:01:17,840 I'll show you the link 37 00:01:17,840 --> 00:01:22,159 shortly so about me again 7t tall as you 38 00:01:22,159 --> 00:01:25,439 can tell um so Mike mcabe so I run a 39 00:01:25,439 --> 00:01:27,119 boutique Cloud security and application 40 00:01:27,119 --> 00:01:28,840 security company so we work with a lot 41 00:01:28,840 --> 00:01:31,119 of companies small small and large um 42 00:01:31,119 --> 00:01:33,720 from Fortune 20s to you know 30 person 43 00:01:33,720 --> 00:01:36,600 startups helping them build uh Cloud 44 00:01:36,600 --> 00:01:38,159 Security application application 45 00:01:38,159 --> 00:01:41,159 Security Solutions um so we've done a 46 00:01:41,159 --> 00:01:43,280 lot 47 00:01:58,840 --> 00:02:01,840 of 48 00:03:28,680 --> 00:03:31,680 e 49 00:03:58,680 --> 00:04:01,680 e 50 00:04:28,600 --> 00:04:31,300 e 51 00:04:31,300 --> 00:04:34,480 [Music] 52 00:04:55,160 --> 00:04:56,759 of rules and different different 53 00:04:56,759 --> 00:04:59,039 languages to help kind of secure uh 54 00:04:59,039 --> 00:05:01,880 infrastructure code and the reason why I 55 00:05:01,880 --> 00:05:03,280 think it's such a great thing for 56 00:05:03,280 --> 00:05:05,320 security practitioners to learn both red 57 00:05:05,320 --> 00:05:08,840 team and blue team is um you can build a 58 00:05:08,840 --> 00:05:10,400 program around terraform or whatever you 59 00:05:10,400 --> 00:05:12,680 use cloud formation and bring your your 60 00:05:12,680 --> 00:05:15,000 security findings down to maybe not zero 61 00:05:15,000 --> 00:05:17,000 but way way less than what you're at 62 00:05:17,000 --> 00:05:19,440 before uh you do it so it's a very 63 00:05:19,440 --> 00:05:22,240 powerful preventative 64 00:05:22,319 --> 00:05:25,120 control so what does it generally look 65 00:05:25,120 --> 00:05:27,960 like uh this example is terraform Cloud 66 00:05:27,960 --> 00:05:30,400 um but you know infrastructure as code 67 00:05:30,400 --> 00:05:32,000 pipelines don't look that much different 68 00:05:32,000 --> 00:05:35,919 than app cicd pipelines a developer 69 00:05:35,919 --> 00:05:39,759 commits code to a repo GitHub um or git 70 00:05:39,759 --> 00:05:42,360 lab and if you're struggling in life bit 71 00:05:42,360 --> 00:05:43,680 bucket no 72 00:05:43,680 --> 00:05:46,919 offense for terraform um it's a stateful 73 00:05:46,919 --> 00:05:49,280 product I'll kind of talk about what 74 00:05:49,280 --> 00:05:52,199 that means but when you do deployments 75 00:05:52,199 --> 00:05:53,880 you kind of do you do two things at 76 00:05:53,880 --> 00:05:56,280 first uh terraform plan is where a lot 77 00:05:56,280 --> 00:05:57,960 of the magic with terraform happens 78 00:05:57,960 --> 00:05:59,680 where you know you're building these 79 00:05:59,680 --> 00:06:01,919 huge trees of resources and they have 80 00:06:01,919 --> 00:06:04,560 interdependencies if a you know S3 81 00:06:04,560 --> 00:06:07,120 bucket relies on an sqsq to be created 82 00:06:07,120 --> 00:06:09,800 there's a dependency there and so some 83 00:06:09,800 --> 00:06:11,360 of the magic the terraform does is 84 00:06:11,360 --> 00:06:13,080 create that dependency tree of saying 85 00:06:13,080 --> 00:06:14,520 this needs to be created before that so 86 00:06:14,520 --> 00:06:15,840 then that can be created with the output 87 00:06:15,840 --> 00:06:18,520 of that um and that's kind of the magic 88 00:06:18,520 --> 00:06:20,039 and and how it makes it much more simple 89 00:06:20,039 --> 00:06:22,160 to create infrastructure with uh with 90 00:06:22,160 --> 00:06:24,880 terraform So the plan is pre anything 91 00:06:24,880 --> 00:06:27,680 getting built so nothing touches uh 92 00:06:27,680 --> 00:06:29,680 nothing gets stood up in the plan but 93 00:06:29,680 --> 00:06:31,800 there are some tricky things in the plan 94 00:06:31,800 --> 00:06:34,120 that I'll kind of get into um one of 95 00:06:34,120 --> 00:06:35,960 them is unknown values because you can't 96 00:06:35,960 --> 00:06:37,520 know something before it's created you 97 00:06:37,520 --> 00:06:39,080 can't know an R before the resources is 98 00:06:39,080 --> 00:06:41,080 created so it's just uh keep that in the 99 00:06:41,080 --> 00:06:43,199 back of your head and then when you're 100 00:06:43,199 --> 00:06:46,240 ready to actually do the creation um 101 00:06:46,240 --> 00:06:48,599 terraform apply takes that plan reaches 102 00:06:48,599 --> 00:06:50,400 out to the cloud provider it creates it 103 00:06:50,400 --> 00:06:53,680 updates it destroys whatever it is um in 104 00:06:53,680 --> 00:06:56,039 your environment and then it updates the 105 00:06:56,039 --> 00:06:57,599 state file which again it's state full 106 00:06:57,599 --> 00:06:58,919 so it keeps track of what you have out 107 00:06:58,919 --> 00:07:00,759 there and updates a state file that's a 108 00:07:00,759 --> 00:07:02,759 representation of what you have um in 109 00:07:02,759 --> 00:07:03,800 the 110 00:07:03,800 --> 00:07:07,479 environment so what does terraform look 111 00:07:07,479 --> 00:07:11,080 like uh this is you know all you really 112 00:07:11,080 --> 00:07:13,280 need in terraform to create an ec2 113 00:07:13,280 --> 00:07:16,080 instance AWS instance is just an easy2 114 00:07:16,080 --> 00:07:18,360 instance um you define a couple things a 115 00:07:18,360 --> 00:07:19,879 provider which I'll talk about in a 116 00:07:19,879 --> 00:07:22,879 second um an Ami the image the size you 117 00:07:22,879 --> 00:07:24,400 don't even have to have tags you can 118 00:07:24,400 --> 00:07:27,240 just you know Skip that but this is all 119 00:07:27,240 --> 00:07:28,960 you need if you run terraform plan and 120 00:07:28,960 --> 00:07:30,879 Appliance this is going to go out to AWS 121 00:07:30,879 --> 00:07:32,759 if you have credentials and set up an 122 00:07:32,759 --> 00:07:36,120 ec2 instance so it's not very complex to 123 00:07:36,120 --> 00:07:38,160 get going which is 124 00:07:38,160 --> 00:07:40,440 great and then what does that plan file 125 00:07:40,440 --> 00:07:42,560 look like uh the plan file is actually 126 00:07:42,560 --> 00:07:45,039 in like a binary format you can export 127 00:07:45,039 --> 00:07:47,840 it into Json um and so you can see even 128 00:07:47,840 --> 00:07:50,759 though our our terraform is very simple 129 00:07:50,759 --> 00:07:53,599 in the back end there's a lot of uh 130 00:07:53,599 --> 00:07:55,960 attributes that are either set to 131 00:07:55,960 --> 00:07:58,479 default values or they're set to values 132 00:07:58,479 --> 00:08:00,039 the terraform chooses 133 00:08:00,039 --> 00:08:01,720 um and if you have a security eye you 134 00:08:01,720 --> 00:08:03,520 can already see some things here that 135 00:08:03,520 --> 00:08:05,520 look interesting in this plan file get 136 00:08:05,520 --> 00:08:09,120 password data is one um so these plan 137 00:08:09,120 --> 00:08:10,720 files have a lot of details about how 138 00:08:10,720 --> 00:08:13,759 things are going to be created um and a 139 00:08:13,759 --> 00:08:15,520 lot happens even if you don't choose the 140 00:08:15,520 --> 00:08:21,520 attributes for um for uh the resource so 141 00:08:21,520 --> 00:08:22,800 so getting into kind of the first lab 142 00:08:22,800 --> 00:08:25,919 which is a really basic demo uh if you 143 00:08:25,919 --> 00:08:29,479 have a GitHub login uh login now people 144 00:08:29,479 --> 00:08:31,680 familiar with code spaces it's hosted vs 145 00:08:31,680 --> 00:08:35,880 code um this instance has access to an 146 00:08:35,880 --> 00:08:38,519 account that has E2 access please don't 147 00:08:38,519 --> 00:08:40,799 be a and tear everything down 148 00:08:40,799 --> 00:08:43,719 um don't be that person so if you can 149 00:08:43,719 --> 00:08:46,200 read that uh that's the GitHub repo the 150 00:08:46,200 --> 00:08:50,160 bitly link is to um the same URL it's 151 00:08:50,160 --> 00:08:52,040 not like my PayPal or SoundCloud or 152 00:08:52,040 --> 00:08:54,760 anything um so I'll give you guys a 153 00:08:54,760 --> 00:08:56,000 second to log in if you want to take a 154 00:08:56,000 --> 00:08:58,440 look at that um once you're logged in 155 00:08:58,440 --> 00:09:00,920 you open codes spaces and you can open a 156 00:09:00,920 --> 00:09:03,000 terminal on code spaces any folks 157 00:09:03,000 --> 00:09:04,480 working through this or should I just do 158 00:09:04,480 --> 00:09:06,399 a 159 00:09:06,399 --> 00:09:10,760 demo I see phones but 160 00:09:11,839 --> 00:09:14,600 no okay I'll give you 30 more seconds to 161 00:09:14,600 --> 00:09:16,920 write that 162 00:09:17,279 --> 00:09:20,680 down you should probably have your timer 163 00:09:20,680 --> 00:09:25,920 going it's 30 seconds amazing 164 00:09:25,959 --> 00:09:31,119 number de side set foot stat 165 00:09:34,959 --> 00:09:38,240 yeah all right can you all see that no 166 00:09:38,240 --> 00:09:40,440 didn't 167 00:09:47,680 --> 00:09:49,640 switch all right I know this is a little 168 00:09:49,640 --> 00:09:51,360 scrunched 169 00:09:51,360 --> 00:09:56,600 but can you all see this okay of 170 00:09:58,120 --> 00:10:01,120 course 171 00:10:07,800 --> 00:10:10,440 wi yeah everyone please stop streaming 172 00:10:10,440 --> 00:10:13,079 Netflix right 173 00:10:15,399 --> 00:10:18,600 now so if you can see this basically 174 00:10:18,600 --> 00:10:20,959 what we Define is a basic inters 175 00:10:20,959 --> 00:10:23,399 instance um and we're also creating a 176 00:10:23,399 --> 00:10:26,200 Secrets manager secret Secrets version 177 00:10:26,200 --> 00:10:27,839 which is just part of that in a random 178 00:10:27,839 --> 00:10:31,399 value um at the and so let's see if this 179 00:10:31,399 --> 00:10:35,440 actually loads or I might need to 180 00:10:44,560 --> 00:10:47,560 tether 181 00:10:58,040 --> 00:11:00,480 better 182 00:11:00,480 --> 00:11:03,160 ising 183 00:11:05,600 --> 00:11:10,200 now of course that never go 184 00:11:15,639 --> 00:11:19,880 well uh big chungus can I use 185 00:11:23,279 --> 00:11:25,519 your all right well if this doesn't work 186 00:11:25,519 --> 00:11:27,079 I'll try to do it at the end but this is 187 00:11:27,079 --> 00:11:30,959 definitely moving slow 188 00:11:34,399 --> 00:11:36,270 so can at we show 189 00:11:36,270 --> 00:11:37,839 [Music] 190 00:11:37,839 --> 00:11:41,240 you I can show you some some basics of 191 00:11:41,240 --> 00:11:43,760 what things would look like so actually 192 00:11:43,760 --> 00:11:46,880 just here 193 00:11:49,200 --> 00:11:53,680 because yeah the Wii 194 00:11:57,959 --> 00:12:00,959 doesn't 195 00:12:04,399 --> 00:12:08,600 yeah yeah nothing's going to work 196 00:12:10,120 --> 00:12:12,680 Wii yeah 197 00:12:12,680 --> 00:12:16,160 I'm I think super slow anyway so I'll go 198 00:12:16,160 --> 00:12:17,240 back to the slides and we'll come back 199 00:12:17,240 --> 00:12:20,519 to some of the demos 200 00:12:24,880 --> 00:12:26,680 [Music] 201 00:12:26,680 --> 00:12:29,399 um all right I'll try to come back Wi-Fi 202 00:12:29,399 --> 00:12:31,560 starts working and do more of these 203 00:12:31,560 --> 00:12:33,959 demos um so I kind of mentioned the 204 00:12:33,959 --> 00:12:38,279 terraform State file um so it represents 205 00:12:38,279 --> 00:12:39,880 what you just created what you updated 206 00:12:39,880 --> 00:12:41,240 what you deleted it's basically 207 00:12:41,240 --> 00:12:43,600 representation of what uh what is out 208 00:12:43,600 --> 00:12:47,079 there um what's interesting about it is 209 00:12:47,079 --> 00:12:48,720 it's used to manage your your 210 00:12:48,720 --> 00:12:50,440 environment once you do something in 211 00:12:50,440 --> 00:12:52,600 terraform uh the other fun thing is it 212 00:12:52,600 --> 00:12:54,199 holds all the secret values that you 213 00:12:54,199 --> 00:12:57,560 create through terraform um so it's 214 00:12:57,560 --> 00:12:58,639 something people don't think about when 215 00:12:58,639 --> 00:13:00,880 they use terraform is if you're creating 216 00:13:00,880 --> 00:13:02,920 Secrets uh even if you're creating you 217 00:13:02,920 --> 00:13:04,839 know an RDS instance that that you're 218 00:13:04,839 --> 00:13:06,560 creating a master password for it's 219 00:13:06,560 --> 00:13:09,279 going to end up in that state 220 00:13:09,279 --> 00:13:12,279 file so here's an example I don't know 221 00:13:12,279 --> 00:13:14,880 if it's kind of hard to read but um this 222 00:13:14,880 --> 00:13:17,560 is a terraform State file where we have 223 00:13:17,560 --> 00:13:19,600 a secret to manager secret I would not 224 00:13:19,600 --> 00:13:21,639 recommend creating Secrets via terraform 225 00:13:21,639 --> 00:13:23,279 you should have an you know out of the 226 00:13:23,279 --> 00:13:25,440 out of the pipeline process for that but 227 00:13:25,440 --> 00:13:27,120 this is you know if you create this it's 228 00:13:27,120 --> 00:13:29,240 going to end up in your state file any 229 00:13:29,240 --> 00:13:30,959 red teamers 230 00:13:30,959 --> 00:13:34,399 here handful yeah so if you're on a red 231 00:13:34,399 --> 00:13:36,440 team and your company uses terraform 232 00:13:36,440 --> 00:13:37,760 definitely look for wherever they back 233 00:13:37,760 --> 00:13:40,240 up their Terra form State um because you 234 00:13:40,240 --> 00:13:44,079 can find uh you can find these secrets 235 00:13:44,079 --> 00:13:46,440 um there's a good article by Cy dig they 236 00:13:46,440 --> 00:13:50,360 did an investigation for a client and um 237 00:13:50,360 --> 00:13:52,600 and their client was hacked because 238 00:13:52,600 --> 00:13:54,800 someone got a saate file they use that 239 00:13:54,800 --> 00:13:56,399 basically pivot elsewhere into the 240 00:13:56,399 --> 00:13:59,560 environment um so 241 00:13:59,560 --> 00:14:02,199 and sorry where's the Hashi Corp person 242 00:14:02,199 --> 00:14:04,639 again uh sorry to call you out but um 243 00:14:04,639 --> 00:14:06,839 Hashi Corp is aware of this of this 244 00:14:06,839 --> 00:14:10,759 issue um and they this uh I love this 245 00:14:10,759 --> 00:14:12,360 image because if you can read the top 246 00:14:12,360 --> 00:14:15,320 this is a GitHub issue from 247 00:14:15,320 --> 00:14:17,800 2014 um and so someone basically said 248 00:14:17,800 --> 00:14:19,199 you know how do you deal with sensitive 249 00:14:19,199 --> 00:14:23,160 values in terraform State files and uh 250 00:14:23,160 --> 00:14:25,120 the last update when I took this photo 251 00:14:25,120 --> 00:14:27,240 which was a couple months ago was 20 252 00:14:27,240 --> 00:14:29,480 hours ago and it was a 253 00:14:29,480 --> 00:14:31,320 uh PM from hash Corp saying yes we're 254 00:14:31,320 --> 00:14:32,800 aware of this yes we're still working on 255 00:14:32,800 --> 00:14:34,839 it uh we don't have a solution for you 256 00:14:34,839 --> 00:14:37,079 so um sorry Omar for calling you out 257 00:14:37,079 --> 00:14:38,160 hopefully you're not the person who's 258 00:14:38,160 --> 00:14:40,880 here but uh hash Corp is aware of the 259 00:14:40,880 --> 00:14:43,040 issue but they don't have um a good 260 00:14:43,040 --> 00:14:44,160 solution for it and a lot of people 261 00:14:44,160 --> 00:14:46,199 create kind of hay solutions for this 262 00:14:46,199 --> 00:14:47,560 but the best thing is to try to deploy 263 00:14:47,560 --> 00:14:50,120 as few Secrets through your state file 264 00:14:50,120 --> 00:14:51,120 um as 265 00:14:51,120 --> 00:14:55,199 possible so we have one one obligatory 266 00:14:55,199 --> 00:14:57,680 meme that we have to 267 00:14:57,680 --> 00:14:59,399 show 268 00:14:59,399 --> 00:15:02,800 yeah so I have another lab but I'll get 269 00:15:02,800 --> 00:15:04,360 back to that in a second if the Wi-Fi 270 00:15:04,360 --> 00:15:06,680 starts 271 00:15:15,040 --> 00:15:19,320 working cool so another big part of uh 272 00:15:19,320 --> 00:15:21,199 of terraformer is providers so terraform 273 00:15:21,199 --> 00:15:22,920 the language is just very just very 274 00:15:22,920 --> 00:15:24,639 basic language that gives you those you 275 00:15:24,639 --> 00:15:26,720 know apply the plan apply State 276 00:15:26,720 --> 00:15:28,079 Management things like that what if you 277 00:15:28,079 --> 00:15:29,160 actually want to do something in an 278 00:15:29,160 --> 00:15:30,920 environment you have to have a provider 279 00:15:30,920 --> 00:15:33,800 that that basically is the API to those 280 00:15:33,800 --> 00:15:36,040 you know Cloud providers um or anything 281 00:15:36,040 --> 00:15:37,120 else it doesn't have to be a cloud 282 00:15:37,120 --> 00:15:38,480 provider it can be a lot of different 283 00:15:38,480 --> 00:15:44,000 systems um and so it uh has your gr 284 00:15:44,000 --> 00:15:46,000 themselves have I think you know maybe a 285 00:15:46,000 --> 00:15:47,440 hundred providers that are official 286 00:15:47,440 --> 00:15:49,199 providers then there's thousands and 287 00:15:49,199 --> 00:15:51,759 thousands of providers out there that um 288 00:15:51,759 --> 00:15:53,600 that are available you know off GitHub 289 00:15:53,600 --> 00:15:56,519 or whatever else um these are some of 290 00:15:56,519 --> 00:15:57,880 the official ones from GitHub you can 291 00:15:57,880 --> 00:15:59,480 see that have you you know AWS they have 292 00:15:59,480 --> 00:16:01,279 Azure they have a lot of different 293 00:16:01,279 --> 00:16:04,240 smaller providers um but these providers 294 00:16:04,240 --> 00:16:07,000 like the AWS one are I think probably a 295 00:16:07,000 --> 00:16:08,399 million lines of code for some of the 296 00:16:08,399 --> 00:16:11,079 big ones and um you know even the 297 00:16:11,079 --> 00:16:13,920 smaller ones are still huge code bases 298 00:16:13,920 --> 00:16:15,279 so when we start using these providers 299 00:16:15,279 --> 00:16:17,199 it's just like npm libraries it's like 300 00:16:17,199 --> 00:16:18,800 python libraries we're introducing a 301 00:16:18,800 --> 00:16:20,600 huge amount of code that we trust and 302 00:16:20,600 --> 00:16:23,000 we're also running this code in our c 303 00:16:23,000 --> 00:16:25,279 cicd um pipelines so that means that 304 00:16:25,279 --> 00:16:26,600 we're bringing in third party code 305 00:16:26,600 --> 00:16:28,319 running it in our cicd potentially 306 00:16:28,319 --> 00:16:30,440 getting at high privileges um and 307 00:16:30,440 --> 00:16:31,720 there's no way we can review all this 308 00:16:31,720 --> 00:16:32,880 code you don't know if something 309 00:16:32,880 --> 00:16:34,720 malicious got pushed into this you would 310 00:16:34,720 --> 00:16:37,920 hope that hashy Corp has you know strong 311 00:16:37,920 --> 00:16:39,440 processes to make sure that no malicious 312 00:16:39,440 --> 00:16:41,120 code gets put in there but you don't 313 00:16:41,120 --> 00:16:43,079 actually know that for sure because as I 314 00:16:43,079 --> 00:16:44,319 showed they're not even great about 315 00:16:44,319 --> 00:16:46,639 handling Secrets again apologize to the 316 00:16:46,639 --> 00:16:51,480 hash person um so we've seen people 317 00:16:51,480 --> 00:16:52,680 there's been a few cases of people 318 00:16:52,680 --> 00:16:54,240 publishing malicious providers there's 319 00:16:54,240 --> 00:16:56,480 been cases of people downloading sketchy 320 00:16:56,480 --> 00:16:58,199 providers so it's another thing to think 321 00:16:58,199 --> 00:17:00,440 about when we talk about how do we 322 00:17:00,440 --> 00:17:03,639 secure this whole stack of aform um my 323 00:17:03,639 --> 00:17:05,280 recommendation is to limit the number of 324 00:17:05,280 --> 00:17:08,079 providers you can actually introduce air 325 00:17:08,079 --> 00:17:10,079 gap your install make sure you can only 326 00:17:10,079 --> 00:17:11,679 pull from kind of your list of providers 327 00:17:11,679 --> 00:17:13,919 that you want to be 328 00:17:13,919 --> 00:17:17,079 used uh another piece is if you're using 329 00:17:17,079 --> 00:17:18,359 something like terraform cloud or 330 00:17:18,359 --> 00:17:20,039 terraform Enterprise there's a whole set 331 00:17:20,039 --> 00:17:23,039 of apis to manage those systems so if 332 00:17:23,039 --> 00:17:26,199 you don't manage those properly um you 333 00:17:26,199 --> 00:17:28,760 can do things like you know run plans up 334 00:17:28,760 --> 00:17:31,600 terraform uh plans the thing that scares 335 00:17:31,600 --> 00:17:33,799 me probably the most about this and and 336 00:17:33,799 --> 00:17:34,679 something you have to think about in 337 00:17:34,679 --> 00:17:36,520 terraform Enterprise and cloud is 338 00:17:36,520 --> 00:17:39,200 they're API to update your state file um 339 00:17:39,200 --> 00:17:40,200 and the state file again is a 340 00:17:40,200 --> 00:17:42,120 representation of your environment so if 341 00:17:42,120 --> 00:17:43,919 you can update that state file and then 342 00:17:43,919 --> 00:17:46,039 use it to make updates in the 343 00:17:46,039 --> 00:17:47,679 environment the case I always think 344 00:17:47,679 --> 00:17:51,840 about is if someone was able to do um an 345 00:17:51,840 --> 00:17:53,720 import of all your RDS instances in your 346 00:17:53,720 --> 00:17:55,320 production environment into their state 347 00:17:55,320 --> 00:17:57,840 file and then just delete everything um 348 00:17:57,840 --> 00:17:59,840 through ter form so just imagine someone 349 00:17:59,840 --> 00:18:01,960 importing all those running terraform 350 00:18:01,960 --> 00:18:03,799 destroy and just deleting everything at 351 00:18:03,799 --> 00:18:06,640 once and these apis are a little open 352 00:18:06,640 --> 00:18:07,919 when you first set them up so you have 353 00:18:07,919 --> 00:18:10,120 to make sure that um you have to make 354 00:18:10,120 --> 00:18:11,360 sure that you have those locked down 355 00:18:11,360 --> 00:18:13,440 pretty 356 00:18:13,440 --> 00:18:16,960 well another thing to think about um 357 00:18:16,960 --> 00:18:20,120 terraform logging so you can kind of see 358 00:18:20,120 --> 00:18:22,520 in this but when terraform most 359 00:18:22,520 --> 00:18:24,280 terraform implementations if it's 360 00:18:24,280 --> 00:18:26,080 terraform cloud or Enterprise or 361 00:18:26,080 --> 00:18:28,559 sometimes cicv they're going to assume a 362 00:18:28,559 --> 00:18:31,440 role you know an ec2 assume role from 363 00:18:31,440 --> 00:18:32,760 that instance into whatever role you're 364 00:18:32,760 --> 00:18:35,200 going to use for production um when it 365 00:18:35,200 --> 00:18:37,400 does that it outputs the access key the 366 00:18:37,400 --> 00:18:39,799 secret key and the session token um and 367 00:18:39,799 --> 00:18:41,600 so if you're a developer or a malicious 368 00:18:41,600 --> 00:18:44,960 user you get access to a terraform uh 369 00:18:44,960 --> 00:18:47,880 workspace you run a plan you turn on TF 370 00:18:47,880 --> 00:18:49,320 log which is just an environmental 371 00:18:49,320 --> 00:18:51,240 variable so it's not like it's not a 372 00:18:51,240 --> 00:18:53,159 privilege setting you have to turn on 373 00:18:53,159 --> 00:18:55,240 you turn on TF log you set it to debug 374 00:18:55,240 --> 00:18:58,000 or Trace um and that's going to dump out 375 00:18:58,000 --> 00:19:00,400 those credentials so they recently 376 00:19:00,400 --> 00:19:03,159 addressed this um for some reason sorry 377 00:19:03,159 --> 00:19:04,799 again hash gr guy for some reason they 378 00:19:04,799 --> 00:19:07,039 chose to blank out the access key at 379 00:19:07,039 --> 00:19:08,440 first which you can see there which 380 00:19:08,440 --> 00:19:09,799 makes no sense because you can find that 381 00:19:09,799 --> 00:19:12,240 in cloud trail um instead of blanking 382 00:19:12,240 --> 00:19:15,520 out the session token which is Emeral so 383 00:19:15,520 --> 00:19:17,000 they've they've addressed this somewhat 384 00:19:17,000 --> 00:19:18,120 but um if you're running an older 385 00:19:18,120 --> 00:19:20,280 version of cloud or Enterprise then you 386 00:19:20,280 --> 00:19:22,440 will this is still an issue so if a 387 00:19:22,440 --> 00:19:24,440 developer can turn on debug logs they 388 00:19:24,440 --> 00:19:26,320 can dump out that credential use that 389 00:19:26,320 --> 00:19:30,000 privilege role to to access things um so 390 00:19:30,000 --> 00:19:32,039 one more thing to think about so I like 391 00:19:32,039 --> 00:19:33,919 to say that you know terraform is for 392 00:19:33,919 --> 00:19:36,280 use by competent persons only and I 393 00:19:36,280 --> 00:19:37,520 always like thinking about the story 394 00:19:37,520 --> 00:19:39,159 behind why they had to add this label to 395 00:19:39,159 --> 00:19:41,159 this because this is a a volt meter to 396 00:19:41,159 --> 00:19:43,320 to check electrical outlets 397 00:19:43,320 --> 00:19:46,320 so um so we'll talk about some of the 398 00:19:46,320 --> 00:19:48,520 techniques that we kind of in the work 399 00:19:48,520 --> 00:19:50,280 we've done we've discovered that uh 400 00:19:50,280 --> 00:19:52,720 allow remote cut execution or um just 401 00:19:52,720 --> 00:19:55,000 kind of bad things in ter imp 402 00:19:55,000 --> 00:19:56,799 implementations um I don't know if the 403 00:19:56,799 --> 00:19:58,720 Wi-Fi is working any better for anyone 404 00:19:58,720 --> 00:20:01,000 is anyone able to load the code 405 00:20:01,000 --> 00:20:06,280 up no too slow has Cy so these are a few 406 00:20:06,280 --> 00:20:07,799 few techniques I can't cover everything 407 00:20:07,799 --> 00:20:10,320 so there's a lot but um but these are 408 00:20:10,320 --> 00:20:12,720 just a few that you should think about 409 00:20:12,720 --> 00:20:15,280 so terraform is a infrastructures code 410 00:20:15,280 --> 00:20:16,919 tool so it's meant to provision your 411 00:20:16,919 --> 00:20:18,720 infrastructure it's not meant to 412 00:20:18,720 --> 00:20:21,320 provision um you know OS it's not meant 413 00:20:21,320 --> 00:20:23,760 to provision your application libraries 414 00:20:23,760 --> 00:20:26,559 and even terraform says um you know we 415 00:20:26,559 --> 00:20:27,840 care about the infrastructure we don't 416 00:20:27,840 --> 00:20:29,320 do things with the operating system or 417 00:20:29,320 --> 00:20:31,000 the software use other tools like 418 00:20:31,000 --> 00:20:34,000 ansible use puppet Chef whatever it is 419 00:20:34,000 --> 00:20:37,120 um but for fun they give you a way to do 420 00:20:37,120 --> 00:20:39,400 it anyway and people use this uh pretty 421 00:20:39,400 --> 00:20:41,240 often and it's it's an anti- pattern but 422 00:20:41,240 --> 00:20:43,559 people do it so remote exec is a 423 00:20:43,559 --> 00:20:45,640 provisioner um which basically when you 424 00:20:45,640 --> 00:20:47,840 set up something like an ec2 it will run 425 00:20:47,840 --> 00:20:49,360 after the fact it connects to it runs 426 00:20:49,360 --> 00:20:50,919 after the fact and runs whatever script 427 00:20:50,919 --> 00:20:54,559 you want to run um so it introduces code 428 00:20:54,559 --> 00:20:56,880 not terraform code but bash or python or 429 00:20:56,880 --> 00:20:58,919 whatever into to your infrastructure 430 00:20:58,919 --> 00:21:00,679 deployments um and the line at the 431 00:21:00,679 --> 00:21:02,400 bottom is from hash and they say it adds 432 00:21:02,400 --> 00:21:04,320 a considerable amount of complexity and 433 00:21:04,320 --> 00:21:07,320 uncertainty to teral usage which is very 434 00:21:07,320 --> 00:21:09,760 great and very couched 435 00:21:09,760 --> 00:21:13,720 language so here's an example um can you 436 00:21:13,720 --> 00:21:16,120 all read that okay so basically we're 437 00:21:16,120 --> 00:21:18,720 setting up an ec2 instance we have a 438 00:21:18,720 --> 00:21:21,360 connection uh to the ec2 instance and 439 00:21:21,360 --> 00:21:22,640 then once that's set up we run a 440 00:21:22,640 --> 00:21:25,600 provisioner which is remote exec to well 441 00:21:25,600 --> 00:21:27,559 I guess I can ask people can anyone see 442 00:21:27,559 --> 00:21:30,039 what that does 443 00:21:30,320 --> 00:21:33,320 anyone know 444 00:21:35,360 --> 00:21:38,080 what sticker the first person I heard I 445 00:21:38,080 --> 00:21:39,400 know you all shut it out but I couldn't 446 00:21:39,400 --> 00:21:41,600 hear you um yeah so this is basically 447 00:21:41,600 --> 00:21:44,080 net cat out so I know for startups and 448 00:21:44,080 --> 00:21:46,080 smaller companies you might think that 449 00:21:46,080 --> 00:21:47,919 it's not that big of a deal to let 450 00:21:47,919 --> 00:21:50,120 people do things on servers like we 451 00:21:50,120 --> 00:21:51,840 trust our developers they run software 452 00:21:51,840 --> 00:21:54,640 on on our machines but if you work in an 453 00:21:54,640 --> 00:21:56,480 environment where you know you're under 454 00:21:56,480 --> 00:21:58,760 like socks regulations people can't have 455 00:21:58,760 --> 00:22:01,080 production access and so people can't 456 00:22:01,080 --> 00:22:03,520 just s into production servers um you 457 00:22:03,520 --> 00:22:04,880 know you have to have a privilege access 458 00:22:04,880 --> 00:22:06,559 management which can change control 459 00:22:06,559 --> 00:22:08,679 things like that um this is kind of a 460 00:22:08,679 --> 00:22:10,320 big deal because you can just bypass all 461 00:22:10,320 --> 00:22:12,279 that stuff you can set up you can create 462 00:22:12,279 --> 00:22:15,159 an SSH key you can set it up in this you 463 00:22:15,159 --> 00:22:16,880 use remote exec run whatever you want on 464 00:22:16,880 --> 00:22:19,080 that so you could use it to you know 465 00:22:19,080 --> 00:22:22,039 tear off all your endpoint software and 466 00:22:22,039 --> 00:22:23,840 then in this case we're net catting out 467 00:22:23,840 --> 00:22:27,120 to say you know a C2 server something 468 00:22:27,120 --> 00:22:29,640 like that so that you can can uh do more 469 00:22:29,640 --> 00:22:32,240 in the production 470 00:22:32,799 --> 00:22:35,320 environment then another technique uh 471 00:22:35,320 --> 00:22:39,039 local exec so similar to to remote exec 472 00:22:39,039 --> 00:22:41,559 instead of working on the endpoint like 473 00:22:41,559 --> 00:22:43,679 your ec2 local exec runs whereever 474 00:22:43,679 --> 00:22:46,440 terraform runs um so a lot of folks if 475 00:22:46,440 --> 00:22:48,480 you're using terraform Enterprise or 476 00:22:48,480 --> 00:22:51,480 cloud or just Jenkins um like I said 477 00:22:51,480 --> 00:22:53,360 it's going to assume a role and then do 478 00:22:53,360 --> 00:22:56,840 things with that role um so similar it's 479 00:22:56,840 --> 00:22:59,000 a way to to run run code it's also an 480 00:22:59,000 --> 00:23:01,200 anti-pattern hash Corp again says don't 481 00:23:01,200 --> 00:23:04,200 do this provisioners are Last Resort but 482 00:23:04,200 --> 00:23:05,679 it's out of the box it's built in you 483 00:23:05,679 --> 00:23:07,799 don't have to run you know a different 484 00:23:07,799 --> 00:23:10,440 provider this is just part of the um 485 00:23:10,440 --> 00:23:13,440 this is just part of their code base so 486 00:23:13,440 --> 00:23:15,679 so in this case I like this example it 487 00:23:15,679 --> 00:23:18,080 might be kind of hard to see but um you 488 00:23:18,080 --> 00:23:19,559 can use local exec again if you're 489 00:23:19,559 --> 00:23:22,679 running if your terraform user has admin 490 00:23:22,679 --> 00:23:24,760 access um and every developer only has 491 00:23:24,760 --> 00:23:28,120 readon access as a developer I can basic 492 00:23:28,120 --> 00:23:32,080 use local exec run this is curling the 493 00:23:32,080 --> 00:23:35,159 uh STS metadata endpoint on ec2 people 494 00:23:35,159 --> 00:23:36,600 familiar with that 495 00:23:36,600 --> 00:23:39,360 basically it's the way that aumm roll 496 00:23:39,360 --> 00:23:41,799 happens so you're curling that you're 497 00:23:41,799 --> 00:23:43,080 getting those temporary credentials that 498 00:23:43,080 --> 00:23:45,240 I showed in that log and then you're um 499 00:23:45,240 --> 00:23:46,919 curling that out of the environment so 500 00:23:46,919 --> 00:23:49,520 the idea being you can use this to grab 501 00:23:49,520 --> 00:23:51,080 those credentials Center it out of the 502 00:23:51,080 --> 00:23:52,960 environment use that assume roll 503 00:23:52,960 --> 00:23:55,919 somewhere else um so it's it's a pretty 504 00:23:55,919 --> 00:23:57,960 powerful way to do that so this actually 505 00:23:57,960 --> 00:23:59,480 worked on terraform Cloud for a while 506 00:23:59,480 --> 00:24:01,720 too where you could actually get the uh 507 00:24:01,720 --> 00:24:03,720 SS credentials from terraform Cloud but 508 00:24:03,720 --> 00:24:06,320 they fixed that on the metad server um 509 00:24:06,320 --> 00:24:08,240 recently so but there's a lot of other 510 00:24:08,240 --> 00:24:09,720 Cloud products out there so give it a 511 00:24:09,720 --> 00:24:12,080 shot and 512 00:24:12,480 --> 00:24:16,480 see um see if Wii is working you want to 513 00:24:16,480 --> 00:24:18,799 try using a 514 00:24:18,799 --> 00:24:21,799 different 515 00:24:26,799 --> 00:24:30,480 yeah I want to try to 516 00:24:51,890 --> 00:24:54,989 [Music] 517 00:24:56,760 --> 00:24:59,760 connect 518 00:25:09,799 --> 00:25:11,840 yeah when connecting to conference Wi-Fi 519 00:25:11,840 --> 00:25:14,480 so we'll see if this 520 00:25:18,120 --> 00:25:21,880 works cool I'll keep going on the 521 00:25:21,880 --> 00:25:24,640 presentation so are folks familiar with 522 00:25:24,640 --> 00:25:26,679 sreb 523 00:25:26,679 --> 00:25:29,679 anyone 524 00:25:30,440 --> 00:25:33,440 really yeah so everyone knows what GP is 525 00:25:33,440 --> 00:25:35,360 hopefully unless you're a Windows user 526 00:25:35,360 --> 00:25:38,559 um but srep is semantic GP so it's 527 00:25:38,559 --> 00:25:40,799 basically a tool to kind of enhance the 528 00:25:40,799 --> 00:25:42,880 pattern matching of GP add more metadata 529 00:25:42,880 --> 00:25:45,720 add more uh capability uh it's an open 530 00:25:45,720 --> 00:25:47,279 source tool there's a paid version 531 00:25:47,279 --> 00:25:49,200 there's a cloud version but you can get 532 00:25:49,200 --> 00:25:50,480 started with it just using the open 533 00:25:50,480 --> 00:25:52,399 source tool so it's basic pattern 534 00:25:52,399 --> 00:25:54,240 matching um it's pretty fast you can 535 00:25:54,240 --> 00:25:56,120 integrate it with pipelines very easily 536 00:25:56,120 --> 00:25:58,039 it's free which is always nice uh 537 00:25:58,039 --> 00:25:59,880 there's a lot of Open Source rule sets 538 00:25:59,880 --> 00:26:01,279 which is good as 539 00:26:01,279 --> 00:26:03,840 well so if we want to prevent some of 540 00:26:03,840 --> 00:26:05,640 these things it's actually pretty 541 00:26:05,640 --> 00:26:07,559 straightforward to do so if you have a 542 00:26:07,559 --> 00:26:09,080 cicd pipeline if you guys are already 543 00:26:09,080 --> 00:26:12,279 doing sass on your app app code you 544 00:26:12,279 --> 00:26:13,720 should integrate something like this 545 00:26:13,720 --> 00:26:15,799 into your terraform code as well to 546 00:26:15,799 --> 00:26:18,240 prevent um kind of some of the things we 547 00:26:18,240 --> 00:26:21,240 talk about so this example is on the 548 00:26:21,240 --> 00:26:23,399 right we have some terraform it's using 549 00:26:23,399 --> 00:26:26,120 the local exact provisioner then on the 550 00:26:26,120 --> 00:26:28,120 right we have a rule 551 00:26:28,120 --> 00:26:31,279 um that's the zoomed in version so the 552 00:26:31,279 --> 00:26:32,919 nice thing about sup compared to a lot 553 00:26:32,919 --> 00:26:35,520 of sast tools is they're very easy to 554 00:26:35,520 --> 00:26:37,640 get to get started this takes 5 minutes 555 00:26:37,640 --> 00:26:39,679 to write so you basically Define a 556 00:26:39,679 --> 00:26:41,840 pattern in this case we're looking for 557 00:26:41,840 --> 00:26:43,279 um anything that says provisioner and 558 00:26:43,279 --> 00:26:44,840 then any provisioner we're going to fail 559 00:26:44,840 --> 00:26:47,159 on we're going to look inside terraform 560 00:26:47,159 --> 00:26:49,039 files and if you run this in your 561 00:26:49,039 --> 00:26:50,880 pipeline this should fail if it finds 562 00:26:50,880 --> 00:26:52,559 terraform running you uh using 563 00:26:52,559 --> 00:26:54,279 provisioners so the nice thing about 564 00:26:54,279 --> 00:26:56,720 this is terraform is very pretty simple 565 00:26:56,720 --> 00:26:57,960 language is not a huge amount of 566 00:26:57,960 --> 00:27:00,919 complexity to it um and so you can write 567 00:27:00,919 --> 00:27:03,240 some GP rules to prevent a lot of these 568 00:27:03,240 --> 00:27:06,640 things you can also use send polies I'm 569 00:27:06,640 --> 00:27:08,120 going to get there you're like five 570 00:27:08,120 --> 00:27:10,479 slides 571 00:27:10,720 --> 00:27:13,559 ahead so terraform is also a great way 572 00:27:13,559 --> 00:27:16,039 to gather data about an environment so 573 00:27:16,039 --> 00:27:17,799 if if terraform even if it doesn't have 574 00:27:17,799 --> 00:27:19,200 right access to everything if it has 575 00:27:19,200 --> 00:27:20,919 read access to it you can do a lot of 576 00:27:20,919 --> 00:27:24,039 damage that way too and there's also um 577 00:27:24,039 --> 00:27:25,559 some interesting techniques you can do 578 00:27:25,559 --> 00:27:28,399 that are technically data methods but um 579 00:27:28,399 --> 00:27:32,039 aren't really so in terraform there's 580 00:27:32,039 --> 00:27:34,440 resources and then there are data 581 00:27:34,440 --> 00:27:36,399 resources so resources would be like 582 00:27:36,399 --> 00:27:39,559 your ec2 a data resource is you know it 583 00:27:39,559 --> 00:27:41,840 could be static data like an IM policy 584 00:27:41,840 --> 00:27:44,000 that you want to create it can be an SSM 585 00:27:44,000 --> 00:27:45,200 parameter that you're calling out and 586 00:27:45,200 --> 00:27:47,519 getting the value of um there's also a 587 00:27:47,519 --> 00:27:50,360 couple other interesting data again in 588 00:27:50,360 --> 00:27:52,960 quotes data methods that they have built 589 00:27:52,960 --> 00:27:55,880 in that you can use to um kind of abuse 590 00:27:55,880 --> 00:27:58,440 the environment so the h HTTP data 591 00:27:58,440 --> 00:28:01,360 method is actually just a data call that 592 00:28:01,360 --> 00:28:04,000 does an HTTP GI it's very basic it 593 00:28:04,000 --> 00:28:06,240 doesn't do post it doesn't do headers 594 00:28:06,240 --> 00:28:07,600 all those kinds of things they might 595 00:28:07,600 --> 00:28:09,440 enhance it at some point but for now 596 00:28:09,440 --> 00:28:11,679 it's very very basic which is good uh 597 00:28:11,679 --> 00:28:13,640 but the bad thing is that if you don't 598 00:28:13,640 --> 00:28:16,919 have imds V2 turned on for your metadata 599 00:28:16,919 --> 00:28:19,360 service um you can use this to basically 600 00:28:19,360 --> 00:28:21,640 hit that metadata service get your SCS 601 00:28:21,640 --> 00:28:23,640 credentials again dump those out to your 602 00:28:23,640 --> 00:28:26,559 log files and use that pivot um and this 603 00:28:26,559 --> 00:28:28,279 is just again a built method that's in 604 00:28:28,279 --> 00:28:30,279 terraform you don't have to do anything 605 00:28:30,279 --> 00:28:34,640 fancy so kind of demo you can see run a 606 00:28:34,640 --> 00:28:36,519 terraform plan and it's important to 607 00:28:36,519 --> 00:28:39,159 know this runs at plan time not at apply 608 00:28:39,159 --> 00:28:41,399 time and you can see it dumps out those 609 00:28:41,399 --> 00:28:44,039 SCS 610 00:28:44,640 --> 00:28:46,760 credentials so again the solutions for 611 00:28:46,760 --> 00:28:49,200 these things are super simple um a 612 00:28:49,200 --> 00:28:51,240 simple s graph rule takes 5 minutes to 613 00:28:51,240 --> 00:28:53,519 write to prevent this kind of stuff so 614 00:28:53,519 --> 00:28:55,640 it doesn't have to be complex to to make 615 00:28:55,640 --> 00:28:56,399 this 616 00:28:56,399 --> 00:28:59,399 work 617 00:29:00,039 --> 00:29:03,440 there's some other techniques as well um 618 00:29:03,440 --> 00:29:06,000 so external data again it's called Data 619 00:29:06,000 --> 00:29:08,399 it's a data resource but it's actually a 620 00:29:08,399 --> 00:29:12,960 way to to run code um so you can Define 621 00:29:12,960 --> 00:29:14,919 bash scripts you can find Python scripts 622 00:29:14,919 --> 00:29:16,679 you can do quite a few different things 623 00:29:16,679 --> 00:29:18,360 with external data uh it's another 624 00:29:18,360 --> 00:29:20,320 built-in method but in this case what 625 00:29:20,320 --> 00:29:22,880 we're doing is uh running a python 626 00:29:22,880 --> 00:29:26,600 script named XL data very descriptive um 627 00:29:26,600 --> 00:29:27,960 and so what we can do 628 00:29:27,960 --> 00:29:31,080 is call a data resource which is a 629 00:29:31,080 --> 00:29:33,919 Secrets manager secret and then 630 00:29:33,919 --> 00:29:35,880 basically pipe that into the python and 631 00:29:35,880 --> 00:29:38,559 use that to XEL so again even if you 632 00:29:38,559 --> 00:29:40,399 block local exec if you block remote 633 00:29:40,399 --> 00:29:42,640 exec you have another way to basically 634 00:29:42,640 --> 00:29:46,760 run code in your terone pipeline um and 635 00:29:46,760 --> 00:29:48,559 again you know some people say well our 636 00:29:48,559 --> 00:29:50,480 developers have very wide access and 637 00:29:50,480 --> 00:29:52,240 this might not apply to the the 30 638 00:29:52,240 --> 00:29:53,600 person startup that has no security 639 00:29:53,600 --> 00:29:55,399 controls but if you're a bank if you're 640 00:29:55,399 --> 00:29:57,840 well regulated and you don't allow your 641 00:29:57,840 --> 00:30:00,080 developers to run code um this is one 642 00:30:00,080 --> 00:30:01,320 way to bypass that that you have to 643 00:30:01,320 --> 00:30:02,480 think 644 00:30:02,480 --> 00:30:05,559 about yeah the python has to be loaded 645 00:30:05,559 --> 00:30:07,919 on the terraform host yeah but you can 646 00:30:07,919 --> 00:30:09,640 just put it as part of your terraform 647 00:30:09,640 --> 00:30:11,720 code okay by the same same token you can 648 00:30:11,720 --> 00:30:13,000 do something malicious with it you can 649 00:30:13,000 --> 00:30:15,120 also do something security positive with 650 00:30:15,120 --> 00:30:18,320 it right yep you good okay but then 651 00:30:18,320 --> 00:30:20,720 you're introducing python into your 652 00:30:20,720 --> 00:30:23,399 terraform environment so we try to avoid 653 00:30:23,399 --> 00:30:26,679 that so those are the security controls 654 00:30:26,679 --> 00:30:29,039 we've showed so so far very basic srep 655 00:30:29,039 --> 00:30:31,600 is is you know it's a it's a great tool 656 00:30:31,600 --> 00:30:35,360 but it's very basic um it's not a full 657 00:30:35,360 --> 00:30:37,000 uh would say it's a full SAS tool even 658 00:30:37,000 --> 00:30:38,480 though it's getting more and more uh 659 00:30:38,480 --> 00:30:40,440 fully featured so if you want to do more 660 00:30:40,440 --> 00:30:42,600 if you want to do more logical work um 661 00:30:42,600 --> 00:30:44,159 there's a few different tools you can 662 00:30:44,159 --> 00:30:46,799 use so someone mentioned Hashi for they 663 00:30:46,799 --> 00:30:49,039 have their own tool called Sentinel um 664 00:30:49,039 --> 00:30:50,720 it is a paid tool that's part of the 665 00:30:50,720 --> 00:30:52,480 cloud and Enterprise instance so you 666 00:30:52,480 --> 00:30:55,240 have to pay for a license for it um 667 00:30:55,240 --> 00:30:58,320 there's also Opa uh Rego are folks 668 00:30:58,320 --> 00:31:00,760 familiar with Opa open policy agent a 669 00:31:00,760 --> 00:31:03,960 little bit yeah um so Rego is the 670 00:31:03,960 --> 00:31:05,840 language that's basically created to do 671 00:31:05,840 --> 00:31:08,480 a lot of similar things as uh hash Corp 672 00:31:08,480 --> 00:31:09,880 it's meant for validation it's not just 673 00:31:09,880 --> 00:31:11,519 meant for terraform but it can be used 674 00:31:11,519 --> 00:31:14,080 in a lot of different areas um but I'll 675 00:31:14,080 --> 00:31:15,600 talk about hash Corp Sentinel because 676 00:31:15,600 --> 00:31:17,600 they're paying me to no I'm just kidding 677 00:31:17,600 --> 00:31:18,679 I 678 00:31:18,679 --> 00:31:21,919 wish um so if you want to do something a 679 00:31:21,919 --> 00:31:23,399 little more complex than just a pattern 680 00:31:23,399 --> 00:31:26,559 matching uh you can write still pretty 681 00:31:26,559 --> 00:31:29,240 basic senel this is you know 16 lines of 682 00:31:29,240 --> 00:31:31,720 code with Whit space so it's not overly 683 00:31:31,720 --> 00:31:33,720 complex but if you wanted to do 684 00:31:33,720 --> 00:31:36,639 something like uh we're going to only 685 00:31:36,639 --> 00:31:39,080 allow certain ec2 types you write a 686 00:31:39,080 --> 00:31:40,799 simple rule like this that says all 687 00:31:40,799 --> 00:31:44,080 right Define a a list of allowed types 688 00:31:44,080 --> 00:31:46,720 um plan. find resources goes looks at 689 00:31:46,720 --> 00:31:49,200 your plan file looks for everything all 690 00:31:49,200 --> 00:31:52,159 the ec2 instances that are there does 691 00:31:52,159 --> 00:31:53,840 basically a comparison of that an 692 00:31:53,840 --> 00:31:55,880 instance type against your wild list and 693 00:31:55,880 --> 00:31:58,600 fails if not so so very basic example 694 00:31:58,600 --> 00:32:00,320 but you can extend this to do pretty 695 00:32:00,320 --> 00:32:02,360 much anything you can extend this to be 696 00:32:02,360 --> 00:32:05,880 Ami versions or um you know just about 697 00:32:05,880 --> 00:32:07,600 anything that you can reason over you 698 00:32:07,600 --> 00:32:12,039 can do uh in stal that's a basic example 699 00:32:12,039 --> 00:32:14,279 you can do um things like enforcing a 700 00:32:14,279 --> 00:32:16,559 role that you use so in this case we're 701 00:32:16,559 --> 00:32:18,360 enforcing a role that we want to be 702 00:32:18,360 --> 00:32:20,639 assumed um the provider is what assumes 703 00:32:20,639 --> 00:32:22,360 the role so you can look at what it's 704 00:32:22,360 --> 00:32:24,679 what role it's actually using and then 705 00:32:24,679 --> 00:32:26,880 look at your terap plan and config to 706 00:32:26,880 --> 00:32:29,320 say if it's allowed to assume that role 707 00:32:29,320 --> 00:32:30,880 so set noes if you want something a 708 00:32:30,880 --> 00:32:33,000 little more fully featured to do more 709 00:32:33,000 --> 00:32:35,159 logical um 710 00:32:35,159 --> 00:32:37,799 logical uh or like more code based rules 711 00:32:37,799 --> 00:32:41,159 around Asic cor or terraform you can use 712 00:32:41,159 --> 00:32:44,399 something like seol or or 713 00:32:44,399 --> 00:32:48,240 Opa so but what are I talked about this 714 00:32:48,240 --> 00:32:49,760 a little bit at the beginning but what 715 00:32:49,760 --> 00:32:51,760 are some ways you can avoid these tools 716 00:32:51,760 --> 00:32:55,159 so if you run a tool between the plan 717 00:32:55,159 --> 00:32:57,639 and apply uh So the plan is going to say 718 00:32:57,639 --> 00:32:59,039 what's going to be created the applies 719 00:32:59,039 --> 00:33:01,320 what actually goes out and creates it um 720 00:33:01,320 --> 00:33:04,360 there's a couple issues so one is all 721 00:33:04,360 --> 00:33:05,399 those things I talked about that are 722 00:33:05,399 --> 00:33:07,760 data calls those are all run at plan so 723 00:33:07,760 --> 00:33:10,240 if you want to go uh hit you know your 724 00:33:10,240 --> 00:33:12,559 SSM parameters or your secrets manager 725 00:33:12,559 --> 00:33:14,399 you can run a plan and that pulls that 726 00:33:14,399 --> 00:33:16,320 data in then so if you put your security 727 00:33:16,320 --> 00:33:18,480 controls after the plan but before the 728 00:33:18,480 --> 00:33:21,320 apply and you say okay well yeah people 729 00:33:21,320 --> 00:33:22,600 get a wrong plan but they can't actually 730 00:33:22,600 --> 00:33:24,840 go out and do uh do 731 00:33:24,840 --> 00:33:27,480 anything um the only problem with that 732 00:33:27,480 --> 00:33:28,559 is there's something called after 733 00:33:28,559 --> 00:33:30,200 unknowns so I talked about there's a 734 00:33:30,200 --> 00:33:32,600 dependency tree that terraform creates 735 00:33:32,600 --> 00:33:34,279 that basically says you know if this 736 00:33:34,279 --> 00:33:36,960 then that do this then this um but 737 00:33:36,960 --> 00:33:38,559 there's certain values that can't be 738 00:33:38,559 --> 00:33:41,279 known until they're created so ARS are a 739 00:33:41,279 --> 00:33:44,120 classic example um and so what happens 740 00:33:44,120 --> 00:33:45,679 is they become what's called after 741 00:33:45,679 --> 00:33:47,600 unknowns and so if you a plan file for 742 00:33:47,600 --> 00:33:50,039 any resource there's a block that says 743 00:33:50,039 --> 00:33:52,080 after unknown and if that value is true 744 00:33:52,080 --> 00:33:53,760 basically it's not in that plan it's not 745 00:33:53,760 --> 00:33:56,000 going to be a value that's in that plan 746 00:33:56,000 --> 00:33:57,639 um and so if if you have a rule that 747 00:33:57,639 --> 00:34:00,159 says Ami value must equal this but the 748 00:34:00,159 --> 00:34:02,320 Ami value is not in the plan bad example 749 00:34:02,320 --> 00:34:03,639 because it will always have to be but 750 00:34:03,639 --> 00:34:05,279 certain things wouldn't be you can 751 00:34:05,279 --> 00:34:07,399 basically bypass those checks and this 752 00:34:07,399 --> 00:34:08,960 is something that that came up in an 753 00:34:08,960 --> 00:34:10,520 actual project and we brought it to 754 00:34:10,520 --> 00:34:13,399 hashicorp again apologies uh and they 755 00:34:13,399 --> 00:34:14,480 didn't really have an answer to it 756 00:34:14,480 --> 00:34:15,918 because it wasn't it wasn't in their 757 00:34:15,918 --> 00:34:18,399 threat model for how people use senl or 758 00:34:18,399 --> 00:34:20,480 how to address this um so it's just kind 759 00:34:20,480 --> 00:34:23,040 of a gap in their in their tooling if 760 00:34:23,040 --> 00:34:27,639 you run things post plan pre-apply um so 761 00:34:27,639 --> 00:34:29,280 you have to have explicit checks for 762 00:34:29,280 --> 00:34:30,839 anything after unknown if you don't want 763 00:34:30,839 --> 00:34:33,440 to allow after unknowns which is a huge 764 00:34:33,440 --> 00:34:34,918 pain in the butt cuz every one of your 765 00:34:34,918 --> 00:34:36,800 rules now you have to say this value 766 00:34:36,800 --> 00:34:38,440 cannot be after Unknown by checking this 767 00:34:38,440 --> 00:34:41,359 block and saying um you know if it's 768 00:34:41,359 --> 00:34:44,918 true or false so if you have rules that 769 00:34:44,918 --> 00:34:46,320 are checking for a value and you can 770 00:34:46,320 --> 00:34:47,800 force something to be after unknown 771 00:34:47,800 --> 00:34:49,679 which is really simple if you add like a 772 00:34:49,679 --> 00:34:51,760 random ID random string that's computed 773 00:34:51,760 --> 00:34:54,239 at the apply time and you want to bypass 774 00:34:54,239 --> 00:34:56,480 that rule you just do that and then 775 00:34:56,480 --> 00:34:58,160 it'll be out unknown if you don't have 776 00:34:58,160 --> 00:35:00,040 an explicit check then you can just 777 00:35:00,040 --> 00:35:02,520 bypass 778 00:35:02,839 --> 00:35:05,800 that so talking about some solutions 779 00:35:05,800 --> 00:35:08,839 before hopefully we can do these 780 00:35:10,280 --> 00:35:13,920 Labs I wasn't getting 781 00:35:20,200 --> 00:35:22,680 anywhere so what are some solutions to 782 00:35:22,680 --> 00:35:24,680 these issues cuz I I say at the 783 00:35:24,680 --> 00:35:26,119 beginning I'm a big fan of terraform 784 00:35:26,119 --> 00:35:27,800 it's a great tool but then I crap on it 785 00:35:27,800 --> 00:35:30,000 for about an hour um but you just have 786 00:35:30,000 --> 00:35:31,839 to build your security tooling kind of 787 00:35:31,839 --> 00:35:34,599 around the the whole stack um it really 788 00:35:34,599 --> 00:35:36,400 is an entire stack that you have to 789 00:35:36,400 --> 00:35:38,000 think about when using these kind of 790 00:35:38,000 --> 00:35:40,520 tools and that's true for any cicd tool 791 00:35:40,520 --> 00:35:42,839 if it's an app cicd or it's 792 00:35:42,839 --> 00:35:44,880 infrastructure uh cloud formation has 793 00:35:44,880 --> 00:35:46,680 some of the same issues so you know 794 00:35:46,680 --> 00:35:47,960 you're not avoiding it using a different 795 00:35:47,960 --> 00:35:50,400 tool um you going have to build these 796 00:35:50,400 --> 00:35:52,240 things in layers so that you can make 797 00:35:52,240 --> 00:35:54,040 sure that you know you have checks of 798 00:35:54,040 --> 00:35:55,839 all the different areas that you need 799 00:35:55,839 --> 00:35:57,440 security 800 00:35:57,440 --> 00:35:59,560 um I think the big one obviously starts 801 00:35:59,560 --> 00:36:03,160 with IM IM if you give your if you don't 802 00:36:03,160 --> 00:36:05,040 have segmentation in your IM IM policies 803 00:36:05,040 --> 00:36:06,920 for your cicd that's probably the 804 00:36:06,920 --> 00:36:08,640 biggest mistake right there um if 805 00:36:08,640 --> 00:36:10,640 everyone has the same role for their 806 00:36:10,640 --> 00:36:14,000 terraform uh Pipeline and that can do 807 00:36:14,000 --> 00:36:15,319 pretty much anything in the environment 808 00:36:15,319 --> 00:36:16,800 that's the biggest mistake right there 809 00:36:16,800 --> 00:36:19,960 so you have to work really hard to um to 810 00:36:19,960 --> 00:36:22,119 kind of rein that in and give it the 811 00:36:22,119 --> 00:36:24,480 least amount of privileges as possible 812 00:36:24,480 --> 00:36:27,160 if you're not provisioning IM IM through 813 00:36:27,160 --> 00:36:29,160 your pipeline don't give it IM access 814 00:36:29,160 --> 00:36:31,000 obviously if you're not changing you 815 00:36:31,000 --> 00:36:33,359 know security groups do that make sure 816 00:36:33,359 --> 00:36:35,319 that uh you know you're not giving that 817 00:36:35,319 --> 00:36:38,400 access so yeah do you find that 818 00:36:38,400 --> 00:36:41,440 traditional IM am uh teams manage that 819 00:36:41,440 --> 00:36:44,440 or is it more the cloud team man it I've 820 00:36:44,440 --> 00:36:47,480 seen a mix of both um it's mostly been 821 00:36:47,480 --> 00:36:49,280 centralized teams and not like 822 00:36:49,280 --> 00:36:51,160 developers you can you can use something 823 00:36:51,160 --> 00:36:53,319 like sedel to allow people to create 824 00:36:53,319 --> 00:36:56,079 rules and policies but these tools 825 00:36:56,079 --> 00:36:58,240 aren't greated parsing Json to be honest 826 00:36:58,240 --> 00:37:00,240 like if you want to write I am you're 827 00:37:00,240 --> 00:37:02,079 going to be writing Json and then using 828 00:37:02,079 --> 00:37:04,800 a tool to parse Json and like you know 829 00:37:04,800 --> 00:37:06,720 go down a tree of Json to figure out 830 00:37:06,720 --> 00:37:07,960 what you're doing you can do some basic 831 00:37:07,960 --> 00:37:09,880 stuff with it but it's not it's not I 832 00:37:09,880 --> 00:37:12,359 would say it's the right tool for that 833 00:37:12,359 --> 00:37:14,880 so um and then the last thing you want 834 00:37:14,880 --> 00:37:15,880 to make sure that your monitoring 835 00:37:15,880 --> 00:37:19,520 changes for uh for these roles so if you 836 00:37:19,520 --> 00:37:22,119 see new Services popping up on your Tero 837 00:37:22,119 --> 00:37:23,480 rooll that you're not actually using or 838 00:37:23,480 --> 00:37:25,079 you didn't expect obviously something's 839 00:37:25,079 --> 00:37:29,160 happening either mistakenly or um or 840 00:37:29,160 --> 00:37:32,079 intentionally someone's doing something 841 00:37:32,079 --> 00:37:35,560 malicious so another thing to do before 842 00:37:35,560 --> 00:37:37,200 you start using terraform before you 843 00:37:37,200 --> 00:37:39,040 start onboarding services to it is 844 00:37:39,040 --> 00:37:40,680 thinking about the patterns of how you 845 00:37:40,680 --> 00:37:44,079 want to adopt uh adopt services so if 846 00:37:44,079 --> 00:37:45,400 you're going to use RDS how do you want 847 00:37:45,400 --> 00:37:46,800 to use RDS what does that look like 848 00:37:46,800 --> 00:37:49,000 where does that instance end up what 849 00:37:49,000 --> 00:37:51,240 subnet what Security Group um how are 850 00:37:51,240 --> 00:37:54,160 you doing IM IM and that leads into 851 00:37:54,160 --> 00:37:56,240 basically creating those guard rails in 852 00:37:56,240 --> 00:37:59,160 something acetal or sem grip or grip if 853 00:37:59,160 --> 00:38:00,920 you're you know crazy and just love 854 00:38:00,920 --> 00:38:03,079 rting grip doesn't matter what the tool 855 00:38:03,079 --> 00:38:05,599 is um that much but you want to have 856 00:38:05,599 --> 00:38:07,119 those those patterns that Define the 857 00:38:07,119 --> 00:38:08,880 guard rails and the guard rails become 858 00:38:08,880 --> 00:38:10,920 security controls and that's a really 859 00:38:10,920 --> 00:38:13,040 powerful way to build a more lockdown 860 00:38:13,040 --> 00:38:14,760 environment and that's what leads to 861 00:38:14,760 --> 00:38:17,480 having very few findings in your cspm uh 862 00:38:17,480 --> 00:38:19,440 if you use these 863 00:38:19,440 --> 00:38:21,920 tools yes are there any existing 864 00:38:21,920 --> 00:38:23,800 Frameworks for the guard rails that 865 00:38:23,800 --> 00:38:25,920 people can kind of look at us there's 866 00:38:25,920 --> 00:38:27,319 some there's some architecture 867 00:38:27,319 --> 00:38:29,560 Frameworks yeah I mean AWS has their own 868 00:38:29,560 --> 00:38:32,720 kind of opinion on things but it's very 869 00:38:32,720 --> 00:38:34,280 it's very contingent on your environment 870 00:38:34,280 --> 00:38:37,520 and how you all bu think 871 00:38:52,200 --> 00:38:57,079 so so the other thing you can do with um 872 00:38:57,079 --> 00:38:59,240 with these tools around terraform is 873 00:38:59,240 --> 00:39:00,960 building hardened services so what does 874 00:39:00,960 --> 00:39:03,800 that mean you know every resource you 875 00:39:03,800 --> 00:39:05,520 know sqs might have four security 876 00:39:05,520 --> 00:39:06,880 settings making sure it's encrypted 877 00:39:06,880 --> 00:39:09,000 making sure login is turned on uh making 878 00:39:09,000 --> 00:39:11,079 sure the access policy is locked down so 879 00:39:11,079 --> 00:39:13,280 it's not public uh but something like 880 00:39:13,280 --> 00:39:15,560 RDS in the in the implementations we've 881 00:39:15,560 --> 00:39:18,319 done RDS might have 50 rules setal rules 882 00:39:18,319 --> 00:39:21,160 or semra um eks is going to have you 883 00:39:21,160 --> 00:39:23,200 know 70 to 100 it's you know the more 884 00:39:23,200 --> 00:39:25,079 complex the service the more rules you 885 00:39:25,079 --> 00:39:27,119 have to build um so you build those 886 00:39:27,119 --> 00:39:28,560 patterns you say how we're going to use 887 00:39:28,560 --> 00:39:30,319 it then you harden the service to make 888 00:39:30,319 --> 00:39:32,240 sure you have that secure config then 889 00:39:32,240 --> 00:39:35,040 you use some tool um like hashy Corp 890 00:39:35,040 --> 00:39:38,040 atnel to basically secure it have things 891 00:39:38,040 --> 00:39:39,920 like logging and audit auditing have 892 00:39:39,920 --> 00:39:43,079 encryption uh 893 00:39:43,359 --> 00:39:45,359 Etc and then you do want to do code 894 00:39:45,359 --> 00:39:46,680 review I kind of talked about this with 895 00:39:46,680 --> 00:39:49,040 sem grip um but you do want to do code 896 00:39:49,040 --> 00:39:51,160 review again I think we struggle we 897 00:39:51,160 --> 00:39:54,000 can't do we can't be this person who 898 00:39:54,000 --> 00:39:55,800 does you know Hands-On code review on 899 00:39:55,800 --> 00:39:58,040 everything we have to rely on our tools 900 00:39:58,040 --> 00:39:59,520 um so you definitely want to have 901 00:39:59,520 --> 00:40:01,200 something in your citd pipeline 902 00:40:01,200 --> 00:40:03,800 monitoring your terraform looking for uh 903 00:40:03,800 --> 00:40:05,880 looking for some of these bad practices 904 00:40:05,880 --> 00:40:07,920 I think sunr is a great place to start 905 00:40:07,920 --> 00:40:11,359 um my opinion is any reasonably sized 906 00:40:11,359 --> 00:40:12,800 company is going to need their own 907 00:40:12,800 --> 00:40:14,240 security engineering team at some point 908 00:40:14,240 --> 00:40:16,160 to build this and customize it for their 909 00:40:16,160 --> 00:40:18,079 environment um because no outof the Box 910 00:40:18,079 --> 00:40:20,560 solution really despite what vendors may 911 00:40:20,560 --> 00:40:23,599 say um really works so you're going to 912 00:40:23,599 --> 00:40:25,280 eventually start tuning these rules 913 00:40:25,280 --> 00:40:26,920 making it customized for you 914 00:40:26,920 --> 00:40:28,400 um for how to do could review in an 915 00:40:28,400 --> 00:40:29,880 automated 916 00:40:29,880 --> 00:40:32,079 fashion and then monitoring again I kind 917 00:40:32,079 --> 00:40:33,280 of talked about this but you really want 918 00:40:33,280 --> 00:40:35,200 to watch what your terraform environment 919 00:40:35,200 --> 00:40:37,599 is doing if you start seeing you know 920 00:40:37,599 --> 00:40:39,200 the role that terraform uses deploying 921 00:40:39,200 --> 00:40:41,599 into a region that you don't expect or 922 00:40:41,599 --> 00:40:42,880 an account you don't 923 00:40:42,880 --> 00:40:45,400 expect that should so uh throw some 924 00:40:45,400 --> 00:40:46,760 flags up to say you know something's 925 00:40:46,760 --> 00:40:48,560 going wrong and it's it's acting out of 926 00:40:48,560 --> 00:40:52,599 the um the way we expect it to to act so 927 00:40:52,599 --> 00:40:54,560 monitor the roles it uses monitor you 928 00:40:54,560 --> 00:40:56,319 know the environment that that it 929 00:40:56,319 --> 00:40:59,240 touches all those kinds of 930 00:40:59,240 --> 00:41:01,920 things so conclusions trying to get 931 00:41:01,920 --> 00:41:05,800 these Labs working but in terms of the 932 00:41:05,800 --> 00:41:09,319 slides um you know again I I joke and I 933 00:41:09,319 --> 00:41:12,200 like to uh criticize hashy Corp because 934 00:41:12,200 --> 00:41:13,960 they definitely have their flaws but it 935 00:41:13,960 --> 00:41:15,960 is a great tool um I'm a big fan of it 936 00:41:15,960 --> 00:41:17,839 compared to other Solutions out there 937 00:41:17,839 --> 00:41:20,640 very easy to get started um it's a great 938 00:41:20,640 --> 00:41:22,560 thing to centralize on for your company 939 00:41:22,560 --> 00:41:24,800 to have a standardized way of deploying 940 00:41:24,800 --> 00:41:26,920 out your infrastructure as a security 941 00:41:26,920 --> 00:41:28,440 person you definitely need to learn 942 00:41:28,440 --> 00:41:30,319 terraform you need to learn how it works 943 00:41:30,319 --> 00:41:31,839 how you know as we kind of talked about 944 00:41:31,839 --> 00:41:34,119 what the model looks like um figure out 945 00:41:34,119 --> 00:41:35,359 a way to integrate your security 946 00:41:35,359 --> 00:41:37,800 controls into your pipelines as soon as 947 00:41:37,800 --> 00:41:39,520 possible you don't have to have hundreds 948 00:41:39,520 --> 00:41:41,240 of rules you can start with a very basic 949 00:41:41,240 --> 00:41:43,720 set to make sure you know RDS isn't 950 00:41:43,720 --> 00:41:46,160 public um control planes aren't public 951 00:41:46,160 --> 00:41:48,400 things like that um and you have to make 952 00:41:48,400 --> 00:41:49,960 sure you have your you know multiple 953 00:41:49,960 --> 00:41:51,920 layers of control in you're monitoring 954 00:41:51,920 --> 00:41:53,920 all 955 00:41:53,920 --> 00:41:56,400 that yes sir do you have book 956 00:41:56,400 --> 00:41:58,760 recommendations or class recommendations 957 00:41:58,760 --> 00:42:01,960 on how to get smart on it fast there's a 958 00:42:01,960 --> 00:42:03,960 ton of terraform books out there I mean 959 00:42:03,960 --> 00:42:05,800 any developer book on terraform is 960 00:42:05,800 --> 00:42:07,920 pretty good uh I think terraform 961 00:42:07,920 --> 00:42:10,200 security aspect specifically not really 962 00:42:10,200 --> 00:42:13,720 no that part no 963 00:42:15,079 --> 00:42:18,440 unfortunately yeah so well thank you 964 00:42:18,440 --> 00:42:19,960 sorry the labs aren't working yet but 965 00:42:19,960 --> 00:42:21,559 we'll hang around and try to get them 966 00:42:21,559 --> 00:42:24,119 working um if anyone gets it loaded up I 967 00:42:24,119 --> 00:42:25,400 can come over and help you kind of work 968 00:42:25,400 --> 00:42:26,680 through things 969 00:42:26,680 --> 00:42:28,680 uh if you want to talk you want to use 970 00:42:28,680 --> 00:42:31,240 my laptop and try to Dem yeah sure I do 971 00:42:31,240 --> 00:42:32,720 that but if anyone has any questions 972 00:42:32,720 --> 00:42:35,440 feel free to reach out um on X or 973 00:42:35,440 --> 00:42:38,640 Twitter M 615 U Mike atcloud 974 00:42:38,640 --> 00:42:41,200 partners.com if you want to hear me rant 975 00:42:41,200 --> 00:42:43,559 for more time I'm on a podcast called 976 00:42:43,559 --> 00:42:45,079 relating to De SEC Ops where we talk 977 00:42:45,079 --> 00:42:47,960 about a lot of this stuff um so open for 978 00:42:47,960 --> 00:42:49,280 any conversations and we'll try to get 979 00:42:49,280 --> 00:42:50,940 these demos and Labs working in a few 980 00:42:50,940 --> 00:42:54,130 [Music] 981 00:42:55,160 --> 00:42:58,160 minutes