Commit 78eeea5
| Repository | bojemoi |
| Branch | main |
| Author | grafana-watcher |
| Hash | 78eeea58d13e88214844d9b11f2ee4d04d24d437 |
Description
- fetch_msf_data: query ALL pwned hosts exhaustively + benign_ratio*n_pwned benign sample — avoids 5/50000 imbalance that made accuracy=1.0 trivial
- build_feature_matrix: feature[6] = filtered_port_count (replaces malware_hits) confirmed_vulns used only for labels, not in X — breaks circular dependency
- train.py synthetic: feature[6] = filtered_port_count to match real data layout
- train_from_msf signature: benign_ratio param instead of msf_limit
- Result: 184 pwned + 1000 benign, test_acc=0.933 (was 1.0 trivially)
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com