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.
Native or custom source?
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.
How Security Lake stores data
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.
| Type | How it reads data |
|---|---|
| Data access subscriber | Notified of new S3 objects and reads them directly, like a SIEM ingesting data |
| Query access subscriber | Queries in place through Lake Formation and Athena |
Data or query access?
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.

Security Hub or Security Lake?
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.
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.