-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathoperational_phase.pp
276 lines (249 loc) · 13 KB
/
operational_phase.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
benchmark "gxp_eu_annex_11_operational_phase" {
title = "Operational Phase"
description = "This section focuses on various operational phases of data, such as data accuracy, secure storage, authorized access and backup."
children = [
benchmark.gxp_eu_annex_11_operational_phase_5,
benchmark.gxp_eu_annex_11_operational_phase_7,
benchmark.gxp_eu_annex_11_operational_phase_8,
benchmark.gxp_eu_annex_11_operational_phase_9,
benchmark.gxp_eu_annex_11_operational_phase_10,
benchmark.gxp_eu_annex_11_operational_phase_12,
benchmark.gxp_eu_annex_11_operational_phase_13,
benchmark.gxp_eu_annex_11_operational_phase_16,
benchmark.gxp_eu_annex_11_operational_phase_17
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_5" {
title = "5 Data"
description = "Computerised systems exchanging data electronically with other systems should include appropriate built-in checks for the correct and secure entry and processing of data, in order to minimize the risks."
children = [
control.backup_plan_min_retention_35_days,
control.backup_recovery_point_encryption_enabled,
control.backup_recovery_point_manual_deletion_disabled,
control.backup_recovery_point_min_retention_35_days,
control.dynamodb_table_in_backup_plan,
control.dynamodb_table_point_in_time_recovery_enabled,
control.dynamodb_table_protected_by_backup_plan,
control.ebs_volume_in_backup_plan,
control.ebs_volume_protected_by_backup_plan,
control.ec2_instance_ebs_optimized,
control.ec2_instance_protected_by_backup_plan,
control.efs_file_system_in_backup_plan,
control.efs_file_system_protected_by_backup_plan,
control.elasticache_redis_cluster_automatic_backup_retention_15_days,
control.fsx_file_system_protected_by_backup_plan,
control.rds_db_cluster_aurora_protected_by_backup_plan,
control.rds_db_instance_backup_enabled,
control.rds_db_instance_in_backup_plan,
control.rds_db_instance_protected_by_backup_plan,
control.redshift_cluster_automatic_snapshots_min_7_days,
control.s3_bucket_cross_region_replication_enabled,
control.s3_bucket_versioning_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_7" {
title = "7 Data Storage"
description = "Data must be secure against damage, yet remain accessible, readable, and accurate throughout the retention period. Regular backups are expected and should be verified and monitored."
children = [
benchmark.gxp_eu_annex_11_operational_phase_7_1,
benchmark.gxp_eu_annex_11_operational_phase_7_2
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_7_1" {
title = "7.1 Data Storage - Damage Protection"
description = "Data should be secured by both physical and electronic means against damage. Stored data should be checked for accessibility, readability and accuracy. Access to data should be ensured throughout the retention period."
children = [
control.apigateway_stage_cache_encryption_at_rest_enabled,
control.cloudfront_distribution_custom_origins_encryption_in_transit_enabled,
control.cloudfront_distribution_no_deprecated_ssl_protocol,
control.cloudtrail_trail_logs_encrypted_with_kms_cmk,
control.codebuild_project_artifact_encryption_enabled,
control.codebuild_project_s3_logs_encryption_enabled,
control.dax_cluster_encryption_at_rest_enabled,
control.dynamodb_table_encrypted_with_kms,
control.dynamodb_table_encryption_enabled,
control.dynamodb_table_in_backup_plan,
control.dynamodb_table_point_in_time_recovery_enabled,
control.ebs_attached_volume_encryption_enabled,
control.ebs_volume_in_backup_plan,
control.ebs_encryption_by_default_enabled,
control.ec2_instance_ebs_optimized,
control.efs_file_system_encrypt_data_at_rest,
control.efs_file_system_in_backup_plan,
control.eks_cluster_secrets_encrypted,
control.elasticache_redis_cluster_automatic_backup_retention_15_days,
control.elb_application_network_lb_use_ssl_certificate,
control.es_domain_encryption_at_rest_enabled,
control.kinesis_stream_server_side_encryption_enabled,
control.log_group_encryption_at_rest_enabled,
control.opensearch_domain_encryption_at_rest_enabled,
control.opensearch_domain_https_required,
control.opensearch_domain_node_to_node_encryption_enabled,
control.rds_db_instance_backup_enabled,
control.rds_db_instance_encryption_at_rest_enabled,
control.rds_db_instance_in_backup_plan,
control.rds_db_snapshot_encrypted_at_rest,
control.redshift_cluster_automatic_snapshots_min_7_days,
control.redshift_cluster_encryption_logging_enabled,
control.s3_bucket_cross_region_replication_enabled,
control.s3_bucket_default_encryption_enabled,
control.s3_bucket_default_encryption_enabled_kms,
control.s3_bucket_versioning_enabled,
control.sagemaker_endpoint_configuration_encryption_at_rest_enabled,
control.sagemaker_notebook_instance_encryption_at_rest_enabled,
control.secretsmanager_secret_encrypted_with_kms_cmk,
control.sns_topic_encrypted_at_rest
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_7_2" {
title = "7.2 Data Storage - Backups"
description = "Regular back-ups of all relevant data should be done. Integrity and accuracy of backup data and the ability to restore the data should be checked during validation and monitored periodically."
children = [
control.backup_plan_min_retention_35_days,
control.backup_recovery_point_encryption_enabled,
control.backup_recovery_point_manual_deletion_disabled,
control.backup_recovery_point_min_retention_35_days,
control.dynamodb_table_in_backup_plan,
control.dynamodb_table_point_in_time_recovery_enabled,
control.dynamodb_table_protected_by_backup_plan,
control.ebs_volume_in_backup_plan,
control.ebs_volume_protected_by_backup_plan,
control.ec2_instance_ebs_optimized,
control.ec2_instance_protected_by_backup_plan,
control.efs_file_system_in_backup_plan,
control.efs_file_system_protected_by_backup_plan,
control.elasticache_redis_cluster_automatic_backup_retention_15_days,
control.fsx_file_system_protected_by_backup_plan,
control.rds_db_cluster_aurora_protected_by_backup_plan,
control.rds_db_instance_backup_enabled,
control.rds_db_instance_in_backup_plan,
control.rds_db_instance_protected_by_backup_plan,
control.redshift_cluster_automatic_snapshots_min_7_days,
control.s3_bucket_cross_region_replication_enabled,
control.s3_bucket_versioning_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_8" {
title = "8 Printouts"
description = "Clear printed copies of electronically stored data should be easily available. Any changes to data should be indicated."
children = [
benchmark.gxp_eu_annex_11_operational_phase_8_2
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_8_2" {
title = "8.2 Printouts - Data Changes"
description = "For records supporting batch release it should be possible to generate printouts indicating if any of the data has been changed since the original entry."
children = [
control.cloudtrail_s3_data_events_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_9" {
title = "9 Audit Trails"
description = "Consideration should be given, based on a risk assessment, to building into the system the creation of a record of all GMP-relevant changes and deletions (a system generated 'audit trail'). For change or deletion of GMP-relevant data the reason should be documented. Audit trails need to be available and convertible to a generally intelligible form and regularly reviewed."
children = [
control.cloudtrail_s3_data_events_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_10" {
title = "10 Change and Configuration Management"
description = "Any changes to a computerised system including system configurations should only be made in a controlled manner in accordance with a defined procedure."
children = [
control.config_enabled_all_regions
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_12" {
title = "12 Security"
description = "For enhanced security, access to physical and logical controls should be restricted to authorized individuals. Management systems should be created to record the identity of persons entering, changing, confirming, or deleting data by time and date."
children = [
benchmark.gxp_eu_annex_11_operational_phase_12_4
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_12_4" {
title = "12.4 Security - Audit Trail"
description = "Management systems for data and for documents should be designed to record the identity of operators entering, changing, confirming or deleting data including date and time."
children = [
control.cloudtrail_s3_data_events_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_13" {
title = "13 Incident Management"
description = "All incidents, not only system failures and data errors, should be reported and assessed. The root cause of a critical incident should be identified and should form the basis of corrective and preventive actions."
children = [
control.cloudtrail_security_trail_enabled,
control.cloudwatch_alarm_action_enabled,
control.guardduty_enabled,
control.guardduty_finding_archived,
control.securityhub_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_16" {
title = "16 Business Continuity"
description = "For the availability of computerised systems supporting critical processes, provisions should be made to ensure continuity of support for those processes in the event of a system breakdown (e.g. a manual or alternative system). The time required to bring the alternative arrangements into use should be based on risk and appropriate for a particular system and the business process it supports. These arrangements should be adequately documented and tested."
children = [
control.backup_plan_min_retention_35_days,
control.backup_recovery_point_encryption_enabled,
control.backup_recovery_point_manual_deletion_disabled,
control.backup_recovery_point_min_retention_35_days,
control.dynamodb_table_in_backup_plan,
control.dynamodb_table_point_in_time_recovery_enabled,
control.dynamodb_table_protected_by_backup_plan,
control.ebs_volume_in_backup_plan,
control.ebs_volume_protected_by_backup_plan,
control.ec2_instance_ebs_optimized,
control.ec2_instance_protected_by_backup_plan,
control.efs_file_system_in_backup_plan,
control.efs_file_system_protected_by_backup_plan,
control.elasticache_redis_cluster_automatic_backup_retention_15_days,
control.elb_classic_lb_cross_zone_load_balancing_enabled,
control.fsx_file_system_protected_by_backup_plan,
control.rds_db_cluster_aurora_protected_by_backup_plan,
control.rds_db_instance_backup_enabled,
control.rds_db_instance_in_backup_plan,
control.rds_db_instance_protected_by_backup_plan,
control.redshift_cluster_automatic_snapshots_min_7_days,
control.s3_bucket_cross_region_replication_enabled,
control.s3_bucket_versioning_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}
benchmark "gxp_eu_annex_11_operational_phase_17" {
title = "17 Archiving"
description = "Data may be archived. This data should be checked for accessibility, readability and integrity. If relevant changes are to be made to the system (e.g. computer equipment or programs), then the ability to retrieve the data should be ensured and tested."
children = [
control.backup_plan_min_retention_35_days,
control.backup_recovery_point_encryption_enabled,
control.backup_recovery_point_manual_deletion_disabled,
control.backup_recovery_point_min_retention_35_days,
control.dynamodb_table_in_backup_plan,
control.dynamodb_table_point_in_time_recovery_enabled,
control.dynamodb_table_protected_by_backup_plan,
control.ebs_volume_in_backup_plan,
control.ebs_volume_protected_by_backup_plan,
control.ec2_instance_ebs_optimized,
control.ec2_instance_protected_by_backup_plan,
control.efs_file_system_in_backup_plan,
control.efs_file_system_protected_by_backup_plan,
control.elasticache_redis_cluster_automatic_backup_retention_15_days,
control.fsx_file_system_protected_by_backup_plan,
control.rds_db_cluster_aurora_protected_by_backup_plan,
control.rds_db_instance_backup_enabled,
control.rds_db_instance_in_backup_plan,
control.rds_db_instance_protected_by_backup_plan,
control.redshift_cluster_automatic_snapshots_min_7_days,
control.s3_bucket_cross_region_replication_enabled,
control.s3_bucket_versioning_enabled
]
tags = local.gxp_eu_annex_11_common_tags
}