Latest / Blue Security / Cloud Security - Defender for Key Vault and Defender for API
Transcript
- 0:06Welcome to the Blue Security Podcast, a weekly podcast for
- 0:10information security defenders where we bring you discussions
- 0:13on best practices, tools, and implementation for enterprise
- 0:16security. Now here are your hosts for
- 0:19today's show, Andy JA and Adam Brewer.
- 0:22Welcome to this week's episode of the Blue Security Podcast.
- 0:25I'm Andy, your host. I'm Adam, your Co host.
- 0:27In there are Cloud security series, we are going to talk
- 0:33about Defender for Key Vault and API today.
- 0:38Before we get started, I wanted to touch base on what Azure Key
- 0:43Vault is because you can't really defend something if you
- 0:46don't know what it is or you're not using it.
- 0:48So Key Vault is a cloud service that's hosted in Azure to
- 0:54securely store and manage sensitive information like API
- 0:58keys, passwords, certificates, and other cryptographic keys.
- 1:03There's really three key features to Azure Key Vault,
- 1:06Secrets management, which allows you to store and control access
- 1:12to tokens, passwords, certificates, API keys, and
- 1:15other secrets. This allows you to centralized
- 1:18all of that information and those secrets so that you lower
- 1:22the risk of any type of accidental leaks and ensure that
- 1:25sensitive information is not stored directly in application
- 1:29code. A lot of this is not necessarily
- 1:33like a password vault. A lot of people think maybe I
- 1:37can use this as a password vault.
- 1:38It's not really for that. It's really for application
- 1:42development and to programmatically retrieve things
- 1:47from a vault, similar to like another solution out there that
- 1:50a lot of, I know a lot of programmers use like Hashicorp,
- 1:53something like that. This is Microsoft's native
- 1:57secrets management within Azure. So programmatically retrieve
- 2:01that code so it's not stored directly in the code itself.
- 2:05There's also key management. It simplifies the creation and
- 2:09control of encryption keys used to encrypt your data.
- 2:12It supports both software and hardware security module,
- 2:17protected keys and then finally certificates management.
- 2:20Azure Key Vault allows easy provisioning, management and
- 2:24deployment of public and private TLS and SSL certificates.
- 2:30So any type of task that involves these TLS and SSL
- 2:33search for enrollment or automatic renewal, Key Vault can
- 2:37handle that. One of the things that I have
- 2:40preached to customers is how they handle certificates for
- 2:45logging into Linux machines. A lot of times the old way to do
- 2:49it was just using a, a, you know, root password.
- 2:53That's really bad obviously, as well as if you're generating
- 2:57ATLS cert, sometimes you store the root certificate locally.
- 3:02That's OK if it's like a lab or you're testing, but for
- 3:05production systems, you definitely don't want your
- 3:07developers having that certificate locally on their
- 3:11machine. One, it's it's bad in general
- 3:14for security practices, but two, if they leave now, they've still
- 3:18have access to that and you have to rotate those certs and that
- 3:22can be a pain. And so storing those
- 3:24certificates within an R backed Cloud Service Key vault is a
- 3:30great way to keep that stuff secure.
- 3:32And we we use this in Microsoft. By the way, Andy and I both work
- 3:35for Microsoft in our field security sales.
- 3:38As we always say on the show, it is not sponsored or directed or
- 3:42funded by Microsoft. We do it on our own time and our
- 3:45own dime. But we we do use Azure Key Vault
- 3:48at Microsoft. In fact, we are using the
- 3:50hardware security modules to do some of our Entra key storage
- 3:56and rotation moving forward as well.
- 3:58So we certainly are quote UN quote, eating our own dog food
- 4:02in terms of leveraging this to secure Microsoft, to secure
- 4:06Azure and all of the underlying services as well.
- 4:09So it's something we definitely use and are investing in to make
- 4:13sure that it meets our needs and and should hopefully meet the
- 4:15needs of all our customers as well.
- 4:17And before we even get to Defender for Key Vault, this is
- 4:21of course a security solution in and of itself.
- 4:24Using Key Vault enhances your security posture.
- 4:26You should use it. You should not have secrets and
- 4:28code. You should be scanning for
- 4:30secrets and code. You should be encouraging your
- 4:32developers to use a centralized vaulting source for all your
- 4:35secrets, so on and so forth. So if you're not using 1 today,
- 4:40we think that's a pretty good one and one option of many.
- 4:43Andy mentioned a a competitor as well.
- 4:45Yeah, there are competitors out there.
- 4:48And so if you do end up using the key Vault solution, one of
- 4:53the differentiations between Microsoft and something else
- 4:58could possibly be the securing of the Key Vault.
- 5:01Most other third party tools, they secure things through the
- 5:05identity, which is important. You can secure it through MFA,
- 5:08you can secure it through other things.
- 5:09But with Microsoft, you have not only identity, but then also
- 5:13device management that's integrated so you can have
- 5:16compliant devices. And then we have this solution
- 5:19called Defender for Key Vault, which is very simple to deploy.
- 5:24It is literally a toggle switch. If you're using Key Vault,
- 5:28highly recommend you just turn it on.
- 5:30I actually don't know how much it costs, but I for most of
- 5:33these workload ones, it really depends on how many secrets and
- 5:37how many certificates and so on and so forth that you have in
- 5:39there and probably access to them and how often it's
- 5:42accessed. But usually they're fairly cost
- 5:45effective. And So what key Defender for Key
- 5:48Vault does is it's just Azure native advanced threat
- 5:51protection that's built in that gives you another layer of
- 5:54security intelligence. It will detect unusual and
- 5:58potentially harmful attempts to access or exploit Key Vault
- 6:02accounts. And so it's really about looking
- 6:06at who is accessing, where they're accessing it from, and
- 6:10when there is any type of analogous activities that are
- 6:14occurring. Defender for Key Vault will show
- 6:17you an alert and you can also have it send an e-mail to your
- 6:22admins or your SoC and it'll include the details of the
- 6:26suspicious activity and any type of recommendations on how to
- 6:29investigate it. So it's a fairly simple
- 6:32solution. If you're using Key Vault, I
- 6:34highly recommend that you just turn it on because it will show
- 6:37you any type of threats that are geared towards accessing those
- 6:42secrets, those those keys, and then any type of malicious
- 6:47activity that's attempting to use it as well.
- 6:51Right. Andy, you made all the high
- 6:53points here. I'll just hit a couple of the
- 6:55highlights. Ease of deployment is, is
- 6:58critical here. It's flip a switch and all key
- 7:02vaults in that subscription are now protected.
- 7:04You want to protect all your key vaults org wide and including
- 7:07new ones that are created even after you go through this
- 7:10effort. This is your easy button.
- 7:12The other thing is obviously Key Vault is a security solution in
- 7:15and of itself. Configuring it securely is of
- 7:18course required to get the full security benefit from it.
- 7:21However, secure configuration has a really hard time to
- 7:25account for things like anomalous activity, anomalous
- 7:28behavior, anything that's out of the normal behavioral baseline.
- 7:32And that really I would say is the number one take away from
- 7:34Defender for Key Vault. It's going to build a behavioral
- 7:37baseline for how your key vault is normally accessed and used
- 7:40and anything that is outside of that behavioral baseline.
- 7:43Think like UEBA, that's what it's doing.
- 7:46It's going to flag it and alert you to say this is unusual, this
- 7:49is too many requests. These are requests from unusual
- 7:52systems or circumstances or times of day, so on and so
- 7:57forth. And then the other benefit of
- 7:59our solution is that the alerts are going to be prioritized and
- 8:03they're going to be contextualized in a timeline
- 8:05with all the other alerts that are coming off.
- 8:07Instead of looking at an alert in a vacuum or in just a list
- 8:11that looks like the Matrix, it's going to be in a timeline
- 8:14correlated into an incident and presented with relevant context
- 8:18in, in the broader sense of the attack.
- 8:20Because an attacker is not hitting your key vault without
- 8:23having breached an identity or another system to gain that
- 8:27movement to hit the key vault. And so getting that context all
- 8:31in line, super valuable and super important to do an
- 8:34effective investigation. I, I will say one last note.
- 8:37I don't know what it costs either, but I will say my
- 8:40perception is it's not like expensive and expensive in the
- 8:44terms of where the costs are not commensurate with the benefit
- 8:48received. I believe it's very, to Andy's
- 8:50point, cost effective. I've never seen I've never
- 8:53looked at a customer and been like, Oh my gosh, you're
- 8:55spending so much on defender for key vault.
- 8:57That's crazy. Can say I've never had that
- 8:59experience. So I think it's mostly very
- 9:02effective and and certainly would be something we both
- 9:05recommend. And again, native protection
- 9:07always better because you don't have to do anything to take
- 9:09advantage of it. You flip a switch.
- 9:10It's. On in general, you know, kind of
- 9:13a little bit of inside baseball when it comes to how much it
- 9:16costs for the infrastructure versus the security to secure
- 9:20it. Most of the time the cost of the
- 9:23security portion of it is anywhere between 5:00 to maybe
- 9:27at most that I've ever seen, 30% of the cost of the
- 9:31infrastructure itself. So if you're using key Vault,
- 9:33let's say it cost $100, you know, usually the cost of the
- 9:37defender or the security portion is anywhere from 5:00 to maybe
- 9:4130 at most to secure that. So and that's like monthly.
- 9:45That's a generalization across the board, but from what I've
- 9:48seen looking at different customers, how much they spend
- 9:51non infrastructure versus how much they spend on the security,
- 9:54it's generally a a a minimal cost and that's what I would
- 9:57assume here without diving too deep into it.
- 10:00Right. Well, and that's an interesting
- 10:01transition to our next subject because I believe it is one of
- 10:04the few where where that ratio is inverted.
- 10:07You can obviously price it out for yourself as we get into
- 10:09Defender for API, but just as since we're already on the
- 10:12subject, I'll just say my understanding is Defender for
- 10:14API tends to cost more than API management.
- 10:17I will say the reason why is because it does a lot and API is
- 10:22a fast growing and significant threat vector.
- 10:27So it's important to protect it and that requires kind of a
- 10:31significant effort to do that. In fact, the the defense of AP
- 10:35is can be more involved in creating the AP is themselves,
- 10:39which let's unpack that now. Yeah.
- 10:40So if you are using Azure API management, it's usually pretty
- 10:45easy to create an API. And then I think because of how
- 10:49APIs are used, how many times they're called and you know
- 10:53where they're called from and different IP addresses that the
- 10:56defense can be difficult. And so we have again, a native
- 11:01solution that's built into Azure called Defender for API that'll
- 11:04help you gain some visibility into it.
- 11:07You can investigate and improve your API security posture, you
- 11:10know, prioritize vulnerability fixes and then react to any type
- 11:13of real time threats. The availability for this is
- 11:17something that you can tag on to any type of premium, standard,
- 11:22basic or development developer tiers of Azure API management.
- 11:27For API Gateways. It is only for Azure API
- 11:31management. It doesn't support any third
- 11:34party ones. Defender for API also doesn't
- 11:36support APIs that are exposed using API management, self
- 11:40hosted gateways or using other API management workspaces and
- 11:44the types of APIs. Currently it is for discovering
- 11:50and analyzing REST APIs within the Azure API management.
- 11:54What you can do with a Defender for API is number 1.
- 11:57You get an inventory, a single dashboard to get a single pane
- 12:01of glass if you will, of all of your managed AP is.
- 12:06You also get security findings including information about
- 12:09external unused or unauthenticated AP is so huge on
- 12:16visibility. And as I always say that the
- 12:18foundation of everything that we do first comes from visibility
- 12:22inventory. If you don't even know what you
- 12:24have, how are you able to defend it?
- 12:27And so you're able to look at all of these and then review any
- 12:31type of security recommendations as part of this to help you
- 12:34improve the security API posture and harden any at risk surfaces.
- 12:39One of the things that I think is just again, a huge
- 12:42differentiator for Microsoft is if you are going down that data
- 12:47security path and you start scoping and knowing where your
- 12:52sensitive information lives and you're doing that on the M365
- 12:57side and you have sensitive information types including
- 13:01custom ones and labels. This will flow over to the API
- 13:06portion of Azure. So you are able to classify APIs
- 13:12based on sensitive data and and prioritize any type of risk that
- 13:18that might pose. And so I think that's huge, the
- 13:23integration between the purview side into just if you know that
- 13:28there's sensitive information that's getting access or flowing
- 13:31through these APIs that you have insight and visibly into that.
- 13:36Yeah, I agree, huge benefit here.
- 13:39As we have learned from many years now, data security is hard
- 13:44and organizations struggle to prioritize it and get it done
- 13:47and get the buy in across the board you need to be successful
- 13:51with it. So helping that work, that time
- 13:54investment in standing that up, pay more dividends in more
- 13:58places helps justify it. When I go through that effort to
- 14:03build my classification taxonomy in Microsoft Purview and now
- 14:09I've configured sensitive information types that are
- 14:11unique to my business and other solutions can then leverage that
- 14:15and start surfacing those even APIs that may be responding with
- 14:20sensitive data. That's really a force multiplier
- 14:25where it's taking the work I've already done and helping me
- 14:27reuse it in more places without requiring more rework or
- 14:31rebuilding it. So that's really, really an
- 14:33incredible benefit. And then when you know what's
- 14:35sensitive, it can help with your risk prioritization where the
- 14:39alerts that come from these APIs that do respond with sensitive
- 14:43data are going to be prioritized in any investigation because
- 14:47again, they they could potentially leak the most
- 14:50sensitive data. So we want to take care of it
- 14:52first. So that's really beneficial in a
- 14:55lot of ways. It's beneficial from a getting
- 14:57more value from your time investment.
- 15:00It's beneficial from improving your prioritization when you
- 15:04respond. And ultimately it delivers a
- 15:07better security posture for your organization.
- 15:09So all wins just by integrating that, pretty significant.
- 15:15You also get threat detection as part of it, so you're able to
- 15:18monitor it for anomalies detection, you know, using
- 15:22machine learning and rule based analytics.
- 15:25It includes threats from the O Wasp API, top ten critical
- 15:30threats if you're using Defender cloud security posture
- 15:35management, CSPM. It'll integrate the cloud
- 15:39security graph into the defender for cloud security posture
- 15:42management for API visibility and risk assessment across your
- 15:45entire organization. And like we mentioned before,
- 15:48like it'll also look at just security recommendations in
- 15:51general to help you shore up your API security.
- 15:55And if you have a SIM, you can export these E alerts and events
- 16:00to your SIM as well. So there's SIM integration, but
- 16:03you know, as I was doing the show notes for this episode, I
- 16:08just went and looked to see what else was on the market for API
- 16:13security and there isn't a whole lot, you know.
- 16:17A lot of start-ups. A lot of start-ups.
- 16:20AWS is of course one of Microsoft's biggest competitors
- 16:24when it comes to cloud infrastructure and they don't
- 16:26have anything specific like this that's built in.
- 16:30They have API security that is, you know, it'll send you some
- 16:35things as part of their cloud trail, but nothing like a
- 16:38specific defense for it. So especially when it comes to,
- 16:42you know, the the data classification in the securing
- 16:45of sensitive information, I think there's not a whole lot of
- 16:49competition. So if you are using Azure API
- 16:54management, this is a no brainer just like any other workloads
- 16:58that are in Azure. When you want to defend it, it's
- 17:01a one click configuration. You just turn it on and it'll
- 17:06start sending you alerts and security recommendations for
- 17:09your AP is if you're not using Azure API management, you know,
- 17:13maybe that's something to think about transitioning because it
- 17:16is a better way to secure your AP is and have visibility on
- 17:20them in my opinion. But you know, if you're not, I
- 17:25hope that there is another way that you think about API
- 17:28security because it is a huge threat factor that we are seeing
- 17:32in the industry and it's something that attackers are
- 17:35taking advantage of. Yeah, and growing for sure.
- 17:38I'm kind of glad you chose these two defenders for this week's
- 17:42episode in our Cloud Security series because there's quite a
- 17:46bit of contrast between them. Defender for Key Vault
- 17:49relatively straightforward and does provide a benefit.
- 17:52We mentioned it's cost effective, but it's mostly doing
- 17:55again that kind of UEBA. So creating a behavioral
- 17:57baseline of what's normal behavior in Key Key Vault and
- 18:01then identifying anomalous behavior in Key Vault.
- 18:04But look at what all Defender for API is doing comparatively,
- 18:07building an inventory, giving you that holistic view of all
- 18:10your AP is delivering API security posture management,
- 18:15effectively giving you coaching on how to harden and secure AP
- 18:20is that might be accessible without authentication or might
- 18:23be externally facing tying in data classification, using that
- 18:26to enrich alerts and prioritization, then doing that
- 18:30threat protection with not just behavioral based anomaly
- 18:34detection, but also more risk based.
- 18:37Sorry, rule based, that's the word I was looking for rule
- 18:39based analytics as well. So, and mapping that to the OS
- 18:43top 10, which is always a, a great way to focus on what we're
- 18:47seeing right now. What are the top 10 threats
- 18:50today? I'm in making sure we have
- 18:52protection for those. And then integration across the
- 18:54stack, integration in Defender CSPM, integration in the Azure
- 18:58API management portal, which may not be a place for security
- 19:02folks live, but the folks who are standing up new AP is, who
- 19:06are working with AP is they live there.
- 19:09And so if the security recommendations are there and
- 19:13the alerts are there, that helps the folks who are working with
- 19:16it day-to-day also make better choices.
- 19:19It turns it from, oh, well, it's security's job to come in and
- 19:22secure this and clean it up to it's everyone's job.
- 19:25And that's really beneficial too.
- 19:26So there's a lot of meat on the bone here.
- 19:29And so you can understand my comments at the top, why the the
- 19:33cost for this compared to the the resources it's protecting
- 19:37may be slightly inverted in that Defender for APII believe
- 19:41actually can cost more on the API management.
- 19:44But you can see there's a lot of value here and a lot of risk
- 19:47inherent in the underlying system without bringing some
- 19:50additional security to it. So I'm certainly worth looking
- 19:54at as well. And Andy, Andy hit all the
- 19:57highlights again that it the ease of deployment, the
- 19:59confidence in knowing that future API's as they're deployed
- 20:02are automatically protected. That's always key as well.
- 20:05I love. That deployment model where I
- 20:07map it to a subscription and I know everything built in that
- 20:11subscription moving forward of that resource type is
- 20:13automatically protected and I don't have to do anything and
- 20:17nor do the developers have to do anything or anyone building
- 20:20those resources because this the protection is at a system level
- 20:25like it's built into the platform well.
- 20:27That was a great episode on how to secure secrets and keys and
- 20:34certificates as well as APIs. And so if you are following
- 20:37along with this cloud security series, we have several, you
- 20:41know, from VMS to storage and so on and so forth.
- 20:47So keep up on it. We'll have a few more to round
- 20:52it out to finish it out, but this was a great episode on more
- 20:57specific things. If you are doing application
- 21:00development, you're hosting infrastructure in the cloud.
- 21:04How to secure that? That's our episode for this
- 21:07week. Thanks for watching and
- 21:09listening. As always, our contact
- 21:11information will be in the show notes.
- 21:12If you have any questions or topics you want us to talk about
- 21:15in the future. Thanks.
- 21:16We'll talk to you guys next week.
- 21:18Thank you for listening to the Blue Security Podcast.
- 21:21Please check out the show notes, catch up on episodes you may
- 21:23have missed, and subscribe so you don't miss any future
- 21:26episodes. Find Andy on Twitter at a Jaw
- 21:29Zero and Adam at AJ Brewer. See you at our next episode.