Oracle Cloud network exposure checks miss IPv6 ::/0 source ranges, reporting a false negative
Issue search
- I have searched the existing issues and this bug has not been reported yet
Which component is affected?
Prowler CLI/SDK
Cloud Provider (if applicable)
Oracle Cloud
Steps to Reproduce
- In an IPv6-enabled OCI VCN, add an ingress rule to a security list or a network security group that opens TCP 22 (SSH) or TCP 3389 (RDP) with source
::/0:
resource "oci_core_security_list" "example" {
compartment_id = var.compartment_id
vcn_id = oci_core_vcn.example.id
ingress_security_rules {
protocol = "6"
source = "::/0" # exposes the resource to the whole IPv6 internet
tcp_options {
destination_port_range {
min = 22
max = 22
}
}
}
}- Run
prowler oraclecloud --check network_security_list_ingress_from_internet_to_ssh_port
Expected behavior
FAIL. ::/0 is the IPv6 equivalent of 0.0.0.0/0 and exposes SSH/RDP to the entire IPv6 internet, so the resource is publicly reachable.
Actual Result with Screenshots or Logs
PASS. All four checks compare the rule source against the literal "0.0.0.0/0" only, so IPv6 open ranges are never matched:
prowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_ssh_port/network_security_list_ingress_from_internet_to_ssh_port.pyprowler/providers/oraclecloud/services/network/network_security_list_ingress_from_internet_to_rdp_port/network_security_list_ingress_from_internet_to_rdp_port.pyprowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_ssh_port/network_security_group_ingress_from_internet_to_ssh_port.pyprowler/providers/oraclecloud/services/network/network_security_group_ingress_from_internet_to_rdp_port/network_security_group_ingress_from_internet_to_rdp_port.py
OCI explicitly supports IPv6 security rules — "The VCN's network security groups and security lists support both IPv4 and IPv6 security rules" — so this is a reachable production misconfiguration, not a theoretical one.
Confirmed with a unit test: a security list with ingress_security_rules=[{"source": "::/0", "protocol": "6", "tcp_options": {"destination_port_range": {"min": 22, "max": 22}}}] returns PASS.
The existing tests did not catch this because they set network_client.security_lists = [] and wrapped every assertion in if len(result) > 0, so they passed regardless of the check logic.
How did you install Prowler?
Cloning the repository from github.com (git clone)
Environment Resource
Workstation
OS used
macOS
Prowler version
5.44.0
Python version
3.13.8
Pip version
N/A (uv-managed virtualenv, no pip)
Context
This is the Oracle Cloud instance of the same false negative already reported for GCP in #12887 and being fixed for Azure in #12854/#12885. Other Prowler providers already treat ::/0 as public: AWS ec2/lib/security_groups.py::_is_cidr_public, Alibaba Cloud ecs/lib/security_groups.py::is_public_cidr, and StackIT's is_unrestricted all check ("0.0.0.0/0", "::/0").
Impact: an assessor running Prowler against an OCI tenancy gets a clean result for resources that are actually exposed to the entire IPv6 internet.
Source: prowler-cloud/prowler