From 9aa12e2d4961747940f5d28aa10ad03862b37ae8 Mon Sep 17 00:00:00 2001 From: grafana-watcher Date: Tue, 7 Jul 2026 23:38:54 +0200 Subject: [PATCH] post: commit 410ef77 in bojemoi --- .../commits/2026-07-07-commit-410ef77.md | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 content/posts/commits/2026-07-07-commit-410ef77.md diff --git a/content/posts/commits/2026-07-07-commit-410ef77.md b/content/posts/commits/2026-07-07-commit-410ef77.md new file mode 100644 index 0000000..a0ec267 --- /dev/null +++ b/content/posts/commits/2026-07-07-commit-410ef77.md @@ -0,0 +1,44 @@ +--- +title: "[bojemoi] feat(ml-threat): add MSF real data training loop" +date: 2026-07-07T23:38:54+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 410ef77 par grafana-watcher dans bojemoi" +author: "grafana-watcher" +--- + +## 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 + +### Files Changed + +``` +M ml-threat/api.py +A ml-threat/train_from_msf.py +M stack/45-service-ml-threat-intel.yml +``` + +### Diff Summary + +``` + ml-threat/api.py | 107 +++++++++++++++- + ml-threat/train_from_msf.py | 232 +++++++++++++++++++++++++++++++++++ + stack/45-service-ml-threat-intel.yml | 5 + + 3 files changed, 338 insertions(+), 6 deletions(-) +```