How to fix SQL vulnerabilities using baselines?

Najam ul Saqib 400 Reputation points
2024-02-05T14:36:28.5433333+00:00

I have many SQL vulnerabilities in my subscription but when I open them the remediation is very unclear and obscure. It says to add to baseline but I need to know where can I edit the security baseline and what needs to be added/removed from it for each particular issue. For example, "Database owners are as expected" gives two option, either to add all or remove all. User's image

What if I want to remove some or add some? I have read a lot on remediating these issues using baselines in Azure but couldn't get anything satisfactory. Remediation steps in Azure are very obscure as well unlike those in other recommendations that mentions proper steps.

Azure SQL Database
{count} votes

Accepted answer
  1. Timmy Malmgren 1,521 Reputation points
    2024-02-06T08:32:50.8766667+00:00

    Hello Najam

    Ill start with clarifying what these baseline are and what's their purpose with an example.
    Lets say we have created a new database, we have added 3 users with some roles in the database, we have configured some firewall rules on the resource firewall of the SQL.

    These will all be considered a vurnabillity since they are not part of your "baseline". What happens when you use the "add to baseline" is that Defender will save the current configuration (their are different baselines for firewall and user roles, but the idee is the same). Once this configuration is saved you will be compliant again with this in Defender.

    The purpose of this is to ensure you have control over these setting, if someone add a new user/new firewall rule (after you added your current configuration to baseline), this new configuration will no longer match your baseline and it will show you what rule is not in baseline. Now you can easily evaluate if the new rule is correct, and if it is just add it to baseline.

    Why it works like this is since Defender cant really know if a firewall rule or a User role is correctly configure, but it wants to you to be completely aware of these configurations and make a decision about them and also notify you when something is changed :)

    Hope this is helpful,

    Best Regards,

    Timmy Malmgren

    ---If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others to find what they are looking for faster!


0 additional answers

Sort by: Newest

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.