How ianparkerpro/pqc-audit works
PQC TLS Auditor is a passive TLS-handshake inspection proof of concept. In replay or live mode, the console program reads captured packets, passes them to flow tracking, and emits JSON findings; live mode can also resolve the client process. The detection core decodes TCP packets, reassembles directional streams, parses ClientHello and ServerHello messages, and classifies the negotiated key exchange using a configurable group table. The README also describes future endpoint-agent, network-sensor, and collector capabilities, but those are not implemented here. Edges reflect the shown program wiring and indexed source references; unsampled components are represented only where the README supports them.
Main entry points: Program.cs POC console · FlowTracker.cs Flow tracker · ObservationJsonWriter.cs JSON writer · TlsHandshakeParser.cs TLS parser
Components 23
Packet capture
- POC console
src/PqcAuditor.Poc/Program.cs - PCAP replay
src/PqcAuditor.Core/Capture/PcapFileCaptureSource.cs - ETW capture
src/PqcAuditor.Poc/EtwCaptureSource.cs
Handshake analysis
- Packet decoder
src/PqcAuditor.Core/Packets/PacketDecoder.cs - Flow tracker
src/PqcAuditor.Core/Flows/FlowTracker.cs - Flow identity
src/PqcAuditor.Core/Flows/FlowKey.cs - TCP reassembler
src/PqcAuditor.Core/Flows/TcpStreamReassembler.cs - TLS parser
src/PqcAuditor.Core/Tls/TlsHandshakeParser.cs - Span reader
src/PqcAuditor.Core/Tls/SpanReader.cs - Handshake models
src/PqcAuditor.Core/Tls/HandshakeInfo.cs - Handshake observation
src/PqcAuditor.Core/Flows/HandshakeObservation.cs
PQC classification
- Verdict classifier
src/PqcAuditor.Core/Classification/Classifier.cs - Named-group table
src/PqcAuditor.Core/Classification/GroupTable.cs
Findings output
- Process resolver
src/PqcAuditor.Poc/ProcessResolver.cs - JSON writer
src/PqcAuditor.Core/Output/ObservationJsonWriter.cs
Other components
- Operator
- Capture file
- Captured traffic
- Windows ETW provider
- JSON output
- Future endpoint agent
- Future network sensor
- Future collector
Connections 25
- Operator → POC console: starts mode
src/PqcAuditor.Poc/Program.cs - Capture file → PCAP replay: provides packets
src/PqcAuditor.Core/Capture/PcapFileCaptureSource.cs - Captured traffic → Windows ETW provider: carries traffic
- Windows ETW provider → ETW capture: delivers events
src/PqcAuditor.Poc/EtwCaptureSource.cs - POC console → PCAP replay: selects replay
src/PqcAuditor.Poc/Program.cs - POC console → ETW capture: selects live capture
src/PqcAuditor.Poc/Program.cs - PCAP replay → POC console: yields packets
src/PqcAuditor.Poc/Program.cs - ETW capture → POC console: yields packets
src/PqcAuditor.Poc/Program.cs - POC console → Flow tracker: processes packets
src/PqcAuditor.Poc/Program.cs - Flow tracker → Packet decoder: decodes packets
src/PqcAuditor.Core/Flows/FlowTracker.cs - Flow tracker → Flow identity: keys flows
src/PqcAuditor.Core/Flows/FlowTracker.cs - Flow tracker → TCP reassembler: reassembles streams
src/PqcAuditor.Core/Flows/FlowTracker.cs - Flow tracker → TLS parser: parses handshakes
src/PqcAuditor.Core/Flows/FlowTracker.cs - TLS parser → Span reader: reads fields
src/PqcAuditor.Core/Tls/TlsHandshakeParser.cs - TLS parser → Handshake models: produces parsed data
- Flow tracker → Verdict classifier: classifies handshake
src/PqcAuditor.Core/Flows/FlowTracker.cs - Verdict classifier → Named-group table: looks up groups
src/PqcAuditor.Core/Classification/Classifier.cs - Flow tracker → Handshake observation: emits finding
src/PqcAuditor.Core/Flows/FlowTracker.cs - POC console → Process resolver: resolves process
src/PqcAuditor.Poc/Program.cs - POC console → JSON writer: writes findings
src/PqcAuditor.Poc/Program.cs - JSON writer → Handshake observation: serializes finding
src/PqcAuditor.Core/Output/ObservationJsonWriter.cs - JSON writer → Named-group table: names groups
src/PqcAuditor.Core/Output/ObservationJsonWriter.cs - JSON writer → JSON output: writes JSON
- Future endpoint agent → Future collector: sends findings
README.md - Future network sensor → Future collector: sends findings
README.md