Pipeline: 3.1.11 Ensure that Microsoft Cloud Security Benchmark policies are not set to 'Disabled'
Description
The Microsoft Cloud Security Benchmark (or "MCSB") is an Azure Policy Initiative containing many security policies to evaluate resource configuration against best practice recommendations. If a policy in the MCSB is set with effect type Disabled
, it is not evaluated and may prevent administrators from being informed of valuable security recommendations.
A security policy defines the desired configuration of resources in your environment and helps ensure compliance with company or regulatory security requirements. The MCSB Policy Initiative a set of security recommendations based on best practices and is associated with every subscription by default. When a policy "Effect" is set to Audit
, policies in the MCSB ensure that Defender for Cloud evaluates relevant resources for supported recommendations. To ensure that policies within the MCSB are not being missed when the Policy Initiative is evaluated, none of the policies should have an Effect of Disabled
.
Remediation
From Azure Portal
Part A - List all disabled policies
- From Azure Home select the Portal Menu.
- Select
Microsoft Defender for Cloud
. - Under
Management
, selectEnvironment Settings
. - Select the appropriate Subscription.
- Click on
Security policies
in the left column. - Click on
Microsoft cloud security benchmark
. - Click
Add Filter
and selectEffect
. - Check the
Disabled
box to search for all disabled policies. - Click
Apply
.
Part B - Remediate Policy Effect
For each policy that remains in the list:
- Click the blue ellipses
...
to the right of the policy name. - Click
Manage effect and parameters
. - Under Policy effect, select the
Audit
radio button. - Click
Save
. - Click
Refresh
.
Repeat "Part B - Remediate Policy Effect" until no more policies are listed.
Default Value
By default, the MCSB policy initiative is associated to all subscriptions and most policies will have an effect of Audit
. Some policies will have a default effect of Disabled
.
Run the pipeline
To run this pipeline from your terminal:
flowpipe pipeline run azure_cis.pipeline.cis_v300_3_1_11
Use this pipeline
To call this pipeline from your pipeline, use a step:
step "pipeline" "step_name" { pipeline = azure_cis.pipeline.cis_v300_3_1_11 }
Params
Name | Type | Required | Description | Default |
---|---|---|---|---|
database | connection.steampipe | Yes | Database connection string. | connection.steampipe.default |
notifier | notifier | Yes | The name of the notifier to use for sending notification messages. | notifier.default |
notification_level | string | Yes | The verbosity level of notification messages to send. Valid options are 'verbose', 'info', 'error'. | info |
approvers | list(notifier) | Yes | List of notifiers to be used for obtaining action/approval decisions. | notifier.default |
Outputs
This pipeline has no outputs.