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,211 @@
1
+ # Generated by scripts/import_prowler_compliance.py — do not edit by hand.
2
+ # Framework: HIPAA (GCP)
3
+ # Data source: Prowler (https://github.com/prowler-cloud/prowler), Apache-2.0.
4
+ framework: HIPAA-GCP
5
+ version: null
6
+ source: Prowler compliance data (hipaa_gcp.json), Apache-2.0, https://github.com/prowler-cloud/prowler
7
+ provider: gcp
8
+ controls:
9
+ - id: 164_308_a_1_ii_a
10
+ title: Conduct an accurate and thorough assessment of the potential risks and vulnerabilities
11
+ to the confidentiality, integrity, and availability of electronic protected health
12
+ information held by the covered entity or business associate.
13
+ checks:
14
+ - iam_cloud_asset_inventory_enabled
15
+ - iam_organization_essential_contacts_configured
16
+ - id: 164_308_a_1_ii_b
17
+ title: 'Implement security measures sufficient to reduce risks and vulnerabilities
18
+ to a reasonable and appropriate level to comply with 164.306(a): Ensure the confidentiality,
19
+ integrity, and availability of all electronic protected health information the
20
+ covered entity or business associate creates, receiv…'
21
+ checks:
22
+ - bigquery_dataset_cmk_encryption
23
+ - bigquery_dataset_public_access
24
+ - cloudsql_instance_automated_backups
25
+ - cloudsql_instance_cmek_encryption_enabled
26
+ - cloudsql_instance_public_access
27
+ - cloudstorage_bucket_public_access
28
+ - cloudstorage_bucket_uniform_bucket_level_access
29
+ - compute_firewall_rdp_access_from_the_internet_allowed
30
+ - compute_firewall_ssh_access_from_the_internet_allowed
31
+ - compute_instance_encryption_with_csek_enabled
32
+ - compute_instance_public_ip
33
+ - compute_network_not_legacy
34
+ - gemini_api_disabled
35
+ - iam_no_service_roles_at_project_level
36
+ - iam_sa_no_administrative_privileges
37
+ - kms_key_rotation_enabled
38
+ - id: 164_308_a_1_ii_d
39
+ title: Implement procedures to regularly review records of information system activity,
40
+ such as audit logs, access reports, and security incident tracking reports.
41
+ checks:
42
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
43
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
44
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
45
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
46
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
47
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
48
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
49
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
50
+ - logging_sink_created
51
+ - id: 164_308_a_3_i
52
+ title: Implement policies and procedures to ensure that all members of its workforce
53
+ have appropriate access to electronic protected health information.
54
+ checks:
55
+ - iam_no_service_roles_at_project_level
56
+ - iam_role_kms_enforce_separation_of_duties
57
+ - iam_role_sa_enforce_separation_of_duties
58
+ - iam_sa_no_administrative_privileges
59
+ - iam_sa_no_user_managed_keys
60
+ - iam_sa_user_managed_key_unused
61
+ - id: 164_308_a_4_i
62
+ title: Implement policies and procedures for authorizing access to electronic protected
63
+ health information that are consistent with the applicable requirements of subpart
64
+ E of this part.
65
+ checks:
66
+ - bigquery_dataset_public_access
67
+ - cloudsql_instance_public_access
68
+ - cloudstorage_bucket_public_access
69
+ - iam_account_access_approval_enabled
70
+ - iam_no_service_roles_at_project_level
71
+ - iam_organization_essential_contacts_configured
72
+ - iam_sa_no_administrative_privileges
73
+ - id: 164_308_a_5_ii_c
74
+ title: Procedures for monitoring log-in attempts and reporting discrepancies.
75
+ checks:
76
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
77
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
78
+ - logging_sink_created
79
+ - id: 164_308_a_6_ii
80
+ title: Identify and respond to suspected or known security incidents; mitigate,
81
+ to the extent practicable, harmful effects of security incidents that are known
82
+ to the covered entity or business associate; and document security incidents and
83
+ their outcomes.
84
+ checks:
85
+ - iam_organization_essential_contacts_configured
86
+ - logging_sink_created
87
+ - id: 164_308_a_7_i
88
+ title: Establish (and implement as needed) policies and procedures for responding
89
+ to an emergency or other occurrence (for example, fire, vandalism, system failure,
90
+ and natural disaster) that damages systems that contain electronic protected health
91
+ information.
92
+ checks:
93
+ - cloudsql_instance_automated_backups
94
+ - id: 164_308_a_7_ii_a
95
+ title: Establish and implement procedures to create and maintain retrievable exact
96
+ copies of electronic protected health information.
97
+ checks:
98
+ - cloudsql_instance_automated_backups
99
+ - cloudstorage_bucket_versioning_enabled
100
+ - id: 164_308_a_7_ii_b
101
+ title: Establish (and implement as needed) procedures to restore any loss of data.
102
+ checks:
103
+ - cloudsql_instance_automated_backups
104
+ - cloudstorage_bucket_versioning_enabled
105
+ - id: 164_308_b_1
106
+ title: A covered entity may permit a business associate to create, receive, maintain,
107
+ or transmit electronic protected health information on the covered entity's behalf
108
+ only if the covered entity obtains satisfactory assurances, in accordance with
109
+ § 164.314(a), that the business associate will appropriate…
110
+ checks:
111
+ - gemini_api_disabled
112
+ - id: 164_308_b_2
113
+ title: A business associate may permit a business associate that is a subcontractor
114
+ to create, receive, maintain, or transmit electronic protected health information
115
+ on its behalf only if the business associate obtains satisfactory assurances,
116
+ in accordance with § 164.314(a), that the subcontractor will a…
117
+ checks:
118
+ - gemini_api_disabled
119
+ - id: 164_310_a_1
120
+ title: Implement policies and procedures to limit physical access to its electronic
121
+ information systems and the facility or facilities in which they are housed, while
122
+ ensuring that properly authorized access is allowed.
123
+ checks:
124
+ - compute_firewall_rdp_access_from_the_internet_allowed
125
+ - compute_firewall_ssh_access_from_the_internet_allowed
126
+ - compute_instance_public_ip
127
+ - id: 164_310_d_1
128
+ title: Implement policies and procedures that govern the receipt and removal of
129
+ hardware and electronic media that contain electronic protected health information
130
+ into and out of a facility, and the movement of these items within the facility.
131
+ checks:
132
+ - compute_instance_encryption_with_csek_enabled
133
+ - id: 164_312_a_1
134
+ title: Implement technical policies and procedures for electronic information systems
135
+ that maintain electronic protected health information to allow access only to
136
+ those persons or software programs that have been granted access rights as specified
137
+ in 164.308(a)(4).
138
+ checks:
139
+ - bigquery_dataset_public_access
140
+ - cloudsql_instance_public_access
141
+ - cloudstorage_bucket_public_access
142
+ - cloudstorage_bucket_uniform_bucket_level_access
143
+ - compute_instance_public_ip
144
+ - iam_account_access_approval_enabled
145
+ - iam_no_service_roles_at_project_level
146
+ - iam_sa_no_administrative_privileges
147
+ - id: 164_312_a_2_i
148
+ title: Assign a unique name and/or number for identifying and tracking user identity.
149
+ checks:
150
+ - iam_sa_no_user_managed_keys
151
+ - iam_sa_user_managed_key_unused
152
+ - id: 164_312_a_2_iv
153
+ title: Implement a mechanism to encrypt and decrypt electronic protected health
154
+ information.
155
+ checks:
156
+ - bigquery_dataset_cmk_encryption
157
+ - cloudsql_instance_cmek_encryption_enabled
158
+ - compute_instance_encryption_with_csek_enabled
159
+ - kms_key_rotation_enabled
160
+ - id: 164_312_b
161
+ title: Implement hardware, software, and/or procedural mechanisms that record and
162
+ examine activity in information systems that contain or use electronic protected
163
+ health information.
164
+ checks:
165
+ - logging_log_metric_filter_and_alert_for_audit_configuration_changes_enabled
166
+ - logging_log_metric_filter_and_alert_for_bucket_permission_changes_enabled
167
+ - logging_log_metric_filter_and_alert_for_custom_role_changes_enabled
168
+ - logging_log_metric_filter_and_alert_for_project_ownership_changes_enabled
169
+ - logging_log_metric_filter_and_alert_for_sql_instance_configuration_changes_enabled
170
+ - logging_log_metric_filter_and_alert_for_vpc_firewall_rule_changes_enabled
171
+ - logging_log_metric_filter_and_alert_for_vpc_network_changes_enabled
172
+ - logging_log_metric_filter_and_alert_for_vpc_network_route_changes_enabled
173
+ - logging_sink_created
174
+ - id: 164_312_c_1
175
+ title: Implement policies and procedures to protect electronic protected health
176
+ information from improper alteration or destruction.
177
+ checks:
178
+ - cloudsql_instance_automated_backups
179
+ - cloudstorage_bucket_versioning_enabled
180
+ - kms_key_rotation_enabled
181
+ - id: 164_312_d
182
+ title: Implement procedures to verify that a person or entity seeking access to
183
+ electronic protected health information is the one claimed.
184
+ checks:
185
+ - iam_account_access_approval_enabled
186
+ - iam_sa_no_user_managed_keys
187
+ - id: 164_312_e_1
188
+ title: Implement technical security measures to guard against unauthorized access
189
+ to electronic protected health information that is being transmitted over an electronic
190
+ communications network.
191
+ checks:
192
+ - cloudsql_instance_ssl_connections
193
+ - compute_firewall_rdp_access_from_the_internet_allowed
194
+ - compute_firewall_ssh_access_from_the_internet_allowed
195
+ - id: 164_312_e_2_i
196
+ title: Implement security measures to ensure that electronically transmitted electronic
197
+ protected health information is not improperly modified without detection until
198
+ disposed of.
199
+ checks:
200
+ - cloudsql_instance_automated_backups
201
+ - cloudstorage_bucket_versioning_enabled
202
+ - logging_sink_created
203
+ - id: 164_312_e_2_ii
204
+ title: Implement a mechanism to encrypt electronic protected health information
205
+ whenever deemed appropriate.
206
+ checks:
207
+ - bigquery_dataset_cmk_encryption
208
+ - cloudsql_instance_cmek_encryption_enabled
209
+ - cloudsql_instance_ssl_connections
210
+ - compute_instance_encryption_with_csek_enabled
211
+ - kms_key_rotation_enabled