Skip to content

Cloud trail configuration options help

0

hello everyone, I wanna implement cloudtrail to my AWS account but I do not understand the difference in the options, can someone explain to me the difference between: Management events, Data events, Insights events and Network activity events in AWS cloud trail? From what I understood: Management events is for all the resources in general, while data events get deeper into each resource events, Insights events are for abnormal metrics such as too many API calls or too many API errors, but Network activity events, I don't get...

asked 2 years ago556 views

2 Answers
1

CloudTrail network activity events enable VPC endpoint owners to record AWS API calls made using their VPC endpoints from a private VPC to the AWS service. Network activity events provide visibility into the resource operations performed within a VPC. For example, logging network activity events can help VPC endpoint owners detect when credentials from outside their organization attempt to access their VPC endpoints.

EXPERT

answered 2 years ago

  • So suppose credentials for my EC2 instance hosted in a VPC got breached, if this EC2 got accessed from outside the VPC, cloudtrail will take action?

  • Cloudtrail takes no action. It only captures APi calls within your account/org. Cloudtrail is an audit trail only

1

CloudTrail is an audit logging mechanism. It will never take action on your behalf. You can use the logs for troubleshooting, forensic investigation of incidents, or simply to gain an understanding of what is happening in your environment. You can also feed the logs into an AWS-provided or third-party tool that analyses the logs, detect anomalies or preconfigured rule matches, and have that separate tool take action or alert operators when unusual events take place.

Management events are API calls that involve creating, modifying, or viewing the configuration of AWS resources. For example, creating an S3 bucket or launching an EC2 instance would show as a management event, and so would inspecting the lifecycle configuration of your S3 bucket or the instance properties of your EC2 instance. However, downloading an object from an S3 bucket or listing the bucket's contents wouldn't be included in management events. The first trail that you configure to log management events delivers the log data for free, and you only pay for storing it in the destination service you chose, which is usually an S3 bucket.

Data events involve creating, modifying, or reading data in or related to an AWS resource. For example, listing the contents of your S3 bucket or downloading, uploading, or deleting objects would count as data operations. Invoking Lambda functions or accessing items in a DynamoDB table are other examples of API calls that are considered as data events. You are always charged for logging data events, even for the first copy. The cost impact can be significant if, for example, your workloads access S3 objects or DynamoDB table items, or invoke Lambda functions at high frequencies and you have logging enabled for any of those services.

Insights events are anomalies that CloudTrail detects by analysing management events and finding deviations to the rates at which API calls are made or the rate at which they return errors compared to a past baseline considered as normal. Notably, Insights only considers management events, so it won't detect if a large number of objects are deleted from your S3 bucket, for example.

Network activity events Gary Mclean already explained, so just summarising, they are API calls to certain AWS services that are made via VPC endpoints in your VPC. For example, if you have a VPC endpoint for EC2 in your VPC and you make an API call through that endpoint to launch an EC2 instance, it will show in network activity events. In most cases, you'll see them also in the normal management events, but the important difference is that if API calls are made with credentials from outside your account, they wouldn't show in the management events of your account but the AWS account where the calling principal exists. If you are running third-party software, for example, you would see API calls to services such as AWS KMS (key management service) or Secrets Manager when they're made through a VPC endpoint that you own. However, network activity events don't support S3 or DynamoDB, as examples, for now, so attempts to access foreign S3 buckets wouldn't show in network activity events.

All these features only record the corresponding log data. They don't take action on their own but only produce the data for other services or third-party tools to do so.

If you're looking for an automated tool to detect anomalous events, you might want to look at GuardDuty: https://docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html. Its foundational feature set analyses your CloudTrail management events, network connections from VPC flow logs, and DNS queries via Route 53 Resolver to detect indications of anomalies or compromise. For example, if you have an EC2 instance that allows SSH or RDP (Remote Desktop) access from the internet and an outsider starts to brute-force it, GuardDuty will typically detect it from the VPC flow logs that it automatically collects from your VPCs. From Route 53 Resolver query logs it detects queries for DNS names known to be related to botnets, ransomware, or other malicious situations.

GuardDuty also has other optional, separately charged features. For example, GuardDuty S3 Protection would detect what I mentioned above, anomalous or suspicious actions taken on objects in your S3 buckets: https://docs.aws.amazon.com/guardduty/latest/ug/s3-protection.html

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.