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
- Zeek telemetry
TLS observations and certificate records indexed in OpenSearch.
- OpenSearchQuery bottleneck
Group TLS observations with composite aggregation and fetch one page of buckets per query.
- Certificate lookups
Query the certificate index by fingerprint on each cache miss.
- Python enrichment
Map cryptographic metadata one page of buckets at a time.
- CSV export
Append enriched TLS rows.
Query-driven processing
- Zeek telemetry
TLS observations and certificate records indexed in OpenSearch.
- OpenSearchQuery bottleneck
Group TLS observations with composite aggregation and fetch one page of buckets per query.
- Certificate lookups
Query the certificate index by fingerprint on each cache miss.
- Python enrichment
Map cryptographic metadata one page of buckets at a time.
- CSV export
Append enriched TLS rows.
Preprocessing and batch enrichment
- Zeek logs
Read TLS and X.509 logs directly.
- DuckDB
Preprocess and deduplicate TLS and X.509 observations by day.
- Parquet
Hand off typed daily TLS and X.509 files.
- Polars
Left-join certificate metadata by fingerprint.
- Python batch enrichment
Map cryptographic metadata in batches.
- Inventory and reporting
Store inventory and suite statistics in PostgreSQL. Export TLS CSV and endpoint CBOMs.
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_supportedandpqc_usedfields. - 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.
More projects
Continue exploring other systems across security, data pipelines, and applied AI.
MalwareMind
End-to-end AI security demo that converts executable binaries into image representations for CNN-based malware family classification.
- Python
- TensorFlow
- FastAPI
- Vue.js
Cybersecurity Compliance Intelligence
Structured regulatory mapping database for cross-referencing cybersecurity standards and compliance frameworks.
- Python
- SQLite
- GraphQL
- Metabase
Web Scraping & Data Extraction Pipelines
Repeatable Python extraction workflows that turn inconsistent semi-structured web sources into structured data for downstream analysis.
- Python
- Requests
- Selenium
- Airflow
Synapse
Collaborative learning map that helps AI study groups navigate topics, prerequisites, shared resources, and the group’s current learning focus.
- Next.js
- React
- TypeScript
- Supabase