jaredgore~/guides/data-lakes
›cat guides/data-lakes/README.md

Security data lakes

updated Nov 27, 2026

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.

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, 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 — 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.

›ls guides/data-lakes/

  1. 01
    What a data lake is

    Cheap storage, open file formats and any engine you like: why security logs end up in a lake, and how that differs from a SIEM.

  2. 02
    Parquet

    Columns, row groups, compression and partitions: why Parquet is the file format for logs, and how the layout decides what a query has to read.

  3. 03
    Exploring with DuckDB

    A database in your browser, pointed at Parquet over HTTP. Work the Catgirl University case with SQL, from a password spray to a stolen answer key.

  4. 04
    When you need Spark

    The same queries on a cluster: what Spark is for, when DuckDB on one machine stops being enough, and what changes when it does.

  5. 05
    Securing the lake: data perimeters

    Your lake is full of the most sensitive data you have. Identity, network and resource perimeters: who can reach it, from where, and where it's allowed to go.

›git log --oneline

  • Nov 27, 2026Published: what a data lake is, Parquet, DuckDB lab, Spark, and data perimeters.
  • Nov 14, 2026Guide started.