Prisma Cloud Remediation - Azure Network Security Group Misconfiguration

This playbook remediates the following Prisma Cloud Azure Network security group alerts. Prisma Cloud policies remediated: - Azure Network Security Group (NSG) having Inbound rule overly permissive to allow all traffic from any source on any protocol - Azure Network Security Group (NSG) having Inbound rule overly permissive to allow all traffic from any source on TCP protocol - Azure Network Security Group (NSG) having Inbound rule overly permissive to allow all traffic from any source on UDP protocol - Azure Network Security Group (NSG) allows SSH traffic from internet on port 22 - Azure Network Security Group (NSG) allows traffic from internet on port 3389 - Azure Network Security Group allows DNS (TCP Port 53) - Azure Network Security Group allows FTP (TCP Port 21) - Azure Network Security Group allows FTP-Data (TCP Port 20) - Azure Network Security Group allows MSQL (TCP Port 4333) - Azure Network Security Group allows MySQL (TCP Port 3306) - Azure Network Security Group allows Windows RPC (TCP Port 135) - Azure Network Security Group allows Windows SMB (TCP Port 445) - Azure Network Security Group allows PostgreSQL (TCP Port 5432) - Azure Network Security Group allows SMTP (TCP Port 25) - Azure Network Security Group allows SqlServer (TCP Port 1433) - Azure Network Security Group allows Telnet (TCP Port 23) - Azure Network Security Group allows VNC Listener (TCP Port 5500) - Azure Network Security Group allows all traffic on ICMP (Ping) - Azure Network Security Group allows CIFS (UDP Port 445) - Azure Network Security Group allows NetBIOS (UDP Port 137) - Azure Network Security Group allows NetBIOS (UDP Port 138) - Azure Network Security Group allows SQLServer (UDP Port 1434) - Azure Network Security Group allows DNS (UDP Port 53)

Prisma Cloud by Palo Alto Networks · 16 tasks · 2 inputs · 1 output

Inputs

  • policyId — Prisma Cloud policy Id.
  • portNumber — Port number.

Outputs

  • incident.resourcename — Security group name.

Commands used

azure-nsg-security-rule-delete

Flowchart

ICMP SSH commonTCPPorts commonUDPPorts overlyPermissive yes yes Start Start Remove the offending security group rule - azure-nsg-security-rule-delete Remove the offending secu... azure-nsg-security-rule-delete Done Done Execute remediation Execute remediation Common TCP Ports Common TCP Ports Manually update security group rules Manually update security ... ICMP Rules ICMP Rules Overly Permissive Overly Permissive Is Azure Network Security Groups integration enabled? - IsIntegrationAvailable Is Azure Network Security... IsIntegrationAvailable Common UDP Ports Common UDP Ports Find the offending TCP/UDP rule name - Set Find the offending TCP/UD... Set Check rule name Check rule name SSH (22) SSH (22) Find the offending SSH rule name - Set Find the offending SSH ru... Set Find the offending ICMP rule name - Set Find the offending ICMP r... Set Find the offending rule name - Set Find the offending rule name Set