How to Use AWS CloudTrail Network Activity Events to Monitor VPC Endpoints

Summary
AWS CloudTrail network activity events provide visibility into supported API calls through VPC Endpoints. The article explains using them to assess endpoint policies, monitor denied requests, and help detect possible data exfiltration, while weighing coverage against 비용
Key points
- The opt-in events log supported management and data-plane API calls that pass through VPC Endpoints.
- At launch, supported services included CloudTrail, EC2, KMS, S3, and Secrets Manager.
- The article recommends enabling VpceAccessDenied logging for each relevant event source to monitor blocked requests and identify policy changes that may disrupt legitimate traffic.
- Events can help identify attempts to use external identities and resources for data exfiltration, including activity blocked by endpoint policies.
- For denied external-principal requests, the article says logs may omit the user identity ARN and user agent, leaving source IP, account ID, and an opaque principal ID for investigation.
- Network activity events have pricing similar to Data Events; the article advises comparing their coverage and cost with Data Events to avoid duplicate logging.
- Wiz Defend can ingest the logs when CloudTrail collection is enabled and includes detection rules for suspicious activity.
Article Details
- Defense Focus
- Enable CloudTrail network activity event logging for VPC Endpoints to monitor denied access, assess policy changes, and detect suspicious access or potential data exfiltration.
- Detection Methods
- Enable VpceAccessDenied event logging for each relevant event source and investigate denied requests.
- Monitor for external principals being used from within the VPC, including requests involving external resources.
- Use network activity events to identify unexpected service or resource relationships and potential data exfiltration.
- Review denied requests to distinguish unapproved access from legitimate traffic blocked by endpoint policies.
- Data Sources
- CloudTrail VPC Endpoint network activity events, including management and data-plane API calls
- Event fields including sourceIPAddress, accountId, principalId, eventSource, eventType, eventCategory, errorCode, and errorMessage
- Rule Types
- Wiz Defend detection rules for suspicious activity in CloudTrail network activity events
- Platforms
- AWS
- Defensive Actions
- Enable VpceAccessDenied logging for every relevant event source when VPC Endpoints are in use.
- Use logged activity to evaluate proposed VPC Endpoint Policy changes and avoid disrupting legitimate traffic.
- Investigate denied external-principal activity using sourceIPAddress, accountId, and principalId; look up the full ARN from principalId where possible.
- Assess the coverage and cost of broader network activity logging against CloudTrail Data Events to avoid duplicate logging costs.
- Estimate billing impact before enabling additional network activity event categories.
Products
CloudTrailIn some cases, network activity events will be a better selector for relevant Data Events than configuring CloudTrail Data Events or Resource-based Data Events like S3 Access Logs.VPC Endpoint PoliciesFor those that have not yet applied restrictive VPC Endpoint Policies, Network Activity events can ensure existing functionality will not be disrupted.VPC EndpointsEveryone that uses VPC Endpoints should enable network activity events for VpceAccessDenied errors. Wiz DefendWiz Defend automatically ingests these logs if you have enabled the collection of them in your CloudTrail, and has detection rules for suspicious activity within them.
