Latest / Blue Security / Cloud Security - Defender for App Service and Defender for Databases
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 house for
- 0:19today's show, Andy JA and Adam Brewer.
- 0:21Welcome to this week's episode of the Blue Security Podcast.
- 0:24I'm Andy, your host. I'm Adam, your Co host.
- 0:27We're bringing you another episode in our cloud security
- 0:31series. And the reason for the series is
- 0:35really to bring awareness to what can be protected when
- 0:39you're using cloud services as well as developing hosting
- 0:42applications in the cloud. And it is around a lot of the
- 0:49CNAP capabilities within Azure and the Defender services from
- 0:53Microsoft, which a lot of them are actually unique to the
- 0:56platforms, things that other cloud service providers do not
- 1:01have. But the concepts can be applied
- 1:03to wherever you're hosting your applications or your
- 1:05infrastructure. So the goal is really to make
- 1:08sure that you're defending your cloud infrastructure as best as
- 1:12possible. And of course, Andy and I do
- 1:14both work for Microsoft in our security sales business.
- 1:17In the field. Microsoft does not have any
- 1:19editorial control over the show. We don't do the show during
- 1:22work. So as I've come to summarize it
- 1:26simply, we do this show on our own time and on our own dime.
- 1:29But certainly we we talk a lot about Microsoft because it's
- 1:31what we're most familiar with and we thought we can share that
- 1:34knowledge with the world. So, Andy, let's talk about
- 1:37Defender for App Service. Yeah.
- 1:38So Defender for App Service, a really easy and simple one to
- 1:44turn on. Again, with a lot of these
- 1:46Defender workload ones within Azure, part of the Defender for
- 1:50Cloud, there's just a toggle. It has to be tied to a
- 1:53subscription. And so if you are using Azure
- 1:58App Services Defender for App Services is really an easy one
- 2:03to just flip on and identify a lot of the attacks that are
- 2:07targeting your applications, the supported plans, pretty much
- 2:11anything within the App Service subscription.
- 2:14If you're using the free plan, basic Service plan, standard
- 2:17Service plan, the premium ones in the App Service environments,
- 2:20version 1 and 2, when you enable it, you immediately get some
- 2:24benefits. For example, you, you get the
- 2:27Fender for App service to assess your resources that are covered
- 2:30by Azure App Services plan and it generates security
- 2:34recommendations based on those findings.
- 2:37And you can use those recommendations to harden up
- 2:39your App service environment with a lot of the instructions
- 2:43that are along with the recommendations, it also helps
- 2:47you detect a multitude of different threats.
- 2:50For example, the VM instance in which your app service is
- 2:54running and its management interface, the requests and
- 2:57responses sent to and from your app Service apps, the underlying
- 3:02sandboxes and VMS, and then App service internal logs which are
- 3:06available thanks to the visibility that Azure has as a
- 3:09cloud provider. So really this is a simple one.
- 3:14If you're using Azure App Service, which is something that
- 3:18is unique to Microsoft, it's unique to Azure.
- 3:21If you're using that as a development platform, just go
- 3:24ahead and turn it on because you're going to get security
- 3:26recommendations on how to harden that environment as well as any
- 3:29threats to that service. That will show up in your
- 3:33Defender for Cloud Alert portal, which can be tied to if you're
- 3:38using a SIM. It can be exported to a SIM or
- 3:41Sentinel or the new unified SoC experience within the Microsoft
- 3:47Security Portal. Yeah.
- 3:50As always when we talk about these, some of the major
- 3:52benefits are you turn this on per workload, per subscription.
- 3:57And so for security teams, what I like about this is it gives
- 4:00you the confidence that as other teams are building services in
- 4:04Azure, you can know they are protected from birth.
- 4:08The moment a new resources spun up, a new app service instance,
- 4:11for example, is spun up. They don't even have to come to
- 4:14you and ask, hey, what should we do?
- 4:15Because it's just going to be protected the moment it's
- 4:18created. And then if it's configured in
- 4:21an insecure manner, you're going to get alerts in multiple
- 4:24places, helping you understand how to configure it in the
- 4:28proper manner. You get effectively security
- 4:30posture management for app service as part of enabling the
- 4:34service. It will help coach you on
- 4:35configuration that could be done in a more hardened way.
- 4:39And then of course, all the anomaly detection and alerting
- 4:42and visibility that you get from the service as well.
- 4:45So again, I think a no brainer to turn this on.
- 4:50And our previous show several weeks ago now talked about how
- 4:53organizations tend to get a little tunnel visioned and
- 4:56basically of this attitude that as long as I have endpoint
- 4:58protection on my endpoints, servers and clients, I'm
- 5:01protected. And that is overly simplifying
- 5:05the problem. You need defense in depth.
- 5:07This operates at a service level.
- 5:10It has a different level of disability without impacting any
- 5:15development. You don't need to write the
- 5:17application to be aware that this exists and there's no
- 5:19performance degradation from enabling it.
- 5:21So I always think enabling is a is a no brainer.
- 5:25And then the costs are you use, you get charged for what you
- 5:28use. So it's a consumption based
- 5:30model. You'll get bills as you use app
- 5:32service and as you defend app service on the more app services
- 5:36you have, the more you get charged.
- 5:38It's it's a very fair model because you don't pay until it's
- 5:41actively being consumed. So you don't have to buy a bunch
- 5:45of licenses upfront and sit on them for three months while you
- 5:48and your PM argue over a deployment plan, and then you
- 5:51have to wait for a change window to get it deployed.
- 5:53You don't pay till this gets turned on and which reduces that
- 5:56gap between buying licenses and using a license instead.
- 6:00There's no gap. You're not paying until you're
- 6:02using it. So I really like the deployment
- 6:04model, like the simplicity of deployment and like the
- 6:07assurance this gives security teams that as resources are
- 6:10deployed in cloud, they're protected, automatic.
- 6:12Another one that is an easy one to turn on and a little bit more
- 6:17along the lines of data is defending for databases.
- 6:22And this one is if you are using Azure SQL Databases or SQL
- 6:29Servers on machines or open source relation relational
- 6:34databases or Azure Cosmos DB. And so a lot of people use SQL
- 6:40databases. And so if you're using them even
- 6:43on Prem or hosted in Azure, or if in this case, this particular
- 6:48one will work on AWS databases and GCP databases because for
- 6:57SQL, we can actually onboard those to ARC.
- 7:01So Azure ARC is a way to on board on premise AWS, basically
- 7:07anything that's not hosted within Azure get visibility in
- 7:10Azure. And once you do that, in this
- 7:12case, you can turn on defender for databases for those ARC
- 7:16enabled resources as well as anything that's enabled on Azure
- 7:21with as part of your subscription if you're hosting
- 7:23those databases within Azure. So what do you get with it?
- 7:27Well, first and foremost, again, with a lot of these cloud
- 7:30security solutions, you get vulnerability assessment and
- 7:35posture management. So you're definitely going to
- 7:39get assessment scans of all of your SQL databases in your
- 7:42machines, their security state, and any details of those
- 7:45security findings. Things like permission
- 7:48configurations or feature configurations or database
- 7:51settings that might be insecure, you're going to get
- 7:55recommendations on those and how to mitigate and change those so
- 8:00that you're going to be in a more secure state.
- 8:03And then as part of this, it also you get some advanced
- 8:06threat protection. So you get a service that will
- 8:09continually monitor your SQL servers for threats like
- 8:14potential SQL injection attacks, brute force attacks, privilege
- 8:18abuse. You'll get alerts on anonymous
- 8:22database accessing query patterns or suspicious database
- 8:26activity. And this is one of the multiple
- 8:31vectors that attackers are using because you host your data
- 8:35within SQL databases, and SQL injection is still a very
- 8:42popular attack that can easily be executed by anyone.
- 8:48It's been around for a long time, and if you're susceptible
- 8:51to it, you know Defender for Database will help you detect
- 8:55those attacks and help you mitigate them.
- 8:57So this is a little different than a lot of the other
- 9:01defenders we've talked about with the native protection of
- 9:06cloud resources where it runs in kind of that substrate of the
- 9:10service. And the difference here is that
- 9:12there is defender for SQL Server on machines.
- 9:15That's really the key differentiator here.
- 9:18So yes, it does run in the background in that service
- 9:22substrate level for resources hosted on Azure.
- 9:25So Azure SQL Databases, Azure Cosmos DB, open source
- 9:29relational databases hosted on Azure, those can all be
- 9:33protected at that service level. And Andy talked about this, but
- 9:36I'll just reiterate the point. Let's say you are running in IAS
- 9:40and maybe not even in Azure, but on a third party cloud like AWS
- 9:45or GCP or still on premises, you have VMS that are running a SQL
- 9:50Server application. But in an IAS.
- 9:53It's not in a Paas sense like some of those other solutions.
- 9:56There's protection for them too. And it's that solution defender
- 10:00for SQL Server for machines on machines and all ties into the
- 10:04same service, all build through the same model.
- 10:06But again, it extends beyond the borders of Azure.
- 10:09So that is a unique differentiator here compared to
- 10:12some of the others where it, it's, it's basically flip a
- 10:14switch and it's just on, you may have to do some work there to
- 10:17get that deployed. Although if they're running
- 10:19again in Azure, then it is no effort required.
- 10:23It'll deploy automatically regardless of how you're
- 10:25protecting it. You get the same benefits.
- 10:27And Andy walked through them. But I, I want to reiterate a
- 10:30couple of points here #1 defense in depth.
- 10:33We talk about defense in depth all the time on the show, but I
- 10:36just got done saying, hey, with app service like don't just
- 10:39think your endpoint protection is going to protect you.
- 10:41That same story is true here. You should run endpoint
- 10:44protection on any IS that's also running a sequel database.
- 10:47However, it's not going to help you with things like sequel
- 10:50injection attacks or anomalous database activity or suspicious
- 10:55database activity. It's not going to flag that.
- 10:56That's not what it's there for and it's certainly not going to
- 11:00be give you recommendations on, hey, the way your tables are
- 11:04configured is, is sub optimal. You should make these changes to
- 11:08harden your environment. That's again, not what it's for.
- 11:12And if you're saying, well, I have a WAFF, I have a web
- 11:14application firewall and it's going to strip out any attempted
- 11:18sequel injection, that's great. But again, defence in depth
- 11:21sequel injection texts are some of the most insidious attacks
- 11:24that can happen to your organization.
- 11:26And do you want to have a single layer of defense or do you want
- 11:29multiple layers of defense? You should absolutely have a
- 11:32laugh and your laugh absolutely should try to block those
- 11:35attacks. But what if they get through?
- 11:37What if they're clever or novel or zero day?
- 11:40Don't you want a separate layer of protection that might also
- 11:43pick up and prevent those that's running at the service level at
- 11:47the past level? Yes, you do.
- 11:50I'll answer that question for you.
- 11:51You do. And that's what this does.
- 11:53So again, as you think through your security strategy, defense
- 11:57in depth, building those layered defense approaches, putting
- 12:01resource and workload specific protections in place, this gives
- 12:06that to you. And for everything that's run in
- 12:09Azure, again, turn it on at a subscription level and you have
- 12:12automatic protection. And then if you want to extend
- 12:15that same protection and get that single pane of glass for
- 12:18all of those databases, regardless of where they live,
- 12:21AW GC Onrem, then you can do that as well.
- 12:25O really 2 great solutions here to help rotect some of your
- 12:28cloud workloads. And again, encouraging security
- 12:31teams to think beyond endpoint protection because that alone is
- 12:34insufficient for these needs. And beyond things like WAFF and
- 12:38firewalls, when we build a true defense in depth, we, we
- 12:41protected every layer and we don't just assume that other
- 12:45layers are going to protect these layers.
- 12:47And that's where cloud native application protection platforms
- 12:50come in because they bring that protection bespoke to that
- 12:55workload and at that workload level.
- 12:57And that is something all organizations need to do.
- 13:01And most of these solutions are very modest in cost, very high
- 13:05value in terms of return on your investment, what you get for
- 13:08your money, and very, very easy to deploy.
- 13:12You don't need a project manager, you don't need a nine
- 13:14month project to deploy these. You go flip a switch in the UI
- 13:17and it turns on and it happens in the background and there's no
- 13:20impact to performance. No changes need to be made from
- 13:23an app dev perspective, it just works and that's really awesome
- 13:27as well. So these from a security team
- 13:29perspective, I, I run out of reasons not to do it other than
- 13:33cost. And again, in terms of return on
- 13:36your defense dollars, these are about some of the best dollars
- 13:39you can spend. So, so highly recommend taking a
- 13:42look at and enabling these services.
- 13:44And if you're not running in Azure and you're in other
- 13:46clouds, many of them have comparable technologies and you
- 13:50should look at those as well. Yeah.
- 13:51And as you were talking through that Adam, I was thinking about
- 13:55where I've encountered SQL databases because I typically do
- 13:59not develop applications so I don't really deal with them most
- 14:04of the time. However, I was thinking about
- 14:07two instances that are very common in organizations that use
- 14:12SQL databases #1 is Enter Connect.
- 14:15Enter Connect is the application that syncs your identities from
- 14:20on Prem to M365 in the cloud intra that uses SQL databases to
- 14:27store those that data. And by default when you install
- 14:31Entra connect SQL Server Express local DB which is like the light
- 14:37version of SQL is installed locally.
- 14:41But a lot of times in large organizations, that is not
- 14:44enough because SQL Server Express has a limit on how many
- 14:48objects can be synced with that. And so if you have more than
- 14:53100,000 objects, you'd actually need to spin up a full version
- 14:58of SQL. And so, you know, that requires
- 15:01configuration and everything that we're talking about here.
- 15:04And as far as the vulnerability assessments, I don't know if I'd
- 15:08go as far, you know, especially if you're using the SQL Server
- 15:11Express. I don't know if I would want to
- 15:14onboard it to ARC and onboard it to Defender for databases.
- 15:19But if I am using the full version of SQL, I think that
- 15:22would be something that I would do with some caveats.
- 15:25Obviously, there's some risk involved because your
- 15:27interconnect server is considered a Tier 0 resource.
- 15:32It's treated with the same security or should be as a
- 15:37domain controller. So, you know, I'll take that
- 15:40into a into consideration on what you onboard into the cloud
- 15:45and how you configure those permissions.
- 15:47But if it is the full database, I would like to have something
- 15:50monitoring that. Another very common application
- 15:55that uses SQL database is SCCM or now called Microsoft Endpoint
- 16:00Configuration Manager, and that also uses a full version of SQL
- 16:04Database which you have to stand up and configure.
- 16:07And often times the people who are managing it don't know about
- 16:12the underlying database. And it's been configured before
- 16:15and no one's really monitored since it's been up and running.
- 16:18And so it might have misconfigured permissions, user
- 16:21identities, and you're not really monitoring it for any
- 16:24type of malicious activity. And so that might be something
- 16:28from a security standpoint you might want to look at as well.
- 16:32I think I would be much more like in favor of onboarding an
- 16:35SCCM server, especially one that's that's on Prem to defend
- 16:40it for databases, onboarding that with ARC and seeing that in
- 16:43the cloud, then I would enter connect.
- 16:46But it also it just depends on your risk appetite at your
- 16:50company and how you want to treat it.
- 16:51But those are two very common services or applications that
- 16:55organizations probably have in their in their company and they
- 16:59both use SQL databases. All right, well, that is our
- 17:03show for this week. A short and quick one for you on
- 17:07these two cloud security components that you should think
- 17:10about. And hopefully that will help you
- 17:13shape how are you going to practice and and get into this
- 17:18defense in depth just beyond just endpoint security.
- 17:22Thanks for watching as always and listening.
- 17:26If you're on the audio podcast, our contact information will be
- 17:30in the show notes along with the notes that we used the links to
- 17:35the documentation for the services.
- 17:38If you have any questions or topics you want us to talk about
- 17:41in the future, please reach out and contact us.
- 17:45Thanks. We'll talk to you guys next
- 17:46week. Thank you for listening to the
- 17:48Blue Security Podcast. Please check out the show notes,
- 17:50catch up on episodes you may have missed, and subscribe so
- 17:53you don't miss any future episodes.
- 17:55Find Andy on Twitter at a Jaw Zero and Adam at AJ Brewer.
- 18:00See you at our next episode.