Ether
A headless reactive process supervisor and deterministic graph telemetry engine that turns unstructured security tool output into a deduplicated SQLite entity graph for AI agents, operators, and pipelines.
Package runtime targets ether-core 0.1.4 on PyPI while architectural notes, adapter manifests, and the claim audit track the active dev branch.
pip install ether-core
ether doctor
ether mcp
docker run -i --rm ether:latest mcp
Supervisory architecture for security tools
Ether isolates tool drivers, policy checks, bounded stream buffering, and SQLite graph state behind a strict unidirectional dependency DAG with zero TUI or presentation code in src/ether.
Automated AST checks verify zero Textual, curses, or UI imports across the core substrate. Downstream UIs such as CyGuide consume Ether strictly through public contracts.
ActionGateway
Evaluates GatePolicy (SAFE or UNRESTRICTED), validates target types against manifest.toml, checks CIDR boundaries via Radix Trie, and applies FlagFirewall before launch.
ExecutionSession
Scrubs host API and VCS tokens via sanitize_subprocess_env, spawns subprocesses strictly with asyncio.create_subprocess_exec (never shell=True), or runs native Tier A coroutines in process.
LogSpooler & RingBuffer
Streams raw console bytes to disk in 64 KB chunks while capping per-job RAM inside ByteBoundedRingBuffer (2 MiB / 5,000 chunks). Truncated scanner streams pass through StreamRecoveryEngine.
GraphStore & VectorIndex
Adapters emit typed BaseFinding models hashed by SHA-256 Primary Identity Keys, queued through WriteQueueWorker into SQLite WAL, and indexed into 384-dim sqlite-vec embeddings.
Unidirectional Layer DAG
Top-down calls onlyRepeat Observation State
Deterministic merge
Running nmap, naabu, and http_probe on the same host and port converges onto one node ID rather than creating duplicate rows.
Adding new security tools stays isolated to tools/<name>/manifest.toml and adapter.py — scaffolded via ether-devkit.
Six core runtime subsystems
Adapter authoring contract01 Process & Ring Governor
Runs create_subprocess_exec, manages SIGTERM → SIGKILL escalations, and supports optional container fallback for absent binaries.
02 Deterministic GraphStore
SQLite 3.45+ WAL storage with single-writer WriteQueueWorker batching and dedicated PRAGMA query_only = ON read connections.
03 Identity & Temporal Decay
Links volatile cloud IPs via persistent TLS, SSH, and favicon hashes while transitioning aging records across confidence windows.
04 Offline Vector RAG
Generates local 384-dimensional unit vectors in vec_findings (sqlite-vec) without model weight downloads or external API calls.
05 Dual GatePolicy & Drift
Combines ScopeValidator / PinnedTransport SSRF defenses with ether.drift Jaccard topology compliance checks.
06 Prompt Bounds & Forensic Log
Escapes adversarial closing tags in <untrusted_scan_output> (max 100k chars) and maintains SHA-256 hash-chained audit logs.