mihai-chindris commited on
Commit
26c9b78
·
verified ·
1 Parent(s): 6b268b8

Improve model card: add Intended Use, Training, Limitations, Citation sections

Browse files
Files changed (1) hide show
  1. README.md +46 -11
README.md CHANGED
@@ -34,22 +34,57 @@ model-index:
34
 
35
  # Malware Detection LightGBM
36
 
37
- LightGBM-based static malware detector for PE files.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
 
39
  ## Performance (hold-out test set)
40
 
41
- - AUC: `0.9978`
42
- - Accuracy: `0.9895`
43
- - Confusion matrix: `[[4158, 66], [39, 5774]]`
 
 
44
 
45
  ## Artifacts
46
 
47
- - `production_model.joblib`
48
- - `preprocessing_pipeline.joblib`
49
- - `feature_names.json`
 
 
 
 
 
 
 
 
 
50
 
51
- ## Notes
52
 
53
- - This repository contains model artifacts only.
54
- - For large CSV batch inference, use the Render app:
55
- `https://malware-detection-ml-mihai.onrender.com/upload`
 
 
 
 
 
 
 
34
 
35
  # Malware Detection LightGBM
36
 
37
+ LightGBM-based static malware detector for PE (Portable Executable) files. Classifies Windows executables as benign or malicious using structural PE header features.
38
+
39
+ ## Intended Use
40
+
41
+ - **Primary**: Static analysis of PE files for malware classification
42
+ - **Secondary**: Educational demonstration of ML-based malware detection
43
+ - **Not suitable for**: Dynamic analysis, packed/obfuscated samples, or production-grade antivirus replacement
44
+
45
+ ## Training Data
46
+
47
+ - **Dataset**: [fabriciojoc/brazilian-malware-dataset](https://huggingface.co/datasets/fabriciojoc/brazilian-malware-dataset)
48
+ - **Features**: Structural PE header fields (imports, sections, resources, etc.)
49
+ - **Split**: 80/20 train/test with stratification
50
+
51
+ ## Training Procedure
52
+
53
+ - **Model**: LightGBM (gradient boosting)
54
+ - **Preprocessing**: Custom pipeline in `preprocessing_pipeline.joblib`
55
+ - **Hyperparameters**: See `model_metrics.json` for full configuration
56
 
57
  ## Performance (hold-out test set)
58
 
59
+ | Metric | Value |
60
+ |--------|-------|
61
+ | AUC | 0.9978 |
62
+ | Accuracy | 0.9895 |
63
+ | Confusion Matrix | [[4158, 66], [39, 5774]] |
64
 
65
  ## Artifacts
66
 
67
+ - `production_model.joblib` - trained LightGBM model
68
+ - `preprocessing_pipeline.joblib` - feature extraction pipeline
69
+ - `feature_names.json` - feature name mapping
70
+ - `model_metrics.json` - training metrics and configuration
71
+
72
+ ## Limitations
73
+
74
+ - Trained on PE header features only; does not analyze code behavior
75
+ - Performance may degrade on obfuscated or packed samples
76
+ - Tested on Brazilian malware dataset; generalization to other regions unverified
77
+
78
+ ## Citation
79
 
80
+ If you use this model, please cite the original dataset:
81
 
82
+ ```bibtex
83
+ @dataset{fabriciojoc2024brazilian-malware,
84
+ author = {Fabricio, Joc},
85
+ title = {Brazilian Malware Dataset},
86
+ year = {2024},
87
+ publisher = {Hugging Face},
88
+ url = {https://huggingface.co/datasets/fabriciojoc/brazilian-malware-dataset}
89
+ }
90
+ ```