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,342 @@
1
+ # Generated by scripts/import_prowler_compliance.py — do not edit by hand.
2
+ # Framework: SOC2 (GCP)
3
+ # Data source: Prowler (https://github.com/prowler-cloud/prowler), Apache-2.0.
4
+ framework: SOC2-GCP
5
+ version: null
6
+ source: Prowler compliance data (soc2_gcp.json), Apache-2.0, https://github.com/prowler-cloud/prowler
7
+ provider: gcp
8
+ controls:
9
+ - id: cc_1_3
10
+ title: Considers All Structures of the Entity - Management and the board of directors
11
+ consider the multiple structures used (including operating units, legal entities,
12
+ geographic distribution, and outsourced service providers) to support the achievement
13
+ of objectives. Establishes Reporting Lines - Managem…
14
+ checks:
15
+ - iam_account_access_approval_enabled
16
+ - iam_cloud_asset_inventory_enabled
17
+ - iam_no_service_roles_at_project_level
18
+ - iam_organization_essential_contacts_configured
19
+ - iam_role_kms_enforce_separation_of_duties
20
+ - iam_role_sa_enforce_separation_of_duties
21
+ - iam_sa_no_administrative_privileges
22
+ - iam_sa_no_user_managed_keys
23
+ - iam_sa_user_managed_key_unused
24
+ - id: cc_2_1
25
+ title: Identifies Information Requirements - A process is in place to identify the
26
+ information required and expected to support the functioning of the other components
27
+ of internal control and the achievement of the entity’s objectives. Captures Internal
28
+ and External Sources of Data - Information systems c…
29
+ checks:
30
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
31
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
32
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
33
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
34
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
35
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
36
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
37
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
38
+ - logging_sink_created
39
+ - id: cc_3_1
40
+ title: 'Operations Objectives: Reflects Management''s Choices - Operations objectives
41
+ reflect management''s choices about structure, industry considerations, and performance
42
+ of the entity. Considers Tolerances for Risk - Management considers the acceptable
43
+ levels of variation relative to the achievement of o…'
44
+ checks:
45
+ - artifacts_container_analysis_enabled
46
+ - gcr_container_scanning_enabled
47
+ - id: cc_3_2
48
+ title: Includes Entity, Subsidiary, Division, Operating Unit, and Functional Levels
49
+ - The entity identifies and assesses risk at the entity, subsidiary, division,
50
+ operating unit, and functional levels relevant to the achievement of objectives.
51
+ Analyzes Internal and External Factors - Risk identification c…
52
+ checks:
53
+ - gcr_container_scanning_enabled
54
+ - gemini_api_disabled
55
+ - id: cc_3_3
56
+ title: Considers Various Types of Fraud - The assessment of fraud considers fraudulent
57
+ reporting, possible loss of assets, and corruption resulting from the various
58
+ ways that fraud and misconduct can occur. Assesses Incentives and Pressures -
59
+ The assessment of fraud risks considers incentives and pressure…
60
+ checks:
61
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
62
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
63
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
64
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
65
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
66
+ - id: cc_3_4
67
+ title: Assesses Changes in the External Environment - The risk identification process
68
+ considers changes to the regulatory, economic, and physical environment in which
69
+ the entity operates. Assesses Changes in the Business Model - The entity considers
70
+ the potential impacts of new business lines, dramaticall…
71
+ checks:
72
+ - iam_cloud_asset_inventory_enabled
73
+ - id: cc_4_2
74
+ title: Assesses Results - Management and the board of directors, as appropriate,
75
+ assess results of ongoing and separate evaluations. Communicates Deficiencies
76
+ - Deficiencies are communicated to parties responsible for taking corrective action
77
+ and to senior management and the board of directors, as appropr…
78
+ checks:
79
+ - iam_cloud_asset_inventory_enabled
80
+ - id: cc_5_2
81
+ title: Determines Dependency Between the Use of Technology in Business Processes
82
+ and Technology General Controls - Management understands and determines the dependency
83
+ and linkage between business processes, automated control activities, and technology
84
+ general controls. Establishes Relevant Technology Inf…
85
+ checks:
86
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
87
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
88
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
89
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
90
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
91
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
92
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
93
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
94
+ - logging_sink_created
95
+ - id: cc_6_1
96
+ title: Identifies and Manages the Inventory of Information Assets - The entity identifies,
97
+ inventories, classifies, and manages information assets. Restricts Logical Access
98
+ - Logical access to information assets, including hardware, data (at-rest, during
99
+ processing, or in transmission), software, administ…
100
+ checks:
101
+ - cloudstorage_bucket_public_access
102
+ - id: cc_6_2
103
+ title: Prior to issuing system credentials and granting system access, the entity
104
+ registers and authorizes new internal and external users whose access is administered
105
+ by the entity. For those users whose access is administered by the entity, user
106
+ system credentials are removed when user access is no long…
107
+ checks:
108
+ - cloudsql_instance_public_access
109
+ - id: cc_6_3
110
+ title: Creates or Modifies Access to Protected Information Assets - Processes are
111
+ in place to create or modify access to protected information assets based on authorization
112
+ from the asset’s owner. Removes Access to Protected Information Assets - Processes
113
+ are in place to remove access to protected informa…
114
+ checks:
115
+ - iam_account_access_approval_enabled
116
+ - iam_role_kms_enforce_separation_of_duties
117
+ - iam_role_sa_enforce_separation_of_duties
118
+ - iam_sa_no_administrative_privileges
119
+ - iam_sa_user_managed_key_unused
120
+ - id: cc_6_6
121
+ title: Restricts Access — The types of activities that can occur through a communication
122
+ channel (for example, FTP site, router port) are restricted. Protects Identification
123
+ and Authentication Credentials — Identification and authentication credentials
124
+ are protected during transmission outside its system …
125
+ checks:
126
+ - compute_firewall_rdp_access_from_the_internet_allowed
127
+ - compute_firewall_ssh_access_from_the_internet_allowed
128
+ - compute_instance_block_project_wide_ssh_keys_disabled
129
+ - compute_instance_ip_forwarding_is_enabled
130
+ - compute_instance_public_ip
131
+ - compute_instance_serial_ports_in_use
132
+ - compute_network_dns_logging_enabled
133
+ - compute_public_address_shodan
134
+ - id: cc_6_7
135
+ title: Restricts the Ability to Perform Transmission - Data loss prevention processes
136
+ and technologies are used to restrict ability to authorize and execute transmission,
137
+ movement and removal of information. Uses Encryption Technologies or Secure Communication
138
+ Channels to Protect Data - Encryption technol…
139
+ checks:
140
+ - cloudsql_instance_ssl_connections
141
+ - compute_firewall_rdp_access_from_the_internet_allowed
142
+ - compute_firewall_ssh_access_from_the_internet_allowed
143
+ - dns_dnssec_disabled
144
+ - dns_rsasha1_in_use_to_key_sign_in_dnssec
145
+ - dns_rsasha1_in_use_to_zone_sign_in_dnssec
146
+ - id: cc_6_8
147
+ title: Restricts Application and Software Installation - The ability to install
148
+ applications and software is restricted to authorized individuals. Detects Unauthorized
149
+ Changes to Software and Configuration Parameters - Processes are in place to detect
150
+ changes to software and configuration parameters that …
151
+ checks:
152
+ - iam_cloud_asset_inventory_enabled
153
+ - id: cc_7_1
154
+ title: Uses Defined Configuration Standards - Management has defined configuration
155
+ standards. Monitors Infrastructure and Software - The entity monitors infrastructure
156
+ and software for noncompliance with the standards, which could threaten the achievement
157
+ of the entity's objectives. Implements Change-Dete…
158
+ checks:
159
+ - gemini_api_disabled
160
+ - iam_cloud_asset_inventory_enabled
161
+ - id: cc_7_2
162
+ title: Implements Detection Policies, Procedures, and Tools - Detection policies
163
+ and procedures are defined and implemented, and detection tools are implemented
164
+ on Infrastructure and software to identify anomalies in the operation or unusual
165
+ activity on systems. Procedures may include (1) a defined govern…
166
+ checks:
167
+ - cloudsql_instance_postgres_log_connections_flag
168
+ - cloudsql_instance_postgres_log_disconnections_flag
169
+ - cloudsql_instance_postgres_log_error_verbosity_flag
170
+ - cloudsql_instance_postgres_log_min_duration_statement_flag
171
+ - cloudsql_instance_postgres_log_min_error_statement_flag
172
+ - cloudsql_instance_postgres_log_min_messages_flag
173
+ - cloudsql_instance_postgres_log_statement_flag
174
+ - cloudstorage_bucket_log_retention_policy_lock
175
+ - compute_loadbalancer_logging_enabled
176
+ - compute_network_dns_logging_enabled
177
+ - compute_project_os_login_enabled
178
+ - compute_subnet_flow_logs_enabled
179
+ - iam_audit_logs_enabled
180
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
181
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
182
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
183
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
184
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
185
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
186
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
187
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
188
+ - logging_sink_created
189
+ - id: cc_7_3
190
+ title: Responds to Security Incidents - Procedures are in place for responding to
191
+ security incidents and evaluating the effectiveness of those policies and procedures
192
+ on a periodic basis. Communicates and Reviews Detected Security Events - Detected
193
+ security events are communicated to and reviewed by the i…
194
+ checks:
195
+ - cloudsql_instance_postgres_log_connections_flag
196
+ - cloudsql_instance_postgres_log_disconnections_flag
197
+ - cloudsql_instance_postgres_log_error_verbosity_flag
198
+ - cloudsql_instance_postgres_log_min_duration_statement_flag
199
+ - cloudsql_instance_postgres_log_min_error_statement_flag
200
+ - cloudsql_instance_postgres_log_min_messages_flag
201
+ - cloudsql_instance_postgres_log_statement_flag
202
+ - cloudstorage_bucket_log_retention_policy_lock
203
+ - compute_loadbalancer_logging_enabled
204
+ - compute_network_dns_logging_enabled
205
+ - compute_project_os_login_enabled
206
+ - compute_subnet_flow_logs_enabled
207
+ - iam_audit_logs_enabled
208
+ - iam_cloud_asset_inventory_enabled
209
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
210
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
211
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
212
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
213
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
214
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
215
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
216
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
217
+ - id: cc_7_4
218
+ title: Assigns Roles and Responsibilities - Roles and responsibilities for the design,
219
+ implementation, maintenance, and execution of the incident response program are
220
+ assigned, including the use of external resources when necessary. Contains Security
221
+ Incidents - Procedures are in place to contain security…
222
+ checks:
223
+ - cloudsql_instance_automated_backups
224
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
225
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
226
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
227
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
228
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
229
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
230
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
231
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
232
+ - id: cc_7_5
233
+ title: Restores the Affected Environment - The activities restore the affected environment
234
+ to functional operation by rebuilding systems, updating software, installing patches,
235
+ and changing configurations, as needed. Communicates Information About the Event
236
+ - Communications about the nature of the inciden…
237
+ checks:
238
+ - cloudsql_instance_automated_backups
239
+ - id: cc_8_1
240
+ title: Manages Changes Throughout the System Lifecycle - A process for managing
241
+ system changes throughout the lifecycle of the system and its components (infrastructure,
242
+ data, software and procedures) is used to support system availability and processing
243
+ integrity. Authorizes Changes - A process is in pla…
244
+ checks:
245
+ - iam_cloud_asset_inventory_enabled
246
+ - id: cc_9_2
247
+ title: Establishes Requirements for Vendor and Business Partner Engagements—The
248
+ entity establishes specific requirements for a vendor and business partner engagement
249
+ that includes (1) scope of services and product specifications, (2) roles and
250
+ responsibilities, (3) compliance requirements, and (4) service…
251
+ checks:
252
+ - gemini_api_disabled
253
+ - id: cc_a_1_1
254
+ title: Measures Current Usage - The use of the system components is measured to
255
+ establish a baseline for capacity management and to use when evaluating the risk
256
+ of impaired availability due to capacity constraints. Forecasts Capacity - The
257
+ expected average and peak use of system components is forecasted a…
258
+ checks:
259
+ - cloudsql_instance_postgres_log_connections_flag
260
+ - cloudsql_instance_postgres_log_disconnections_flag
261
+ - cloudsql_instance_postgres_log_error_verbosity_flag
262
+ - cloudsql_instance_postgres_log_min_duration_statement_flag
263
+ - cloudsql_instance_postgres_log_min_error_statement_flag
264
+ - cloudsql_instance_postgres_log_min_messages_flag
265
+ - cloudsql_instance_postgres_log_statement_flag
266
+ - cloudstorage_bucket_log_retention_policy_lock
267
+ - compute_loadbalancer_logging_enabled
268
+ - compute_network_dns_logging_enabled
269
+ - compute_project_os_login_enabled
270
+ - compute_subnet_flow_logs_enabled
271
+ - iam_audit_logs_enabled
272
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
273
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
274
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
275
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
276
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
277
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
278
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
279
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
280
+ - logging_sink_created
281
+ - id: cc_c_1_1
282
+ title: Identifies Confidential information - Procedures are in place to identify
283
+ and designate confidential information when it is received or created and to determine
284
+ the period over which the confidential information is to be retained. Protects
285
+ Confidential Information from Destruction - Procedures are …
286
+ checks:
287
+ - bigquery_dataset_cmk_encryption
288
+ - bigquery_table_cmk_encryption
289
+ - compute_instance_confidential_computing_enabled
290
+ - compute_instance_encryption_with_csek_enabled
291
+ - dataproc_encrypted_with_cmks_disabled
292
+ - id: cc_c_1_2
293
+ title: Identifies Confidential Information for Destruction - Procedures are in place
294
+ to identify confidential information requiring destruction when the end of the
295
+ retention period is reached. Destroys Confidential Information - Procedures are
296
+ in place to erase or otherwise destroy confidential informatio…
297
+ checks:
298
+ - cloudstorage_bucket_log_retention_policy_lock
299
+ - id: pi_1_2
300
+ title: The entity implements policies and procedures over system inputs, including
301
+ controls over completeness and accuracy, to result in products, services, and
302
+ reporting to meet the entity's objectives. This includes defining accuracy targets,
303
+ monitoring input quality, and creating detailed records of ea…
304
+ checks:
305
+ - compute_loadbalancer_logging_enabled
306
+ - compute_subnet_flow_logs_enabled
307
+ - iam_audit_logs_enabled
308
+ - logging_sink_created
309
+ - id: pi_1_3
310
+ title: The entity implements controls to ensure data is processed completely, accurately,
311
+ and timely. This includes defining processing specifications, identifying processing
312
+ activities, detecting and correcting errors throughout processing, recording processing
313
+ activities with accurate logs, and ensuring…
314
+ checks:
315
+ - cloudsql_instance_postgres_log_connections_flag
316
+ - cloudsql_instance_postgres_log_disconnections_flag
317
+ - cloudsql_instance_postgres_log_statement_flag
318
+ - iam_audit_logs_enabled
319
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
320
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
321
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
322
+ - id: pi_1_4
323
+ title: The entity implements controls to ensure system outputs are delivered to
324
+ authorized recipients in the correct format and protected against unauthorized
325
+ access, modification, theft, destruction, or corruption. This includes output
326
+ encryption, access controls, and audit trails for output delivery.
327
+ checks:
328
+ - bigquery_dataset_cmk_encryption
329
+ - bigquery_table_cmk_encryption
330
+ - cloudstorage_bucket_uniform_bucket_level_access
331
+ - compute_instance_confidential_computing_enabled
332
+ - id: pi_1_5
333
+ title: The entity implements controls to protect stored inputs, items in processing,
334
+ and outputs from theft, destruction, corruption, or deterioration. This includes
335
+ data encryption at rest, key management, backup and recovery procedures, access
336
+ controls, and data integrity validation.
337
+ checks:
338
+ - cloudsql_instance_automated_backups
339
+ - cloudstorage_bucket_log_retention_policy_lock
340
+ - compute_instance_encryption_with_csek_enabled
341
+ - dataproc_encrypted_with_cmks_disabled
342
+ - kms_key_rotation_enabled
cloudg/rules/gdpr.yaml ADDED
@@ -0,0 +1,56 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # GDPR — Article Mappings for Infrastructure Findings
3
+ # Source: Regulation (EU) 2016/679 (public, EUR-Lex)
4
+ #
5
+ # Fallback mappings for findings that arrive without scanner-native
6
+ # compliance control IDs. Only the articles with a direct technical
7
+ # infrastructure reading are mapped.
8
+ # ─────────────────────────────────────────────────────────────────
9
+
10
+ framework: GDPR
11
+ version: "2016/679"
12
+ source: "Regulation (EU) 2016/679"
13
+
14
+ controls:
15
+ - id: "GDPR-25"
16
+ title: "Data protection by design and by default"
17
+ patterns:
18
+ - "public.*access"
19
+ - "default.*config"
20
+ - "publicly.*accessible"
21
+ - "access.*control"
22
+ severity: HIGH
23
+
24
+ - id: "GDPR-30"
25
+ title: "Records of processing activities"
26
+ patterns:
27
+ - "audit"
28
+ - "logging"
29
+ - "cloudtrail"
30
+ severity: MEDIUM
31
+
32
+ - id: "GDPR-32"
33
+ title: "Security of processing (encryption, confidentiality, resilience)"
34
+ patterns:
35
+ - "encrypt"
36
+ - "tls"
37
+ - "unencrypted"
38
+ - "vulnerability"
39
+ severity: HIGH
40
+
41
+ - id: "GDPR-33"
42
+ title: "Notification of a personal data breach (detection capability)"
43
+ patterns:
44
+ - "monitor"
45
+ - "detect"
46
+ - "alarm"
47
+ - "guardduty"
48
+ severity: MEDIUM
49
+
50
+ - id: "GDPR-44"
51
+ title: "General principle for transfers (data residency and replication)"
52
+ patterns:
53
+ - "cross.*region.*replicat"
54
+ - "data.*residenc"
55
+ - "replicates_to"
56
+ severity: LOW
@@ -0,0 +1,83 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # HIPAA Security Rule — Technical Safeguards Mappings
3
+ # Source: 45 CFR Part 164, Subpart C (U.S. federal regulation,
4
+ # public domain)
5
+ #
6
+ # Fallback mappings for findings that arrive without scanner-native
7
+ # compliance control IDs.
8
+ # ─────────────────────────────────────────────────────────────────
9
+
10
+ framework: HIPAA
11
+ version: "45 CFR 164 Subpart C"
12
+ source: "HIPAA Security Rule, 45 CFR 164.308-164.312"
13
+
14
+ controls:
15
+ - id: "HIPAA-164.308(a)(1)"
16
+ title: "Security management process — risk analysis and management"
17
+ patterns:
18
+ - "vulnerability"
19
+ - "cve"
20
+ - "misconfigur"
21
+ severity: HIGH
22
+
23
+ - id: "HIPAA-164.308(a)(4)"
24
+ title: "Information access management"
25
+ patterns:
26
+ - "least.*privilege"
27
+ - "overly.*permissive"
28
+ - "wildcard"
29
+ severity: HIGH
30
+
31
+ - id: "HIPAA-164.312(a)(1)"
32
+ title: "Access control — unique user identification and authorization"
33
+ patterns:
34
+ - "access.*control"
35
+ - "iam.*polic"
36
+ - "authorization"
37
+ - "shared.*account"
38
+ severity: HIGH
39
+
40
+ - id: "HIPAA-164.312(a)(2)(iv)"
41
+ title: "Encryption and decryption of electronic protected health information"
42
+ patterns:
43
+ - "encrypt.*rest"
44
+ - "storage.*encrypt"
45
+ - "unencrypted"
46
+ - "kms"
47
+ severity: HIGH
48
+
49
+ - id: "HIPAA-164.312(b)"
50
+ title: "Audit controls — record and examine system activity"
51
+ patterns:
52
+ - "audit"
53
+ - "logging"
54
+ - "cloudtrail"
55
+ - "flow.*log"
56
+ severity: MEDIUM
57
+
58
+ - id: "HIPAA-164.312(c)(1)"
59
+ title: "Integrity — protect ePHI from improper alteration or destruction"
60
+ patterns:
61
+ - "versioning"
62
+ - "log.*file.*valid"
63
+ - "integrit"
64
+ - "mfa.*delete"
65
+ severity: MEDIUM
66
+
67
+ - id: "HIPAA-164.312(d)"
68
+ title: "Person or entity authentication"
69
+ patterns:
70
+ - "mfa"
71
+ - "multi.factor"
72
+ - "password.*policy"
73
+ - "authentication"
74
+ severity: HIGH
75
+
76
+ - id: "HIPAA-164.312(e)(1)"
77
+ title: "Transmission security — guard against unauthorized access in transit"
78
+ patterns:
79
+ - "tls"
80
+ - "ssl"
81
+ - "https"
82
+ - "transit.*encrypt"
83
+ severity: HIGH
@@ -0,0 +1,88 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # ISO/IEC 27001:2022 — Annex A Control Mappings
3
+ # Source: ISO/IEC 27001:2022 Annex A control names (control titles are
4
+ # publicly listed; the full standard text is published by ISO)
5
+ #
6
+ # Fallback mappings for findings that arrive without scanner-native
7
+ # compliance control IDs.
8
+ # ─────────────────────────────────────────────────────────────────
9
+
10
+ framework: ISO-27001
11
+ version: "2022"
12
+ source: "ISO/IEC 27001:2022 Annex A"
13
+
14
+ controls:
15
+ - id: "ISO-A.5.15"
16
+ title: "Access control"
17
+ patterns:
18
+ - "access.*control"
19
+ - "authorization"
20
+ - "iam.*polic"
21
+ severity: HIGH
22
+
23
+ - id: "ISO-A.5.17"
24
+ title: "Authentication information"
25
+ patterns:
26
+ - "password.*policy"
27
+ - "credential.*rotat"
28
+ - "access.*key.*rotat"
29
+ severity: MEDIUM
30
+
31
+ - id: "ISO-A.5.18"
32
+ title: "Access rights"
33
+ patterns:
34
+ - "least.*privilege"
35
+ - "overly.*permissive"
36
+ - "wildcard"
37
+ - "unused.*account"
38
+ severity: HIGH
39
+
40
+ - id: "ISO-A.8.5"
41
+ title: "Secure authentication"
42
+ patterns:
43
+ - "mfa"
44
+ - "multi.factor"
45
+ severity: HIGH
46
+
47
+ - id: "ISO-A.8.8"
48
+ title: "Management of technical vulnerabilities"
49
+ patterns:
50
+ - "vulnerability"
51
+ - "cve"
52
+ - "patch"
53
+ severity: HIGH
54
+
55
+ - id: "ISO-A.8.15"
56
+ title: "Logging"
57
+ patterns:
58
+ - "logging"
59
+ - "audit.*log"
60
+ - "cloudtrail"
61
+ - "flow.*log"
62
+ severity: MEDIUM
63
+
64
+ - id: "ISO-A.8.16"
65
+ title: "Monitoring activities"
66
+ patterns:
67
+ - "monitor"
68
+ - "alarm"
69
+ - "detect"
70
+ severity: MEDIUM
71
+
72
+ - id: "ISO-A.8.20"
73
+ title: "Networks security"
74
+ patterns:
75
+ - "security.*group"
76
+ - "firewall"
77
+ - "network.*acl"
78
+ - "internet.*exposed"
79
+ severity: HIGH
80
+
81
+ - id: "ISO-A.8.24"
82
+ title: "Use of cryptography"
83
+ patterns:
84
+ - "encrypt"
85
+ - "tls"
86
+ - "kms"
87
+ - "unencrypted"
88
+ severity: HIGH