Skip to content

GCP compute_firewall_ssh/rdp_access_from_the_internet_allowed miss IPv6 ::/0 source ranges, reporting a false negative #12887

Description

@pouria-l

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)

GCP

Steps to Reproduce

  1. In a GCP project, create an ingress firewall rule allowing tcp:22 (or tcp:3389) with source range ::/0
  2. Run: prowler gcp --check compute_firewall_ssh_access_from_the_internet_allowed compute_firewall_rdp_access_from_the_internet_allowed
  3. The rule is reported as PASS

Expected behavior

The rule is reported as FAIL.
::/0 is the IPv6 equivalent of 0.0.0.0/0 and exposes SSH/RDP to the entire IPv6 internet.

Actual Result with Screenshots or Logs

PASS. Both checks decide internet exposure with "0.0.0.0/0" in firewall.source_ranges, so IPv6 open ranges are never matched:

  • prowler/providers/gcp/services/compute/compute_firewall_ssh_access_from_the_internet_allowed/compute_firewall_ssh_access_from_the_internet_allowed.py
  • prowler/providers/gcp/services/compute/compute_firewall_rdp_access_from_the_internet_allowed/compute_firewall_rdp_access_from_the_internet_allowed.py

Found by reading the code and confirmed with a unit test (firewall with source_ranges=["::/0"] allowing tcp:22 returns PASS).

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

Other providers already treat ::/0 as public: Alibaba Cloud's is_public_cidr and StackIT's is_unrestricted both check ("0.0.0.0/0", "::/0"). The GCP checks should be consistent with them.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions