Repository navigation
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
analysisconnectors 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 sendsforce: true(#553). - Fixture engine for tests and dev stacks.
fixture_engineanswers instantly from fixed markers, so CI and a dev stack can run the whole pipeline without Cortex analyzers. Off by default and inert untilconfirm_fixtureis exactlytrue; never enable it in production (#555). - Mail AI verdict as an engine job.
ai_modelis now ananalysisconnector for a newmail_archivedata type and themail_aiprovider 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/investigationpage (#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_rootcafilefor 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
- Roll the Celery workers out before or with the web tier. An old worker rejects the new
run_engine_jobtask, and the mail then waits up to 2 hours with its AI verdict missing. - Check Settings > Connectors before upgrading. Cortex must show as enabled: a
cortexconnector switched off now stops new Cortex analysis (before, it only stopped the analyzer sync).ai_modelmust be enabled for AI verdicts; without it mails get no AI vote and most finalise asInconclusive. integrations.cortex.analyzers.aiinsettings.jsonmust name the AI vote only, never a Cortex analyzer you run for other jobs.- Each mail now triggers one extra Cortex lookup for the AI analyzer name. Jobs already queued when
ai_modelis disabled still call the inference server. - One migration:
cortex_job0017_analyzer_source(addsAnalyzer.source). - API change: in
GET /api/ai-model/shadow/, thealert_deltarows are now{case_id, reviewed}objects instead of bare ids, and the response gainsto_review. NewPOST /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