Lesson 3 of 3 AWS Security Hub and Amazon Security Lake

Centralising Security Data with Amazon Security Lake

This lesson explains how Amazon Security Lake builds a security data lake in your own account, normalising logs from AWS and third parties into the Open Cybersecurity Schema Framework (OCSF) for analysis and SIEM tools.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the sources that Security Lake collects.
  • Describe how Security Lake stores data in the customer's own account.
  • Distinguish data access subscribers from query access subscribers.
  • Distinguish Security Lake from Security Hub.

Sources

Security investigations need logs from many places, and each source has its own format, location and retention. Amazon Security Lake centralises them: it collects security logs and events from AWS services across the accounts and Regions of an organisation, and from external sources, into one data lake. Native AWS sources are enabled with a few settings and need no delivery pipelines. Custom sources write data that is already in OCSF format into the lake. The following list describes the supported sources.

  • Native: CloudTrail management and data events, VPC Flow Logs, Route 53 Resolver query logs, Security Hub findings, EKS audit logs, AWS WAF logs.
  • Custom sources: third-party firewalls, endpoint tools, on-premises logs.
Sort into groups

Native or custom source?

Exam skills 1.2.3 · 3.1.4

Decide whether each log is a native Security Lake source or must be added as a custom source.

Log in to try this activity Interactive activities are free with an account.

Storage

Security Lake does not store data in a proprietary service. It creates an S3-based data lake in the customer's own account, so the customer keeps ownership and control of the data and pays standard storage costs. Data is normalised into one schema and an open format, so any tool that understands that format can query it. The following list describes how data is stored.

  • Converted to the Open Cybersecurity Schema Framework (OCSF) and stored as Parquet in S3 in your account, managed with Lake Formation and the Glue Data Catalog. One schema means one query spans many sources.
  • Choose Regions to collect from, a rollup Region to consolidate them, and retention with storage class transitions.
  • Encrypted, optionally with your own KMS key.
True or false

How Security Lake stores data

Exam skills 1.2.3

Check how Security Lake stores and governs data.

Log in to try this activity Interactive activities are free with an account.

Subscribers

Amazon Security Lake stores security data in S3 in the Open Cybersecurity Schema Framework (OCSF) format, and subscribers consume it in one of two ways. A data access subscriber is notified when new objects arrive and reads them directly from S3. That suits a SIEM or another tool that ingests the data into its own store. A query access subscriber leaves the data where it is and queries it in place through Lake Formation and Athena, which suits analysts and tools that need answers without copying the data. The following table summarises the two types.

TypeHow it reads data
Data access subscriberNotified of new S3 objects and reads them directly, like a SIEM ingesting data
Query access subscriberQueries in place through Lake Formation and Athena
Scenario questions

Data or query access?

Exam skills 1.2.3 · 1.2.4

Choose the subscriber type for each consumer of the lake.

Log in to try this activity Interactive activities are free with an account.

Security Lake or Security Hub?

Security Hub and Security Lake are complementary rather than alternatives. Security Hub manages findings and posture: it collects the conclusions of detection services, checks configurations against standards and supports triage and automated response. Security Lake stores raw security logs, such as CloudTrail events and flow logs, for investigation, threat hunting and long-term analysis. When a scenario needs to know which resources are non-compliant or which findings are critical, the answer is Security Hub; when it needs to query months of activity across sources, or feed a SIEM with normalised data, the answer is Security Lake. Subscribers, such as Athena, OpenSearch or third-party SIEMs, are granted query or data access to the lake.

The following diagram shows how two log sources in Amazon Security Lake and two queries find the instances that contacted a command-and-control domain.

Hunting a command-and-control domain with Amazon Security Lake. Route 53 Resolver logs and VPC Flow Logs share the OCSF schema, so one Athena query as a query access subscriber finds the instances that resolved the domain, and a second, on the flow log table, shows whether connections followed.
OCSF stands for Open Cybersecurity Schema Framework.
Sort into groups

Security Hub or Security Lake?

Exam skills 1.1.3 · 1.2.3

Decide which service each requirement points to.

Log in to try this activity Interactive activities are free with an account.
Worked example

Hunting across sources with one query

Threat intelligence reports that malicious-updates.example is a command-and-control domain. With Security Lake, Route 53 Resolver logs and VPC Flow Logs share the OCSF schema, so one Athena query (as a query access subscriber) finds which instances resolved the domain:

SELECT time_dt,
       src_endpoint.instance_uid  AS instance,
       src_endpoint.ip            AS source_ip,
       query.hostname             AS domain,
       accountid
FROM   amazon_security_lake_glue_db_eu_west_1.amazon_security_lake_table_eu_west_1_route53_2_0
WHERE  query.hostname LIKE '%malicious-updates.example%'
  AND  time_dt > current_timestamp - INTERVAL '7' DAY
ORDER BY time_dt;

A second query on the flow log table, filtered by those instances and the resolved IP addresses, shows whether connections followed the lookups. Hunting across a whole organisation's history, without first building a SIEM pipeline, is the scenario Security Lake answers.

Check yourself

Which schema does Security Lake normalise logs into?

Show answer

The Open Cybersecurity Schema Framework (OCSF).

Exam Tips

Remember for the exam

  • To normalise security logs from AWS and third parties into one schema, use Security Lake (OCSF).
  • When a SIEM must query the lake in place, make it a query access subscriber.
  • When a SIEM ingests new data as it arrives, make it a data access subscriber.
  • To consolidate data from many Regions, use a rollup Region.
  • Security Lake data stays in S3 in your own account.