# Security data lakes

> Security logs as Parquet in object storage, queried with SQL: what a data lake is, where DuckDB and Spark fit, and how to keep the lake itself from leaking. Hands-on against Catgirl University's lake.

Source: https://jaredgore.com/guides/data-lakes/

This one's for the security person who keeps getting the bill: the SIEM invoice that scales with volume, the retention window that keeps shrinking because a year of logs in the SIEM costs more than the SOC itself, and the questions nobody can answer because the data aged out or never made it past the parser. A lake is the boring answer to all three — cheap storage, open formats, SQL. It grew directly out of my [DuckDB for Cloud Security series](/blog/duckdb-intro), where every post kept re-teaching the same lake concepts along the way. This is those concepts, pulled out and given a home.

## The case

Catgirl University's SOC has a problem. The GNYA answer key leaked the week before the exam, and all they have is a week of logs in a data lake: sign-ins, cloud API calls, storage access, DNS and network flows. Five tables, about 6,500 rows, as real Parquet files.

You'll query it in your browser with DuckDB, chapter by chapter, until you know who took it, how, and who bought it.

You need a browser and nothing else. Every chapter runs DuckDB inside it as WebAssembly, pointed at the lake's real Parquet files — no install, no signup, no "talk to sales." If you'd rather follow along locally (and for the heavier chapters you might want to), grab the [DuckDB CLI](https://duckdb.org/docs/installation/) — `brew install duckdb`, or the binary for your platform — and run the same queries against the downloaded files, or straight against object storage with the `httpfs` extension. The SQL is identical either way, which is kind of the whole point of DuckDB.
