Cloud SIEM for AWS Fundamentals Certification / 02 / 07

Datadog Setup

What this domain covers

This domain walks step by step through the settings from enabling Cloud SIEM until AWS logs are analyzed. Three points are key: placing the Cloud SIEM index in the first position, narrowing down the logs to analyze with the method that fits your organization's product form (Standalone, Add-on with Flex Logs, Legacy), and choosing a route that reliably delivers CloudTrail logs. In setup questions, you can narrow down the answer by first confirming which product form the question is about and at which stage the setting is evaluated.

Topics listed in the official guide

  • Log management and index strategy
  • AWS integration and log collection
  • Log processing and normalization
  • Cloud SIEM configuration and verification

Key points

  • When you select Content Packs on the activation screen and click Activate, the Cloud SIEM index cloud-siem-xxxx is created
  • If a warning about the index position appears, move cloud-siem-xxxx to the first position with Reorder index. If the warning remains, wait a few minutes and reload
  • Standalone, the default for new organizations, narrows down the logs to analyze with the index filter of the Cloud SIEM index
  • Add-on with Flex Logs uses Security Filters, and each Content Pack has its own filter. At onboarding there are 0 filters
  • Security Filters are evaluated before enrichment, so attributes such as network.ip.list and ocsf.* cannot be used in their conditions
  • Ingested logs get the tag datadog.cloud_siem:true or false depending on whether they are analyzed
  • Setting Send Logs to Datadog to Yes in the AWS integration CloudFormation creates the Forwarder Lambda function
  • There are three ways to send CloudTrail logs: automatic subscription (recommended), an S3 trigger on the Forwarder, and Amazon Data Firehose
  • If the S3 bucket is encrypted with a KMS key, the kms:Decrypt permission is also needed
  • A single CloudWatch log group can have at most two subscriptions

Terms and concepts

Cloud SIEM index

The cloud-siem-xxxx log index created at activation. Logs go into the first matching index, in order from the top of the index list. If this index is not placed in the first position, logs that enter another index first may not be analyzed.

Product forms (Standalone, Add-on with Flex Logs, Legacy)

The form of Cloud SIEM your organization uses, and each narrows down the logs to analyze differently. Standalone uses the index filter, Add-on with Flex Logs uses Security Filters (in the UI and the API), and Legacy uses Security Filters through the API, adding exclusions to a default filter that passes all logs.

Security Filters

Inclusive filters that select the logs to analyze in Add-on with Flex Logs and Legacy. Enabling a Content Pack adds its filter, and disabling it removes the filter. They are evaluated before geoIP, threat intelligence, and OCSF enrichment.

The datadog.cloud_siem tag

A tag attached to ingested logs that shows whether they are analyzed. Looking at this tag in the Log Explorer lets you confirm the effect of the filters.

AWS integration CloudFormation

The template that connects an AWS account to Datadog. Setting Send Logs to Datadog to Yes creates the Forwarder Lambda function that sends logs.

Datadog Forwarder

A Lambda function that sends AWS logs to Datadog. If you specify the S3 bucket that collects CloudTrail logs as a trigger and select All object create events as the event type, it sends logs each time a new file is placed.

Automatic log subscription

A method in which Datadog finds trails and automatically subscribes to their destination S3 bucket or CloudWatch Logs group, recommended in the official documentation. You add the cloudtrail:ListTrails and cloudtrail:GetTrail permissions.

Permissions to read CloudTrail

You need cloudtrail:DescribeTrails and GetTrailStatus to read the state of trails, and s3:ListBucket, GetBucketLocation, and GetObject to read the bucket. If the bucket is encrypted with a KMS key, you also add kms:Decrypt.

The Amazon Data Firehose route

A method of sending from a CloudWatch log group to Datadog through Firehose. Using a Kinesis Data Stream as the input lets you send to multiple destinations. Failed events are kept in an S3 backup and resent with the Forwarder.

OCSF pipeline

A read-only pipeline at the end of the pipelines that normalizes ingested security logs into the common OCSF form. If you clone the main pipeline, the OCSF pipeline becomes a regular log pipeline.

Check your understanding

Check what you have learned with 5 questions