feat(scan): implement raw-socket SYN engine; fix Docker build and cross-container permissions; full v1.0 docs
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

- 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.
This commit is contained in:
Lucas Guerra committed 2026-11-02 11:08:51 -03:00
1 parent db2cdc03ef
commit 2298117c47
35 files changed
+2007 -247

No files matched your search

+20 -1
View File
@@ -7,4 +7,23 @@ Format based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versio
## [Unreleased]
### Added
- Initial project scaffolding.
- Rust workspace scaffolding (`xexeu-core`, `xexeu-cli`), Docker Compose topology, documentation pairs and configuration examples.
- `config`, `targets` and `schedule`: TOML parsing, CIDR/range/DNS target expansion, 5-field cron with jitter and overlap/cadence warnings.
- Native scan engines: `nativo-sem-raw` (TCP connect) and `nativo` (raw-socket TCP SYN, `CAP_NET_RAW`), with automatic fallback and the engine actually used recorded in every sweep manifest.
- Service fingerprinting (HTTP, SSH, TLS certificate) and CPE/CVE/KEV correlation (`vuln::matcher`, `vuln::feeds`) with confidence levels and non-intrusive configuration checks.
- `batch`, `storage` (SQLite) and `diff`: atomic Parquet sweep batches, idempotent ingestion, scoped diffs that never produce a false disappearance from a partial sweep.
- `xexeu serve`: Axum API, background batch ingestion, and a continuous `xexeu scanner` loop.
- Periodic, self-refreshing CVE/KEV sync inside `xexeu serve` (`feeds.sincronizar_automaticamente`), independent of image/binary updates.
- Embedded dashboard: CVSS-severity palette, SVG charts, host/findings/groups/changes views, settings (language/theme).
- Target group CRUD from the dashboard (`/api/config/groups`) with scanner hot-reload on config file changes.
- CSV export (`/api/export/*.csv`, `xexeu export`), CSV-injection-safe.
- A4, Paged.js-paginated executive report at `/relatorio`.
- `xexeu doctor` and `xexeu export` (JSON/CSV) CLI commands.
- Gitea CI/CD (`ci.yml`, `release.yml`), `scripts/verificar.sh`, pre-push hook, issue/PR templates.
- Full `docs/` set (architecture, CLI, configuration, Docker, interface, support) in EN/PT-BR with real dashboard screenshots.
### Fixed
- `Dockerfile` didn't copy `apps/` or `logo.png`, so the image never actually built until this was caught by a real `docker build`.
- Sweep batch files were written with mode `0600` by `scanner` (uid 0); `xexeu` (uid 10001) couldn't read them through the read-only `xexeu-sweeps` mount. Batches are now written `0644`/directories `0755` explicitly.
- Target group names accepted by the config CRUD API weren't validated as safe path components, so an unsafe name would only fail much later when a sweep for that group tried to write its batch; now rejected immediately with a clear error.
- CSV exports had no protection against CSV/formula injection (a cell starting with `=`, `+`, `-`, `@` or a tab); fields are now prefixed to force spreadsheet applications to treat them as plain text.