eBPF SSL/TLS Traffic Inspection Without Keys

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing techniques for SSL/TLS inspection require access to cryptographic key material or the root certificate authority, making real-time inspection challenging, especially in scenarios like detecting malicious traffic or preventing sensitive data leakage.

Innovation Solution

A computer-implemented system using an extended Berkeley Packet Filter (eBPF) subsystem to extract unencrypted data from SSL/TLS libraries without cryptographic key material, correlating it with network sockets for real-time inspection.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If cryptographic key material is extracted from process memory space to enable SSL/TLS inspection, then inspection capability is improved, but system complexity increases and real-time performance deteriorates

Engineering Contradiction:
Improveinspection capabilityVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent introduces an intermediary component (traffic inspection subsystem with eBPF) that sits between the network traffic and the inspection processes. This intermediary captures encrypted traffic at the kernel level and makes it available for inspection without requiring direct access to cryptographic keys or process memory, thereby reducing system complexity while maintaining inspection capability

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent replaces the mechanical approach of extracting keys from process memory with an eBPF-based system that uses kernel-level hooks and tracepoints. This substitution eliminates the need for complex key extraction mechanisms and separate correlation processes, enabling real-time inspection with reduced system complexity

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Adaptability or versatility

If separate processes are used to correlate extracted keys with network traffic, then inspection flexibility is improved, but real-time performance deteriorates

Engineering Contradiction:
Improveinspection flexibilityVSAvoidreal-time performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent merges the key correlation function and traffic inspection function into a single integrated eBPF subsystem operating at the kernel level. By combining these functions, the system eliminates the latency introduced by inter-process communication and data correlation between separate processes, achieving real-time performance while maintaining inspection flexibility through programmable eBPF logic

Inventive Principle:
Principle #5Merging (Combining)

3Measurement precision

If root CA access is required for SSL/TLS inspection, then decryption accuracy is improved, but ease of operation deteriorates

Engineering Contradiction:
Improvedecryption accuracyVSAvoidease of deployment
Core Design Contradiction:
Measurement precisionVSEase of operation

Solution Approach 1:

Instead of requiring access to root CA to decrypt traffic, the patent inverts the approach by using eBPF to hook into SSL/TLS library functions directly. This allows the system to capture plaintext data at the point where it is being encrypted or decrypted by the application, eliminating the need for root CA access while maintaining the ability to inspect encrypted traffic

Inventive Principle:
Principle #13The other way round (Inversion)

4Measurement precision

If cryptographic key material is accessed from applications, then inspection accuracy is improved, but security risks increase

Engineering Contradiction:
Improveinspection accuracyVSAvoidsecurity risks
Core Design Contradiction:
Measurement precisionVSObject-affected harmful factors

Solution Approach 1:

The eBPF subsystem acts as an intermediary that captures traffic at the kernel level without requiring access to application process memory or cryptographic keys. This intermediary approach maintains inspection accuracy by capturing plaintext at the SSL/TLS library level while eliminating security risks associated with accessing sensitive key material in application memory

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20240340271A1Transparent and key-less inspection of SSL/TLS-encrypted network traffic and socket association using ebpf
Publication Date: 2024.10.10 THREAT X INC
  • US20240340271A1 patent drawing
  • US20240340271A1 patent drawing
  • US20240340271A1 patent drawing

AI summary

A computer-implemented system utilizes a traffic inspection subsystem (e.g., an extended Berkeley Packet Filter (eBPF) subsystem) to extract unencrypted data, before it has been encrypted or after it has been decrypted (e.g., by SSL/TLS), without the need for cryptographic key material from applications or processes. The system extracts the unencrypted data by attaching into the corresponding encryption libraries (e.g., SSL/TLS libraries) and their functions using the traffic inspection subsystem. The extracted unencrypted data is correlated to the corresponding network sockets that the encrypted traffic is using.