cloudg 0.3.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. cloudg/__init__.py +21 -0
  2. cloudg/api.py +613 -0
  3. cloudg/cli.py +934 -0
  4. cloudg/collectors/__init__.py +5 -0
  5. cloudg/collectors/aws.py +830 -0
  6. cloudg/collectors/azure.py +362 -0
  7. cloudg/collectors/base.py +44 -0
  8. cloudg/collectors/gcp.py +170 -0
  9. cloudg/collectors/multi.py +329 -0
  10. cloudg/config.py +261 -0
  11. cloudg/coverage.py +93 -0
  12. cloudg/credentials.py +451 -0
  13. cloudg/graph/__init__.py +6 -0
  14. cloudg/graph/builder.py +336 -0
  15. cloudg/graph/ontology.py +914 -0
  16. cloudg/graph/rag_export.py +533 -0
  17. cloudg/graph/reachability.py +237 -0
  18. cloudg/normaliser.py +390 -0
  19. cloudg/policies/custodian-aws-security.yml +139 -0
  20. cloudg/policies/custodian-azure.yml +95 -0
  21. cloudg/policies/custodian-gcp.yml +87 -0
  22. cloudg/policies/custodian.yml +131 -0
  23. cloudg/region_discovery.py +330 -0
  24. cloudg/registry.py +142 -0
  25. cloudg/renderers/__init__.py +1 -0
  26. cloudg/renderers/html_report.py +430 -0
  27. cloudg/renderers/json_export.py +65 -0
  28. cloudg/renderers/svg.py +689 -0
  29. cloudg/renderers/terraform_export.py +666 -0
  30. cloudg/retry.py +103 -0
  31. cloudg/rules/cis_aws_v3.yaml +148 -0
  32. cloudg/rules/cis_azure_v2.yaml +142 -0
  33. cloudg/rules/cis_gcp_v3.yaml +133 -0
  34. cloudg/rules/frameworks/aws_foundational_security_best_practices_aws.yaml +1286 -0
  35. cloudg/rules/frameworks/cis_5.0_aws.yaml +280 -0
  36. cloudg/rules/frameworks/cis_5.0_azure.yaml +475 -0
  37. cloudg/rules/frameworks/cis_5.0_gcp.yaml +327 -0
  38. cloudg/rules/frameworks/gdpr_aws.yaml +95 -0
  39. cloudg/rules/frameworks/hipaa_aws.yaml +461 -0
  40. cloudg/rules/frameworks/hipaa_azure.yaml +504 -0
  41. cloudg/rules/frameworks/hipaa_gcp.yaml +211 -0
  42. cloudg/rules/frameworks/iso27001_2022_aws.yaml +789 -0
  43. cloudg/rules/frameworks/iso27001_2022_azure.yaml +477 -0
  44. cloudg/rules/frameworks/iso27001_2022_gcp.yaml +240 -0
  45. cloudg/rules/frameworks/mitre_attack_aws.yaml +596 -0
  46. cloudg/rules/frameworks/mitre_attack_azure.yaml +418 -0
  47. cloudg/rules/frameworks/mitre_attack_gcp.yaml +300 -0
  48. cloudg/rules/frameworks/nist_800_53_revision_5_aws.yaml +3234 -0
  49. cloudg/rules/frameworks/nist_csf_2.0_aws.yaml +828 -0
  50. cloudg/rules/frameworks/pci_4.0_aws.yaml +7108 -0
  51. cloudg/rules/frameworks/pci_4.0_azure.yaml +4696 -0
  52. cloudg/rules/frameworks/pci_4.0_gcp.yaml +5405 -0
  53. cloudg/rules/frameworks/soc2_aws.yaml +421 -0
  54. cloudg/rules/frameworks/soc2_azure.yaml +477 -0
  55. cloudg/rules/frameworks/soc2_gcp.yaml +342 -0
  56. cloudg/rules/gdpr.yaml +56 -0
  57. cloudg/rules/hipaa_security_rule.yaml +83 -0
  58. cloudg/rules/iso_27001_2022.yaml +88 -0
  59. cloudg/rules/nist_800_53.yaml +134 -0
  60. cloudg/rules/pci_dss_v4.yaml +108 -0
  61. cloudg/rules/soc2_tsc.yaml +93 -0
  62. cloudg/scanners/__init__.py +1 -0
  63. cloudg/scanners/checkov.py +174 -0
  64. cloudg/scanners/iam_linter.py +200 -0
  65. cloudg/scanners/prowler.py +237 -0
  66. cloudg/scanners/scoutsuite.py +163 -0
  67. cloudg/scanners/trivy.py +339 -0
  68. cloudg/schema/__init__.py +25 -0
  69. cloudg/schema/models.py +260 -0
  70. cloudg/templates/report.html.j2 +828 -0
  71. cloudg-0.3.0.dist-info/METADATA +330 -0
  72. cloudg-0.3.0.dist-info/RECORD +75 -0
  73. cloudg-0.3.0.dist-info/WHEEL +4 -0
  74. cloudg-0.3.0.dist-info/entry_points.txt +14 -0
  75. cloudg-0.3.0.dist-info/licenses/LICENSE +21 -0
