Commit 1e80d42

Repositorybojemoi
Branchmain
Authorgrafana-watcher
Hash1e80d42b8caf869f8426277f40a75e50ba18ebea

Description

Features (#2):

  • SQL: add web_port_count, db_port_count, remote_access_count (CASE WHEN port IN (…))
  • Replace 4 dead features (report_count/spam/ssl/dns) with web/db/remote/port_entropy
  • port_entropy: Shannon entropy over 4 service categories (0-2 bits)
  • Updated reputation heuristic: weighted by service sensitivity (db5, remote4, web*3)
  • Synthetic data updated to match new 10-feature layout

Metrics (#1):

  • Log precision/recall/F1 per class after each retrain
  • Return per_class dict in /models/retrain API response
  • Result: malicious recall=0.828 (17% miss rate, now measurable and actionable)

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

Files Changed

MMMmmmlll---ttthhhrrreeeaaattt///attprriaa.iipnny._pfyrom_msf.py

Diff Summary

mmm3lll---ftttihhhlrrreeeesaaatttc///hattaprrniaag.iiepnndy._,pfyr1o5m2_misnfs.eprytin1s93(181+)+,78deletions(-)