-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1078 from PaloAltoNetworks/CWP-39605
[Compute CWP-39605]: Clarify denied listening ports for App-embedded
- Loading branch information
Showing
1,028 changed files
with
78,754 additions
and
201 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
84 changes: 84 additions & 0 deletions
84
...ference/alibaba-policies/alibaba-general-policies/alibaba-general-policies.adoc
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,84 @@ | ||
== Alibaba General Policies | ||
|
||
[width=85%] | ||
[cols="1,1,1"] | ||
|=== | ||
|Policy|Checkov Check ID| Severity | ||
|
||
|xref:ensure-alibaba-cloud-database-instance-is-not-public.adoc[Alibaba Cloud database instance accessible to public] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSIsPublic.py[CKV_ALI_9] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-disk-is-encrypted-with-customer-master-key.adoc[Alibaba Cloud Disk is not encrypted with Customer Master Key] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/DiskEncryptedWithCMK.py[CKV_ALI_8] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-disk-is-encrypted.adoc[Alibaba Cloud disk encryption is disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/DiskIsEncrypted.py[CKV_ALI_7] | ||
|MEDIUM | ||
|
||
|
||
|xref:ensure-alibaba-cloud-kms-key-rotation-is-enabled.adoc[Alibaba Cloud KMS Key Rotation is disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/KMSKeyRotationIsEnabled.py[CKV_ALI_27] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-mongodb-has-transparent-data-encryption-enabled.adoc[Alibaba Cloud MongoDB does not have transparent data encryption enabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/MongoDBTransparentDataEncryptionEnabled.py[CKV_ALI_44] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-oss-bucket-has-transfer-acceleration-disabled.adoc[Alibaba Cloud OSS bucket has transfer Acceleration disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/OSSBucketTransferAcceleration.py[CKV_ALI_11] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-oss-bucket-has-versioning-enabled.adoc[Alibaba Cloud OSS bucket has versioning disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/OSSBucketVersioning.py[CKV_ALI_10] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-oss-bucket-is-encrypted-with-customer-master-key.adoc[Alibaba Cloud OSS bucket is not encrypted with Customer Master Key] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/OSSBucketEncryptedWithCMK.py[CKV_ALI_6] | ||
|MEDIUM | ||
|
||
|
||
|xref:ensure-alibaba-cloud-oss-bucket-is-not-accessible-to-public.adoc[Alibaba Cloud OSS bucket accessible to public] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/OSSBucketPublic.py[CKV_ALI_1] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-rds-instance-has-log-disconnections-enabled-1.adoc[Alibaba Cloud RDS instance has log_disconnections disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSInstanceLogDisconnections.py[CKV_ALI_36] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-rds-instance-has-log-disconnections-enabled.adoc[Alibaba Cloud KMS Key is disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/KMSKeyIsEnabled.py[CKV_ALI_28] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-rds-instance-has-log-duration-enabled.adoc[Alibaba Cloud RDS instance does not have log_duration enabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSInstanceLogsEnabled.py[CKV_ALI_35] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-rds-instance-is-set-to-perform-auto-upgrades-for-minor-versions.adoc[Alibaba Cloud RDS instance is not set to perform auto upgrades for minor versions] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSInstanceAutoUpgrade.py[CKV_ALI_30] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-cloud-rds-log-audit-is-enabled.adoc[Alibaba Cloud RDS log audit is disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/LogAuditRDSEnabled.py[CKV_ALI_38] | ||
|LOW | ||
|
||
|
||
|xref:ensure-alibaba-rds-instance-has-log-connections-enabled.adoc[Alibaba RDS instance has log_connections disabled] | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSInstanceLogConnections.py[CKV_ALI_37] | ||
|LOW | ||
|
||
|
||
|=== | ||
|
63 changes: 63 additions & 0 deletions
63
...baba-general-policies/ensure-alibaba-cloud-database-instance-is-not-public.adoc
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,63 @@ | ||
== Alibaba Cloud database instance accessible to public | ||
|
||
|
||
=== Policy Details | ||
[width=45%] | ||
[cols="1,1"] | ||
|=== | ||
|Prisma Cloud Policy ID | ||
| 22d28a0c-a979-4a99-8614-919dcc393ae4 | ||
|
||
|Checkov Check ID | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/RDSIsPublic.py[CKV_ALI_9] | ||
|
||
|Severity | ||
|LOW | ||
|
||
|Subtype | ||
|Build | ||
|
||
|Frameworks | ||
|Terraform | ||
|
||
|=== | ||
|
||
|
||
|
||
=== Description | ||
|
||
|
||
Public database instances are vulnerable, as attackers can use a variety of techniques to gain unauthorized access to public databases, such as SQL injection attacks, brute-force attacks, or exploiting misconfigurations or vulnerabilities in the database software. To prevent this risk, make the database instance private by restricting access to only authorized users. | ||
|
||
=== Fix - Buildtime | ||
|
||
|
||
*Terraform* | ||
|
||
|
||
|
||
|
||
[source,go] | ||
---- | ||
{ | ||
"resource "alicloud_db_instance" "pass" { | ||
engine = "MySQL" | ||
engine_version = "5.6" | ||
db_instance_class = "rds.mysql.t1.small" | ||
db_instance_storage = "10" | ||
security_ips = [ | ||
"10.23.12.24" | ||
] | ||
parameters = [{ | ||
name = "innodb_large_prefix" | ||
value = "ON" | ||
}, { | ||
name = "connect_timeout" | ||
value = "50" | ||
}] | ||
} | ||
", | ||
} | ||
---- |
56 changes: 56 additions & 0 deletions
56
...l-policies/ensure-alibaba-cloud-disk-is-encrypted-with-customer-master-key.adoc
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,56 @@ | ||
== Alibaba Cloud Disk is not encrypted with Customer Master Key | ||
|
||
|
||
=== Policy Details | ||
[width=45%] | ||
[cols="1,1"] | ||
|=== | ||
|Prisma Cloud Policy ID | ||
| db67af3f-47dd-49ca-9a96-ce12924d9d89 | ||
|
||
|Checkov Check ID | ||
| https://github.com/bridgecrewio/checkov/tree/master/checkov/terraform/checks/resource/alicloud/DiskEncryptedWithCMK.py[CKV_ALI_8] | ||
|
||
|Severity | ||
|LOW | ||
|
||
|Subtype | ||
|Build | ||
|
||
|Frameworks | ||
|Terraform | ||
|
||
|=== | ||
|
||
|
||
|
||
=== Description | ||
|
||
Encrypting your disk with a CMK helps protect your data from unauthorized access or tampering. | ||
By encrypting your bucket, you can ensure that only authorized users with the correct key can access and decrypt the data, and that the data is protected while in storage. | ||
|
||
=== Fix - Buildtime | ||
|
||
|
||
*Terraform* | ||
|
||
|
||
|
||
|
||
[source,go] | ||
---- | ||
{ | ||
"resource "alicloud_disk" "pass" { | ||
# cn-beijing | ||
description = "Hello ecs disk." | ||
category = "cloud_efficiency" | ||
size = "30" | ||
encrypted = true | ||
kms_key_id = "2a6767f0-a16c-1234-5678-13bf*****" | ||
tags = { | ||
Name = "TerraformTest" | ||
} | ||
}", | ||
} | ||
---- |
Oops, something went wrong.