refactor!: rename project from Xexéu to Harpia
Release / Build image (amd64) (push) Successful in 10m49s
Release / Plan (reuse the published image?) (push) Successful in 5s
Release / ci (push) Successful in 20m40s
CI / Format and clippy (push) Successful in 5m43s
CI / Tests (Linux) (push) Successful in 16m5s
CI / Dependency audit (push) Successful in 11s
CI / Docker image (build and smoke test) (push) Skipped
Release / Build image (arm64) (push) Successful in 7m34s
Release / Publish tags (push) Successful in 15s
Release / Gitea release (push) Skipped
Release / CLI (linux-aarch64) (push) Skipped
Release / CLI (linux-x86_64) (push) Skipped

Renames the whole project, after the harpy eagle: crates
(xexeu-core/xexeu-cli -> harpia-core/harpia-cli), binary (xexeu ->
harpia), admin token env var (XEXEU_ADMIN_TOKEN -> HARPIA_ADMIN_TOKEN),
compose env vars (XEXEU_* -> HARPIA_*), container image
(ciberfauna/xexeu -> ciberfauna/harpia) and the Gitea repository
(ciberfauna/xexeu -> ciberfauna/harpia). Logo updated to the new brand
artwork. All docs (EN/PT-BR), CI workflows, scripts, GUI strings and
the openspec change history updated to match.

BREAKING CHANGE: binary, crate, env var and image names all changed;
existing .env files, scripts and deployments referencing the old
xexeu/XEXEU names must be updated.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VAyr8cd6jzwpJM9cS1oGjy
This commit is contained in:
Lucas RayanandClaude Sonnet 5 committed 2026-11-03 13:43:21 -03:00
1 parent 1dc754a561
commit 5ed6cb2c95
93 files changed
+849 -826

No files matched your search

