[00:00.000 --> 00:02.040] All right, thank you very much for coming to, [00:02.750 --> 00:04.660] taking your time to come and see us. [00:04.760 --> 00:06.440] Like he said, my name is Rod Soto [00:06.440 --> 00:08.360] and he's Jose Hernandez. [00:08.360 --> 00:10.320] And we're gonna talk about today, [00:10.320 --> 00:13.040] about some of the research that we've been doing [00:13.850 --> 00:19.170] about trying to achieve a unified cloud security posture. [00:20.440 --> 00:22.560] So let's get started. [00:22.800 --> 00:23.920] Who am I? [00:24.100 --> 00:27.740] I am a Principal Research Engineer at Splunk. [00:27.740 --> 00:30.780] I worked with this gentleman at Perlexic Technologies, [00:30.780 --> 00:32.480] which is now Akamai. [00:32.600 --> 00:35.300] I also worked at Caspita at one point. [00:35.520 --> 00:37.460] I co-founded Hack Miami [00:38.120 --> 00:41.000] and the Pacific Hackers Meetups and Conferences. [00:41.000 --> 00:42.980] You can find it at meetup.com. [00:42.980 --> 00:45.440] And I created a command and control and a quarter CDFs. [00:45.440 --> 00:47.560] I like to do a lot of CDFs. [00:47.560 --> 00:49.220] He is Jose Hernandez. [00:49.220 --> 00:52.900] He's my peer at the Splunk Research Team. [00:52.980 --> 00:55.340] Worked at Perlexic as well. [00:55.860 --> 00:59.820] And we do have a quite a bit of experience fighting DDoS. [01:00.800 --> 01:05.180] And one of the, I guess the adversaries we had to fight [01:05.180 --> 01:07.740] was Anonymous and LulzSec. [01:08.000 --> 01:12.020] So let's get started pretty quick. [01:12.020 --> 01:16.160] So one of the things that we try to address [01:16.160 --> 01:19.440] with this presentation is we obviously, [01:19.440 --> 01:23.380] in the industry, we can understand and we perceive [01:24.020 --> 01:27.020] that many enterprises, many corporations [01:27.020 --> 01:30.120] are basically struggling [01:30.740 --> 01:35.620] with achieving a unified cloud security posture. [01:35.620 --> 01:40.040] There's sort of a mix and a tense to sort of... [01:40.040 --> 01:42.360] There's a difference between perimeter security [01:42.360 --> 01:44.720] and the way we're gonna expose this. [01:44.720 --> 01:47.080] There's perimeter security, there's cloud security. [01:47.080 --> 01:49.700] So you just can, even though you can try, [01:49.700 --> 01:52.840] for example, Active Directory logs [01:52.840 --> 01:54.680] with maybe Stackdriver, [01:54.680 --> 01:57.280] that may not make a lot of sense. [01:57.280 --> 01:59.120] But we're gonna give you the tools [02:01.540 --> 02:04.100] that we actually use. [02:04.100 --> 02:06.220] The tool that we actually, that you're gonna see today [02:06.220 --> 02:09.800] is the Cloud Security Suite. [02:10.040 --> 02:13.440] We did some modifications to make it SIEM-friendly. [02:13.440 --> 02:15.480] And you're gonna see basically some examples [02:15.480 --> 02:18.760] of EOK and Splunk, of course. [02:18.760 --> 02:23.400] So the reason why we're looking at this [02:23.400 --> 02:26.920] is because the cloud has become prevalent. [02:26.920 --> 02:28.980] At times, there's a blurry line. [02:29.700 --> 02:32.920] The blurry line when it comes to liability, right? [02:32.920 --> 02:34.240] Because at the end of the day, [02:34.240 --> 02:36.560] the cloud provider has his limits [02:36.560 --> 02:39.540] and many times we're not aware of it. [02:39.540 --> 02:41.760] And I will touch on it. [02:42.060 --> 02:44.720] The cloud adoption is expanding. [02:45.580 --> 02:48.140] Cloud security is not an exact translation [02:48.140 --> 02:49.500] on inside the perimeter. [02:49.500 --> 02:50.980] You're gonna see that in a minute. [02:51.240 --> 02:54.120] Every provider has a set of technologies, [02:54.120 --> 02:55.680] features, security items. [02:56.340 --> 03:00.880] And even though there are several cloud security initiatives [03:00.880 --> 03:02.300] it's still an ongoing effort. [03:02.300 --> 03:05.000] So what you're gonna see today is an ongoing effort. [03:05.020 --> 03:06.960] Some of these categories that you're gonna see today [03:06.960 --> 03:10.620] may change in the future or may include another, [03:10.620 --> 03:14.180] but it's definitely what we agreed [03:14.180 --> 03:17.000] that was the most comprehensive one as of now. [03:17.000 --> 03:21.020] And of course we chose the CS security suite [03:21.020 --> 03:25.800] because basically helps you assess the three major vendors. [03:25.800 --> 03:27.100] Of course there's OpenStack [03:27.100 --> 03:31.580] and we're not gonna show anything about OpenStack [03:31.580 --> 03:34.720] but definitely we believe you could probably fit it [03:34.720 --> 03:36.940] in the categories that you're gonna see today. [03:38.280 --> 03:41.340] So this is just an example [03:41.340 --> 03:43.880] how prevalent the cloud is becoming. [03:45.720 --> 03:48.100] Like I said, the managing area, [03:48.100 --> 03:50.640] which is not really that imaginary [03:51.200 --> 03:54.020] when it comes for you and your responsibilities. [03:55.600 --> 03:58.640] Obviously the responsibilities change [03:58.640 --> 04:02.400] depending on the cloud service provider module. [04:02.400 --> 04:04.020] If it's a infrastructure as a service [04:04.020 --> 04:05.380] or it's a platform as a service [04:05.380 --> 04:07.340] or it's a software as a service. [04:07.340 --> 04:11.200] So as you can see, basically you go up to physical security [04:11.200 --> 04:14.120] and then once you get on application security [04:14.120 --> 04:16.900] and most, for example, of the type of services [04:16.900 --> 04:19.860] you are responsible for it, right? [04:22.880 --> 04:25.760] The imaginary line is not that imaginary. [04:25.760 --> 04:29.480] What you have, what you see here is basically AWS. [04:30.320 --> 04:32.860] They do actually come up front and tells you [04:32.860 --> 04:35.560] this is what you are responsible for. [04:36.300 --> 04:39.760] Sometimes what we, the challenge that we face here [04:39.760 --> 04:44.400] is that when you are presented with this number of services, [04:44.400 --> 04:47.680] challenges, putting together all these locks, [04:47.680 --> 04:50.880] I'll give you an example, GCP has over 200 or more [04:51.250 --> 04:55.660] that are counted roles for security. [04:55.660 --> 04:58.320] So when you're dealing with stuff [04:58.770 --> 05:01.240] that basically is incredibly challenging [05:01.240 --> 05:04.360] for a single operator to put together, [05:04.360 --> 05:07.600] what we had to use either a criteria that groups [05:08.200 --> 05:12.160] many of this single items and some sort of automation [05:12.160 --> 05:14.540] that will provide us a view [05:15.780 --> 05:17.640] when we're trying to assess security. [05:17.640 --> 05:18.720] And that's what we're gonna, [05:18.720 --> 05:20.080] that's what you're gonna see today. [05:20.080 --> 05:22.780] So here's the Azure, for example. [05:22.780 --> 05:25.400] So I try to show all the three providers. [05:26.220 --> 05:27.800] This is something that you, [05:27.800 --> 05:29.940] if you are using any of this providers, [05:29.940 --> 05:32.620] I suggest you that you really review [05:33.220 --> 05:35.780] and sort of establish an inventory [05:36.500 --> 05:39.260] and identification of what your line is, right? [05:39.260 --> 05:40.600] What is their responsibility? [05:40.600 --> 05:42.060] What's your responsibility? [05:42.200 --> 05:45.740] So obviously this is a part of reinforcing [05:45.740 --> 05:47.600] our point of view. [05:47.600 --> 05:51.100] We have this major cloud attacks from the Sony, [05:51.920 --> 05:56.960] the Fapanin, the CloudHopper, the Ashley Madison, [05:56.960 --> 06:00.020] just being said that there were suicides about it, [06:00.020 --> 06:05.240] Equifax, HBO, IB largely stolen, [06:05.240 --> 06:06.640] Marriott, Kubernetes. [06:06.860 --> 06:09.000] And of course we just had the recent one, [06:09.000 --> 06:14.240] which is Capital One, which was an inside, [06:14.240 --> 06:15.780] I wrote there, I wrote inside. [06:15.780 --> 06:19.100] So here's an example of what can happen. [06:19.420 --> 06:21.820] Then here's an example of some of the challenges [06:21.820 --> 06:25.620] that we are facing when we deal with cloud providers. [06:25.620 --> 06:29.560] At times, even though they, for example, [06:29.560 --> 06:32.580] certain vendors seem to be very secure, [06:32.580 --> 06:35.880] then we have a case like that rogue insider comes in [06:37.300 --> 06:40.480] and exposes all this information or steals this information. [06:40.480 --> 06:42.920] It's not known yet what, if that data was shared [06:42.920 --> 06:45.280] either in the dark web or if it was so. [06:47.340 --> 06:50.160] I use, when I started researching this, [06:50.160 --> 06:52.900] I look at the Cloud Security Alliance, [06:52.900 --> 06:54.840] where it's called the Three Shares 12, [06:55.640 --> 06:58.820] which is basically includes data breaches, [06:58.820 --> 07:01.960] insufficient identity, insecure interfaces, [07:01.960 --> 07:05.100] system vulnerabilities, account hijacking, [07:05.100 --> 07:07.280] malicious insiders, which is the sample [07:07.280 --> 07:08.960] we were just talking about, [07:08.960 --> 07:11.020] advanced persistence threat, which is nation state [07:11.020 --> 07:13.950] or highly organized crime, data loss, [07:14.740 --> 07:18.420] lack of due diligence, abuse of nefarious [07:19.070 --> 07:21.420] or use of cloud services, denial of service [07:21.990 --> 07:24.640] and shared technology vulnerabilities. [07:24.970 --> 07:27.920] This has to do usually with multi-tenancy. [07:27.920 --> 07:31.180] We actually saw that when we were working at the company [07:31.180 --> 07:33.760] that basically seized 30% of the internet, [07:34.140 --> 07:40.000] a very famous airline, they lost an airplane. [07:40.180 --> 07:42.160] Don Lemon said there was a black hole [07:42.160 --> 07:44.020] that took that airplane. [07:44.100 --> 07:46.540] Well, that brought a lot of resentment. [07:46.980 --> 07:47.720] So guess what? [07:47.720 --> 07:50.180] Somebody went and hacked that airline [07:50.760 --> 07:53.340] and the administrator had the same passwords [07:54.000 --> 07:55.720] and many other panels. [07:56.400 --> 07:59.300] So we were affected at that point. [07:59.300 --> 08:02.640] That's one attack vector of many people [08:02.640 --> 08:05.280] you don't realize that multi-tenancy [08:05.280 --> 08:08.960] and third party will affect you for sure. [08:11.000 --> 08:15.820] So here's some of the main targets of the cloud attacks. [08:15.900 --> 08:18.260] ATO, which is account takeover, [08:18.260 --> 08:20.360] key exfiltration, phishing. [08:20.360 --> 08:23.980] You can attack obviously a provider, AC, AWS, UCP. [08:23.980 --> 08:25.300] You can attack the admins [08:25.980 --> 08:29.640] because once you get admin access in any of these consoles [08:29.640 --> 08:31.540] it's pretty much you have a domain admin. [08:32.460 --> 08:34.860] You can use the cloud resources [08:34.860 --> 08:38.060] for things like crypto mining or DDoS for rent. [08:38.520 --> 08:41.080] Data, everybody's life, [08:41.080 --> 08:43.360] private work information is in the cloud. [08:43.360 --> 08:45.740] I mean, it's getting there pretty much. [08:45.860 --> 08:49.000] And we're still not counting what I will call the AI leaks [08:49.000 --> 08:51.120] which I'm sure that will come soon. [08:51.120 --> 08:53.840] We're already getting little drips of it. [08:53.840 --> 08:59.520] We have operators listening to Siri, Alexa. [08:59.580 --> 09:00.860] So we don't know yet. [09:00.860 --> 09:02.480] We don't know how this is stored. [09:02.480 --> 09:03.420] We know it's in the cloud, [09:03.960 --> 09:07.060] but I would caution that we need to be prepared [09:07.060 --> 09:07.880] for those type of leaks [09:07.880 --> 09:09.540] and they will probably be devastating. [09:10.000 --> 09:11.480] So be careful what you said at home [09:11.480 --> 09:13.520] if you have one of these devices. [09:14.280 --> 09:16.900] Third parties, like I said before, [09:16.900 --> 09:20.080] co-tenants, multi-tenancy, [09:20.080 --> 09:23.220] and attacks that affect the identity provider. [09:25.340 --> 09:32.740] So here's also a expansion of the attack surface, [09:32.740 --> 09:34.840] what I call the DevOps attack surface, [09:34.840 --> 09:37.820] the CI-CD pipeline, source code repository, [09:37.820 --> 09:43.520] Bitbucket, GitHub, SVN, S3 bucket, CI-CD platform. [09:43.520 --> 09:46.260] We know about Jenkins vulnerabilities, for example, [09:46.260 --> 09:50.460] CircleCI, TravisCI, container repositories. [09:50.500 --> 09:52.840] We've seen some of those recently, [09:52.840 --> 09:56.800] Docker, Vagrant, the provider, [09:56.800 --> 10:00.500] depending what the Kubernetes flavor, [10:00.500 --> 10:07.820] or OpenStack, and infrastructure as code. [10:07.820 --> 10:11.000] So basically vulnerabilities of abuse of exploitation [10:11.000 --> 10:14.040] or things such as Terraform, Ansible, [10:14.040 --> 10:15.760] Chef, or CloudFormation. [10:16.880 --> 10:20.080] So if we were to reduce this, right, [10:20.080 --> 10:22.360] in general view, this is pretty much [10:22.360 --> 10:25.620] how you will look at the attack surface segments. [10:25.620 --> 10:28.760] You have the internet, right, or the internet. [10:28.760 --> 10:33.320] You have some sort of a web service, API, HTTP service. [10:33.480 --> 10:35.380] Behind that, there's a compute backend [10:35.380 --> 10:37.680] that's usually distributed. [10:37.780 --> 10:41.400] Behind that, there's usually what I call a cloud LAN [10:41.400 --> 10:43.260] or a cloud WAN. [10:43.440 --> 10:47.200] And then it's usually in that backend, [10:47.200 --> 10:50.000] you're gonna have the big database engines. [10:50.000 --> 10:52.660] So you have SQL, NoSQL storage, [10:52.660 --> 10:55.100] blog, object, or file type of storage. [10:56.600 --> 11:00.980] So can we create a common criteria for cloud security? [11:00.980 --> 11:04.680] The answer is yes, and we're about to show that. [11:06.160 --> 11:09.860] These are the categories that we decided [11:09.860 --> 11:12.380] to settle for at this point. [11:12.380 --> 11:14.960] So basically there are six categories. [11:14.960 --> 11:21.520] Network, which is a standard access, VLAN, V1, VPN, [11:21.520 --> 11:23.040] and routing. [11:23.040 --> 11:27.440] Security, which obviously includes the CIA, [11:27.440 --> 11:30.080] confidentiality, integrity, availability. [11:30.080 --> 11:32.280] Although in the cloud, there's heavy emphasis [11:32.280 --> 11:36.020] in the AIM portion, encryption, and firewalls. [11:36.020 --> 11:37.440] Then you have compute. [11:37.440 --> 11:41.020] In compute, we had artifacts, such as virtual machines, [11:41.020 --> 11:43.660] containers, apps, microservices. [11:43.660 --> 11:46.840] Then we have databases, which can be SQL or NoSQL. [11:47.140 --> 11:49.440] The storage, which basically buckets [11:49.440 --> 11:52.120] and file type of storage, as I just commented. [11:52.120 --> 11:53.440] And then management. [11:53.440 --> 11:56.020] So it could be a Kubernetes flavor, [11:56.020 --> 11:58.220] logging setup, and management access. [11:59.540 --> 12:01.820] So here's some of the examples of things [12:01.820 --> 12:03.720] that we put together. [12:04.140 --> 12:06.600] For AWS, for example, in compute, [12:06.600 --> 12:10.080] you can see that we included EC2, Lambda, [12:10.080 --> 12:12.920] Elastic Beanstalk, ECS. [12:12.920 --> 12:15.520] In Azure, we put virtual machines, [12:15.520 --> 12:19.320] load balancers, app services, disks, Kubernetes. [12:19.320 --> 12:24.340] In GCP, we included instances, disks, snapshots, [12:24.340 --> 12:28.220] images, zones, Kubernetes. [12:28.220 --> 12:29.700] The reason why we put this is because [12:29.700 --> 12:31.140] we're about to show you the example, [12:31.140 --> 12:33.640] how it looks together with the checks, [12:33.640 --> 12:35.660] and then you can get very granular. [12:36.420 --> 12:39.680] So it will make sense in just a few seconds. [12:40.440 --> 12:43.400] So here's another example of management. [12:43.400 --> 12:47.020] The things that we were able to encompass, [12:47.020 --> 12:55.850] the three vendors, the storage, security. [12:57.280 --> 13:00.030] And again, this is an ongoing effort. [13:00.190 --> 13:03.050] Many of these vendors, they are adding stuff [13:03.050 --> 13:05.290] or they're changing it or they're eliminating it. [13:05.290 --> 13:10.480] So it's hard in the sense of, [13:10.480 --> 13:13.900] we can't say that this is written in stone. [13:13.920 --> 13:15.940] This is variable, this is ongoing. [13:15.940 --> 13:19.480] But as of now, it gives us that unified posture [13:19.480 --> 13:22.660] when we're looking at the three major vendors. [13:23.380 --> 13:26.020] Then we have the network part. [13:26.240 --> 13:28.480] I'm not sure if you want to take a picture of it. [13:28.520 --> 13:31.480] And then the databases. [13:34.180 --> 13:38.600] And then finally, we found a open source tool [13:38.600 --> 13:41.200] called Cloud Security Suite, [13:41.200 --> 13:44.480] which is a one-stop tool for auditing [13:45.250 --> 13:47.820] the security posture of these three vendors. [13:47.820 --> 13:49.980] The vendor checks are different. [13:50.560 --> 13:52.680] Different because of the service or difference, [13:52.680 --> 13:55.580] the infrastructure, the name of the services. [13:56.040 --> 13:58.520] Jose is gonna talk a little bit [13:58.520 --> 14:02.800] about how difficult it can be to normalize this data. [14:02.880 --> 14:04.740] Because basically, I'll give you an example. [14:04.740 --> 14:07.480] For example, GCP, yeah, the output is JSON, [14:07.480 --> 14:10.940] but the way they output the JSON, [14:10.940 --> 14:17.040] the AIM is not nearly equal to the nomenclature [14:17.040 --> 14:21.440] that Azure or AWS may have. [14:21.440 --> 14:24.940] So that presents a challenge for a security operator. [14:24.940 --> 14:26.120] That presents a challenge [14:26.120 --> 14:27.380] when we're trying to normalize the data. [14:27.380 --> 14:30.480] We were able to do that, and we're gonna show an example. [14:30.480 --> 14:34.640] We actually modify the code. [14:34.640 --> 14:40.600] We modify the code to make it SIEM-friendly, right? [14:40.940 --> 14:44.140] Well, with this, you are gonna be able to output [14:44.640 --> 14:49.560] and then pipe it to either an EOK or Splunk, right? [14:49.560 --> 14:50.920] You're about to see the examples [14:51.460 --> 14:53.180] how the categories look together [14:53.520 --> 14:56.600] and how you can deeply research and look at it [14:56.600 --> 14:58.820] from the operator's perspective. [14:59.080 --> 15:00.920] And then obviously, if you wanna go [15:00.920 --> 15:05.240] and dig deeper into this, [15:05.240 --> 15:06.260] obviously you had to do that [15:06.260 --> 15:09.220] in your analytics of preference, right? [15:09.220 --> 15:11.920] Obviously, we work for Splunk, [15:11.920 --> 15:14.500] so we did quite a bit of work in Splunk, [15:14.500 --> 15:15.940] but we also show you, [15:15.940 --> 15:19.460] actually show you even the configuration file on ELK, [15:19.460 --> 15:20.920] so you can do it too. [15:21.160 --> 15:27.440] So some of the things that I wanted to share about this, [15:27.440 --> 15:29.560] the original project was modified. [15:29.740 --> 15:31.040] Are you ready to jump? [15:31.040 --> 15:33.780] Okay, let me get you, Jose, now. [15:33.780 --> 15:33.900] Yeah. [15:33.900 --> 15:34.720] Yeah, Rod, thank you. [15:34.720 --> 15:37.900] Thank you for giving us that basis [15:37.900 --> 15:39.820] of why this is important for us. [15:39.820 --> 15:42.060] And again, just a quick re-summary cap here. [15:42.060 --> 15:45.000] We're trying to distill down all these checks [15:45.000 --> 15:48.080] that CsSuite, the tool, is doing into common categories [15:48.660 --> 15:50.960] and with the end goal of being able to audit [15:50.960 --> 15:54.700] in one common language all these cloud providers, right? [15:54.940 --> 15:58.200] And to dig deeper, a bit deeper, [15:58.200 --> 16:00.660] and I'm just gonna go back one slide if you don't mind, [16:00.660 --> 16:03.480] CsSuite today uses under the hood [16:03.980 --> 16:06.860] a set of tools that are actually cloud auditing tools. [16:06.860 --> 16:10.260] And each of them are kind of, for lack of a better, [16:10.260 --> 16:12.760] specific for what the audit that they're trying to do. [16:12.760 --> 16:17.880] For example, gScout, it's only a tool that audits GCP. [16:17.880 --> 16:20.480] Meanwhile, Scout2 is an AWS tool, [16:20.480 --> 16:23.440] Prowler only audits AWS, and so on and so forth. [16:23.460 --> 16:27.060] But what we really liked about CsSuite as a project [16:27.060 --> 16:28.940] was it brought all these tools together [16:28.940 --> 16:31.340] and generated one common report. [16:31.740 --> 16:33.280] The thing with CsSuite for us, [16:33.280 --> 16:37.060] and again, I'm just recanting this for a second, [16:37.060 --> 16:39.720] was CsSuite is built to generate a report, [16:39.720 --> 16:43.120] not necessarily a audit log for a SIEM [16:43.120 --> 16:44.840] or something similar like that. [16:44.840 --> 16:47.080] And so, again, going back to Rod's point, [16:47.080 --> 16:49.920] there's some modification that was made [16:49.920 --> 16:52.040] in order to support that function. [16:52.040 --> 16:54.840] But for the most part, CsSuite is really straightforward [16:54.840 --> 16:55.520] to get started with. [16:55.520 --> 16:58.500] You just need really read privileges or an API, [16:58.620 --> 17:00.860] a service API token in something like GCP or Azure [17:00.860 --> 17:03.780] in order to scan, for lack of a better word, [17:03.780 --> 17:04.860] your cloud provider. [17:05.300 --> 17:08.580] And again, the one thing to watch out for [17:08.580 --> 17:11.680] is your visibility into the scans may vary [17:11.680 --> 17:14.300] based on the rights you have on those keys, [17:14.300 --> 17:17.980] especially if your cloud deployment is segmented. [17:18.700 --> 17:20.220] You gotta account for that, right, [17:20.220 --> 17:21.800] when you're setting up your keys. [17:23.860 --> 17:28.000] So this is what CsSuite looks like when you run it, [17:28.000 --> 17:31.180] with a report, basically generates like a shaper report [17:31.180 --> 17:36.300] of like, and this is, I believe this one is for Azure. [17:36.300 --> 17:38.520] So it's giving you like the result sets [17:38.520 --> 17:41.680] for like security center, what things failed [17:41.680 --> 17:44.740] for like the storage accounts, logins, so on and so forth. [17:44.740 --> 17:47.380] And you get this, you also get this [17:47.380 --> 17:48.500] for things like Azure, right? [17:48.500 --> 17:50.360] So this is, for example, sorry, for GCP, [17:50.360 --> 17:52.060] this is the GCP benchmarks, right? [17:52.060 --> 17:54.860] So like, did you leave a network open mistakenly [17:54.860 --> 17:57.160] or maybe it wasn't mistaken, but it'll still report, [17:57.160 --> 17:59.560] you know, hey, you have like all traffic coming [17:59.560 --> 18:01.660] into this specific instance. [18:01.660 --> 18:03.980] Do you really want this publicly open or not, right? [18:04.860 --> 18:07.360] There's another example for AWS, right? [18:07.360 --> 18:10.720] Again, they're all individually different reports, [18:10.720 --> 18:13.720] but they're looking at all the checks [18:13.720 --> 18:15.340] for that specific cloud provider. [18:15.440 --> 18:18.920] Now, before I jump into what the data looks like, [18:18.920 --> 18:22.280] I really wanna walk everyone through some of the challenges [18:22.280 --> 18:25.680] into getting this set up on your own. [18:25.680 --> 18:28.280] And again, just to highlight potential like gotchas [18:28.280 --> 18:30.160] and hopefully you can get through them really fast [18:30.160 --> 18:32.100] and especially after this talk. [18:32.100 --> 18:33.240] So like one thing to watch out for [18:33.240 --> 18:36.180] is logging in any cloud provider costs money. [18:36.180 --> 18:36.900] Watch out for that. [18:36.900 --> 18:38.920] Like just make sure you get a budget calculator [18:38.920 --> 18:40.120] before you start turning everything on [18:40.120 --> 18:42.340] because your bill's gonna rank up really fast. [18:42.600 --> 18:44.440] And it requires time for setup. [18:44.600 --> 18:46.120] And what I mean by time for setup, [18:46.120 --> 18:47.980] for example, in GCP, it's not just a matter of like, [18:47.980 --> 18:50.080] you know, I click a button and I'm logging everything. [18:52.660 --> 18:55.340] But, you know, you need to walk through configuration [18:55.340 --> 18:59.040] and there, you know, you need to have a platform [18:59.040 --> 19:01.200] that can, in that cloud provider, [19:01.200 --> 19:03.000] you need to have the inner workings to index [19:03.000 --> 19:05.200] and stream the data into some sort of SIM, right? [19:05.200 --> 19:06.380] So something to account for [19:06.380 --> 19:08.320] that's not native in cloud providers. [19:08.540 --> 19:10.820] So you need an architecture for streaming and storage [19:12.360 --> 19:14.440] and some analysis framework, right? [19:14.440 --> 19:16.460] In this case, we're using Splunk and Elk as examples, [19:16.460 --> 19:18.520] but you're also gonna need some sort of analysis framework [19:18.520 --> 19:20.840] to analyze the logs coming out of those cloud providers. [19:21.420 --> 19:23.300] Good saving grace here is most providers [19:23.300 --> 19:24.780] are using JSON as output. [19:24.780 --> 19:28.680] The bad thing about that is to Rod's point earlier, [19:28.680 --> 19:29.740] they're not normalized. [19:29.740 --> 19:32.780] So we had to normalize a lot of that coming in. [19:33.020 --> 19:35.340] If you were tomorrow training on logging [19:35.340 --> 19:36.240] for a cloud provider, [19:36.240 --> 19:38.480] this is roughly what the architecture would look like. [19:38.480 --> 19:39.800] You have your service, [19:39.800 --> 19:42.100] you have your individual cloud providers, [19:42.100 --> 19:44.020] you have the services inside that provider, [19:44.020 --> 19:46.520] and most likely you're gonna use a message bus. [19:46.520 --> 19:47.460] And this is best practice, right? [19:47.460 --> 19:50.440] What I mean by message bus is in AWS world is SQS [19:51.180 --> 19:53.320] and GCP world is PubSub. [19:53.320 --> 19:55.880] In Azure, they have this whole own logging thing [19:55.880 --> 19:57.820] called Azure log integration. [19:58.000 --> 20:00.980] And optionally you may or may not want to... [20:00.980 --> 20:03.240] So each of the services are generating their own logs [20:03.240 --> 20:05.300] into a message bus, [20:05.300 --> 20:07.460] and then you may or may not store that [20:07.460 --> 20:10.060] into a storage bucket for retention. [20:10.060 --> 20:11.100] And again, may or may not, [20:11.100 --> 20:12.860] it depends on a lot of things like costs [20:12.860 --> 20:15.960] or whether you need it to store it or not. [20:16.060 --> 20:17.540] And then you're gonna have some sort of agent [20:17.540 --> 20:19.840] pick that up from either the storage bucket [20:19.840 --> 20:21.460] or the actual message bus itself [20:21.460 --> 20:24.760] and send it to your actual like indexing system, [20:24.760 --> 20:26.100] like your analysis engine. [20:26.220 --> 20:28.720] And CSV sits somewhere in the same place [20:28.720 --> 20:30.620] where like the agent was set to pull stuff off. [20:30.620 --> 20:31.880] But instead of pulling data out, [20:31.880 --> 20:34.460] it's scanning for like what's incorrect [20:34.460 --> 20:35.580] in that cloud provider, [20:35.580 --> 20:38.860] what's not really up to par security wise. [20:40.420 --> 20:43.040] Again, big values of like integrating popular sense [20:43.040 --> 20:44.760] is, you know, you get knowledge objects out of it, right? [20:44.760 --> 20:47.120] So you get like fields extracted out of it. [20:47.120 --> 20:50.040] You can do a proactive alerting when a check fails [20:50.580 --> 20:52.180] or a bunch of checks fails. [20:53.340 --> 20:55.440] You can do automation around, like, for example, [20:55.440 --> 20:56.260] if something is failing, [20:56.260 --> 20:58.080] you can quarantine it immediately with some, [20:58.080 --> 20:59.640] they're like a phantom, for example, [20:59.640 --> 21:02.380] in the Spunk world, SOAR-based applications. [21:03.260 --> 21:04.980] Let's dig now into the reports. [21:05.280 --> 21:05.780] Elk. [21:06.220 --> 21:10.520] Elk is really, to get the events to work with, [21:10.520 --> 21:13.780] to bring CSV events into Elk, it's pretty straightforward. [21:13.880 --> 21:15.540] You just file, beat, config, [21:15.540 --> 21:17.680] and there's nothing real unique here in this file, [21:17.680 --> 21:19.620] beat, config, besides the fact that I'm telling you [21:19.620 --> 21:20.640] there's JSON, right? [21:20.640 --> 21:22.280] So JSON keys on the root. [21:23.560 --> 21:25.880] And here's what the data looks like. [21:26.020 --> 21:28.560] Again, pretty much you get a, [21:28.560 --> 21:30.960] you get different things like category fields [21:30.960 --> 21:33.880] that natively, for example, CSV doesn't give you, [21:33.880 --> 21:35.360] and the categories are broken down. [21:35.360 --> 21:36.880] Again, what Rod just explained, [21:36.880 --> 21:39.720] which is management, service, compute, [21:39.720 --> 21:41.100] storage, et cetera, et cetera. [21:41.200 --> 21:42.340] The name of the check. [21:42.340 --> 21:43.540] So in this case, in the picture, [21:43.540 --> 21:45.240] we're saying sure, log, metric, filter, [21:45.240 --> 21:47.360] and alarm exists for management console. [21:47.360 --> 21:48.020] Sign in, right? [21:48.020 --> 21:49.600] So like, are you logging? [21:49.780 --> 21:53.520] Do you have a filter for logging management logins? [21:53.800 --> 21:54.960] Oh, that's a tongue twister. [21:56.640 --> 21:58.400] And just an example. [21:58.560 --> 22:01.640] And clearly, because again, this is already all logged in. [22:01.860 --> 22:03.920] Right here, I'm showing you just a quick, [22:03.920 --> 22:08.080] really dirty graph of like all the checks that failed, [22:08.080 --> 22:09.760] or in this case, they set as warning [22:10.520 --> 22:12.240] for all the cloud providers for us, [22:12.240 --> 22:13.040] and then they broke in. [22:13.040 --> 22:14.520] It looks like most of it was management, [22:14.520 --> 22:16.020] and some of it was the security, [22:16.020 --> 22:17.020] on the security category. [22:18.300 --> 22:20.720] I wanna show you what Splunk looks like really quickly now. [22:20.720 --> 22:23.360] And again, it's the same data set. [22:23.360 --> 22:26.020] It's all JSON, or CSV outputs JSON, [22:26.020 --> 22:27.140] and we're just bringing it into one provider [22:27.140 --> 22:28.120] and the next, right? [22:28.920 --> 22:32.660] Again, you'll see here in the Splunk side of the house, [22:32.660 --> 22:35.360] the bit of more, I guess, [22:36.720 --> 22:38.220] knows of more complex searches, [22:38.220 --> 22:39.760] because I added things like, [22:39.760 --> 22:42.020] you know, you have like a service field, [22:42.020 --> 22:43.260] like who the service provider was, [22:43.260 --> 22:44.500] if you wanna break it down. [22:45.360 --> 22:47.960] Here's a good, like a view of like, [22:47.960 --> 22:50.540] what the different checks for Azure would look like, [22:50.540 --> 22:51.700] like that you'll get back, right? [22:51.700 --> 22:55.520] So like, like manual extensions, [22:55.520 --> 22:57.360] like a VM does not have, you know, [22:57.360 --> 22:59.900] the data disk encrypted, [22:59.900 --> 23:01.740] the retention policy is not set, [23:01.740 --> 23:03.080] so on and so forth. [23:03.320 --> 23:06.780] Here's a quick dashboard we threw together for Splunk, [23:06.780 --> 23:08.640] of like all the checks we were running across. [23:08.640 --> 23:10.220] We set up three different dev clouds [23:10.220 --> 23:12.320] made and purposely vulnerable, right? [23:12.320 --> 23:15.520] And then, so we've set a cron job to run CSV, [23:15.520 --> 23:17.680] put the logs and then index that to us. [23:17.680 --> 23:19.180] And then we built this dashboard with that. [23:19.180 --> 23:20.760] And again, just trying to give you a flair [23:20.760 --> 23:22.460] of what data you can get out of it, [23:22.460 --> 23:23.300] but things like, you know, [23:24.640 --> 23:26.400] roughly there's about a hundred and something [23:27.260 --> 23:29.160] individual checks for each cloud provider. [23:29.640 --> 23:31.840] And so you get to look at what checks are passing, [23:31.840 --> 23:32.600] which ones are failing. [23:32.600 --> 23:34.520] Clearly you want the red to be zero. [23:34.540 --> 23:36.260] At some point, if you had like a sock [23:36.260 --> 23:37.940] and you're working on a sock and you're working this down, [23:37.940 --> 23:39.760] each of these are essentially should be a ticket [23:39.760 --> 23:43.480] to either make a change or to remediate, right? [23:43.920 --> 23:45.920] You know, I'm breaking down my category, [23:45.920 --> 23:47.840] which provider is failing the most. [23:47.840 --> 23:48.920] In this case, Azure is, I think, [23:48.920 --> 23:50.820] our worst perpetrator in this case. [23:52.100 --> 23:55.780] And under this, you get a very, very good detailed table [23:55.780 --> 24:00.000] of like, you know, which category, what provider, [24:00.000 --> 24:02.100] what the specific check was. [24:03.620 --> 24:05.480] And basically the value in this case [24:05.480 --> 24:06.980] was what's actually failing. [24:06.980 --> 24:08.840] Like in this case, for example, [24:08.840 --> 24:10.140] the EC2 audit failed. [24:10.140 --> 24:11.380] List of service, which are not associated [24:11.380 --> 24:14.080] with IAM instance profile, blah, blah, blah, blah, blah. [24:14.080 --> 24:16.820] Right, and it's giving you all the instances [24:16.820 --> 24:18.220] that for us were not associated [24:18.220 --> 24:21.020] with the standard profile that we spun up, right? [24:22.080 --> 24:23.500] I'm gonna be completely transparent with you guys. [24:23.520 --> 24:24.780] The first time we ran this [24:24.780 --> 24:26.220] against our own development clouds, [24:26.220 --> 24:28.500] we found stuff that we didn't know we had left open. [24:28.580 --> 24:30.620] That was almost like a stamp of validation, [24:30.620 --> 24:31.980] like, yeah, this stuff kind of works. [24:34.080 --> 24:36.820] The beauty, and again, I think I couldn't speak highly [24:36.820 --> 24:38.720] enough, the beauty of CSC is the fact [24:38.720 --> 24:41.840] that it encompasses so many checks that... [24:42.660 --> 24:45.280] I'll give you another, again, another story. [24:45.280 --> 24:48.360] Like recently I spun up CloudSploit. [24:48.360 --> 24:50.980] If you never use it, it does something very similar to this. [24:51.020 --> 24:53.600] And I ran it against all of these same dev clouds [24:53.600 --> 24:55.580] and I got the exact same result checks [24:55.580 --> 24:58.920] that CloudSploit gives me almost by the name, right? [24:59.280 --> 25:00.460] It's very thorough. [25:00.460 --> 25:01.660] It's where I'm getting it, and it's free. [25:01.860 --> 25:04.900] And you can run it operationally 24 seven. [25:06.100 --> 25:09.240] Like I mentioned earlier, very like in Splunk or Elk, right? [25:09.240 --> 25:10.780] Elk, you can use Watcher. [25:10.780 --> 25:12.880] You can use just a save as an alert [25:12.880 --> 25:16.040] to invoke some sort of automation [25:16.040 --> 25:18.080] to either remediate that immediately [25:18.080 --> 25:20.020] or send an alert or create a ticket. [25:20.020 --> 25:22.160] So again, it's easy to take this [25:22.160 --> 25:25.260] and then put it into your SOC and operationalize it ideally. [25:27.860 --> 25:29.460] So that's all. [25:30.100 --> 25:31.180] Thank you. [25:31.220 --> 25:31.720] Thank you. [25:31.860 --> 25:32.340] Thank you. [25:32.640 --> 25:33.120] Thank you.