forked from Checkmarx/kics
-
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.
Unifiying queries names categories, and severities & fixing typos (Ch…
- Loading branch information
1 parent
4e4ca36
commit 07b528d
Showing
154 changed files
with
370 additions
and
370 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
..._volume_encrytpion_disabled/metadata.json → ..._volume_encryption_disabled/metadata.json
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,9 +1,9 @@ | ||
{ | ||
"id": "4b6012e7-7176-46e4-8108-e441785eae57", | ||
"queryName": "EBS Volume Encryption Disabled", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"category": "Encryption", | ||
"descriptionText": "EBS Encryption should be enabled", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/amazon/aws/ec2_vol_module.html#parameter-encrypted", | ||
"platform": "Ansible" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
...sabled/test/positive_expected_result.json → ...sabled/test/positive_expected_result.json
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,22 +1,22 @@ | ||
[ | ||
{ | ||
"queryName": "EBS Volume Encryption Disabled", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 5 | ||
}, | ||
{ | ||
"queryName": "EBS Volume Encryption Disabled", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 12 | ||
}, | ||
{ | ||
"queryName": "EBS Volume Encryption Disabled", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 19 | ||
}, | ||
{ | ||
"queryName": "EBS Volume Encryption Disabled", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 24 | ||
} | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"id": "bd77554e-f138-40c5-91b2-2a09f878608e", | ||
"queryName": "EFS Without KMS", | ||
"severity": "HIGH", | ||
"category": "Secret Management", | ||
"descriptionText": "Elastic File System (EFS) must have KMS Key ID", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/community/aws/efs_module.html#parameter-kms_key_id", | ||
"platform": "Ansible" | ||
"id": "bd77554e-f138-40c5-91b2-2a09f878608e", | ||
"queryName": "EFS Without KMS", | ||
"severity": "HIGH", | ||
"category": "Encryption", | ||
"descriptionText": "Elastic File System (EFS) must have KMS Key ID", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/community/aws/efs_module.html#parameter-kms_key_id", | ||
"platform": "Ansible" | ||
} |
4 changes: 2 additions & 2 deletions
4
assets/queries/ansible/aws/iam_policies_with_full_privileges/metadata.json
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,9 +1,9 @@ | ||
{ | ||
"id": "e401d614-8026-4f4b-9af9-75d1197461ba", | ||
"queryName": "IAM Policies With Full Privileges", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"category": "Access Control", | ||
"descriptionText": "IAM policies that allow full administrative privileges (for all resources)", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/community/aws/iam_managed_policy_module.html", | ||
"platform": "Ansible" | ||
} | ||
} |
4 changes: 2 additions & 2 deletions
4
.../queries/ansible/aws/iam_policies_with_full_privileges/test/positive_expected_result.json
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,7 +1,7 @@ | ||
[ | ||
{ | ||
"queryName": "IAM Policies With Full Privileges", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"line": 8 | ||
} | ||
] | ||
] |
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
7 changes: 0 additions & 7 deletions
7
...le/aws/s3_bucket_acl_allows_read_or_write_to_all_users/test/positive_expected_result.json
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
..._read_or_write_to_all_users/metadata.json → ..._action_from_all_principals/metadata.json
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
...s/s3_bucket_allows_writeacp_action_from_all_principals/test/positive_expected_result.json
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,7 @@ | ||
[ | ||
{ | ||
"queryName": "S3 Bucket Allows WriteACP Action From All Principals", | ||
"severity": "HIGH", | ||
"line": 8 | ||
} | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
assets/queries/ansible/aws/s3_bucket_without_versioning/metadata.json
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,9 +1,9 @@ | ||
{ | ||
"id": "9232306a-f839-40aa-b3ef-b352001da9a5", | ||
"queryName": "S3 Bucket Without Versioning", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"category": "Observability", | ||
"descriptionText": "S3 bucket without versioning", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/amazon/aws/s3_bucket_module.html#parameter-versioning", | ||
"platform": "Ansible" | ||
} | ||
} |
6 changes: 3 additions & 3 deletions
6
assets/queries/ansible/aws/s3_bucket_without_versioning/test/positive_expected_result.json
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,12 +1,12 @@ | ||
[ | ||
{ | ||
"queryName": "S3 Bucket Without Versioning", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 3 | ||
}, | ||
{ | ||
"queryName": "S3 Bucket Without Versioning", | ||
"severity": "HIGH", | ||
"severity": "MEDIUM", | ||
"line": 15 | ||
} | ||
] | ||
] |
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
9 changes: 0 additions & 9 deletions
9
assets/queries/ansible/azure/blob_container_with_public_access/metadata.json
This file was deleted.
Oops, something went wrong.
12 changes: 0 additions & 12 deletions
12
...ueries/ansible/azure/blob_container_with_public_access/test/positive_expected_result.json
This file was deleted.
Oops, something went wrong.
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
9 changes: 0 additions & 9 deletions
9
assets/queries/ansible/azure/log_disconnections_is_not_set/metadata.json
This file was deleted.
Oops, something went wrong.
32 changes: 0 additions & 32 deletions
32
...ts/queries/ansible/azure/log_disconnections_is_not_set/test/positive_expected_result.json
This file was deleted.
Oops, something went wrong.
9 changes: 9 additions & 0 deletions
9
assets/queries/ansible/azure/postgresql_log_disconnections_not_set/metadata.json
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,9 @@ | ||
{ | ||
"id": "054d07b5-941b-4c28-8eef-18989dc62323", | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"category": "Observability", | ||
"descriptionText": "Make sure that for PostgreSQL Database, server parameter 'log_disconnections' is set to 'ON'", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/azure/azcollection/azure_rm_postgresqlconfiguration_module.html", | ||
"platform": "Ansible" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
...es/ansible/azure/postgresql_log_disconnections_not_set/test/positive_expected_result.json
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,32 @@ | ||
[ | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 7 | ||
}, | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 13 | ||
}, | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 19 | ||
}, | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 25 | ||
}, | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 31 | ||
}, | ||
{ | ||
"queryName": "PostgreSQL Log Disconnections Not Set", | ||
"severity": "MEDIUM", | ||
"line": 37 | ||
} | ||
] |
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
9 changes: 9 additions & 0 deletions
9
assets/queries/ansible/azure/storage_container_is_publicly_accessible/metadata.json
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,9 @@ | ||
{ | ||
"id": "4d3817db-dd35-4de4-a80d-3867157e7f7f", | ||
"queryName": "Storage Container Is Publicly Accessible", | ||
"severity": "HIGH", | ||
"category": "Access Control", | ||
"descriptionText": "Anonymous, public read access to a container and its blobs are enabled in Azure Blob Storage", | ||
"descriptionUrl": "https://docs.ansible.com/ansible/latest/collections/azure/azcollection/azure_rm_storageblob_module.html#parameter-public_access", | ||
"platform": "Ansible" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
...ansible/azure/storage_container_is_publicly_accessible/test/positive_expected_result.json
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,12 @@ | ||
[ | ||
{ | ||
"queryName": "Storage Container Is Publicly Accessible", | ||
"severity": "HIGH", | ||
"line": 9 | ||
}, | ||
{ | ||
"queryName": "Storage Container Is Publicly Accessible", | ||
"severity": "HIGH", | ||
"line": 17 | ||
} | ||
] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
4 changes: 2 additions & 2 deletions
4
assets/queries/cloudFormation/redshift_publicly_accessible/metadata.json
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,9 +1,9 @@ | ||
{ | ||
"id": "bdf8dcb4-75df-4370-92c4-606e4ae6c4d3", | ||
"queryName": "Redshift Publicly Accessible", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"category": "Insecure Configurations", | ||
"descriptionText": "AWS Redshift Clusters must not be publicly accessible, which means the attribute 'PubliclyAccessible' must be set to false", | ||
"descriptionUrl": "https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-cluster.html", | ||
"platform": "CloudFormation" | ||
} | ||
} |
10 changes: 5 additions & 5 deletions
10
...ts/queries/cloudFormation/redshift_publicly_accessible/test/positive_expected_result.json
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,26 +1,26 @@ | ||
[ | ||
{ | ||
"queryName": "Redshift Publicly Accessible", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"line": 4, | ||
"fileName": "positive1.yaml" | ||
}, | ||
{ | ||
"queryName": "Redshift Publicly Accessible", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"line": 17, | ||
"fileName": "positive1.yaml" | ||
}, | ||
{ | ||
"queryName": "Redshift Publicly Accessible", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"line": 5, | ||
"fileName": "positive2.json" | ||
}, | ||
{ | ||
"queryName": "Redshift Publicly Accessible", | ||
"severity": "MEDIUM", | ||
"severity": "HIGH", | ||
"line": 30, | ||
"fileName": "positive2.json" | ||
} | ||
] | ||
] |
Oops, something went wrong.