+17 -17
View File
@@ -2,11 +2,11 @@
**English** · [Português](pt-BR/arquitetura.md)
Xexéu is a lightweight, continuous attack surface management and
Harpia is a lightweight, continuous attack surface management and
vulnerability audit system. It follows a decoupled two-service architecture
distributed via Docker Compose: a privileged packet emitter (`scanner`) and
an unprivileged analytical server (`xexeu`), sharing one binary and one
`crates/xexeu-core` library.
an unprivileged analytical server (`harpia`), sharing one binary and one
`crates/harpia-core` library.
## Technology stack
@@ -16,25 +16,25 @@ an unprivileged analytical server (`xexeu`), sharing one binary and one
| API layer | Axum + Tokio | Asynchronous HTTP service with minimal overhead. |
| Web dashboard | Vanilla HTML/CSS/JS | Zero-dependency frontend embedded directly into the binary via `include_str!`/`include_bytes!` — no `rust-embed`, no build step. |
| Raw-socket engine | `socket2`, hand-built TCP headers | A single `SOCK_RAW`/`IPPROTO_TCP` socket for both sending SYN probes and receiving replies — see [Scan engine](#scan-engine) below. |
| Storage engine | SQLite (`rusqlite`, bundled) + Parquet | Embedded, zero-ops storage. **Not DuckDB**: an early design draft specified DuckDB for its analytical query strengths, but SQLite was chosen instead for v1.0 — no external `libduckdb.so` to link or ship, one less moving part, and the query patterns `xexeu serve` actually needs (point lookups by asset key, small aggregate counts) don't benefit from a columnar engine. Sweep batches themselves stay in Parquet (immutable, one file per sweep, not touched by this choice). |
| Storage engine | SQLite (`rusqlite`, bundled) + Parquet | Embedded, zero-ops storage. **Not DuckDB**: an early design draft specified DuckDB for its analytical query strengths, but SQLite was chosen instead for v1.0 — no external `libduckdb.so` to link or ship, one less moving part, and the query patterns `harpia serve` actually needs (point lookups by asset key, small aggregate counts) don't benefit from a columnar engine. Sweep batches themselves stay in Parquet (immutable, one file per sweep, not touched by this choice). |
| Deployment | Docker Compose | Strict privilege isolation, container hardening, immutable batches over named volumes. |
## System topology & data flow
```
config/xexeu.toml (rw from xexeu, ro-mounted into scanner)
config/harpia.toml (rw from harpia, ro-mounted into scanner)
│
┌─────────────────────┴──────────────────────┐
▼ ▼
scanner (NET_RAW, host net, uid 0) xexeu (uid 10001, zero capabilities)
scanner (NET_RAW, host net, uid 0) harpia (uid 10001, zero capabilities)
- Multi-group scheduler, hot-reload - Batch ingestion (:ro)
- TCP connect discovery - Scoped diff calculation
- SYN (nativo) / connect - CPE -> CVE/KEV matching
(nativo-sem-raw) port scan - SQLite state + CVE database
- Service banner fingerprinting - Axum API, dashboard, exec. report
│ - config CRUD (writes xexeu.toml)
│ - config CRUD (writes harpia.toml)
▼ ▲
xexeu-sweeps (Parquet batches + manifest.json) ───┘
harpia-sweeps (Parquet batches + manifest.json) ───┘
```
### 1. Privilege separation
@@ -45,11 +45,11 @@ scanner (NET_RAW, host net, uid 0) xexeu (uid 10001, zero capabilities)
[`docker.md`](docker.md#why-scanner-runs-as-uid-0-restricted-to-net_raw)
for why Docker makes that necessary), but drops every other capability
(`cap_drop: [ALL]`), runs with a read-only root filesystem, and only
writes to the `xexeu-sweeps` volume. It never opens a listening port, has
writes to the `harpia-sweeps` volume. It never opens a listening port, has
no API, and never touches the SQLite database.
- **`xexeu`:** runs as an unprivileged user (uid 10001) with zero
capabilities. It mounts `xexeu-sweeps` read-only, is the **exclusive
writer** of the SQLite state (`xexeu-data`), writes `xexeu.toml` back
- **`harpia`:** runs as an unprivileged user (uid 10001) with zero
capabilities. It mounts `harpia-sweeps` read-only, is the **exclusive
writer** of the SQLite state (`harpia-data`), writes `harpia.toml` back
when the dashboard's Groups view mutates a group, correlates findings
against the local vulnerability database, and serves the Axum API,
dashboard and executive report bound to `127.0.0.1:8788` by default.
@@ -74,7 +74,7 @@ either can feed the rest of the pipeline unchanged:
mode. No capability needed; every open port is a real, completed TCP
connection.
`execute_scan_for_group` in `xexeu-cli` picks `nativo` whenever a profile
`execute_scan_for_group` in `harpia-cli` picks `nativo` whenever a profile
asks for it **and** `CAP_NET_RAW` is actually usable, and falls back to
`nativo-sem-raw` with a logged warning otherwise — the engine that actually
ran, not the one requested, is what gets recorded in the sweep manifest, so
@@ -82,18 +82,18 @@ an operator reading `/api/status` or a manifest never has to guess.
### 3. Batch contract & idempotency
Communication between `scanner` and `xexeu` happens entirely through
Communication between `scanner` and `harpia` happens entirely through
filesystem batches, never a network call between the two containers:
- Each scan execution writes to `sweeps/<group>/<sweep_id>/observations.parquet`.
- On successful completion, `scanner` atomically creates `manifest.json`
(sweep id, group, scope, engine mode actually used, status).
- `xexeu` polls the sweeps volume, ingests batches idempotently by
- `harpia` polls the sweeps volume, ingests batches idempotently by
`sweep_id`, and `scanner` prunes batches past the retention window.
### 4. Tiered scheduling & scope boundaries
Target configuration in `xexeu.toml` decouples asset definitions from
Target configuration in `harpia.toml` decouples asset definitions from
execution policy — see [`configuration.md`](configuration.md) for the full
reference:
@@ -109,7 +109,7 @@ reference:
### 5. Scoped diffs & event history
Rather than disconnected point-in-time reports, Xexéu evaluates state
Rather than disconnected point-in-time reports, Harpia evaluates state
differences against the specific scope the completed sweep actually
covered: