How the security agent connects to GuardDuty
The Runtime Monitoring security agent delivers runtime events to GuardDuty over one of two connectivity methods: a link-local address or an Amazon VPC endpoint. Both keep data within the AWS network. There is no additional cost for GuardDuty connectivity.
Link-local connectivity
The agent connects to the GuardDuty backend over a link-local address, at
guardduty-data-v2.. Link-local
connectivity doesn't use private DNS. Replace us-east-1.amazonaws.comus-east-1 with your
AWS Region.
Amazon VPC endpoint connectivity
The agent connects to the GuardDuty backend through an Amazon VPC endpoint. It resolves and connects
to the endpoint's private DNS name. For a non-FIPS endpoint, this is
guardduty-data.. Replace
us-east-1.amazonaws.comus-east-1 with your AWS Region.
The resource must have a valid network path to an active guardduty-data Amazon VPC
endpoint. GuardDuty selects the subnet based on IP availability, so for advanced network topologies,
validate that a valid network path exists.
If you delete an Amazon VPC endpoint that an agent is using and the Amazon VPC has no link-local path, Runtime Monitoring stops for that resource.
Prerequisites
For prerequisites, see Prerequisites to enabling Runtime Monitoring.
Considerations
-
Automated agent configuration – GuardDuty establishes connectivity automatically. For new Runtime Monitoring enablements, the agent connects to GuardDuty over a link-local address. If you manage the agent manually, you need to create an Amazon VPC endpoint for the agent to connect through.
-
Region availability – Link-local connectivity is not supported in all AWS Regions. In Regions where it is not supported, the agent connects through an Amazon VPC endpoint.
-
Minimum agent version – Link-local connectivity requires security agent version
v1.17.3or later for Amazon EC2 instances, Amazon ECS (including AWS Fargate), and Amazon EKS clusters. For security agent version history, see GuardDuty security agent release versions. -
All VPCs – With automated agent configuration, GuardDuty sets up connectivity across all your VPCs, including centralized and spoke VPCs. For more information about centralized VPCs, see Interface VPC endpoints in the AWS Whitepaper - Building a Scalable and Secure Multi-VPC AWS Network Infrastructure.
-
Shared VPC – If you use a shared VPC, GuardDuty uses that shared VPC to receive runtime events from your resources after the prerequisites are met. See Using shared VPC with Runtime Monitoring.
-
Existing Amazon VPC endpoints – An Amazon VPC that GuardDuty already set up with an Amazon VPC endpoint keeps using it. GuardDuty doesn't add link-local connectivity to that Amazon VPC until you turn Runtime Monitoring off and then on again.
-
Endpoint policies and security groups on the endpoint – On the link-local path, the agent's traffic does not go through an Amazon VPC endpoint, so an endpoint policy or a security group on the
guardduty-dataendpoint does not apply to it. -
Host-level controls – On the link-local path, if you run host-level controls that inspect or filter the agent's traffic, or apply security group outbound rules on your hosts, allow the link-local ranges
169.254.170.248/29(IPv4) andfd00:ec2:6d00::/64(IPv6).