A DistilBERT-based classifier for detecting potentially malicious shell commands and tool inputs.
| Metric | Result |
|---|---|
| Accuracy | 97.49% |
| Malicious precision | 98.19% |
| Malicious recall | 97.60% |
| Malicious F1 | 97.89% |
| False positive rate | 2.68% |
| False negative rate | 2.40% |
Confusion matrix:
| Actual / Predicted | Benign | Malicious |
|---|---|---|
| Benign | 435 | 12 |
| Malicious | 16 | 651 |
Main dataset: dataset/ml-data-v4-clean.csv
Columns: command, attack_family, category, threat_level, platform, is_malicious.
Designed as an inference component for security systems protecting AI agents and applications that interact with external tools.
The model classifies text. It does not execute commands or independently enforce security policies.
MIT