
Continuous attack surface and vulnerability auditing.
Lightweight Rust scanner · local-first · authorized use.
Terminal · Interface · Architecture · Docker · Support · Roadmap · Changelog
English · Português
--- **Status: pre-release / in design, initial scaffolding.** The project specification is approved (`openspec/changes/criar-xexeu/`). Initial workspace scaffolding, Docker Compose orchestration, documentation pairs, and configuration templates are in place. Core scanning and vulnerability correlation components are under active development. Xexéu is a lightweight continuous attack surface and vulnerability audit daemon for authorized networks. Instead of one-off scans and unorganized XML dumps, Xexéu runs continuously via Docker Compose, tracking what is exposed, what changed between sweeps, and what vulnerabilities exist. - **Continuous, not point-in-time:** The primary output is the live deduplicated state of your network surface plus an append-only event log of differences (new hosts, closed ports, altered services, remediated CVEs). - **Tiered scan cadences:** Critical segments (core servers, DMZs) can be scanned frequently (e.g. every 5 minutes), while secondary segments are audited on broader schedules (e.g. daily cron at 03:00). - **Lightweight & local-first:** A single Rust binary and embedded DuckDB/Parquet analytical storage. No external database, no Python runtime, and no telemetry. - **Deterministic & explainable:** Every vulnerability finding carries verifiable JSON evidence (raw banner, candidate CPE, matched feed rule, confidence level). - **Least privilege:** Containerized with strict privilege separation. Only the packet emitter container receives `NET_RAW` (no `NET_ADMIN`); the API, ingestion, diffing engine, and web dashboard run completely unprivileged without capabilities. - **Authorized use by design:** Explicit authorized scope declaration is mandatory in configuration; out-of-scope targets are strictly rejected. ## What exists today | Area | State | |---|---| | Project specification and design | ✅ approved (`openspec/changes/criar-xexeu/`) | | Docker compose topology & hardening | ✅ defined (split `scanner` / `xexeu` services) | | Configuration schema and examples | ✅ defined (`examples/xexeu.toml`) | | Bilingual documentation & roadmaps | ✅ initial scaffolding | | Rust workspace and CLI (`xexeu`) | 🚧 in development | | Native scan engine (ARP/ICMP/SYN/UDP) | 🚧 in development | | CPE/CVE correlation engine (NVD & KEV) | 🚧 in development | | DuckDB/Parquet storage & diff engine | 🚧 in development | | Embedded web dashboard | 🚧 in development | | Published releases | ❌ none yet | ## Core principles Xexéu executes an ongoing loop: **schedule → scan → identify → historize → expose**. 1. **Tiered Scheduling:** Group-based cron expressions with jitter and shared rate-limiting budgets prevent network saturation. 2. **Dual-engine Flexibility:** Native Rust engine by default (TCP SYN half-open, connect mode fallback, UDP probes, banner grabbing). Optional container variant supporting external `nmap` execution for deep service discovery. 3. **Safe Vulnerability Correlation:** Matches banner-derived CPEs against local NVD CVE JSON 2.0 and CISA KEV feeds, coupled with non-intrusive configuration checks (TLS certificates, weak ciphers, cleartext protocols). No exploits or intrusive payloads are ever sent. 4. **Change Event Log:** State changes are debounced via configurable absence thresholds (`ausencias_para_sumir`) to prevent flapping on packet loss. ## Authorized use Xexéu is defensive software designed strictly for networks you own or are explicitly authorized to audit. Scanning third-party infrastructure without permission is illegal. Operators are responsible for scope, compliance, and data retention policies. The configuration requires an explicit `[escopo]` block. Any target resolving outside the authorized CIDR ranges is rejected at startup. The API daemon binds to `127.0.0.1` by default. ## Install Run via Docker Compose (recommended for operators): ```bash cp .env.example .env mkdir -p config && cp examples/xexeu.toml config/xexeu.toml docker compose pull && docker compose up -d ``` Or build and run locally with Docker: ```bash docker compose up -d --build ``` To compile from source natively (Rust 1.88+ and DuckDB required): ```bash scripts/fetch-libduckdb.sh ~/.cache/xexeu/duckdb export DUCKDB_LIB_DIR=~/.cache/xexeu/duckdb LD_LIBRARY_PATH=~/.cache/xexeu/duckdb cargo build --release -p xexeu-cli ./target/release/xexeu --help ``` Supported platform matrix for container images: `linux/amd64` and `linux/arm64`. ## Getting started ```bash # Validate your configuration and view effective schedules xexeu config check --config config/xexeu.toml # Start the server daemon and web dashboard xexeu serve --bind 127.0.0.1:8788 --config config/xexeu.toml # Run an ad-hoc diagnostic scan for a specific group xexeu scan --group dmz --once # Inspect recent surface changes xexeu changes --since 24h ``` ## Development ```bash scripts/fetch-libduckdb.sh ~/.cache/xexeu/duckdb export DUCKDB_LIB_DIR=~/.cache/xexeu/duckdb LD_LIBRARY_PATH=~/.cache/xexeu/duckdb cargo test --workspace cargo clippy --workspace --all-targets scripts/verificar.sh ``` See **[CONTRIBUTING.md](CONTRIBUTING.md)** and **[docs/architecture.md](docs/architecture.md)**. ## Known limits - The project is in pre-release / initial scaffolding phase. - Authenticated scans (SSH/WinRM) and active exploit validation are non-goals. - Scanning degraded mode (`nativo-sem-raw`) without `NET_RAW` is restricted to TCP connect and lacks ICMP/ARP discovery. - IPv6 target expansion is limited to prefixes up to `/112` or explicit host lists. ## Where it's going Summary of the [ROADMAP](ROADMAP.md): | | | |---|---| | **Done** | Approved specification, Docker Compose topology, examples, and scaffolding | | **Next** | Workspace crates (`xexeu-core`, `xexeu-cli`), config parsing, native scan engine, Parquet batch contracts | | **Later** | DuckDB diff engine, CVE/KEV correlation, embedded web UI, Gitea release pipelines | | **Not planned** | Exploitation payloads, NASL engine, mandatory cloud services, desktop Tauri wrapper | ## License [MIT](LICENSE-MIT) or [Apache-2.0](LICENSE-APACHE), your choice.