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
cloudg/retry.py ADDED
@@ -0,0 +1,103 @@
1
+ """Retry decorator with exponential backoff and jitter."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import asyncio
6
+ import logging
7
+ import random
8
+ from functools import wraps
9
+ from typing import Any, Callable, Type
10
+
11
+ logger = logging.getLogger(__name__)
12
+
13
+ # Default retryable exception types
14
+ RETRYABLE_EXCEPTIONS: tuple[Type[Exception], ...] = (
15
+ ConnectionError,
16
+ TimeoutError,
17
+ OSError,
18
+ )
19
+
20
+ # AWS-specific retryable error codes
21
+ AWS_RETRYABLE_CODES = {
22
+ "ThrottlingException",
23
+ "TooManyRequestsException",
24
+ "RequestLimitExceeded",
25
+ "ProvisionedThroughputExceededException",
26
+ "ServiceUnavailable",
27
+ "InternalError",
28
+ }
29
+
30
+
31
+ def with_retry(
32
+ max_attempts: int = 5,
33
+ base_delay: float = 1.0,
34
+ max_delay: float = 60.0,
35
+ backoff_factor: float = 2.0,
36
+ retryable_exceptions: tuple[Type[Exception], ...] | None = None,
37
+ retryable_aws_codes: set[str] | None = None,
38
+ ) -> Callable:
39
+ """Decorator for async functions with exponential backoff retry.
40
+
41
+ Args:
42
+ max_attempts: Maximum number of attempts (including initial).
43
+ base_delay: Initial delay in seconds.
44
+ max_delay: Maximum delay cap in seconds.
45
+ backoff_factor: Multiplier for each retry delay.
46
+ retryable_exceptions: Exception types to retry on.
47
+ retryable_aws_codes: AWS error codes to retry on.
48
+
49
+ Returns:
50
+ Decorated async function.
51
+ """
52
+ retry_exceptions = retryable_exceptions or RETRYABLE_EXCEPTIONS
53
+ aws_codes = retryable_aws_codes or AWS_RETRYABLE_CODES
54
+
55
+ def decorator(func: Callable) -> Callable:
56
+ @wraps(func)
57
+ async def wrapper(*args: Any, **kwargs: Any) -> Any:
58
+ last_exception: Exception | None = None
59
+
60
+ for attempt in range(1, max_attempts + 1):
61
+ try:
62
+ return await func(*args, **kwargs)
63
+ except Exception as exc:
64
+ last_exception = exc
65
+
66
+ # Check if this is a retryable exception
67
+ is_retryable = isinstance(exc, retry_exceptions)
68
+
69
+ # Check for AWS-specific error codes
70
+ if not is_retryable and hasattr(exc, "response"):
71
+ error_code = getattr(exc, "response", {}).get("Error", {}).get("Code", "")
72
+ is_retryable = error_code in aws_codes
73
+
74
+ # Also retry on botocore ClientError with retryable codes
75
+ if not is_retryable:
76
+ exc_str = str(exc)
77
+ is_retryable = any(code in exc_str for code in aws_codes)
78
+
79
+ if not is_retryable or attempt == max_attempts:
80
+ raise
81
+
82
+ # Exponential backoff with full jitter
83
+ delay = min(max_delay, base_delay * (backoff_factor ** (attempt - 1)))
84
+ jitter = random.uniform(0, delay)
85
+ actual_delay = jitter
86
+
87
+ logger.warning(
88
+ "Retry %d/%d for %s after %.1fs (error: %s)",
89
+ attempt,
90
+ max_attempts,
91
+ func.__name__,
92
+ actual_delay,
93
+ str(exc)[:200],
94
+ )
95
+ await asyncio.sleep(actual_delay)
96
+
97
+ # Should not reach here, but just in case
98
+ if last_exception:
99
+ raise last_exception
100
+
101
+ return wrapper
102
+
103
+ return decorator
@@ -0,0 +1,148 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # CIS AWS Foundations Benchmark v3.0 — Control ID Mappings
3
+ # Source: CIS AWS Foundations Benchmark v3.0 (public)
4
+ #
5
+ # These mappings are used to tag findings from scanners that
6
+ # don't emit their own compliance control IDs.
7
+ # Prowler, Checkov etc. already emit these natively — this file
8
+ # is the FALLBACK for untagged findings only.
9
+ # ─────────────────────────────────────────────────────────────────
10
+
11
+ framework: CIS-AWS
12
+ version: "3.0"
13
+ source: "CIS AWS Foundations Benchmark v3.0.0"
14
+
15
+ controls:
16
+ # 1. Identity and Access Management
17
+ - id: "CIS-1.4"
18
+ title: "Ensure access keys are rotated every 90 days or less"
19
+ patterns:
20
+ - "access.*key.*rotat"
21
+ - "access.*key.*age"
22
+ severity: MEDIUM
23
+
24
+ - id: "CIS-1.5"
25
+ title: "Ensure MFA is enabled for the root user"
26
+ patterns:
27
+ - "root.*mfa"
28
+ - "root.*multi.factor"
29
+ severity: CRITICAL
30
+
31
+ - id: "CIS-1.7"
32
+ title: "Eliminate use of the root user for administrative tasks"
33
+ patterns:
34
+ - "root.*used"
35
+ - "root.*login"
36
+ - "root.*activity"
37
+ severity: HIGH
38
+
39
+ - id: "CIS-1.8"
40
+ title: "Ensure IAM password policy requires minimum length"
41
+ patterns:
42
+ - "password.*policy"
43
+ - "password.*length"
44
+ severity: MEDIUM
45
+
46
+ - id: "CIS-1.10"
47
+ title: "Ensure MFA is enabled for all IAM users with console access"
48
+ patterns:
49
+ - "iam.*mfa"
50
+ - "console.*mfa"
51
+ severity: HIGH
52
+
53
+ - id: "CIS-1.16"
54
+ title: "Ensure IAM policies are attached only to groups or roles"
55
+ patterns:
56
+ - "iam.*policy.*user"
57
+ - "policy.*direct.*attach"
58
+ severity: MEDIUM
59
+
60
+ # 2. Storage
61
+ - id: "CIS-2.1.1"
62
+ title: "Ensure S3 bucket has server-side encryption enabled"
63
+ patterns:
64
+ - "s3.*encrypt"
65
+ - "bucket.*encrypt"
66
+ severity: HIGH
67
+
68
+ - id: "CIS-2.1.2"
69
+ title: "Ensure S3 bucket policy does not grant public access"
70
+ patterns:
71
+ - "s3.*public"
72
+ - "bucket.*public"
73
+ severity: CRITICAL
74
+
75
+ - id: "CIS-2.2.1"
76
+ title: "Ensure EBS volume encryption is enabled by default"
77
+ patterns:
78
+ - "ebs.*encrypt"
79
+ - "volume.*encrypt"
80
+ severity: MEDIUM
81
+
82
+ - id: "CIS-2.3.1"
83
+ title: "Ensure RDS instances have encryption at rest enabled"
84
+ patterns:
85
+ - "rds.*encrypt"
86
+ - "database.*encrypt"
87
+ severity: HIGH
88
+
89
+ # 3. Logging
90
+ - id: "CIS-3.1"
91
+ title: "Ensure CloudTrail is enabled in all regions"
92
+ patterns:
93
+ - "cloudtrail.*enable"
94
+ - "cloudtrail.*multi.*region"
95
+ severity: HIGH
96
+
97
+ - id: "CIS-3.4"
98
+ title: "Ensure CloudTrail log file validation is enabled"
99
+ patterns:
100
+ - "cloudtrail.*log.*valid"
101
+ - "log.*file.*integrit"
102
+ severity: MEDIUM
103
+
104
+ - id: "CIS-3.9"
105
+ title: "Ensure VPC flow logging is enabled in all VPCs"
106
+ patterns:
107
+ - "flow.*log"
108
+ - "vpc.*logging"
109
+ severity: MEDIUM
110
+
111
+ # 4. Monitoring
112
+ - id: "CIS-4.3"
113
+ title: "Ensure a log metric filter and alarm exist for root account usage"
114
+ patterns:
115
+ - "root.*alarm"
116
+ - "root.*monitor"
117
+ severity: HIGH
118
+
119
+ # 5. Networking
120
+ - id: "CIS-5.1"
121
+ title: "Ensure no Network ACLs allow ingress from 0.0.0.0/0"
122
+ patterns:
123
+ - "nacl.*0\\.0\\.0\\.0"
124
+ - "acl.*ingress.*open"
125
+ severity: HIGH
126
+
127
+ - id: "CIS-5.2"
128
+ title: "Ensure no security groups allow ingress from 0.0.0.0/0 to port 22"
129
+ patterns:
130
+ - "ssh.*0\\.0\\.0\\.0"
131
+ - "port.*22.*internet"
132
+ - "security.*group.*ssh.*open"
133
+ severity: CRITICAL
134
+
135
+ - id: "CIS-5.3"
136
+ title: "Ensure no security groups allow ingress from 0.0.0.0/0 to port 3389"
137
+ patterns:
138
+ - "rdp.*0\\.0\\.0\\.0"
139
+ - "port.*3389.*internet"
140
+ - "security.*group.*rdp.*open"
141
+ severity: CRITICAL
142
+
143
+ - id: "CIS-5.4"
144
+ title: "Ensure the default security group restricts all traffic"
145
+ patterns:
146
+ - "default.*security.*group"
147
+ - "default.*sg.*allow"
148
+ severity: MEDIUM
@@ -0,0 +1,142 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # CIS Microsoft Azure Foundations Benchmark v2.0 — Control ID Mappings
3
+ # Source: CIS Microsoft Azure Foundations Benchmark v2.0.0 (public)
4
+ #
5
+ # Fallback mappings for findings that arrive without scanner-native
6
+ # compliance control IDs. Prowler and Checkov emit these natively.
7
+ # ─────────────────────────────────────────────────────────────────
8
+
9
+ framework: CIS-AZURE
10
+ version: "2.0"
11
+ source: "CIS Microsoft Azure Foundations Benchmark v2.0.0"
12
+
13
+ controls:
14
+ # 1. Identity and Access Management
15
+ - id: "CIS-Azure-1.5"
16
+ title: "Ensure that MFA is enabled for all privileged users"
17
+ patterns:
18
+ - "azure.*mfa"
19
+ - "privileged.*mfa"
20
+ - "mfa.*admin"
21
+ severity: CRITICAL
22
+
23
+ - id: "CIS-Azure-1.23"
24
+ title: "Ensure that no custom subscription owner roles are created"
25
+ patterns:
26
+ - "custom.*owner.*role"
27
+ - "subscription.*owner"
28
+ severity: HIGH
29
+
30
+ # 3. Storage Accounts
31
+ - id: "CIS-Azure-3.1"
32
+ title: "Ensure that Secure transfer required is enabled for storage accounts"
33
+ patterns:
34
+ - "storage.*https"
35
+ - "secure.*transfer"
36
+ - "supportsHttpsTrafficOnly"
37
+ severity: HIGH
38
+
39
+ - id: "CIS-Azure-3.7"
40
+ title: "Ensure that public access level is disabled for storage accounts with blob containers"
41
+ patterns:
42
+ - "blob.*public"
43
+ - "storage.*public.*access"
44
+ - "container.*public"
45
+ severity: CRITICAL
46
+
47
+ - id: "CIS-Azure-3.9"
48
+ title: "Ensure storage account access is restricted to trusted networks"
49
+ patterns:
50
+ - "storage.*network.*rule"
51
+ - "storage.*default.*allow"
52
+ severity: MEDIUM
53
+
54
+ # 4. Database Services
55
+ - id: "CIS-Azure-4.1.1"
56
+ title: "Ensure that auditing is enabled on SQL servers"
57
+ patterns:
58
+ - "sql.*audit"
59
+ - "server.*auditing"
60
+ severity: MEDIUM
61
+
62
+ - id: "CIS-Azure-4.1.2"
63
+ title: "Ensure no SQL server firewall rule allows ingress from 0.0.0.0"
64
+ patterns:
65
+ - "sql.*firewall.*0\\.0\\.0\\.0"
66
+ - "sql.*allow.*azure.*services"
67
+ - "sql.*public.*access"
68
+ severity: CRITICAL
69
+
70
+ - id: "CIS-Azure-4.1.3"
71
+ title: "Ensure SQL server Transparent Data Encryption is enabled"
72
+ patterns:
73
+ - "transparent.*data.*encrypt"
74
+ - "sql.*tde"
75
+ - "sql.*encrypt"
76
+ severity: HIGH
77
+
78
+ # 5. Logging and Monitoring
79
+ - id: "CIS-Azure-5.1.1"
80
+ title: "Ensure that a diagnostic setting exists for subscription activity logs"
81
+ patterns:
82
+ - "diagnostic.*setting"
83
+ - "activity.*log"
84
+ severity: MEDIUM
85
+
86
+ - id: "CIS-Azure-5.1.3"
87
+ title: "Ensure the storage container storing activity logs is not publicly accessible"
88
+ patterns:
89
+ - "log.*container.*public"
90
+ - "insights.*public"
91
+ severity: HIGH
92
+
93
+ # 6. Networking
94
+ - id: "CIS-Azure-6.1"
95
+ title: "Ensure that RDP access from the Internet is restricted"
96
+ patterns:
97
+ - "nsg.*rdp"
98
+ - "rdp.*internet"
99
+ - "3389.*internet"
100
+ - "nsg.*3389"
101
+ severity: CRITICAL
102
+
103
+ - id: "CIS-Azure-6.2"
104
+ title: "Ensure that SSH access from the Internet is restricted"
105
+ patterns:
106
+ - "nsg.*ssh"
107
+ - "ssh.*internet"
108
+ - "nsg.*22"
109
+ severity: CRITICAL
110
+
111
+ - id: "CIS-Azure-6.5"
112
+ title: "Ensure that Network Security Group flow logs are enabled"
113
+ patterns:
114
+ - "nsg.*flow.*log"
115
+ - "network.*watcher"
116
+ severity: MEDIUM
117
+
118
+ # 7. Virtual Machines
119
+ - id: "CIS-Azure-7.2"
120
+ title: "Ensure that OS and data disks are encrypted with CMK"
121
+ patterns:
122
+ - "disk.*encrypt"
123
+ - "vm.*encrypt"
124
+ - "managed.*disk.*cmk"
125
+ severity: HIGH
126
+
127
+ # 8. Key Vault
128
+ - id: "CIS-Azure-8.4"
129
+ title: "Ensure the Key Vault is recoverable (soft delete and purge protection)"
130
+ patterns:
131
+ - "key.*vault.*soft.*delete"
132
+ - "purge.*protection"
133
+ - "vault.*recover"
134
+ severity: MEDIUM
135
+
136
+ - id: "CIS-Azure-8.5"
137
+ title: "Ensure that Key Vault allows only Azure services and trusted networks"
138
+ patterns:
139
+ - "key.*vault.*network"
140
+ - "key.*vault.*public"
141
+ - "vault.*firewall"
142
+ severity: HIGH
@@ -0,0 +1,133 @@
1
+ # ─────────────────────────────────────────────────────────────────
2
+ # CIS Google Cloud Platform Foundation Benchmark v3.0 — Control ID Mappings
3
+ # Source: CIS Google Cloud Platform Foundation Benchmark v3.0.0 (public)
4
+ #
5
+ # Fallback mappings for findings that arrive without scanner-native
6
+ # compliance control IDs.
7
+ # ─────────────────────────────────────────────────────────────────
8
+
9
+ framework: CIS-GCP
10
+ version: "3.0"
11
+ source: "CIS Google Cloud Platform Foundation Benchmark v3.0.0"
12
+
13
+ controls:
14
+ # 1. Identity and Access Management
15
+ - id: "CIS-GCP-1.4"
16
+ title: "Ensure that there are only GCP-managed service account keys for each service account"
17
+ patterns:
18
+ - "service.*account.*key"
19
+ - "user.*managed.*key"
20
+ severity: HIGH
21
+
22
+ - id: "CIS-GCP-1.5"
23
+ title: "Ensure that service accounts have no admin privileges"
24
+ patterns:
25
+ - "service.*account.*admin"
26
+ - "service.*account.*editor"
27
+ - "service.*account.*owner"
28
+ severity: HIGH
29
+
30
+ - id: "CIS-GCP-1.7"
31
+ title: "Ensure user-managed service account keys are rotated every 90 days"
32
+ patterns:
33
+ - "service.*account.*key.*rotat"
34
+ - "key.*90.*day"
35
+ severity: MEDIUM
36
+
37
+ # 2. Logging and Monitoring
38
+ - id: "CIS-GCP-2.1"
39
+ title: "Ensure that Cloud Audit Logging is configured across all services"
40
+ patterns:
41
+ - "audit.*log.*config"
42
+ - "cloud.*audit"
43
+ severity: MEDIUM
44
+
45
+ - id: "CIS-GCP-2.2"
46
+ title: "Ensure that sinks are configured for all log entries"
47
+ patterns:
48
+ - "log.*sink"
49
+ - "log.*export"
50
+ severity: MEDIUM
51
+
52
+ # 3. Networking
53
+ - id: "CIS-GCP-3.1"
54
+ title: "Ensure that the default network does not exist in a project"
55
+ patterns:
56
+ - "default.*network"
57
+ - "default.*vpc"
58
+ severity: MEDIUM
59
+
60
+ - id: "CIS-GCP-3.6"
61
+ title: "Ensure that SSH access is restricted from the Internet"
62
+ patterns:
63
+ - "firewall.*ssh"
64
+ - "firewall.*22"
65
+ - "gcp.*ssh.*0\\.0\\.0\\.0"
66
+ severity: CRITICAL
67
+
68
+ - id: "CIS-GCP-3.7"
69
+ title: "Ensure that RDP access is restricted from the Internet"
70
+ patterns:
71
+ - "firewall.*rdp"
72
+ - "firewall.*3389"
73
+ severity: CRITICAL
74
+
75
+ - id: "CIS-GCP-3.8"
76
+ title: "Ensure that VPC Flow Logs are enabled for every subnet"
77
+ patterns:
78
+ - "subnet.*flow.*log"
79
+ - "vpc.*flow"
80
+ severity: MEDIUM
81
+
82
+ # 4. Virtual Machines
83
+ - id: "CIS-GCP-4.2"
84
+ title: "Ensure that instances are not configured to use the default service account with full API access"
85
+ patterns:
86
+ - "default.*service.*account"
87
+ - "cloud-platform.*scope"
88
+ severity: HIGH
89
+
90
+ - id: "CIS-GCP-4.9"
91
+ title: "Ensure that compute instances do not have public IP addresses"
92
+ patterns:
93
+ - "instance.*public.*ip"
94
+ - "compute.*external.*ip"
95
+ severity: MEDIUM
96
+
97
+ - id: "CIS-GCP-4.7"
98
+ title: "Ensure VM disks for critical VMs are encrypted with CSEK"
99
+ patterns:
100
+ - "disk.*csek"
101
+ - "compute.*disk.*encrypt"
102
+ severity: MEDIUM
103
+
104
+ # 5. Storage
105
+ - id: "CIS-GCP-5.1"
106
+ title: "Ensure that Cloud Storage buckets are not anonymously or publicly accessible"
107
+ patterns:
108
+ - "bucket.*allUsers"
109
+ - "bucket.*public"
110
+ - "storage.*anonymous"
111
+ severity: CRITICAL
112
+
113
+ - id: "CIS-GCP-5.2"
114
+ title: "Ensure that Cloud Storage buckets have uniform bucket-level access enabled"
115
+ patterns:
116
+ - "uniform.*bucket"
117
+ - "bucket.*level.*access"
118
+ severity: MEDIUM
119
+
120
+ # 6. Cloud SQL
121
+ - id: "CIS-GCP-6.2.1"
122
+ title: "Ensure that Cloud SQL database instances require SSL for all incoming connections"
123
+ patterns:
124
+ - "cloud.*sql.*ssl"
125
+ - "sql.*require.*ssl"
126
+ severity: HIGH
127
+
128
+ - id: "CIS-GCP-6.5"
129
+ title: "Ensure that Cloud SQL database instances are not open to the world"
130
+ patterns:
131
+ - "sql.*authorized.*network"
132
+ - "sql.*0\\.0\\.0\\.0"
133
+ severity: CRITICAL