Overview
Datadog provides built-in threat intelligence for Cloud SIEM logs. This article explains how to extend that functionality by enriching logs with your own custom threat intelligence feeds.
Bring your own threat intelligence
Cloud SIEM supports enriching and searching logs using threat intelligence indicators of compromise (IOCs) stored in Datadog reference tables. Reference Tables allow you to combine metadata with information already in Datadog.
Storing indicators of compromise in reference tables
Threat intelligence is supported in the CSV format, and requires a table for each Indicator type (for example, IP address) and requires the following columns:
CSV structure for IP address
Field | Data | Description | Required | Example |
---|
ip_address | text | The primary key for the reference table in the IPv4 dot notation format. | true | 192.0.2.1 |
additional_data | json | Additional data to enrich the logs. | false | {"ref":"hxxp://example.org"} |
category | text | The threat intel category. This is used by some out-of-the-box detection rules. | true | Malware |
intention | text | The threat intel intent. This is used by some out-of-the-box detection rules. | true | malicious |
source | text | The name of the source and the link to its site, such as your team and your team’s wiki. | true | {"name":"internal_security_team", "url":"https://teamwiki.example.org"} |
JSON in a CSV requires double quoting. The following is an example CSV.
ip_address,additional_data,category,intention,source
192.0.2.1,"{""ref"":""hxxp://example.org""}",scanner,suspicious,"{""name"":""internal_security_team"", ""url"":""https://teamwiki.example.org""}"
192.0.2.2,"{""ref"":""hxxp://example.org""}",scanner,suspicious,"{""name"":""internal_security_team"", ""url"":""https://teamwiki.example.org""}"
192.0.2.3,"{""ref"":""hxxp://example.org""}",scanner,suspicious,"{""name"":""internal_security_team"", ""url"":""https://teamwiki.example.org""}"
Uploading and enabling your own threat intelligence
Datadog supports creating reference tables either by a manual upload or by periodically retrieving the data from Amazon S3, Azure storage, or Google Cloud storage.
Notes:
- It can take 10 to 30 minutes to start enriching Logs after creating a table.
- If a primary key is duplicated, it is skipped and an error message about the key is displayed.
On a new reference table page:
- Name the table. The table name is referenced in the Threat Intelligence setting.
- Upload a local CSV or import a CSV from a cloud storage bucket. The file is normalized and validated.
- Preview the table schema and choose the IOC column as the Primary Key.
- Save the table.
- In Threat Intel, locate the new table and toggle it on to enable it.
Using cloud storage
When the reference table is created from cloud storage, it is refreshed periodically. The entire table is replaced. Data is not merged.
See the related reference table documentation for:
Troubleshooting cloud imports
If a reference table is not refreshing, open the reference table’s settings menu and select View Change Events.
View Change Events opens a page in Event Management showing potential error events for the ingestion. You can also filter in Event Management using the reference table name.
In Datadog Event Management, it may appear that data has been fetched from the cloud, but it can take a few additional minutes for those changes to propagate to Threat Intelligence. Other useful cloud import details to remember:
- The expected latency before updated enrichments are available when a source is uploaded or updated is 10 to 30 minutes.
- How to know when the updates are applied: The changes are visible in the reference table or in the logs. Select the View Change Events link from settings on the reference table detail page to see the related events.
- The update replaces the entire table with the new data.
In case of a duplicated primary key, the rows with the duplicated key are not written, and an error is shown in the reference table detail page.
Threat intelligence in the user interface
To enable Cloud SIEM threat intelligence data for reference tables:
- Navigate to Threat Intelligence.
- For the table you want to see Cloud SIEM threat intelligence data, click the dropdown menu in the Enabled column and select Cloud SIEM.
After applying a reference table to Cloud SIEM, all incoming logs are evaluated against the table using a specific Indicator of Compromise (IoC) key, such as an IP address. If a match is found, the log is enriched with relevant Threat Intelligence (TI) attributes from the table, which enhances detection, investigation, and response.
A threat intelligence reference table can be shared across multiple security products.
Further reading
Additional helpful documentation, links, and articles: