Repository navigation
Home
OodaTap is a strictly passive, pure-Python network detection and response (NDR) engine that detects autonomous and hybrid human+agentic OODA loops (Observe → Orient → Decide → Act) directly from encrypted network telemetry (.pcap, .pcapng, Zeek conn.log/ssl.log, Suricata eve.json, or normalized JSONL) without TLS decryption or private keys. It correlates North-South LLM context growth, North-South ↔ East-West causal coupling, and session kinematics with exact change-point handoff detection while suppressing benign developer coding agents via declarative YAML policy.
Current release: v0.1.0 (November 25, 2026) — see Releases and CHANGELOG.md. Live showcase and interactive report: oodatap.evanjames010101.workers.dev (interactive demo report).
OodaTap is Layer 1 (Detection) of a 3-layer defensive AI-security suite alongside MirageGate (active perimeter deception & handoff attribution) and NetDIFT (internal agent DIFT containment).
-
Zero-decryption, zero-driver
.pcap&.pcapngparsing — pure-Python parser (struct/socket/ipaddress) supporting classic.pcap(LE/BE, µs/ns) and Wireshark.pcapng(SHB,IDB,EPB,SPB), Ethernet (+802.1Q VLAN), Linux SLL, Raw IP, IPv4 & IPv6, TLS ClientHello SNI extraction, and TLS Application Data (0x17) framing with zero libpcap/Npcap drivers. -
Enterprise telemetry adapters — automatic format sniffing across
.pcap,.pcapng, Zeekconn.log(JSON or TSV, auto-correlating siblingssl.logby UID), Suricataeve.json(flow+tlscorrelation byflow_id), and canonical OodaTap JSONL. -
Three orthogonal passive detectors — combines Context-Growth Sawtooth (Kendall's τ, compaction cliffs, SSE token streaming), Cross-Flow Causal Coupler (inter-turn dispatch/observation lag matching, Pearson
ΔUbyte correlation, binned OLS Granger-causality F-test), and Session Kinematics (parallel tool fan-out bursts, scanner-regularity rejection, and exact BIC-penalized L2 dynamic programming forAgent ↔ Humanhandoff change-points). -
Benign dev-agent suppression — declarative YAML policy distinguishes legitimate coding agents (e.g., Claude Code, Cursor talking to allowlisted local/dev targets) from offensive lateral movement (
BENIGN_DEV_AGENTvs.AGENTIC_OODA_INTRUSION/HYBRID_HUMAN_AGENT_INTRUSION), achieving 0.0% benign dev-agent FPR on the 75-trace synthetic benchmark. -
Off-box LLM fallback — elevates hosts with strong autonomous kinematics (
>= 0.70) and low scanner regularity (< 0.45) even when the attacker runs the LLM off-box with no local TLS stream. -
SIEM-ready outputs & offline timelines — exports Elastic Common Schema (
ECS v8.11.0) JSONL alerts, zero-CDN interactive dual-track SVG HTML timelines, and Rich CLI reports with--fail-on-alert(exit code2) for CI/automation pipelines.
Requires Python 3.11+ (tested on 3.11, 3.12, and 3.13). Install the wheel from the latest GitHub Release or build from source with uv:
# Install release wheel (v0.1.0)
pip install https://github.com/ejames-dev/OodaTap/releases/download/v0.1.0/oodatap-0.1.0-py3-none-any.whl
# Or install from source with uv
git clone https://github.com/ejames-dev/OodaTap.git
cd OodaTap
uv sync --dev
uv run oodatap --helpArtifact (v0.1.0) |
Type | SHA-256 |
|---|---|---|
oodatap-0.1.0-py3-none-any.whl |
Python wheel (~55 KiB) | 17fccc8f973c6871aab1d728e33eac40924911086bb71e6123719328f1a6f702 |
oodatap-0.1.0.tar.gz |
Source distribution (~174 KiB) | 9dd5ec0b5fe10f18057266df7f4ccaced4e38486205498960828ad38b0c24b8a |
Quick verification on bundled sample captures:
uv run oodatap analyze examples/sample_traces/mixed_enterprise.pcapng --html out/enterprise.html --ecs-out out/alerts.ecs.jsonl
uv run oodatap benchmark --seeds 15OodaTap normalizes encrypted packet captures or flow logs into typed per-host telemetry events, enriches them against YAML policy, runs three orthogonal statistical detectors, and fuses them into host verdicts and SIEM/HTML outputs:
┌──────────── Encrypted Telemetry Inputs (Zero TLS Decryption) ─────────────┐
│ .pcap / .pcapng (IPv4/IPv6, TLS SNI + 0x17 framing) │
│ Zeek conn.log (+ ssl.log) · Suricata eve.json · OodaTap JSONL │
└────────────────────────────────────┬──────────────────────────────────────┘
▼
Ingest Auto-Detector & Policy Classifier (ingest/, policy.py)
Normalizes into TlsBurstEvent (N-S) & ActionEvent (E-W / Dev)
│
┌───────────────────┼───────────────────┐
▼ ▼ ▼
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
│ Detector 1 (0.30) │ │ Detector 2 (0.45) │ │ Detector 3 (0.25) │
│ Context Sawtooth │ │ Causal Coupler │ │Session Kinematics │
│ · Kendall's τ │ │ · Dispatch/Obs lag│ │ · Fan-out bursts │
│ · Compaction cliff│ │ · Pearson ΔU corr │ │ · Scanner filter │
│ · SSE stream rate │ │ · OLS Granger F │ │ · BIC L2 DP splits│
└─────────┬─────────┘ └─────────┬─────────┘ └─────────┬─────────┘
└─────────────────────┼─────────────────────┘
▼
OodaTapEngine Fusion + Off-Box Fallback + Dev-Agent Suppression
│
┌───────────────────────────┼───────────────────────────┐
▼ ▼ ▼
Rich CLI Table ECS v8.11.0 JSONL Zero-CDN Interactive
(--fail-on-alert=2) (SIEM Alert Stream) HTML Dual-Track SVG
See Detection architecture for exact detector formulas, thresholds, and verdict rules.
| Layer | Technology |
|---|---|
| Core runtime | Python >=3.11 (hatchling build backend, managed with uv) |
| Validation & policy | Pydantic v2 (>=2.9.0), PyYAML (>=6.0.1) |
| Signal processing & stats | NumPy (>=2.0.0) — rank correlation, OLS lstsq, DP change-points, deterministic RNG |
| Packet & log parsing | Python stdlib (struct, socket, ipaddress, json) — zero libpcap/Npcap drivers |
| CLI & reporting | Typer (>=0.15.0), Rich (>=13.9.0), Jinja2 (>=3.1.4) zero-CDN HTML templates |
| Testing & linting |
pytest (>=8.3.0), ruff (>=0.11.0) |
| Showcase site | Cloudflare Workers static assets (site/, cf, strict CSP _headers) |
All telemetry and findings are typed Pydantic v2 models (src/oodatap/schemas.py):
-
Normalized events (
TelemetryEvent):TlsBurstEvent(North-South TLS turn withsni,uplink_bytes,downlink_bytes,uplink_end_ts,downlink_start_ts,downlink_end_ts,downlink_record_count,is_llm_endpoint, plus computedttft_seconds/decode_duration_seconds) andActionEvent(East-West or local action withprotocol,bytes_out,bytes_in,direction_class,is_sensitive_lateral). -
Evidence & scores:
SawtoothEvidence,CouplerEvidence(includingcoupled_links),KinematicsEvidence(includingRegimeSegmentandHandoffEvent), combined inDetectorScores. -
Verdicts & reports:
HostVerdictwithVerdictLevel(hybrid_human_agent_intrusion,agentic_ooda_intrusion,suspicious_loop,benign_dev_agent,scripted_automation,benign), aggregated intoAnalysisReport. -
Enums:
DirectionClass(east_west_internal,dev_local,external_benign,remote_inbound) andRegimeType(autonomous_agent,human_operator,scripted_scanner,idle_or_mixed).
CLI commands (oodatap, entry point oodatap.cli:app):
| Command | Purpose | Key flags |
|---|---|---|
oodatap analyze SOURCE |
Analyze capture/log & emit verdicts |
-f/--format, -p/--policy, --ssl-log, --html, --ecs-out, --include-benign-ecs, --fail-on-alert
|
oodatap ingest SOURCE |
Convert capture/log to canonical JSONL |
-o/--out (required), -f/--format, -p/--policy, --ssl-log
|
oodatap benchmark |
Run 5-class synthetic evaluation suite |
-n/--seeds (default 5), --base-seed (100), -p/--policy
|
oodatap generate-corpus |
Generate labeled .jsonl / .pcap corpus |
-o/--out (corpus), -n/--seeds (2), --no-pcap
|
oodatap version |
Print installed package version | (none) |
Python library surface: OodaTapEngine, analyze_sawtooth, analyze_coupling, analyze_kinematics, load_events, detect_format, load_policy, render_html_report, write_html_report, report_to_ecs_alerts, write_ecs_jsonl, run_benchmark, generate_corpus.
See CLI and output reference and Ingest and policy guide for every option, export, and YAML field.
git clone https://github.com/ejames-dev/OodaTap.git
cd OodaTap
uv sync --dev
# Run lint, format, and unit/integration test suite (21 tests across 6 modules)
uv run ruff format --check .
uv run ruff check .
uv run pytest
# Regenerate sample traces, README timeline SVG, and run 75-trace benchmark
uv run python examples/generate_sample_traces.py
uv run python examples/generate_timeline_svg.py
uv run oodatap benchmark --seeds 15CI (.github/workflows/ci.yml) runs formatting, linting, and pytest across Python 3.11, 3.12, and 3.13. The showcase site (site/) deploys via Cloudflare Workers (.github/workflows/deploy.yml).
| Version | Date | Theme |
|---|---|---|
0.1.0 |
2026-11-25 | Initial release: zero-driver .pcap/.pcapng (IPv4/IPv6 + TLS SNI/AppData), Zeek/Suricata/JSONL adapters, 3-signal detection engine (Sawtooth, Coupler + OLS Granger F, Kinematics + BIC L2 DP handoffs), YAML dev-agent suppression, ECS v8.11.0 JSONL, zero-CDN HTML timelines, and 5-class benchmark harness |
Post-v0.1.0 on main: added Cloudflare Workers showcase site (site/) with pre-rendered interactive HTML demo report (/demo-report) and strict CSP _headers.
Planned enhancements (from README.md):
-
Live Linux eBPF collector —
socket+execvecorrelation exporting directly to OodaTap's canonical JSONL contract. - HTTP/2 & QUIC/HTTP/3 framing — multiplexed stream de-interleaving and UDP QUIC burst support.
- Real-world labeled capture corpus — recordings from open-source agentic red-team labs beyond the current synthetic evaluation suite.
- Streaming daemon mode — continuous sliding-window analysis for live Zeek/Suricata log pipelines.
-
Wiki guides:
- Detection architecture — exact detector math, scoring fusion, verdict rules, and benchmark results
- Ingest and policy guide — packet/log adapters, YAML policy schema, allowlist tuning, and current boundaries
-
CLI and output reference — CLI flags, Python API, ECS
v8.11.0schema, HTML timelines, and sample traces
-
Repository files:
-
README.md— overview and quickstart -
policies/default_policy.yaml— default detection & dev-agent allowlist policy -
SECURITY.md— threat model, supported versions, and vulnerability reporting -
CHANGELOG.md— release changelog
-
-
Complementary suite:
- MirageGate — perimeter zero-LLM tarpit & cryptographic human-handoff attribution proxy
- NetDIFT — deterministic network-layer DIFT & capability-attenuation gateway for internal AI agents