Darrius

PQC Readiness · shipped

PQ-SAT

Scalable Cryptographic Inventory & TLS Analytics

A TLS data pipeline that turns Zeek observations into a cryptographic inventory and reports for post-quantum migration planning.

I led the redesign and independently designed and implemented the TLS pipeline and backend, from log preprocessing through inventory and reporting.

  • Python
  • DuckDB
  • Polars
  • PostgreSQL
  • Zeek
  • Parquet
TLS records processed in one run
8M+
Owner-reported. Run log pending.
Cipher suites in the mapping catalog
348

The Challenge

Post-quantum migration starts with an inventory of the cryptography already in use. Zeek logs contain repeated TLS observations and uneven certificate coverage. The pipeline had to group those observations and preserve the distinction between capabilities a client advertised and choices a server made.

Architecture Evolution

Query-driven processing

  1. Zeek telemetry

    TLS observations and certificate records indexed in OpenSearch.

  2. OpenSearchQuery bottleneck

    Group TLS observations with composite aggregation and fetch one page of buckets per query.

  3. Certificate lookups

    Query the certificate index by fingerprint on each cache miss.

  4. Python enrichment

    Map cryptographic metadata one page of buckets at a time.

  5. CSV export

    Append enriched TLS rows.

The diagram compares the implementations. Runtime and peak memory were not measured for this comparison.

Deduplicate in DuckDB

Group observations by handshake attributes within each day. Downstream suite counts describe the retained groups. Repeated handshakes can collapse into a single row, with one representative observation carrying the associated metadata.

Use Parquet as the handoff

Typed daily files let preprocessing and enrichment run separately and give each stage an inspectable input or output. The handoff adds intermediate storage and a schema the two stages must share.

Join certificates before batching

A Polars left join uses the first chain fingerprint and keeps TLS observations with no certificate match. The join runs before Python slices the data into batches, so batch size alone does not bound peak memory.

My Contributions

Data Pipeline Architecture

Action
Redesigned the processing path around daily log preprocessing and batch analysis.
Implementation
Defined explicit column types for daily TLS and X.509 outputs and wired the Python entry point to read them.
Evidence
Column definitions, the DuckDB preprocessing script, and the Parquet reader.

Cryptographic Inventory & Data Modeling

Action
Built a catalog and inventory model for querying cryptographic usage by endpoint.
Implementation
Mapped suite identifiers to cryptographic components and modeled endpoints, certificates, and TLS observations in PostgreSQL.
Evidence
The 348-entry suite catalog and PostgreSQL inventory models.

Assessment & Reporting

Action
Translated observed TLS usage into outputs for readiness assessment.
Implementation
Mapped client-advertised capabilities and observed server key exchange selections to separate fields. Built suite statistics and endpoint-level cryptographic bills of materials (CBOMs).
Evidence
The assessment mapping, statistics writer, CSV export, and CBOM generator.

Results & Product Evidence

The suite count comes from the mapping catalog. The 8M+ record count is my account of one execution. The run log and measurement conditions are pending documentation, so throughput and speedup remain unverified.

Reporting outputs

Field and format summary from the implementation.
TLS detail CSV
Includes the negotiated cipher suite and separate pqc_supported and pqc_used fields.
PostgreSQL suite statistics
Counts deduplicated observations by suite and negotiated TLS version, with the catalog’s security classification.
Endpoint CBOM JSON
Groups protocols, algorithms, key metadata, and available certificate details by endpoint.

Engineering Takeaways

Deduplication defines the reporting unit

Once daily groups become the input to suite statistics, their counts describe observed configurations. Measuring traffic volume would require retaining raw counts or carrying group sizes forward.

Preserve what the handshake can tell you

A client can advertise post-quantum signature support, while passive TLS 1.3 telemetry leaves the negotiated signature unconfirmed. The inventory needs to preserve that distinction through to the report.