Commit 410ef77

Repositorybojemoi
Branchmain
Authorgrafana-watcher
Hash410ef77a7e084d0b7dc07c0431eb82a4fbe1b746

Description

  • New train_from_msf.py: fetches 50k hosts from MSF postgres DB (hosts+services+vulns JOIN), builds 10-feature matrix with country_risk=70 fixed, labels 0/1/2 by thresholds, mixes 20% synthetic, trains IOCClassifier + ReputationScorer
  • api.py: async retrain loop (24h interval), POST /models/retrain endpoint (409 if locked), /models/reload now returns last_retrain timestamp
  • stack/45: add MSF_DB_* env vars + RETRAIN_INTERVAL_HOURS

Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com

Files Changed

MAMmmsllt--attchhkrr/ee4aa5tt-//sateprriav.iipncy_ef-rmolm-_tmhsrfe.apty-intel.yml

Diff Summary

mms3llt--afttcihhklrr/eee4saa5tt-c//shateaprrniavg.iiepncdy_e,f-rm3ol3m-8_tmhisrnfes.aeptry-tiinotnesl(.+y)m,l6d12e03l725et+ions(-)