# AWS - ECS Unauthenticated Enum

{{#include ../../../../banners/hacktricks-training.md}}

## ECS

Per maggiori informazioni consulta:

{{#ref}}
../../aws-services/aws-ecs-enum.md
{{#endref}}

### Security Group o Load Balancer accessibile pubblicamente per i servizi ECS

Un Security Group mal configurato che **consente traffico in ingresso da internet (0.0.0.0/0 o ::/0)** verso i servizi Amazon ECS potrebbe esporre le risorse AWS ad attacchi.
```bash
# Example of detecting misconfigured security group for ECS services
aws ec2 describe-security-groups --query 'SecurityGroups[?IpPermissions[?contains(IpRanges[].CidrIp, `0.0.0.0/0`) || contains(Ipv6Ranges[].CidrIpv6, `::/0`)]]'

# Example of detecting a publicly accessible load balancer for ECS services
aws elbv2 describe-load-balancers --query 'LoadBalancers[?Scheme == `internet-facing`]'
```
{{#include ../../../../banners/hacktricks-training.md}}
