Skip to content

feat(scanner): add AZ-NET-014 VNet peering gateway transit rule #93

@aav-wh

Description

@aav-wh

Summary

Adds a new CSPM scanner rule to detect Virtual Network peering connections with gateway transit enabled, which can break network segmentation and allow lateral movement between isolated network zones.

Changes

  • scanner/rules/az_net_014.py — detects peerings with allowGatewayTransit or useRemoteGateways enabled
  • scanner/azure_client.py — adds get_vnet_peerings() and get_azure_firewalls() methods
  • playbooks/cli/fix_az_net_014.sh — CLI remediation script to disable gateway transit
  • All 4 compliance framework JSONs updated with AZ-NET-014 mappings (CIS 6.4, NIST PR.AC-5, ISO A.13.1.1, SOC2 CC6.6)

Test

  • python -m py_compile scanner/rules/az_net_014.py
  • python -m py_compile scanner/azure_client.py
  • All 4 compliance JSONs validated ✅

Related Issue

Closes #[paste the issue number here]

Metadata

Metadata

Assignees

No one assigned

    Labels

    new-ruleAdding a new misconfiguration scan rule

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions