Sigma rule: Ingress/Egress Security Group Modification
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-6992418c7be0, updated 2024-07-11T00:00:00.000Z.
Rule
- Title
- Ingress/Egress Security Group Modification
- Status
- test
- Level
- medium
- Author
- jamesc-grafana
- Date
- 2024-07-11
- File
- rules/cloud/aws/cloudtrail/aws_cloudtrail_security_group_change_ingress_egress.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects when an account makes changes to the ingress or egress rules of a security group.
This can indicate that an attacker is attempting to open up new attack vectors in the account, that they are trying to exfiltrate data over the network, or that they are trying to allow machines in that VPC/Subnet to contact a C&C server.
Log source
- product
- aws
- service
- cloudtrail
Detection
selection:
eventSource: 'ec2.amazonaws.com'
eventName:
- 'AuthorizeSecurityGroupEgress'
- 'AuthorizeSecurityGroupIngress'
- 'RevokeSecurityGroupEgress'
- 'RevokeSecurityGroupIngress'
condition: selectionFalse positives (as the rule lists them)
- New VPCs and Subnets being setup requiring a different security profile to those already defined
- A single port being opened for a new service that is known to be deploying
- Administrators closing unused ports to reduce the attack surface
Tags
- attack.initial-access
- attack.t1190
MITRE ATT&CK ids this rule names
References
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/cloud/aws/cloudtrail/aws_cloudtrail_security_group_change_ingress_egress.yml
Sources and licences
SigmaHQ
"Ingress/Egress Security Group Modification" by jamesc-grafana (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/cloud/aws/cloudtrail/aws_cloudtrail_security_group_change_ingress_egress.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Ingress/Egress Security Group Modification",
entity page, dataset version ref-6992418c7be0, updated 2024-07-11T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/6fb77778-040f-4015-9440-572aa9b6b580 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 6fb77778-040f-4015-9440-572aa9b6b580, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.