Commit 410ef77
| Repository | bojemoi |
| Branch | main |
| Author | grafana-watcher |
| Hash | 410ef77a7e084d0b7dc07c0431eb82a4fbe1b746 |
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