forked from bridgecrewio/checkov
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'bridgecrewio:main' into prdeshpande-main
- Loading branch information
Showing
27 changed files
with
2,839 additions
and
2,099 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
checkov/terraform/checks/graph_checks/azure/AzureMSSQLserverConfigPrivEndpt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metadata: | ||
id: "CKV2_AZURE_45" | ||
name: "Ensure Microsoft SQL server is configured with private endpoint" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
and: | ||
- cond_type: "filter" | ||
attribute: "resource_type" | ||
operator: "within" | ||
value: | ||
- "azurerm_mssql_server" | ||
|
||
- cond_type: "connection" | ||
resource_types: | ||
- "azurerm_mssql_server" | ||
connected_resource_types: | ||
- "azurerm_private_endpoint" | ||
operator: "exists" |
19 changes: 19 additions & 0 deletions
19
checkov/terraform/checks/graph_checks/azure/AzureMariaDBserverConfigPrivEndpt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metadata: | ||
id: "CKV2_AZURE_43" | ||
name: "Ensure Azure MariaDB server is configured with private endpoint" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
and: | ||
- cond_type: "filter" | ||
attribute: "resource_type" | ||
operator: "within" | ||
value: | ||
- "azurerm_mariadb_server" | ||
|
||
- cond_type: "connection" | ||
resource_types: | ||
- "azurerm_mariadb_server" | ||
connected_resource_types: | ||
- "azurerm_private_endpoint" | ||
operator: "exists" |
19 changes: 19 additions & 0 deletions
19
checkov/terraform/checks/graph_checks/azure/AzureMySQLserverConfigPrivEndpt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metadata: | ||
id: "CKV2_AZURE_44" | ||
name: "Ensure Azure MySQL server is configured with private endpoint" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
and: | ||
- cond_type: "filter" | ||
attribute: "resource_type" | ||
operator: "within" | ||
value: | ||
- "azurerm_mysql_server" | ||
|
||
- cond_type: "connection" | ||
resource_types: | ||
- "azurerm_mysql_server" | ||
connected_resource_types: | ||
- "azurerm_private_endpoint" | ||
operator: "exists" |
19 changes: 19 additions & 0 deletions
19
checkov/terraform/checks/graph_checks/azure/AzurePostgreSQLserverConfigPrivEndpt.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
metadata: | ||
id: "CKV2_AZURE_42" | ||
name: "Ensure Azure PostgreSQL server is configured with private endpoint" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
and: | ||
- cond_type: "filter" | ||
attribute: "resource_type" | ||
operator: "within" | ||
value: | ||
- "azurerm_postgresql_server" | ||
|
||
- cond_type: "connection" | ||
resource_types: | ||
- "azurerm_postgresql_server" | ||
connected_resource_types: | ||
- "azurerm_private_endpoint" | ||
operator: "exists" |
33 changes: 33 additions & 0 deletions
33
checkov/terraform/checks/graph_checks/azure/AzureSynapseWorkspaceVAisEnabled.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
metadata: | ||
id: "CKV2_AZURE_46" | ||
name: "Ensure that Azure Synapse Workspace vulnerability assessment is enabled" | ||
category: "GENERAL_SECURITY" | ||
definition: | ||
and: | ||
- resource_types: | ||
- azurerm_synapse_workspace_security_alert_policy | ||
connected_resource_types: | ||
- azurerm_synapse_workspace | ||
operator: exists | ||
cond_type: connection | ||
|
||
- resource_types: | ||
- azurerm_synapse_workspace_vulnerability_assessment | ||
connected_resource_types: | ||
- azurerm_synapse_workspace_security_alert_policy | ||
operator: exists | ||
cond_type: connection | ||
|
||
- cond_type: attribute | ||
resource_types: | ||
- azurerm_synapse_workspace_vulnerability_assessment | ||
attribute: 'recurring_scans.*.enabled' | ||
operator: equals | ||
value: true | ||
|
||
- cond_type: filter | ||
attribute: resource_type | ||
value: | ||
- azurerm_synapse_workspace_vulnerability_assessment | ||
operator: within | ||
|
18 changes: 18 additions & 0 deletions
18
checkov/terraform/checks/graph_checks/ibm/IBM_LoadBalancerforVPCisPrivate.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
metadata: | ||
id: "CKV2_IBM_1" | ||
name: "Ensure load balancer for VPC is private (disable public access)" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
and: | ||
|
||
- cond_type: "attribute" | ||
resource_types: "ibm_is_lb" | ||
attribute: "type" | ||
operator: "exists" | ||
|
||
- cond_type: "attribute" | ||
resource_types: "ibm_is_lb" | ||
attribute: "type" | ||
operator: "equals_ignore_case" | ||
value: "private" |
24 changes: 24 additions & 0 deletions
24
checkov/terraform/checks/graph_checks/ibm/IBM_VPCclassicAccessIsDisabled.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
metadata: | ||
id: "CKV2_IBM_2" | ||
name: "Ensure VPC classic access is disabled" | ||
category: "GENERAL_SECURITY" | ||
|
||
definition: | ||
or: | ||
- cond_type: "attribute" | ||
resource_types: "ibm_is_vpc" | ||
attribute: "classic_access" | ||
operator: "not_exists" | ||
|
||
- and: | ||
|
||
- cond_type: "attribute" | ||
resource_types: "ibm_is_vpc" | ||
attribute: "classic_access" | ||
operator: "exists" | ||
|
||
- cond_type: "attribute" | ||
resource_types: "ibm_is_vpc" | ||
attribute: "classic_access" | ||
operator: "equals_ignore_case" | ||
value: "false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = '3.0.37' | ||
version = '3.0.38' |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.