Hosts of Nitro Enclave workloads are evaluated for unrestricted ingress on TCP ports commonly used by vsock-proxy applications (enclave_vsock_ports, default [5000, 8000-8090, 9000]). vsock is AF_VSOCK, but proxy applications bridge to TCP; this heuristic targets the bridge. Assesses the host environment only.
Risk
Publicly reachable vsock-proxy TCP ports let an attacker interact with the proxy and potentially reach the enclave communication channel the host was expected to keep private.
prowler aws --checks ec2_confidential_workload_host_vsock_proxy_exposed
Recommendation
Keep any TCP bridge to vsock off the public internet on confidential-workload hosts. Because this control is heuristic, review flagged ports against the actual proxy scheme before broad remediation.
Remediation
aws ec2 revoke-security-group-ingress --group-id <sg-id> --protocol tcp --port <port> --cidr 0.0.0.0/0
- Confirm which TCP ports the vsock-proxy actually needs on the host.
- Restrict ingress to those ports to internal CIDRs or peer security groups only.
- Adjust
enclave_vsock_portsin the audit config if the deployment uses a non-default proxy scheme.
Source Code
Resource Type
AwsEc2Instance