Detect Disable or Modify Cloud Firewall in Sumo Logic CSE
Adversaries may disable or modify a firewall within a cloud environment to bypass controls that limit access to cloud resources. Cloud environments typically utilize restrictive security groups and firewall rules that only allow network activity from trusted IP addresses via expected ports and protocols. An adversary with appropriate permissions may introduce new firewall rules or policies to allow access into a victim cloud environment. For example, adversaries may create new ingress rules in existing security groups or create new security groups entirely to allow any TCP/IP connectivity.
MITRE ATT&CK
- Tactic
- Defense Evasion
- Technique
- T1562 Impair Defenses
- Sub-technique
- T1562.007 Disable or Modify Cloud Firewall
- Canonical reference
- https://attack.mitre.org/techniques/T1562/007/
Sumo Detection Query
(_sourceCategory="aws/cloudtrail" AND (eventName="AuthorizeSecurityGroupIngress" OR eventName="AuthorizeSecurityGroupEgress" OR eventName="RevokeSecurityGroupIngress" OR eventName="RevokeSecurityGroupEgress" OR eventName="CreateSecurityGroup" OR eventName="DeleteSecurityGroup"))
OR (_sourceCategory="azure/audit" AND operationName matches "*networkSecurityGroups*")
OR (_sourceCategory="gcp/audit" AND methodName matches "*compute.firewalls*")
| if (!isNull(eventName), eventName, if(!isNull(operationName), operationName, methodName)) as action
| if (!isNull(userIdentity.arn), userIdentity.arn, if(!isNull(claims.upn), claims.upn, protoPayload.authenticationInfo.principalEmail)) as actor
| if (!isNull(sourceIPAddress), sourceIPAddress, callerSuppliedUserAgent) as source_ip
| if (!isNull(_sourceCategory) and _sourceCategory matches "aws/*", "AWS", if(_sourceCategory matches "azure/*", "Azure", if(_sourceCategory matches "gcp/*", "GCP", "Unknown"))) as cloud_provider
| if (queryRaw matches "*0.0.0.0/0*" or queryRaw matches "*::/0*", "Yes", "No") as open_to_all
| count by _messageTime, cloud_provider, actor, action, source_ip, open_to_all
| sort by _messageTime desc Sumo Logic query detecting cloud firewall rule modifications across AWS, Azure, and GCP. Normalizes actor identity and action names across providers, and flags changes that introduce unrestricted internet access via 0.0.0.0/0 or ::/0 CIDR ranges.
Data Sources
Required Tables
False Positives & Tuning
- Security automation runbooks (AWS Lambda, Azure Automation, GCP Cloud Functions) triggered by alerts that automatically modify security groups to isolate compromised resources
- Routine infrastructure scaling events where auto-scaling groups create temporary security groups for new compute instances
- Scheduled penetration test activities that provision and decommission test environments with intentionally permissive firewall rules under approved authorizations
Other platforms for T1562.007
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1AWS Security Group Ingress Rule Addition
Expected signal: CloudTrail event: AuthorizeSecurityGroupIngress with requestParameters showing port 22 and 0.0.0.0/0 CIDR. GuardDuty finding: UnauthorizedAccess:EC2/TorIPCaller if from suspicious IP.
- Test 2Azure NSG Rule Addition
Expected signal: Azure Activity Log: Microsoft.Network/networkSecurityGroups/securityRules/write operation.
- Test 3AWS GuardDuty IP Allowlisting via Pacu
Expected signal: CloudTrail event: CreateIPSet for GuardDuty. This is a critical indicator of defense impairment in AWS.
Unlock Pro Content
Get the full detection package for T1562.007 including response playbook, investigation guide, and atomic red team tests.