Signal Desk Indicator-Type Filter

Author: Solanki Om Narendra (SOLANKYYY), USN 24BTRCL190, AIML-B.

An independently trained, lightweight multinomial Naive Bayes classifier for categorising indicator strings as network_name, url, or ip_address. It is intended as a filtering component for the Signal Desk project.

This is not an LLM, a fine-tuned chatbot, or a maliciousness detector. It is not currently integrated into the live Signal Desk application. Signal Desk's conversational generation still uses separately configured pretrained providers. Uploading this model alone does not satisfy a requirement specifically demanding a trained language model.

What was trained

The model learns character-bigram/trigram and shape-feature token frequencies from labelled indicator strings. Prediction uses additive smoothing (alpha=1) and uniform class priors. Learned parameters are in model.json; they are actual trained counts, not a renamed pretrained checkpoint. Features include simple syntax flags, so this is an easy format-classification task, not semantic threat analysis. A deterministic URL/IP parser may be preferable for production type validation.

Domain and hostname labels are merged because their syntax overlaps. Original MISP labels provide supervision; labels were not inferred from maliciousness. The model does not resolve, visit or download anything from an input address.

Training data and provenance

Training uses the supplied 15,000-row threats.jsonl public MISP indicator export from the MongoDB laboratory submission. The selected export covers five events, mostly from a single publisher, mirrored through the CIRCL feed. The collection workflow also supports Botvrij, but this selected snapshot is not representative of all feeds or global threats.

Full indicator data is not duplicated in this model package. Public-feed access does not automatically grant an unrestricted redistribution licence; consult original source terms before reuse. No new licence is asserted over the underlying feed data.

Split and evaluation

Inputs are lowercased and trimmed. Identical inputs are deduplicated, and conflicting labels would be excluded (none occurred). Hostnames and URLs are grouped by the final two hostname labels; IPs are grouped by IPv4 /24 or IPv6 /64 network. SHA-256 of the group key selects a deterministic approximately 20% holdout. Group overlap is zero. The final-two-label heuristic is not a public-suffix parser; this is not an event-held-out or external-dataset evaluation.

The trained model was evaluated on the untouched holdout; no hyperparameter search or refitting on test examples was performed.

Metric Held-out result
Accuracy 99.9661%
Macro F1 0.99593
Majority-category accuracy 98.4735%
Network-name F1 0.99983
URL F1 0.98795
IP F1 1.00000 (only 4 examples)

There is one network-name example classified as a URL. These high scores largely reflect recognisable syntax and an extremely imbalanced sample. They do not measure threat detection, safe/unsafe decisions, chatbot accuracy or generalisation to novel campaigns. Four held-out IPs are insufficient for a robust IP-performance conclusion. Raw counts and confusion matrix are in metrics.json; hashed split assignments are in split_manifest.json.

Run locally

Python 3.10+ is sufficient for training and inference; no third-party inference dependency is required.

python predict.py "https://example.org/advisory"
python predict.py "example.org"
python predict.py "192.0.2.10"
from predict import IndicatorFilter
model = IndicatorFilter("model.json")
print(model.predict("https://example.org/advisory"))

The returned log scores are uncalibrated classification scores, not confidence probabilities. Unknown or malformed strings still receive one of the supported labels; validate input before operational use. The 2,048-character input limit is enforced by the prediction API.

Reproduce training

Obtain the cited threats.jsonl, verify its SHA-256, then run:

python train.py /path/to/threats.jsonl --output reproduced-model

Training is CPU-only and uses the Python standard library. The dataset file is treated as data; no feed instructions or URLs are executed. Prediction reads a JSON parameter file rather than an executable pickle. Review the included Python code before running it.

Intended integration

A future Signal Desk ingestion step could call IndicatorFilter.predict() to suggest a category for untyped indicators. Original MISP types should remain authoritative where supplied. Store model-suggested labels separately with a model version, and do not overwrite source evidence. This package does not modify the deployed application's backend, MongoDB records or chat model.

Publish under SOLANKYYY

Install the upload dependency and run the uploader locally:

python -m pip install -r requirements.txt
python upload.py

The uploader uses a cached Hugging Face token or prompts invisibly for a write token; it never prints or stores the entered token. It checks the authenticated account is SOLANKYYY, creates the public model repository if needed, and uploads only the explicitly listed artefacts. Do not paste access tokens into chat.

Training and evaluation performed on 18 November 2026. This model was created after the original lab and mini-project reports; it must not be represented as a model used in those earlier runs.

Downloads last month
25
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support