Skip to content

v1.9.0

Latest

Choose a tag to compare

@TheoBhang TheoBhang released this 26 Nov 11:09
bd0bf7c

Suspicious v1.9.0

Cortex is now one analysis connector among peers, the mail AI verdict runs through the same engine layer, and the AI model page in Settings is rewritten in plain words. Verdicts do not change: backtest_scoring output is identical before and after the engine work.

Highlights

  • Analysis engines. The pipeline starts, fetches and receives callbacks for analysis jobs through the enabled analysis connectors instead of calling Cortex directly. Cortex is the first engine (#553, #554). Each engine has its own stale-job timeout. /api/cortex/webhook/ keeps its URL, secret, status codes and bodies and forwards to the new /api/connectors/<name>/webhook/.
  • Last-engine guard. Disabling the last working analysis connector is refused with a 409 (last_analysis_connector) unless the request sends force: true (#553).
  • Fixture engine for tests and dev stacks. fixture_engine answers instantly from fixed markers, so CI and a dev stack can run the whole pipeline without Cortex analyzers. Off by default and inert until confirm_fixture is exactly true; never enable it in production (#555).
  • Mail AI verdict as an engine job. ai_model is now an analysis connector for a new mail_archive data type and the mail_ai provider slot is gone. Jobs queued before the upgrade still finish through a forwarding task kept for one release (#556).
  • AI model page, plain words. The Shadow tab opens with a readiness card and Promote, plus a queue of only what blocks promotion with case links. "Mark all reviewed" reviews every open item with one shared note (one review row per case is still written). Overview, Candidate, Versions and Ledger get the same treatment (#558).

Fixes

  • fix(ai-inference): reload weights in the background (#534)
  • fix(api): name multi-indicator cases by their indicators in Submissions (#535)
  • fix(thehive): alert links no longer point to a non-existent /submissions/investigation page (#537)
  • fix(ai-model): reviewed alert differences now show as reviewed, and a running recheck is shown instead of nothing (#557)

Docs

  • docs(ai-model): document imap_rootcafile for the label-sync mailbox TLS (#536)

Dependencies

Routine updates across the backend, the UI, the AI analyzer, the email feeder and GitHub Actions (celery 5.7, boto3, numpy, torch, fastapi, vite and others; see the commit list).

Upgrade notes

  1. Roll the Celery workers out before or with the web tier. An old worker rejects the new run_engine_job task, and the mail then waits up to 2 hours with its AI verdict missing.
  2. Check Settings > Connectors before upgrading. Cortex must show as enabled: a cortex connector switched off now stops new Cortex analysis (before, it only stopped the analyzer sync). ai_model must be enabled for AI verdicts; without it mails get no AI vote and most finalise as Inconclusive.
  3. integrations.cortex.analyzers.ai in settings.json must name the AI vote only, never a Cortex analyzer you run for other jobs.
  4. Each mail now triggers one extra Cortex lookup for the AI analyzer name. Jobs already queued when ai_model is disabled still call the inference server.
  5. One migration: cortex_job 0017_analyzer_source (adds Analyzer.source).
  6. API change: in GET /api/ai-model/shadow/, the alert_delta rows are now {case_id, reviewed} objects instead of bare ids, and the response gains to_review. New POST /api/ai-model/reviews/all/. Only the bundled UI reads these.

Pull requests

  • fix(api): name multi-indicator cases by their indicators in Submissions by @TheoBhang in #535
  • docs(ai-model): document imap_rootcafile; test CISO without profile by @TheoBhang in #536
  • fix(thehive): alert links keep /submissions when the link ends in / by @TheoBhang in #537
  • fix(ai-inference): reload weights in the background by @TheoBhang in #534
  • feat(connectors): add the cortex connector and the last-engine guard by @TheoBhang in #553
  • feat(connectors): analysis engine layer with Cortex as the first engine by @TheoBhang in #554
  • feat(connectors): fixture analysis engine for tests and dev stacks by @TheoBhang in #555
  • feat(ai_model): the mail AI verdict as a deferred analysis-engine job by @TheoBhang in #556
  • fix(ai-model): show alert reviews as done and a running recheck by @TheoBhang in #557
  • feat(ai-model): plain-words AI model page with bulk review by @TheoBhang in #558

Full Changelog: v1.8.2...v1.9.0