Commit Graph
16 Commits
Author SHA1 Message Date
Lucas RayanandClaude Opus 5.5 d231033e42 refactor(cli): split main.rs into modules
server/ (state, ingestion, API, CSV exports, embedded assets), scanner,
feeds_cmd, config_cmd and commands. Code moved as is; no behavior change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:53:26 -03:00
Lucas RayanandClaude Opus 5.5 b70f36da09 test: property tests and fuzz targets for untrusted input and the diff engine
Every parser of data Xexéu does not control must return an error, never
panic; the diff engine's guarantees (no removal from a partial sweep, no
closed port that was not scanned, disappearance exactly at the threshold)
are now properties. The Weekly workflow runs cargo audit independently of
pushes and fuzzes each target on a persistent corpus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:53:26 -03:00
Lucas RayanandClaude Opus 5.5 0d4fe01baf fix(tls): reject non-ASCII certificate validity times instead of panicking
parse_asn1_time_string sliced the time by byte offset, so a multi-byte
UTF-8 character in a hostile certificate put a boundary inside it and
panicked, aborting the sweep. Found by cargo fuzz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:53:26 -03:00
Lucas RayanandClaude Opus 5.5 90ece32dac feat(api): require an admin token for configuration changes
Group CRUD decides what the scanner sweeps, yet any client that reached the
API could change it. Writes now need XEXEU_ADMIN_TOKEN (or a token generated
at startup and printed as a ?token= link, like sabia ui), compared in
constant time, and a browser Origin must match Host. The dashboard keeps the
token for the tab and asks for it on 401. Reads are unchanged.

Also track .env.example: '.env*' in .gitignore had kept it out of the
repository, although the README tells operators to copy it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 10:17:14 -03:00
Lucas GuerraandClaude Sonnet 5 b78b4ee2fb feat(report): embed the Xexéu logo and add a real TLP classification badge
Release / Plan (reuse the published image?) (push) Successful in 5s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and clippy (push) Failing after 10s
CI / Tests (Linux) (push) Successful in 1m22s
CI / Dependency audit (push) Failing after 12s
Release / ci (push) Failing after 1m44s
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Skipped
Release / Gitea release (push) Skipped
The executive report had no logo at all (just plain "XEXÉU" text) and its
"CONFIDENCIAL" badge was project-invented wording, not a real
classification taxonomy. Embeds the logo as a base64 data URI (mirrors
Sabiá's report.rs, so the report still renders correctly as a standalone
offline HTML export) and replaces the badge with FIRST.org's actual TLP
2.0 labels/colors (TlpLevel enum, defaulting to TLP:AMBER — a vulnerability
report naming real exposed hosts is sensitive by nature). Applied on both
the cover and the per-page running header.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-11-02 11:32:48 -03:00
Lucas Guerra 2298117c47 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.
2026-11-02 11:08:51 -03:00
Lucas Rayan db2cdc03ef feat(ci,doctor,export): add Gitea CI/CD, verification scripts, doctor and export commands 2026-11-02 10:48:34 -03:00
Lucas Rayan f388d95839 feat(report): implement exportable executive security report with A4 Paged.js pagination 2026-11-02 09:36:41 -03:00
Lucas Rayan e8e529b09c feat(api,gui): implement target groups CRUD, scanner hot-reload, and CSV export 2026-11-02 09:14:30 -03:00
Lucas Rayan bc72dbffbd feat(gui): implement polished vanilla dashboard with CVSS severity palette and SVG charts 2026-11-02 01:01:54 -03:00
Lucas Rayan 3e41c169d0 feat(scan): implement service fingerprinting and wire up end-to-end vulnerability pipeline 2026-11-02 00:39:03 -03:00
Lucas Guerra 4ce5d7f595 Implementa xexeu feeds import/sync e sincronização periódica de CVE/KEV embutida no xexeu serve 2026-11-02 00:13:35 -03:00
Lucas Guerra b4d2c29d24 Implementa xexeu scanner (loop contínuo) e xexeu serve (API Axum + dashboard + ingestão automática de lotes) 2026-11-01 23:56:39 -03:00
Lucas Guerra a814e100fb Implementa batch/storage/diff, correlação de vulnerabilidades (CPE/CVE/KEV) e liga config check / scan --once na CLI 2026-11-01 23:41:55 -03:00
Lucas Guerra 942655a5e0 Implementa config/targets/schedule (TOML+cron) e scan::discovery/ports (TCP connect determinístico) 2026-11-01 22:52:45 -03:00
Lucas Guerra 244c89b6ae Scaffolding inicial do Xexéu: workspace Rust, Docker Compose e documentação EN/PT-BR 2026-11-01 22:32:49 -03:00