Files
harpia/SECURITY.md
T
Lucas Guerra 2298117c47
Release / Plan (reuse the published image?) (push) Successful in 4s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and clippy (push) Failing after 9s
CI / Dependency audit (push) Failing after 11s
CI / Tests (Linux) (push) Successful in 9m25s
Release / ci (push) Failing after 9m26s
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Skipped
Release / Gitea release (push) Skipped
feat(scan): implement raw-socket SYN engine; fix Docker build and cross-container permissions; full v1.0 docs
- scan::syn_scan: raw TCP SYN half-open scanning (CAP_NET_RAW), validated
  end-to-end against a real target through the actual hardened Docker
  Compose stack (scanner uid 0 restricted to NET_RAW, xexeu uid 10001 zero
  capabilities). Automatic fallback to nativo-sem-raw, engine actually used
  recorded in every sweep manifest.
- caps::has_net_raw: CAP_NET_RAW detection via /proc/self/status, shared by
  the scan engine selection and `xexeu doctor`.
- Fix: Dockerfile never copied apps/ or logo.png, so the image never
  actually built until this was caught by a real `docker build`.
- Fix: sweep batches were written 0600 by scanner (uid 0); xexeu (uid 10001)
  couldn't read them through the read-only xexeu-sweeps mount. Now written
  0644/0755 explicitly.
- Fix: group names from the config CRUD API weren't validated as safe path
  components until a sweep tried to write a batch for them; now rejected
  immediately.
- Fix: CSV exports had no CSV/formula-injection guard; cells starting with
  =, +, -, @ or a tab are now prefixed to force plain-text interpretation.
- docs/: full EN/PT-BR set (architecture rewritten to match the real
  implementation — SQLite not DuckDB, include_str!/include_bytes! not
  rust-embed; new cli.md, configuration.md, docker.md, interface.md,
  support.md) with real dashboard/report screenshots.
- README, ROADMAP, CHANGELOG, SECURITY, CONTRIBUTING (EN/PT-BR): updated to
  reflect actual v1.0-candidate state instead of the initial-scaffolding
  status they still described.
2026-11-02 11:08:51 -03:00

2.9 KiB

Security policy

English · Português

Xexéu is defensive software, but it operates over active networks and processes untrusted remote responses: service banners, TLS certificates, and raw network packets may be malformed on purpose. Treat every target network response as untrusted.

Reporting a vulnerability

Do not open a public issue with exploit details. Open a minimal issue asking for a private channel, or contact the maintainer through the Gitea profile listed on the repository. Include the affected version, the input shape, and a minimal reproduction when a private channel is available.

Scope and threat model

  • Container hardening & privilege separation:
    • The scanner service runs with cap_drop: [ALL] and only cap_add: [NET_RAW]. It has no NET_ADMIN, no SYS_ADMIN, a read-only root filesystem (read_only: true), no-new-privileges: true, and writes exclusively to the dedicated xexeu-sweeps volume.
    • The xexeu daemon (API, diff engine, dashboard) runs as an unprivileged user (UID 10001) with zero capabilities (cap_drop: [ALL]), a read-only root filesystem, and mounts the xexeu-sweeps volume as read-only (:ro).
  • Strict authorized scope: Target expansion enforces the [escopo] configuration boundary. Any target or DNS resolution resolving outside authorized CIDR blocks is rejected at validation time, preventing accidental or unauthorized scanning.
  • Safe vulnerability identification: Xexéu does not execute exploit payloads, perform credential brute-forcing, or execute denial-of-service tests. Checks are limited to passive banner matching and standard cryptographic handshakes.
  • Input and batch parsing: Malformed packets, banner responses, and Parquet batch files must not panic the engine or cause memory exhaustion.
  • API exposure: The API daemon listens on 127.0.0.1:8788 by default. Exposing it on an external network interface requires an authenticating reverse proxy.
  • Evidence integrity: Findings and diff events must be reproducible from the same observations and feeds. Nondeterministic behavior is treated as a correctness and security defect.
  • Privacy & local-first: There is no telemetry. Vulnerability feeds are cached locally in SQLite/Parquet; air-gapped offline import (xexeu feeds import) is fully supported.

Out of scope

  • Vulnerabilities in third-party libraries (SQLite, socket2, upstream Debian packages) already addressed upstream.
  • Attacks requiring the operator to disable documented security controls (such as granting extra capabilities or publishing the daemon port without authentication).
  • Detection heuristic completeness: version-based correlation is defensive guidance, not an absolute proof of exploitability.

Supported versions

Only the latest 0.1.x line is supported during the pre-release phase. There is no long-term support branch yet.