Skip to content
ShadowLens

ShadowLens

Seeing Attacks Hidden Inside Encryption

Created on 17th January 2026

•

ShadowLens

ShadowLens

Seeing Attacks Hidden Inside Encryption

The problem ShadowLens solves

🛡️ ShadowLens

AI-Powered TLS Interception & Network Anomaly Detection Platform

ShadowLens is an explainable cybersecurity analysis platform that detects suspicious TLS behavior and potential network interception using probabilistic reasoning powered by Google Gemini. It transforms low-level network signals into high-level, human-readable security insights through an antivirus-style SOC dashboard.

🚀 Why ShadowLens?

Most network security tools raise alerts but fail to explain why an event is risky. ShadowLens solves this by:

Correlating TLS handshake anomalies
Identifying proxy-based TLS interception
Generating structured, explainable AI insights
Visualizing risk in a familiar antivirus-style dashboard
✨ Key Features

🧠 Gemini-Powered Reasoning Engine
Converts raw TLS signals into structured security explanations.

🔐 TLS Interception Detection
Detects proxy flags, cipher manipulation, and anomalous handshakes.

📊 Antivirus-Style SOC Dashboard
Severity indicators, confidence scoring, evidence tables, and recommended actions.

🧩 Explainable Security AI
Probabilities, reasoning summaries, and analyst-friendly outputs.

⚙️ API-Ready Architecture
Designed for seamless backend ↔ frontend integration.

🏗️ System Architecture

image

Challenges we ran into

Hurdle 1: Baseline Data Collection
Why it was difficult
To train an unsupervised model like Random Cut Forest (RCF), we required:
Clean, MITM-free baseline traffic
Multiple sessions per website/application
Consistent fingerprints across time
However, encrypted traffic metadata is:
Highly variable per session
Affected by:
Network latency
CDN routing
TLS session resumption
Browser behavior
QUIC vs TLS differences
This meant a single session was insufficient.
What we had to do
Capture hundreds of clean TLS sessions
Maintain traffic across:
Different domains
Different time intervals
Multiple reconnections
Aggregate metadata across sessions to compute:
JA4 client/server fingerprint stability
Certificate reuse frequency
Certificate authority rarity
Handshake RTT behavior
Only after repeated sessions could we determine what “normal” truly looked like.
⚠️ Hurdle 2: MITM Data Collection
Why MITM data is extremely hard to obtain
There are no public datasets that provide:
JA4 fingerprints
TLS handshake metadata
Certificate chain transitions
Encrypted-session timing deviations
MITM attacks had to be:
Performed manually
Repeated across sessions
Logged carefully to avoid contamination
Each MITM setup altered traffic differently depending on:
Intercepting proxy
TLS version downgrade
Certificate substitution
QUIC fallback behavior
This made labeling and consistency very challenging.
⚠️ Hurdle 3: Feature Extraction & Parsing
Raw packet captures were unusable directly.
We had to build a pipeline that:
Parsed packet captures
Extracted:
JA4 client fingerprints
JA4 server fingerprints
Certificate chain properties
Session resumption success/failure
Handshake RTT
Converted these into session-level numerical feature vectors
This required:
Matching packets across flows
Identifying TLS boundaries
Normalizing values across sessions
Removing noise from retransmissions
This parsing step alone consumed a major portion of development time.
⚠️ Hurdle 4: Training the Random Cut Forest
Training RCF introduced additional challenges:
RCF requires unique indices per insertion
Trees cannot accept duplicate indices
Improper indexing caused repeated crashes
Minor data leakage distorted anomaly depth scores
We also had to carefully manage:
Tree size vs memory usage
Number of trees vs detection stability
Avoiding model mutation during evaluation
Because RCF is rarely used outside research contexts, debugging documentation was limited.
✔ Solution 1: Session-Level Baseline Modeling
Instead of treating packets individually, we:
Aggregated traffic into session-level vectors
Computed statistical stability metrics across sessions
Trained the model only on repeated clean baselines
This dramatically reduced noise.
✔ Solution 2: Controlled Synthetic MITM Generation
Due to limited real MITM samples, we:
Learned statistical bounds from baseline traffic
Generated synthetic MITM samples directly in feature space
Simulated realistic MITM effects such as:
Increased handshake latency
Reduced fingerprint stability
Certificate trust degradation
This preserved realism while avoiding overfitting.
✔ Solution 3: Hybrid Validation
We validated detection quality by:
Comparing normal vs MITM score distributions
Using percentile-based thresholds
Evaluating confusion matrices on controlled synthetic attacks
This allowed us to tune recall vs false positives realistically.

Tracks Applied (2)

SCAILE Track

SCAILE

Google Gemini API

The Gemini API integrates into ShadowLens as an AI explanation and decision-support layer that interprets anomaly signal...Read More
Major League Hacking

Major League Hacking

Discussion

Builders also viewed

See more projects on Devfolio