security group
A stateful firewall attached to a resource’s network interface, made only of allow rules for ports, protocols and sources.
A rule open to 0.0.0.0/0 exposes that port to the whole internet.
In more detail
There is no deny rule: anything not allowed is refused. Replies to an accepted connection are allowed automatically. A rule can allow traffic from another security group instead of an address range, which follows a tier even as its addresses change.
Examples
tcp 443 from load-balancer-grouptcp 22 from admin-network{"IpProtocol": "tcp", "FromPort": 22, "ToPort": 22, "IpRanges": [{"CidrIp": "0.0.0.0/0", "Description": "temp debug"}]}aws ec2 describe-security-groupsMoving an instance into a quarantine security group that allows only responder addresses is the cloud equivalent of host isolation, and is easy to automate.Related terms
- stateful firewall — A firewall that remembers connections it has allowed, so reply packets for an established connection are let back in without a broad inbound rule.
- network ACL — A stateless list of numbered allow and deny rules applied to all traffic entering or leaving a subnet.
- elastic network interface — A virtual network card in a VPC, with its own private address and security groups, attached to an instance or container task.
- firewall — Software or a device that allows or blocks network traffic according to rules about direction, interface, protocol, port and source.
- 0.0.0.0/0 — The CIDR range with prefix length zero, which matches every IPv4 address; ::/0 is the IPv6 equivalent.
- port range — A span of port numbers in a firewall rule, such as 0 to 65535, which opens every port inside it.
- CIDR notation — A compact way to write a block of IP addresses as an address, a slash and a number, such as 10.20.1.0/24.
- cloud account — The container at a cloud provider that holds your resources, users and bills, with its own administrators and security settings.
- gap analysis — Comparing how things are now with how they should be, then listing the differences so they can be fixed.
- host isolation — Cutting a compromised machine off from the network, except for the responders' tools, so the attacker cannot use it or spread from it.
- security automation — Using scripts and orchestration tools to carry out security checks and response steps without manual work.
Related guides
Taught in
- Whose Job Was The Patch? — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Ten Requests From The Auditor — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Twelve Alerts, Ten Services — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- Security Sprint: Fifteen Questions' Worth — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- One Database Doing Five Jobs — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Public Subnet That Was Not — AWS Certified Cloud Practitioner (CLF-C02) Exam Prep
- The Network As A Control: CIDR, Routes, ACLs And Security Groups — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Private Paths: VPC Endpoints And PrivateLink — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- The Edge: WAF, Shield, CloudFront And GuardDuty — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Load Balancers And Auto Scaling: Capacity That Arrives On Time — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Long-Stem Clinic: The Phrase That Decides — AWS Certified Solutions Architect – Associate (SAA-C03) Exam Prep
- Virtual Private Clouds — Cloud Infrastructure & Hyperscaler Architecture
- Subnets: Public and Private — Cloud Infrastructure & Hyperscaler Architecture
- Route Tables and Internet Gateways — Cloud Infrastructure & Hyperscaler Architecture
- Network Address Translation — Cloud Infrastructure & Hyperscaler Architecture
- Security Groups and Firewalls — Cloud Infrastructure & Hyperscaler Architecture
- Load Balancing and DNS — Cloud Infrastructure & Hyperscaler Architecture
- Elastic Compute Cloud (EC2) — Cloud Infrastructure & Hyperscaler Architecture
- Containers on AWS (ECS and EKS) — Cloud Infrastructure & Hyperscaler Architecture
- Elastic File System (EFS) — Cloud Infrastructure & Hyperscaler Architecture
- Managed Relational Databases (RDS) — Cloud Infrastructure & Hyperscaler Architecture
- Infrastructure as Code (Handover to Terraform) — Cloud Infrastructure & Hyperscaler Architecture
- The Two A.M. Page — CompTIA Cloud+ (CV0-004) Exam Prep
- Two Environments That Should Have Been Twins — CompTIA Cloud+ (CV0-004) Exam Prep
- An Image That Runs As Root: Security Best Practices — CompTIA Cloud+ (CV0-004) Exam Prep
- Allowed In, Lost On The Way Back: Security Controls — CompTIA Cloud+ (CV0-004) Exam Prep
- The Bill That Jumped Overnight: Spotting Attacks — CompTIA Cloud+ (CV0-004) Exam Prep
- Security Sprint: A Table To Complete — CompTIA Cloud+ (CV0-004) Exam Prep
- Sixty Six Of Eighty Five: The Mock And Its Report — CompTIA Cloud+ (CV0-004) Exam Prep
- Exam On Thursday: The PBQ Clinic And Final Review — CompTIA Cloud+ (CV0-004) Exam Prep
- Shared Responsibility Model & Cloud Threat Landscapes — Cloud Security & DevSecOps Engineering
- Cloud Network Isolation: VPC Peering & PrivateLink — Cloud Security & DevSecOps Engineering
- Static IaC Scanning: Linting Terraform with Checkov — Cloud Security & DevSecOps Engineering
- Continuous IaC Drift Detection & State Protection — Cloud Security & DevSecOps Engineering
- Cloud Security Posture Management & Remediation — Cloud Security & DevSecOps Engineering
- Security Architecture Gap Analysis — Cybersecurity Fundamentals, GRC & Cryptography
- Containment & Eradication: Host, Net & Identity — Security Operations & Threat Hunting (SOC)
- Recovery & System Validation Testing — Security Operations & Threat Hunting (SOC)
References
- Control traffic to your AWS resources using security groups
- Amazon VPC User Guide: Security group rules