@@ -0,0 +1,1286 @@
1
+ # Generated by scripts/import_prowler_compliance.py — do not edit by hand.
2
+ # Framework: AWS-Foundational-Security-Best-Practices (AWS)
3
+ # Data source: Prowler (https://github.com/prowler-cloud/prowler), Apache-2.0.
4
+ framework: AWS-Foundational-Security-Best-Practices-AWS
5
+ version: null
6
+ source: Prowler compliance data (aws_foundational_security_best_practices_aws.json),
7
+ Apache-2.0, https://github.com/prowler-cloud/prowler
8
+ provider: aws
9
+ controls:
10
+ - id: ACM.1
11
+ title: This control checks whether ACM certificates in your account are marked for
12
+ expiration within 30 days. It checks both imported certificates and certificates
13
+ provided by AWS Certificate Manager.
14
+ checks:
15
+ - acm_certificates_expiration_check
16
+ - id: ACM.2
17
+ title: This control checks whether RSA certificates managed by AWS Certificate Manager
18
+ use a key length of at least 2,048 bits. The control fails if the key length is
19
+ smaller than 2,048 bits.
20
+ checks:
21
+ - acm_certificates_with_secure_key_algorithms
22
+ - id: APIGateway.1
23
+ title: This control checks whether all stages of an Amazon API Gateway REST or WebSocket
24
+ API have logging enabled. The control fails if logging is not enabled for all
25
+ methods of a stage or if loggingLevel is neither ERROR nor INFO.
26
+ checks:
27
+ - apigateway_restapi_logging_enabled
28
+ - id: APIGateway.2
29
+ title: This control checks whether Amazon API Gateway REST API stages have SSL certificates
30
+ configured. Backend systems use these certificates to authenticate that incoming
31
+ requests are from API Gateway.
32
+ checks:
33
+ - apigateway_restapi_client_certificate_enabled
34
+ - id: APIGateway.4
35
+ title: This control checks whether an API Gateway stage uses an AWS WAF web access
36
+ control list (ACL). This control fails if an AWS WAF web ACL is not attached to
37
+ a REST API Gateway stage.
38
+ checks:
39
+ - apigateway_restapi_waf_acl_attached
40
+ - id: APIGateway.8
41
+ title: This control checks if Amazon API Gateway routes have an authorization type.
42
+ The control fails if the API Gateway route does not specify an authorization type.
43
+ checks:
44
+ - apigatewayv2_api_authorizers_enabled
45
+ - id: APIGateway.9
46
+ title: This control checks if Amazon API Gateway V2 stages have access logging configured.
47
+ This control fails if access log settings aren't defined.
48
+ checks:
49
+ - apigatewayv2_api_access_logging_enabled
50
+ - id: Account.1
51
+ title: This control checks if an Amazon Web Services (AWS) account has security
52
+ contact information. The control fails if security contact information is not
53
+ provided for the account.
54
+ checks:
55
+ - account_security_contact_information_is_registered
56
+ - id: Athena.1
57
+ title: This control checks if an Athena workgroup is encrypted at rest. The control
58
+ fails if an Athena workgroup isn't encrypted at rest.
59
+ checks:
60
+ - athena_workgroup_encryption
61
+ - id: AutoScaling.2
62
+ title: This control checks whether an Auto Scaling group spans multiple Availability
63
+ Zones. The control fails if an Auto Scaling group does not span multiple availability
64
+ zones.
65
+ checks:
66
+ - autoscaling_group_multiple_az
67
+ - id: CloudFront.1
68
+ title: This control checks whether an Amazon CloudFront distribution is configured
69
+ to return a specific object that is the default root object. The control fails
70
+ if the CloudFront distribution does not have a default root object configured.
71
+ checks:
72
+ - cloudfront_distributions_default_root_object
73
+ - id: CloudFront.4
74
+ title: This control checks whether an Amazon CloudFront distribution is configured
75
+ with an origin group that has two or more origins. CloudFront origin failover
76
+ can increase availability. Origin failover automatically redirects traffic to
77
+ a secondary origin if the primary origin is unavailable or if it re…
78
+ checks:
79
+ - cloudfront_distributions_multiple_origin_failover_configured
80
+ - id: CloudFront.5
81
+ title: This control checks whether server access logging is enabled on CloudFront
82
+ distributions. The control fails if access logging is not enabled for a distribution.
83
+ checks:
84
+ - cloudfront_distributions_logging_enabled
85
+ - id: CloudFront.6
86
+ title: This control checks whether CloudFront distributions are associated with
87
+ either AWS WAF or AWS WAFv2 web ACLs. The control fails if the distribution is
88
+ not associated with a web ACL.
89
+ checks:
90
+ - cloudfront_distributions_using_waf
91
+ - id: CloudFront.7
92
+ title: This control checks whether CloudFront distributions are using the default
93
+ SSL/TLS certificate CloudFront provides. This control passes if the CloudFront
94
+ distribution uses a custom SSL/TLS certificate. This control fails if the CloudFront
95
+ distribution uses the default SSL/TLS certificate.
96
+ checks:
97
+ - cloudfront_distributions_custom_ssl_certificate
98
+ - id: CloudFront.8
99
+ title: This control checks if Amazon CloudFront distributions are using a custom
100
+ SSL/TLS certificate and are configured to use SNI to serve HTTPS requests. This
101
+ control fails if a custom SSL/TLS certificate is associated but the SSL/TLS support
102
+ method is a dedicated IP address.
103
+ checks:
104
+ - cloudfront_distributions_https_sni_enabled
105
+ - id: CloudFront.9
106
+ title: This control checks if Amazon CloudFront distributions are encrypting traffic
107
+ to custom origins. This control fails for a CloudFront distribution whose origin
108
+ protocol policy allows 'http-only'. This control also fails if the distribution's
109
+ origin protocol policy is 'match-viewer' while the viewer …
110
+ checks:
111
+ - cloudfront_distributions_origin_traffic_encrypted
112
+ - id: CloudFront.10
113
+ title: This control checks if Amazon CloudFront distributions are using deprecated
114
+ SSL protocols for HTTPS communication between CloudFront edge locations and your
115
+ custom origins. This control fails if a CloudFront distribution has a CustomOriginConfig
116
+ where OriginSslProtocols includes SSLv3.
117
+ checks:
118
+ - cloudfront_distributions_using_deprecated_ssl_protocols
119
+ - id: CloudFront.12
120
+ title: This control checks whether Amazon CloudFront distributions are pointing
121
+ to non-existent Amazon S3 origins. The control fails for a CloudFront distribution
122
+ if the origin is configured to point to a non-existent bucket. This control only
123
+ applies to CloudFront distributions where an S3 bucket without…
124
+ checks:
125
+ - cloudfront_distributions_s3_origin_non_existent_bucket
126
+ - id: CloudFront.13
127
+ title: This control checks whether an Amazon CloudFront distribution with an Amazon
128
+ S3 origin has origin access control (OAC) configured. The control fails if OAC
129
+ isn't configured for the CloudFront distribution.
130
+ checks:
131
+ - cloudfront_distributions_s3_origin_access_control
132
+ - id: CloudTrail.1
133
+ title: This control checks that there is at least one multi-Region CloudTrail trail.
134
+ checks:
135
+ - cloudtrail_multi_region_enabled
136
+ - id: CloudTrail.2
137
+ title: This control checks whether CloudTrail is configured to use the server-side
138
+ encryption (SSE) AWS Key Management Service customer master key (CMK) encryption.
139
+ The check passes if the KmsKeyId is defined.
140
+ checks:
141
+ - cloudtrail_kms_encryption_enabled
142
+ - id: CloudTrail.4
143
+ title: This control checks whether log file integrity validation is enabled on a
144
+ CloudTrail trail. CloudTrail log file validation creates a digitally signed digest
145
+ file that contains a hash of each log that CloudTrail writes to Amazon S3. You
146
+ can use these digest files to determine whether a log file was …
147
+ checks:
148
+ - cloudtrail_log_file_validation_enabled
149
+ - id: CloudTrail.5
150
+ title: This control checks whether CloudTrail trails are configured to send logs
151
+ to CloudWatch Logs. The control fails if the CloudWatchLogsLogGroupArn property
152
+ of the trail is empty.
153
+ checks:
154
+ - cloudtrail_cloudwatch_logging_enabled
155
+ - id: CloudTrail.6
156
+ title: CloudTrail logs a record of every API call made in your account. These log
157
+ files are stored in an S3 bucket. CIS recommends that the S3 bucket policy, or
158
+ access control list (ACL), applied to the S3 bucket that CloudTrail logs to prevents
159
+ public access to the CloudTrail logs. Allowing public access…
160
+ checks:
161
+ - cloudtrail_logs_s3_bucket_is_not_publicly_accessible
162
+ - id: CloudTrail.7
163
+ title: S3 bucket access logging generates a log that contains access records for
164
+ each request made to your S3 bucket. An access log record contains details about
165
+ the request, such as the request type, the resources specified in the request
166
+ worked, and the time and date the request was processed.
167
+ checks:
168
+ - cloudtrail_logs_s3_bucket_access_logging_enabled
169
+ - id: CodeBuild.1
170
+ title: Authentication credentials should never be stored or transmitted in clear
171
+ text or appear in the repository URL. Instead of personal access tokens or user
172
+ name and password, you should use OAuth to grant authorization for accessing GitHub
173
+ or Bitbucket repositories. Using personal access tokens or a …
174
+ checks:
175
+ - codebuild_project_source_repo_url_no_sensitive_credentials
176
+ - id: CodeBuild.2
177
+ title: This control checks whether the project contains the environment variables
178
+ AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY. Authentication credentials AWS_ACCESS_KEY_ID
179
+ and AWS_SECRET_ACCESS_KEY should never be stored in clear text, as this could
180
+ lead to unintended data exposure and unauthorized access.
181
+ checks:
182
+ - codebuild_project_no_secrets_in_variables
183
+ - id: Cognito.1
184
+ title: This control checks whether an Amazon Cognito user pool has threat protection
185
+ activated with the enforcement mode set to full function. The control fails if
186
+ the user pool has threat protection deactivated or if the enforcement mode isn't
187
+ set to full function. Unless you provide custom parameter val…
188
+ checks:
189
+ - cognito_user_pool_advanced_security_enabled
190
+ - id: Config.1
191
+ title: This control checks whether AWS Config is enabled in the account for the
192
+ local Region and is recording all resources. The AWS Config service performs configuration
193
+ management of supported AWS resources in your account and delivers log files to
194
+ you. The recorded information includes the configuratio…
195
+ checks:
196
+ - config_recorder_all_regions_enabled
197
+ - id: DMS.1
198
+ title: This control checks whether AWS DMS replication instances are public. To
199
+ do this, it examines the value of the PubliclyAccessible field. A private replication
200
+ instance has a private IP address that you cannot access outside of the replication
201
+ network. A replication instance should have a private IP…
202
+ checks:
203
+ - dms_instance_no_public_access
204
+ - id: DMS.6
205
+ title: This control checks if automatic minor version upgrade is enabled for an
206
+ AWS DMS replication instance. The control fails if automatic minor version upgrade
207
+ isn't enabled for a DMS replication instance.
208
+ checks:
209
+ - dms_instance_minor_version_upgrade_enabled
210
+ - id: DMS.9
211
+ title: This control checks whether an AWS DMS endpoint uses an SSL connection. The
212
+ control fails if the endpoint doesn't use SSL.
213
+ checks:
214
+ - dms_endpoint_ssl_enabled
215
+ - id: DocumentDB.1
216
+ title: This control checks whether an Amazon DocumentDB cluster is encrypted at
217
+ rest. The control fails if an Amazon DocumentDB cluster isn't encrypted at rest.
218
+ checks:
219
+ - documentdb_cluster_storage_encrypted
220
+ - id: DocumentDB.2
221
+ title: This control checks whether an Amazon DocumentDB cluster has a backup retention
222
+ period greater than or equal to 7 days. The control fails if the backup retention
223
+ period is less than 7 days.
224
+ checks:
225
+ - documentdb_cluster_backup_enabled
226
+ - id: DocumentDB.3
227
+ title: This control checks whether an Amazon DocumentDB manual cluster snapshot
228
+ is public. The control fails if the manual cluster snapshot is public.
229
+ checks:
230
+ - documentdb_cluster_public_snapshot
231
+ - id: DocumentDB.4
232
+ title: This control checks whether an Amazon DocumentDB cluster publishes audit
233
+ logs to Amazon CloudWatch Logs. The control fails if the cluster doesn't publish
234
+ audit logs to CloudWatch Logs.
235
+ checks:
236
+ - documentdb_cluster_cloudwatch_log_export
237
+ - id: DocumentDB.5
238
+ title: This control checks whether an Amazon DocumentDB cluster has deletion protection
239
+ enabled. The control fails if the cluster doesn't have deletion protection enabled.
240
+ checks:
241
+ - documentdb_cluster_deletion_protection
242
+ - id: DynamoDB.2
243
+ title: This control checks whether point-in-time recovery (PITR) is enabled for
244
+ an Amazon DynamoDB table. Backups help you to recover more quickly from a security
245
+ incident. They also strengthen the resilience of your systems. DynamoDB point-in-time
246
+ recovery automates backups for DynamoDB tables. It reduce…
247
+ checks:
248
+ - dynamodb_tables_pitr_enabled
249
+ - id: DynamoDB.3
250
+ title: This control checks whether a DAX cluster is encrypted at rest. Encrypting
251
+ data at rest reduces the risk of data stored on disk being accessed by a user
252
+ not authenticated to AWS. The encryption adds another set of access controls to
253
+ limit the ability of unauthorized users to access to the data. For…
254
+ checks:
255
+ - dynamodb_accelerator_cluster_encryption_enabled
256
+ - id: DynamoDB.4
257
+ title: This control evaluates whether an Amazon DynamoDB table in ACTIVE state is
258
+ covered by a backup plan. The control fails if the DynamoDB table isn't covered
259
+ by a backup plan. If you set the backupVaultLockCheck parameter equal to true,
260
+ the control passes only if the DynamoDB table is backed up in an …
261
+ checks:
262
+ - dynamodb_table_protected_by_backup_plan
263
+ - id: DynamoDB.6
264
+ title: This control checks whether an Amazon DynamoDB table has deletion protection
265
+ enabled. The control fails if a DynamoDB table doesn't have deletion protection
266
+ enabled.
267
+ checks:
268
+ - dynamodb_table_deletion_protection_enabled
269
+ - id: DynamoDB.7
270
+ title: This control checks whether an Amazon DynamoDB Accelerator (DAX) cluster
271
+ is encrypted in transit, with the endpoint encryption type set to TLS. The control
272
+ fails if the DAX cluster isn't encrypted in transit.
273
+ checks:
274
+ - dynamodb_table_deletion_protection_enabled
275
+ - id: EC2.1
276
+ title: Amazon EBS snapshots should not be public, determined by the ability to be
277
+ restorable by anyone. EBS snapshots are used to back up the data on your EBS volumes
278
+ to Amazon S3 at a specific point in time. You can use the snapshots to restore
279
+ previous states of EBS volumes. It is rarely acceptable to s…
280
+ checks:
281
+ - ec2_ebs_public_snapshot
282
+ - id: EC2.2
283
+ title: This control checks that the default security group of a VPC does not allow
284
+ inbound or outbound traffic. The rules for the default security group allow all
285
+ outbound and inbound traffic from network interfaces (and their associated instances)
286
+ that are assigned to the same security group.
287
+ checks:
288
+ - ec2_securitygroup_default_restrict_traffic
289
+ - id: EC2.3
290
+ title: This control checks whether the EBS volumes that are in an attached state
291
+ are encrypted. To pass this check, EBS volumes must be in use and encrypted. If
292
+ the EBS volume is not attached, then it is not subject to this check.
293
+ checks:
294
+ - ec2_ebs_volume_encryption
295
+ - id: EC2.4
296
+ title: This control checks whether any EC2 instances have been stopped for more
297
+ than the allowed number of days. An EC2 instance fails this check if it is stopped
298
+ for longer than the maximum allowed time period, which by default is 30 days.
299
+ checks:
300
+ - ec2_instance_older_than_specific_days
301
+ - id: EC2.6
302
+ title: This control checks whether Amazon VPC Flow Logs are found and enabled for
303
+ VPCs. The traffic type is set to Reject. With the VPC Flow Logs feature, you can
304
+ capture information about the IP address traffic going to and from network interfaces
305
+ in your VPC. After you create a flow log, you can view an…
306
+ checks:
307
+ - vpc_flow_logs_enabled
308
+ - id: EC2.7
309
+ title: This control checks whether account-level encryption is enabled by default
310
+ for Amazon Elastic Block Store(Amazon EBS). The control fails if the account level
311
+ encryption is not enabled.
312
+ checks:
313
+ - ec2_ebs_default_encryption
314
+ - id: EC2.8
315
+ title: This control checks whether your EC2 instance metadata version is configured
316
+ with Instance Metadata Service Version 2 (IMDSv2). The control passes if HttpTokens
317
+ is set to required for IMDSv2. The control fails if HttpTokens is set to optional.
318
+ checks:
319
+ - ec2_instance_imdsv2_enabled
320
+ - id: EC2.9
321
+ title: This control checks whether EC2 instances have a public IP address. The control
322
+ fails if the publicIp field is present in the EC2 instance configuration item.
323
+ This control applies to IPv4 addresses only.
324
+ checks:
325
+ - ec2_instance_public_ip
326
+ - id: EC2.10
327
+ title: This control checks whether a service endpoint for Amazon EC2 is created
328
+ for each VPC. The control fails if a VPC does not have a VPC endpoint created
329
+ for the Amazon EC2 service.
330
+ checks:
331
+ - vpc_endpoint_for_ec2_enabled
332
+ - id: EC2.12
333
+ title: This control checks whether Elastic IP (EIP) addresses that are allocated
334
+ to a VPC are attached to EC2 instances or in-use elastic network interfaces (ENIs).
335
+ checks:
336
+ - ec2_elastic_ip_unassigned
337
+ - id: EC2.13
338
+ title: This control checks whether an Amazon EC2 security group allows ingress from
339
+ 0.0.0.0/0 or ::/0 to port 22. The control fails if the security group allows ingress
340
+ from 0.0.0.0/0 or ::/0 to port 22.
341
+ checks:
342
+ - ec2_securitygroup_allow_ingress_from_internet_to_tcp_port_22
343
+ - id: EC2.14
344
+ title: This control checks whether an Amazon EC2 security group allows ingress from
345
+ 0.0.0.0/0 or ::/0 to port 3389. The control fails if the security group allows
346
+ ingress from 0.0.0.0/0 or ::/0 to port 3389.
347
+ checks:
348
+ - ec2_securitygroup_allow_ingress_from_internet_to_tcp_port_3389
349
+ - id: EC2.15
350
+ title: This control checks whether the assignment of public IPs in Amazon Virtual
351
+ Private Cloud (Amazon VPC) subnets have MapPublicIpOnLaunch set to FALSE. The
352
+ control passes if the flag is set to FALSE.
353
+ checks:
354
+ - vpc_subnet_no_public_ip_by_default
355
+ - id: EC2.16
356
+ title: This control checks whether there are any unused network access control lists
357
+ (ACLs). The control checks the item configuration of the resource AWS::EC2::NetworkAcl
358
+ and determines the relationships of the network ACL.
359
+ checks:
360
+ - ec2_networkacl_unused
361
+ - id: EC2.17
362
+ title: This control checks whether an EC2 instance uses multiple Elastic Network
363
+ Interfaces (ENIs) or Elastic Fabric Adapters (EFAs). This control passes if a
364
+ single network adapter is used. The control includes an optional parameter list
365
+ to identify the allowed ENIs.
366
+ checks:
367
+ - ec2_instance_uses_single_eni
368
+ - id: EC2.19
369
+ title: This control checks whether unrestricted incoming traffic for the security
370
+ groups is accessible to the specified ports that have the highest risk. This control
371
+ passes when none of the rules in a security group allow ingress traffic from 0.0.0.0/0
372
+ for those ports.
373
+ checks:
374
+ - ec2_securitygroup_allow_ingress_from_internet_to_high_risk_tcp_ports
375
+ - id: EC2.20
376
+ title: This control checks that both VPN tunnels provided by AWS Site-to-Site VPN
377
+ are in UP status. The control fails if one or both tunnels are in DOWN status.
378
+ checks:
379
+ - vpc_vpn_connection_tunnels_up
380
+ - id: EC2.21
381
+ title: This control checks if default ports for SSH/RDP ingress traffic for network
382
+ access control lists (NACLs) is unrestricted. The rule fails if a NACL inbound
383
+ entry allows a source CIDR block of '0.0.0.0/0' or '::/0' for ports 22 or 3389.
384
+ checks:
385
+ - ec2_networkacl_allow_ingress_tcp_port_22
386
+ - ec2_networkacl_allow_ingress_tcp_port_3389
387
+ - id: EC2.22
388
+ title: This control checks if default ports for SSH/RDP ingress traffic for network
389
+ access control lists (NACLs) is unrestricted. The rule fails if a NACL inbound
390
+ entry allows a source CIDR block of '0.0.0.0/0' or '::/0' for ports 22 or 3389.
391
+ checks:
392
+ - ec2_securitygroup_not_used
393
+ - id: EC2.23
394
+ title: This control checks if EC2 Transit Gateways are automatically accepting shared
395
+ VPC attachments. This control fails for a Transit Gateway that automatically accepts
396
+ shared VPC attachment requests.
397
+ checks:
398
+ - ec2_transitgateway_auto_accept_vpc_attachments
399
+ - id: EC2.24
400
+ title: This control checks whether the virtualization type of an EC2 instance is
401
+ paravirtual. The control fails if the virtualizationType of the EC2 instance is
402
+ set to paravirtual.
403
+ checks:
404
+ - ec2_instance_paravirtual_type
405
+ - id: EC2.25
406
+ title: This control checks if Amazon EC2 launch templates are configured to assign
407
+ public IP addresses to network interfaces upon launch. The control fails if an
408
+ EC2 launch template is configured to assign a public IP address to network interfaces
409
+ or if there is at least one network interface that has a p…
410
+ checks:
411
+ - ec2_launch_template_no_public_ip
412
+ - id: EC2.28
413
+ title: This control evaluates if an Amazon EBS volume in in-use state is covered
414
+ by a backup plan. The control fails if an EBS volume isn't covered by a backup
415
+ plan. If you set the backupVaultLockCheck parameter equal to true, the control
416
+ passes only if the EBS volume is backed up in an AWS Backup locked …
417
+ checks:
418
+ - ec2_ebs_volume_protected_by_backup_plan
419
+ - id: EC2.51
420
+ title: This control checks whether an AWS Client VPN endpoint has client connection
421
+ logging enabled. The control fails if the endpoint doesn't have client connection
422
+ logging enabled.
423
+ checks:
424
+ - ec2_client_vpn_endpoint_connection_logging_enabled
425
+ - id: ECR.1
426
+ title: This control checks whether a private ECR repository has image scanning configured.
427
+ This control fails if a private ECR repository doesn't have image scanning configured.
428
+ checks:
429
+ - ecr_repositories_scan_images_on_push_enabled
430
+ - id: ECR.2
431
+ title: This control checks whether a private ECR repository has tag immutability
432
+ enabled. This control fails if a private ECR repository has tag immutability disabled.
433
+ This rule passes if tag immutability is enabled and has the value IMMUTABLE.
434
+ checks:
435
+ - ecr_repositories_tag_immutability
436
+ - id: ECR.3
437
+ title: This control checks whether an Amazon ECR repository has at least one lifecycle
438
+ policy configured. This control fails if an ECR repository does not have any lifecycle
439
+ policies configured.
440
+ checks:
441
+ - ecr_repositories_lifecycle_policy_enabled
442
+ - id: ECS.1
443
+ title: This control checks whether an Amazon ECS task definition that has host networking
444
+ mode also has 'privileged' or 'user' container definitions. The control fails
445
+ for task definitions that have host network mode and container definitions where
446
+ privileged=false or is empty and user=root or is empty.
447
+ checks:
448
+ - ecs_task_definitions_host_networking_mode_users
449
+ - id: ECS.2
450
+ title: This control checks whether Amazon ECS services are configured to automatically
451
+ assign public IP addresses. This control fails if AssignPublicIP is ENABLED. This
452
+ control passes if AssignPublicIP is DISABLED.
453
+ checks:
454
+ - ecs_service_no_assign_public_ip
455
+ - id: ECS.3
456
+ title: "This control checks if Amazon ECS task definitions are configured to share\
457
+ \ a hostâ\x80\x99s process namespace with its containers. The control fails if\
458
+ \ the task definition shares the host's process namespace with the containers\
459
+ \ running on it."
460
+ checks:
461
+ - ecs_task_definitions_host_namespace_not_shared
462
+ - id: ECS.4
463
+ title: This control checks if the privileged parameter in the container definition
464
+ of Amazon ECS Task Definitions is set to true. The control fails if this parameter
465
+ is equal to true.
466
+ checks:
467
+ - ecs_task_definitions_no_privileged_containers
468
+ - id: ECS.5
469
+ title: This control checks if ECS containers are limited to read-only access to
470
+ mounted root filesystems. This control fails if the ReadonlyRootFilesystem parameter
471
+ in the container definition of ECS task definitions is set to false.
472
+ checks:
473
+ - ecs_task_definitions_containers_readonly_access
474
+ - id: ECS.8
475
+ title: This control checks if the key value of any variables in the environment
476
+ parameter of container definitions includes AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY,
477
+ or ECS_ENGINE_AUTH_DATA. This control fails if a single environment variable in
478
+ any container definition equals AWS_ACCESS_KEY_ID, AWS_SECRE…
479
+ checks:
480
+ - ecs_task_definitions_no_environment_secrets
481
+ - id: ECS.9
482
+ title: This control checks if the latest active Amazon ECS task definition has a
483
+ logging configuration specified. The control fails if the task definition doesn't
484
+ have the logConfiguration property defined or if the value for logDriver is null
485
+ in at least one container definition.
486
+ checks:
487
+ - ecs_task_definitions_logging_enabled
488
+ - id: EFS.1
489
+ title: This control checks whether Amazon Elastic File System is configured to encrypt
490
+ the file data using AWS KMS.
491
+ checks:
492
+ - efs_encryption_at_rest_enabled
493
+ - id: EFS.2
494
+ title: This control checks whether Amazon Elastic File System (Amazon EFS) file
495
+ systems are added to the backup plans in AWS Backup. The control fails if Amazon
496
+ EFS file systems are not included in the backup plans.
497
+ checks:
498
+ - efs_have_backup_enabled
499
+ - id: EKS.1
500
+ title: This control checks whether an Amazon EKS cluster endpoint is publicly accessible.
501
+ The control fails if an EKS cluster has an endpoint that is publicly accessible.
502
+ checks:
503
+ - eks_cluster_not_publicly_accessible
504
+ - id: EKS.2
505
+ title: This control checks whether an Amazon EKS cluster is running on a supported
506
+ Kubernetes version. The control fails if the EKS cluster is running on an unsupported
507
+ version. If your application doesn't require a specific version of Kubernetes,
508
+ we recommend that you use the latest available Kubernetes …
509
+ checks:
510
+ - eks_cluster_uses_a_supported_version
511
+ - id: EKS.3
512
+ title: This control checks whether an Amazon EKS cluster uses encrypted Kubernetes
513
+ secrets. The control fails if the cluster's Kubernetes secrets aren't encrypted.
514
+ checks:
515
+ - eks_cluster_kms_cmk_encryption_in_secrets_enabled
516
+ - id: EKS.8
517
+ title: This control checks whether an Amazon EKS cluster has audit logging enabled.
518
+ The control fails if audit logging isn't enabled for the cluster.
519
+ checks:
520
+ - eks_control_plane_logging_all_types_enabled
521
+ - id: ELB.1
522
+ title: This control checks whether HTTP to HTTPS redirection is configured on all
523
+ HTTP listeners of Application Load Balancers. The control fails if any of the
524
+ HTTP listeners of Application Load Balancers do not have HTTP to HTTPS redirection
525
+ configured.
526
+ checks:
527
+ - elbv2_ssl_listeners
528
+ - id: ELB.3
529
+ title: This control checks whether your Classic Load Balancer listeners are configured
530
+ with HTTPS or TLS protocol for front-end (client to load balancer) connections.
531
+ The control is applicable if a Classic Load Balancer has listeners. If your Classic
532
+ Load Balancer does not have a listener configured, then…
533
+ checks:
534
+ - elb_ssl_listeners
535
+ - id: ELB.4
536
+ title: This control evaluates AWS Application Load Balancers (ALB) to ensure they
537
+ are configured to drop invalid HTTP headers. The control fails if the value of
538
+ routing.http.drop_invalid_header_fields.enabled is set to false. By default, ALBs
539
+ are not configured to drop invalid HTTP header values. Removing…
540
+ checks:
541
+ - elbv2_alb_drop_invalid_header_fields_enabled
542
+ - id: ELB.5
543
+ title: This control checks whether the Application Load Balancer and the Classic
544
+ Load Balancer have logging enabled. The control fails if access_logs.s3.enabled
545
+ is false.
546
+ checks:
547
+ - elb_logging_enabled
548
+ - elbv2_logging_enabled
549
+ - id: ELB.6
550
+ title: This control checks whether an Application Load Balancer has deletion protection
551
+ enabled. The control fails if deletion protection is not configured. Enable deletion
552
+ protection to protect your Application Load Balancer from deletion.
553
+ checks:
554
+ - elbv2_deletion_protection
555
+ - id: ELB.9
556
+ title: This control checks if cross-zone load balancing is enabled for the Classic
557
+ Load Balancers (CLBs). This control fails if cross-zone load balancing is not
558
+ enabled for a CLB.
559
+ checks:
560
+ - elb_cross_zone_load_balancing_enabled
561
+ - id: ELB.10
562
+ title: This control checks whether a Classic Load Balancer has been configured to
563
+ span multiple Availability Zones. The control fails if the Classic Load Balancer
564
+ does not span multiple Availability Zones.
565
+ checks:
566
+ - elb_is_in_multiple_az
567
+ - id: ELB.12
568
+ title: This control checks whether an Application Load Balancer is configured with
569
+ defensive or strictest desync mitigation mode. The control fails if an Application
570
+ Load Balancer is not configured with defensive or strictest desync mitigation
571
+ mode.
572
+ checks:
573
+ - elbv2_desync_mitigation_mode
574
+ - id: ELB.13
575
+ title: This control checks whether an Elastic Load Balancer V2 (Application, Network,
576
+ or Gateway Load Balancer) has registered instances from multiple Availability
577
+ Zones. The control fails if an Elastic Load Balancer V2 has instances registered
578
+ in fewer than two Availability Zones.
579
+ checks:
580
+ - elbv2_is_in_multiple_az
581
+ - id: ELB.16
582
+ title: This control checks whether an Application Load Balancer is associated with
583
+ an AWS WAF Classic or AWS WAF web access control list (web ACL). The control fails
584
+ if the Enabled field for the AWS WAF configuration is set to false.
585
+ checks:
586
+ - elbv2_waf_acl_attached
587
+ - id: EMR.1
588
+ title: This control checks whether master nodes on Amazon EMR clusters have public
589
+ IP addresses. The control fails if the master node has public IP addresses that
590
+ are associated with any of its instances. Public IP addresses are designated in
591
+ the PublicIp field of the NetworkInterfaces configuration for t…
592
+ checks:
593
+ - emr_cluster_master_nodes_no_public_ip
594
+ - id: EMR.2
595
+ title: This control checks whether your account is configured with Amazon EMR block
596
+ public access. The control fails if the block public access setting isn't enabled
597
+ or if any port other than port 22 is allowed.
598
+ checks:
599
+ - emr_cluster_account_public_block_enabled
600
+ - id: ES.1
601
+ title: This control checks whether Amazon Elasticsearch Service (Amazon ES) domains
602
+ have encryption at rest configuration enabled. The check fails if encryption at
603
+ rest is not enabled.
604
+ checks:
605
+ - opensearch_service_domains_encryption_at_rest_enabled
606
+ - id: ES.2
607
+ title: This control checks whether Amazon Elasticsearch Service domains are in a
608
+ VPC. It does not evaluate the VPC subnet routing configuration to determine public
609
+ access. You should ensure that Amazon ES domains are not attached to public subnets.
610
+ checks:
611
+ - opensearch_service_domains_not_publicly_accessible
612
+ - id: ES.3
613
+ title: This control checks whether Amazon ES domains have node-to-node encryption
614
+ enabled.
615
+ checks:
616
+ - opensearch_service_domains_node_to_node_encryption_enabled
617
+ - id: ES.4
618
+ title: This control checks whether Elasticsearch domains are configured to send
619
+ error logs to CloudWatch Logs.
620
+ checks:
621
+ - opensearch_service_domains_cloudwatch_logging_enabled
622
+ - id: ES.5
623
+ title: This control checks whether Elasticsearch domains have audit logging enabled.
624
+ This control fails if an Elasticsearch domain does not have audit logging enabled.
625
+ checks:
626
+ - opensearch_service_domains_audit_logging_enabled
627
+ - id: ElastiCache.1
628
+ title: This control evaluates if Amazon ElastiCache for Redis clusters have automatic
629
+ backup scheduled. The control fails if the SnapshotRetentionLimit for the Redis
630
+ cluster is less than 1.
631
+ checks:
632
+ - elasticache_redis_cluster_backup_enabled
633
+ - id: ElastiCache.2
634
+ title: This control evaluates whether ElastiCache for Redis automatically applies
635
+ minor version upgrades to cache clusters. This control fails if ElastiCache for
636
+ Redis cache clusters do not have minor version upgrades automatically applied.
637
+ checks:
638
+ - elasticache_redis_cluster_auto_minor_version_upgrades
639
+ - id: ElastiCache.6
640
+ title: This control checks if ElastiCache for Redis replication groups have Redis
641
+ AUTH enabled. The control fails for an ElastiCache for Redis replication group
642
+ if the Redis version of its nodes is below 6.0 and AuthToken isn't in use.
643
+ checks:
644
+ - elasticache_redis_replication_group_auth_enabled
645
+ - id: GuardDuty.1
646
+ title: This control checks whether Amazon GuardDuty is enabled in your GuardDuty
647
+ account and Region. It is highly recommended that you enable GuardDuty in all
648
+ supported AWS Regions. Doing so allows GuardDuty to generate findings about unauthorized
649
+ or unusual activity, even in Regions that you do not activ…
650
+ checks:
651
+ - guardduty_is_enabled
652
+ - id: GuardDuty.9
653
+ title: This control checks whether GuardDuty RDS Protection is enabled. For a standalone
654
+ account, the control fails if GuardDuty RDS Protection is disabled in the account.
655
+ In a multi-account environment, the control fails if the delegated GuardDuty administrator
656
+ account and all member accounts don't have …
657
+ checks:
658
+ - guardduty_rds_protection_enabled
659
+ - id: GuardDuty.10
660
+ title: This control checks whether GuardDuty S3 Protection is enabled. For a standalone
661
+ account, the control fails if GuardDuty S3 Protection is disabled in the account.
662
+ In a multi-account environment, the control fails if the delegated GuardDuty administrator
663
+ account and all member accounts don't have S3…
664
+ checks:
665
+ - guardduty_s3_protection_enabled
666
+ - id: IAM.1
667
+ title: 'This control checks whether the default version of IAM policies (also known
668
+ as customer managed policies) has administrator access that includes a statement
669
+ with ''Effect'': ''Allow'' with ''Action'': ''*'' over ''Resource'': ''*''. The
670
+ control only checks the customer managed policies that you create. It does…'
671
+ checks:
672
+ - iam_aws_attached_policy_no_administrative_privileges
673
+ - iam_customer_attached_policy_no_administrative_privileges
674
+ - iam_inline_policy_no_administrative_privileges
675
+ - id: IAM.3
676
+ title: This control checks whether the active access keys are rotated within 90
677
+ days.
678
+ checks:
679
+ - iam_rotate_access_key_90_days
680
+ - id: IAM.4
681
+ title: This control checks whether the root user access key is present. The root
682
+ account is the most privileged user in an AWS account. AWS access keys provide
683
+ programmatic access to a given account.
684
+ checks:
685
+ - iam_no_root_access_key
686
+ - id: IAM.5
687
+ title: This control checks whether AWS multi-factor authentication (MFA) is enabled
688
+ for all IAM users that use a console password.
689
+ checks:
690
+ - iam_user_mfa_enabled_console_access
691
+ - id: IAM.6
692
+ title: This control checks whether your AWS account is enabled to use a hardware
693
+ multi-factor authentication (MFA) device to sign in with root user credentials.
694
+ checks:
695
+ - iam_root_hardware_mfa_enabled
696
+ - id: IAM.7
697
+ title: This control checks whether the account password policy for IAM users uses
698
+ the recommended configurations.
699
+ checks:
700
+ - iam_password_policy_expires_passwords_within_90_days_or_less
701
+ - iam_password_policy_lowercase
702
+ - iam_password_policy_minimum_length_14
703
+ - iam_password_policy_number
704
+ - iam_password_policy_reuse_24
705
+ - iam_password_policy_symbol
706
+ - iam_password_policy_uppercase
707
+ - id: IAM.8
708
+ title: This control checks whether your IAM users have passwords or active access
709
+ keys that have not been used for 90 days.
710
+ checks:
711
+ - iam_user_accesskey_unused
712
+ - iam_user_console_access_unused
713
+ - id: IAM.9
714
+ title: The root user has complete access to all the services and resources in an
715
+ AWS account. MFA adds an extra layer of protection on top of a user name and password.
716
+ With MFA enabled, when a user signs in to the AWS Management Console, they're
717
+ prompted for their user name and password and for an authent…
718
+ checks:
719
+ - iam_root_mfa_enabled
720
+ - id: IAM.10
721
+ title: "This control checks whether the account password policy for IAM users uses\
722
+ \ the following minimum PCI DSS configurations.RequireUppercaseCharacters â\x80\
723
+ \x93 Require at least one uppercase character in password. (Default = true)RequireLowercaseCharacters\
724
+ \ â\x80\x93 Require at least one lowercase character in pas…"
725
+ checks:
726
+ - iam_password_policy_expires_passwords_within_90_days_or_less
727
+ - iam_password_policy_lowercase
728
+ - iam_password_policy_minimum_length_14
729
+ - iam_password_policy_number
730
+ - iam_password_policy_reuse_24
731
+ - iam_password_policy_symbol
732
+ - iam_password_policy_uppercase
733
+ - id: IAM.19
734
+ title: This control checks whether the IAM users have multi-factor authentication
735
+ (MFA) enabled.
736
+ checks:
737
+ - iam_user_mfa_enabled_console_access
738
+ - id: IAM.22
739
+ title: This control checks whether your IAM users have passwords or active access
740
+ keys that have not been used for 45 days or more. To do so, it checks whether
741
+ the maxCredentialUsageAge parameter of the AWS Config rule is equal to 45 or more.
742
+ checks:
743
+ - iam_user_accesskey_unused
744
+ - iam_user_console_access_unused
745
+ - id: IAM.26
746
+ title: This controls checks whether an active SSL/TLS server certificate that is
747
+ managed in IAM has expired. The control fails if the expired SSL/TLS server certificate
748
+ isn't removed.
749
+ checks:
750
+ - iam_user_accesskey_unused
751
+ - iam_user_console_access_unused
752
+ - id: KMS.3
753
+ title: This control checks whether AWS KMS customer managed keys (CMK) are scheduled
754
+ for deletion. The control fails if a CMK is scheduled for deletion. CMKs cannot
755
+ be recovered once deleted. Data encrypted under a KMS CMK is also permanently
756
+ unrecoverable if the CMK is deleted. If meaningful data has bee…
757
+ checks:
758
+ - kms_cmk_not_deleted_unintentionally
759
+ - id: KMS.4
760
+ title: TAWS KMS enables customers to rotate the backing key, which is key material
761
+ stored in AWS KMS and is tied to the key ID of the KMS key. It's the backing key
762
+ that is used to perform cryptographic operations such as encryption and decryption.
763
+ Automated key rotation currently retains all previous back…
764
+ checks:
765
+ - kms_cmk_rotation_enabled
766
+ - id: KMS.5
767
+ title: This controls checks whether an AWS KMS key is publicly accessible. The control
768
+ fails if the KMS key is publicly accessible.
769
+ checks:
770
+ - kms_key_not_publicly_accessible
771
+ - id: Lambda.1
772
+ title: This control checks whether the Lambda function resource-based policy prohibits
773
+ public access outside of your account. The Lambda function should not be publicly
774
+ accessible, as this may allow unintended access to your code stored in the function.
775
+ checks:
776
+ - awslambda_function_not_publicly_accessible
777
+ - id: Lambda.2
778
+ title: 'This control checks that the Lambda function settings for runtimes match
779
+ the expected values set for the latest runtimes for each supported language. This
780
+ control checks for the following runtimes: dotnet8, dotnet6, java21, java17, java11,
781
+ java8.al2, nodejs22.x, nodejs20.x, nodejs18.x, python3.13, …'
782
+ checks:
783
+ - awslambda_function_using_supported_runtimes
784
+ - id: Lambda.3
785
+ title: This control checks whether a Lambda function is deployed in a virtual private
786
+ cloud (VPC). The control fails if the Lambda function isn't deployed in a VPC.
787
+ Security Hub doesn't evaluate the VPC subnet routing configuration to determine
788
+ public reachability. You might see failed findings for Lambda…
789
+ checks:
790
+ - awslambda_function_inside_vpc
791
+ - id: Lambda.5
792
+ title: This control checks if an AWS Lambda function that connects to a virtual
793
+ private cloud (VPC) operates in at least the specified number of Availability
794
+ Zone (AZs). The control fails if the function doesn't operate in at least the
795
+ specified number of AZs.
796
+ checks:
797
+ - awslambda_function_vpc_multi_az
798
+ - id: MSK.1
799
+ title: This controls checks if an Amazon MSK cluster is encrypted in transit with
800
+ HTTPS (TLS) among the broker nodes of the cluster. The control fails if plain
801
+ text communication is enabled for a cluster broker node connection.
802
+ checks:
803
+ - kafka_cluster_in_transit_encryption_enabled
804
+ - id: MSK.2
805
+ title: This control checks whether an Amazon MSK cluster has enhanced monitoring
806
+ configured, specified by a monitoring level of at least PER_TOPIC_PER_BROKER.
807
+ The control fails if the monitoring level for the cluster is set to DEFAULT or
808
+ PER_BROKER.
809
+ checks:
810
+ - kafka_cluster_enhanced_monitoring_enabled
811
+ - id: Macie.1
812
+ title: This control checks whether Amazon Macie is enabled for an account. The control
813
+ fails if Macie isn't enabled for the account.
814
+ checks:
815
+ - macie_is_enabled
816
+ - id: Neptune.2
817
+ title: This control checks whether a Neptune DB cluster publishes audit logs to
818
+ Amazon CloudWatch Logs. The control fails if a Neptune DB cluster doesn't publish
819
+ audit logs to CloudWatch Logs. EnableCloudWatchLogsExport should be set to Audit.
820
+ checks:
821
+ - neptune_cluster_integration_cloudwatch_logs
822
+ - id: Neptune.3
823
+ title: This control checks whether a Neptune manual DB cluster snapshot is public.
824
+ The control fails if a Neptune manual DB cluster snapshot is public.
825
+ checks:
826
+ - neptune_cluster_public_snapshot
827
+ - id: Neptune.4
828
+ title: This control checks if a Neptune DB cluster has deletion protection enabled.
829
+ The control fails if a Neptune DB cluster doesn't have deletion protection enabled.
830
+ checks:
831
+ - neptune_cluster_deletion_protection
832
+ - id: Neptune.5
833
+ title: This control checks whether a Neptune DB cluster has automated backups enabled,
834
+ and a backup retention period greater than or equal to 7 days. The control fails
835
+ if backups aren't enabled for the Neptune DB cluster, or if the retention period
836
+ is less than 7 days.
837
+ checks:
838
+ - neptune_cluster_backup_enabled
839
+ - id: Neptune.6
840
+ title: This control checks whether a Neptune DB cluster snapshot is encrypted at
841
+ rest. The control fails if a Neptune DB cluster isn't encrypted at rest.
842
+ checks:
843
+ - neptune_cluster_snapshot_encrypted
844
+ - id: Neptune.7
845
+ title: This control checks if a Neptune DB cluster has IAM database authentication
846
+ enabled. The control fails if IAM database authentication isn't enabled for a
847
+ Neptune DB cluster.
848
+ checks:
849
+ - neptune_cluster_iam_authentication_enabled
850
+ - id: Neptune.8
851
+ title: This control checks if a Neptune DB cluster is configured to copy all tags
852
+ to snapshots when the snapshots are created. The control fails if a Neptune DB
853
+ cluster isn't configured to copy tags to snapshots.
854
+ checks:
855
+ - neptune_cluster_copy_tags_to_snapshots
856
+ - id: Neptune.9
857
+ title: This control checks if an Amazon Neptune DB cluster has read-replica instances
858
+ in multiple Availability Zones (AZs). The control fails if the cluster is deployed
859
+ in only one AZ.
860
+ checks:
861
+ - neptune_cluster_copy_tags_to_snapshots
862
+ - id: NetworkFirewall.3
863
+ title: This control checks whether a Network Firewall policy has any stateful or
864
+ stateless rule groups associated. The control fails if stateless or stateful rule
865
+ groups are not assigned.
866
+ checks:
867
+ - networkfirewall_policy_rule_group_associated
868
+ - id: NetworkFirewall.9
869
+ title: This control checks whether an AWS Network Firewall firewall has deletion
870
+ protection enabled. The control fails if deletion protection isn't enabled for
871
+ a firewall.
872
+ checks:
873
+ - networkfirewall_deletion_protection
874
+ - id: OpenSearch.1
875
+ title: This control checks whether OpenSearch domains have encryption-at-rest configuration
876
+ enabled. The check fails if encryption at rest is not enabled.
877
+ checks:
878
+ - opensearch_service_domains_encryption_at_rest_enabled
879
+ - id: OpenSearch.2
880
+ title: This control checks whether OpenSearch domains are in a VPC. It does not
881
+ evaluate the VPC subnet routing configuration to determine public access.
882
+ checks:
883
+ - opensearch_service_domains_not_publicly_accessible
884
+ - id: OpenSearch.3
885
+ title: This control checks whether OpenSearch domains have node-to-node encryption
886
+ enabled. This control fails if node-to-node encryption is disabled on the domain.
887
+ checks:
888
+ - opensearch_service_domains_node_to_node_encryption_enabled
889
+ - id: OpenSearch.4
890
+ title: This control checks whether OpenSearch domains are configured to send error
891
+ logs to CloudWatch Logs. This control fails if error logging to CloudWatch is
892
+ not enabled for a domain.
893
+ checks:
894
+ - opensearch_service_domains_cloudwatch_logging_enabled
895
+ - id: OpenSearch.5
896
+ title: This control checks whether OpenSearch domains have audit logging enabled.
897
+ This control fails if an OpenSearch domain does not have audit logging enabled.
898
+ checks:
899
+ - opensearch_service_domains_audit_logging_enabled
900
+ - id: OpenSearch.7
901
+ title: This control checks whether OpenSearch domains have fine-grained access control
902
+ enabled. The control fails if the fine-grained access control is not enabled.
903
+ Fine-grained access control requires advanced-security-optionsin the OpenSearch
904
+ parameter update-domain-config to be enabled.
905
+ checks:
906
+ - opensearch_service_domains_access_control_enabled
907
+ - id: OpenSearch.10
908
+ title: This control checks whether an Amazon OpenSearch Service domain has the latest
909
+ software update installed. The control fails if a software update is available
910
+ but not installed for the domain.
911
+ checks:
912
+ - opensearch_service_domains_updated_to_the_latest_service_software_version
913
+ - id: RDS.1
914
+ title: This control checks whether Amazon RDS snapshots are public. This control
915
+ is intended for RDS instances. It can also return findings for snapshots of Aurora
916
+ DB instances, Neptune DB instances, and Amazon DocumentDB clusters, even though
917
+ they are not evaluated for public accessibility. If these find…
918
+ checks:
919
+ - rds_snapshots_public_access
920
+ - id: RDS.2
921
+ title: This control checks whether Amazon RDS instances are publicly accessible
922
+ by evaluating the PubliclyAccessible field in the instance configuration item.
923
+ Neptune DB instances and Amazon DocumentDB clusters do not have the PubliclyAccessible
924
+ flag and cannot be evaluated. However, this control can stil…
925
+ checks:
926
+ - rds_instance_no_public_access
927
+ - id: RDS.3
928
+ title: This control checks whether storage encryption is enabled for your Amazon
929
+ RDS DB instances. This control is intended for RDS DB instances. However, it can
930
+ also generate findings for Aurora DB instances, Neptune DB instances, and Amazon
931
+ DocumentDB clusters. If these findings are not useful, then you…
932
+ checks:
933
+ - rds_instance_storage_encrypted
934
+ - id: RDS.4
935
+ title: This control checks whether RDS DB snapshots are encrypted. This control
936
+ is intended for RDS DB instances. However, it can also generate findings for snapshots
937
+ of Aurora DB instances, Neptune DB instances, and Amazon DocumentDB clusters.
938
+ If these findings are not useful, then you can suppress them.
939
+ checks:
940
+ - rds_snapshots_encrypted
941
+ - id: RDS.5
942
+ title: This control checks whether high availability is enabled for your RDS DB
943
+ instances. RDS DB instances should be configured for multiple Availability Zones
944
+ (AZs). This ensures the availability of the data stored. Multi-AZ deployments
945
+ allow for automated failover if there is an issue with Availability…
946
+ checks:
947
+ - rds_instance_multi_az
948
+ - id: RDS.6
949
+ title: This control checks whether enhanced monitoring is enabled for your RDS DB
950
+ instances. In Amazon RDS, Enhanced Monitoring enables a more rapid response to
951
+ performance changes in underlying infrastructure. These performance changes could
952
+ result in a lack of availability of the data. Enhanced Monitori…
953
+ checks:
954
+ - rds_instance_enhanced_monitoring_enabled
955
+ - id: RDS.7
956
+ title: This control checks whether RDS clusters have deletion protection enabled.
957
+ This control is intended for RDS DB instances. However, it can also generate findings
958
+ for Aurora DB instances, Neptune DB instances, and Amazon DocumentDB clusters.
959
+ If these findings are not useful,then you can suppress them.
960
+ checks:
961
+ - rds_cluster_deletion_protection
962
+ - id: RDS.8
963
+ title: 'This control checks whether your RDS DB instances that use one of the listed
964
+ database engines have deletion protection enabled. DatabaseEngines: mariadb,mysql,oracle-ee,oracle-se2,oracle-se1,oracle-se,postgres,sqlserver-ee,sqlserver-se,sqlserver-ex,sqlserver-web.'
965
+ checks:
966
+ - rds_instance_deletion_protection
967
+ - id: RDS.9
968
+ title: This control checks whether the logs of Amazon RDS are enabled and sent to
969
+ CloudWatch Logs. RDS databases should have relevant logs enabled. Database logging
970
+ provides detailed records of requests made to RDS. Database logs can assist with
971
+ security and access audits and can help to diagnose availabi…
972
+ checks:
973
+ - rds_instance_integration_cloudwatch_logs
974
+ - id: RDS.10
975
+ title: This control checks whether an RDS DB instance has IAM database authentication
976
+ enabled IAM database authentication allows authentication to database instances
977
+ with an authentication token instead of a password. Network traffic to and from
978
+ the database is encrypted using SSL.
979
+ checks:
980
+ - rds_instance_iam_authentication_enabled
981
+ - id: RDS.11
982
+ title: This control checks whether Amazon Relational Database Service instances
983
+ have automated backups enabled and the backup retention period is greater than
984
+ or equal to seven days. The control fails if backups are not enabled, and if the
985
+ retention period is less than 7 days.
986
+ checks:
987
+ - rds_instance_backup_enabled
988
+ - id: RDS.12
989
+ title: This control checks whether an RDS DB cluster has IAM database authentication
990
+ enabled. IAM database authentication allows for password-free authentication to
991
+ database instances. The authentication uses an authentication token. Network traffic
992
+ to and from the database is encrypted using SSL.
993
+ checks:
994
+ - rds_cluster_iam_authentication_enabled
995
+ - id: RDS.13
996
+ title: This control checks whether automatic minor version upgrades are enabled
997
+ for the RDS database instance. Enabling automatic minor version upgrades ensures
998
+ that the latest minor version updates to the relational database management system
999
+ (RDBMS) are installed. These upgrades might include security p…
1000
+ checks:
1001
+ - rds_instance_minor_version_upgrade_enabled
1002
+ - id: RDS.14
1003
+ title: This control checks whether Amazon Aurora clusters have backtracking enabled.
1004
+ Backups help you to recover more quickly from a security incident. They also strengthens
1005
+ the resilience of your systems. Aurora backtracking reduces the time to recover
1006
+ a database to a point in time. It does not require a…
1007
+ checks:
1008
+ - rds_cluster_backtrack_enabled
1009
+ - id: RDS.15
1010
+ title: This control checks whether high availability is enabled for your RDS DB
1011
+ clusters. RDS DB clusters should be configured for multiple Availability Zones
1012
+ to ensure availability of the data that is stored.
1013
+ checks:
1014
+ - rds_cluster_multi_az
1015
+ - id: RDS.16
1016
+ title: This control checks whether RDS DB clusters are configured to copy all tags
1017
+ to snapshots when the snapshots are created.
1018
+ checks:
1019
+ - rds_cluster_copy_tags_to_snapshots
1020
+ - id: RDS.17
1021
+ title: This control checks whether RDS DB instances are configured to copy all tags
1022
+ to snapshots when the snapshots are created.
1023
+ checks:
1024
+ - rds_instance_copy_tags_to_snapshots
1025
+ - id: RDS.18
1026
+ title: This control checks whether an RDS instance is deployed in a VPC (EC2-VPC).
1027
+ checks:
1028
+ - rds_instance_inside_vpc
1029
+ - id: RDS.19
1030
+ title: This control checks whether an Amazon RDS event subscription exists that
1031
+ has notifications enabled for the following source type, event category key-value
1032
+ pairs.
1033
+ checks:
1034
+ - rds_cluster_critical_event_subscription
1035
+ - id: RDS.20
1036
+ title: This control checks whether an Amazon RDS event subscription exists with
1037
+ notifications enabled for the following source type, event category key-value
1038
+ pairs.
1039
+ checks:
1040
+ - rds_instance_critical_event_subscription
1041
+ - id: RDS.21
1042
+ title: This control checks whether an Amazon RDS event subscription exists with
1043
+ notifications enabled for the following source type, event category key-value
1044
+ pairs.
1045
+ checks:
1046
+ - rds_instance_event_subscription_parameter_groups
1047
+ - id: RDS.22
1048
+ title: This control checks whether an Amazon RDS event subscription exists with
1049
+ notifications enabled for the following source type, event category key-value
1050
+ pairs.
1051
+ checks:
1052
+ - rds_instance_event_subscription_security_groups
1053
+ - id: RDS.23
1054
+ title: This control checks whether the RDS cluster or instance uses a port other
1055
+ than the default port of the database engine.
1056
+ checks:
1057
+ - rds_instance_non_default_port
1058
+ - id: RDS.24
1059
+ title: This control checks whether an Amazon RDS database cluster has changed the
1060
+ admin username from its default value. This rule will fail if the admin username
1061
+ is set to the default value.
1062
+ checks:
1063
+ - rds_cluster_default_admin
1064
+ - id: RDS.25
1065
+ title: This control checks whether you've changed the administrative username for
1066
+ Amazon Relational Database Service (Amazon RDS) database instances from the default
1067
+ value. The control fails if the administrative username is set to the default
1068
+ value.
1069
+ checks:
1070
+ - rds_instance_default_admin
1071
+ - id: RDS.27
1072
+ title: This control checks if an RDS DB cluster is encrypted at rest. The control
1073
+ fails if an RDS DB cluster isn't encrypted at rest.
1074
+ checks:
1075
+ - rds_cluster_storage_encrypted
1076
+ - id: RDS.35
1077
+ title: This control checks if automatic minor version upgrade is enabled for an
1078
+ Amazon RDS database cluster. The control fails if automatic minor version upgrade
1079
+ isn't enabled for an RDS cluster.
1080
+ checks:
1081
+ - rds_cluster_minor_version_upgrade_enabled
1082
+ - id: RDS.37
1083
+ title: This control checks whether an Amazon Aurora PostgreSQL DB cluster is configured
1084
+ to publish logs to Amazon CloudWatch Logs. The control fails if the Aurora PostgreSQL
1085
+ DB cluster isn't configured to publish PostgreSQL logs to CloudWatch Logs.
1086
+ checks:
1087
+ - rds_cluster_integration_cloudwatch_logs
1088
+ - id: RDS.38
1089
+ title: This control checks whether a connection to an Amazon RDS for PostgreSQL
1090
+ database (DB) instance is encrypted in transit. The control fails if the rds.force_ssl
1091
+ parameter for the parameter group associated with the instance is set to 0 (off).
1092
+ This control doesn't evaluate RDS DB instances that are p…
1093
+ checks:
1094
+ - rds_instance_transport_encrypted
1095
+ - id: RDS.39
1096
+ title: This control checks whether a connection to an Amazon RDS for MySQL database
1097
+ (DB) instance is encrypted in transit. The control fails if the rds.require_secure_transport
1098
+ parameter for the parameter group associated with the instance is set to 0 (off).
1099
+ This control doesn't evaluate RDS DB instances …
1100
+ checks:
1101
+ - rds_instance_transport_encrypted
1102
+ - id: Redshift.1
1103
+ title: This control checks whether Amazon Redshift clusters are publicly accessible.
1104
+ It evaluates the PubliclyAccessible field in the cluster configuration item. The
1105
+ PubliclyAccessible attribute of the Amazon Redshift cluster configuration indicates
1106
+ whether the cluster is publicly accessible. When the clu…
1107
+ checks:
1108
+ - redshift_cluster_public_access
1109
+ - id: Redshift.3
1110
+ title: This control checks whether Amazon Redshift clusters have automated snapshots
1111
+ enabled. It also checks whether the snapshot retention period is greater than
1112
+ or equal to seven.
1113
+ checks:
1114
+ - redshift_cluster_automated_snapshot
1115
+ - id: Redshift.4
1116
+ title: This control checks whether an Amazon Redshift cluster has audit logging
1117
+ enabled.
1118
+ checks:
1119
+ - redshift_cluster_audit_logging
1120
+ - id: Redshift.6
1121
+ title: This control checks whether automatic major version upgrades are enabled
1122
+ for the Amazon Redshift cluster.
1123
+ checks:
1124
+ - redshift_cluster_automatic_upgrades
1125
+ - id: S3.1
1126
+ title: This control checks whether the following Amazon S3 public access block settings
1127
+ are configured at the account level
1128
+ checks:
1129
+ - s3_account_level_public_access_blocks
1130
+ - id: S3.3
1131
+ title: This control checks whether your S3 buckets allow public write access. It
1132
+ evaluates the block public access settings, the bucket policy, and the bucket
1133
+ access control list (ACL).
1134
+ checks:
1135
+ - s3_bucket_policy_public_write_access
1136
+ - s3_bucket_public_write_acl
1137
+ - id: S3.5
1138
+ title: 'This control checks whether S3 buckets have policies that require requests
1139
+ to use Secure Socket Layer (SSL). S3 buckets should have policies that require
1140
+ all requests (Action: S3:*)to only accept transmission of data over HTTPS in the
1141
+ S3 resource policy, indicated by the condition key aws:SecureTra…'
1142
+ checks:
1143
+ - s3_bucket_secure_transport_policy
1144
+ - id: S3.6
1145
+ title: This control checks whether the S3 bucket policy prevents principals from
1146
+ other AWS accounts from performing denied actions on resources in the S3 bucket.
1147
+ checks:
1148
+ - s3_bucket_cross_account_access
1149
+ - id: S3.7
1150
+ title: This control checks whether an Amazon S3 general purpose bucket has cross-Region
1151
+ replication enabled. The control fails if the bucket doesn't have cross-Region
1152
+ replication enabled.
1153
+ checks:
1154
+ - s3_bucket_cross_account_access
1155
+ - id: S3.8
1156
+ title: This control checks whether S3 buckets have bucket-level public access blocks
1157
+ applied.
1158
+ checks:
1159
+ - s3_bucket_level_public_access_block
1160
+ - id: S3.9
1161
+ title: When logging is enabled, Amazon S3 delivers access logs for a source bucket
1162
+ to a chosen target bucket. The target bucket must be in the same AWS Region as
1163
+ the source bucket and must not have a default retention period configuration.
1164
+ checks:
1165
+ - s3_bucket_server_access_logging_enabled
1166
+ - id: S3.12
1167
+ title: This control checks whether Amazon S3 buckets provide user permissions via
1168
+ ACLs. The control fails if ACLs are configured for managing user access on S3
1169
+ buckets.
1170
+ checks:
1171
+ - s3_bucket_acl_prohibited
1172
+ - id: S3.13
1173
+ title: This control checks if a lifecycle policy is configured for an Amazon S3
1174
+ bucket. This control fails if a lifecycle policy is not configured for an S3 bucket.
1175
+ checks:
1176
+ - s3_bucket_lifecycle_enabled
1177
+ - id: S3.14
1178
+ title: This control checks whether an Amazon S3 general purpose bucket has versioning
1179
+ enabled. The control fails if versioning is suspended for the bucket.
1180
+ checks:
1181
+ - s3_bucket_object_versioning
1182
+ - id: S3.15
1183
+ title: This control checks whether an Amazon S3 general purpose bucket has Object
1184
+ Lock enabled. The control fails if Object Lock isn't enabled for the bucket. If
1185
+ you provide a custom value for the mode parameter, the control passes only if
1186
+ S3 Object Lock uses the specified retention mode.
1187
+ checks:
1188
+ - s3_bucket_object_lock
1189
+ - id: S3.17
1190
+ title: This control checks whether an Amazon S3 general purpose bucket is encrypted
1191
+ with an AWS KMS key (SSE-KMS or DSSE-KMS). The control fails if the bucket is
1192
+ encrypted with default encryption (SSE-S3).
1193
+ checks:
1194
+ - s3_bucket_kms_encryption
1195
+ - id: S3.19
1196
+ title: This control checks whether an Amazon S3 access point has block public access
1197
+ settings enabled. The control fails if block public access settings aren't enabled
1198
+ for the access point.
1199
+ checks:
1200
+ - s3_access_point_public_access_block
1201
+ - id: S3.20
1202
+ title: This control checks whether multi-factor authentication (MFA) delete is enabled
1203
+ on an Amazon S3 general purpose versioned bucket. The control fails if MFA delete
1204
+ is not enabled on the bucket. The control doesn't produce findings for buckets
1205
+ that have a Lifecycle configuration.
1206
+ checks:
1207
+ - s3_bucket_no_mfa_delete
1208
+ - id: SNS.1
1209
+ title: This control checks whether an SNS topic is encrypted at rest using AWS KMS.
1210
+ checks:
1211
+ - sns_topics_kms_encryption_at_rest_enabled
1212
+ - id: SQS.1
1213
+ title: This control checks whether Amazon SQS queues are encrypted at rest.
1214
+ checks:
1215
+ - sqs_queues_server_side_encryption_enabled
1216
+ - id: SSM.1
1217
+ title: This control checks whether the EC2 instances in your account are managed
1218
+ by AWS Systems Manager. Systems Manager is an AWS service that you can use to
1219
+ view and control your AWS infrastructure. To help you to maintain security and
1220
+ compliance, Systems Manager scans your managed instances. A managed …
1221
+ checks:
1222
+ - ec2_instance_managed_by_ssm
1223
+ - id: SSM.2
1224
+ title: This control checks whether the compliance status of the Amazon EC2 Systems
1225
+ Manager patch compliance is COMPLIANT or non compliant after the patch installation
1226
+ on the instance. It only checks instances that are managed by Systems Manager
1227
+ Patch Manager.
1228
+ checks:
1229
+ - ssm_managed_compliant_patching
1230
+ - id: SSM.3
1231
+ title: This control checks whether the status of the AWS Systems Manager association
1232
+ compliance is COMPLIANT or non compliant after the association is run on an instance.
1233
+ The control passes if the association compliance status is COMPLIANT.
1234
+ checks:
1235
+ - ssm_managed_compliant_patching
1236
+ - id: SSM.4
1237
+ title: This control checks whether AWS Systems Manager documents that are owned
1238
+ by the account are public. This control fails if SSM documents with the owner
1239
+ Self are public.
1240
+ checks:
1241
+ - ssm_documents_set_as_public
1242
+ - id: SageMaker.1
1243
+ title: This control checks whether direct internet access is disabled for an SageMaker
1244
+ notebook instance. To do this, it checks whether the DirectInternetAccess field
1245
+ is disabled for the notebook instance. If you configure your SageMaker instance
1246
+ without a VPC, then by default direct internet access is en…
1247
+ checks:
1248
+ - sagemaker_notebook_instance_without_direct_internet_access_configured
1249
+ - id: SageMaker.2
1250
+ title: This control checks if an Amazon SageMaker notebook instance is launched
1251
+ within a custom virtual private cloud (VPC). This control fails if a SageMaker
1252
+ notebook instance is not launched within a custom VPC or if it is launched in
1253
+ the SageMaker service VPC.
1254
+ checks:
1255
+ - sagemaker_notebook_instance_vpc_settings_configured
1256
+ - id: SageMaker.3
1257
+ title: This control checks whether root access is turned on for an Amazon SageMaker
1258
+ notebook instance. The control fails if root access is turned on for a SageMaker
1259
+ notebook instance.
1260
+ checks:
1261
+ - sagemaker_notebook_instance_root_access_disabled
1262
+ - id: SageMaker.4
1263
+ title: This control checks whether production variants of an Amazon SageMaker AI
1264
+ endpoint have an initial instance count greater than 1. The control fails if the
1265
+ endpoint's production variants have only 1 initial instance.
1266
+ checks:
1267
+ - sagemaker_endpoint_config_prod_variant_instances
1268
+ - id: SageMaker.5
1269
+ title: This control checks whether an Amazon SageMaker AI hosted model blocks inbound
1270
+ network traffic. The control fails if the EnableNetworkIsolation parameter for
1271
+ the hosted model is set to False.
1272
+ checks:
1273
+ - sagemaker_models_network_isolation_enabled
1274
+ - id: SecretsManager.1
1275
+ title: This control checks whether a secret stored in AWS Secrets Manager is configured
1276
+ with automatic rotation. Secrets Manager helps you improve the security posture
1277
+ of your organization. Secrets include database credentials, passwords, and third-party
1278
+ API keys. You can use Secrets Manager to store secr…
1279
+ checks:
1280
+ - secretsmanager_automatic_rotation_enabled
1281
+ - id: WAF.11
1282
+ title: This control checks whether logging is activated for an AWS WAFV2 web access
1283
+ control list (web ACL). This control fails if logging is deactivated for the web
1284
+ ACL.
1285
+ checks:
1286
+ - wafv2_webacl_logging_enabled