Downloads · 30 days
0
Mallikarjunac902/Insider_Threat_Detection
Insider_Threat_Detection is a tabular classification model from Mallikarjunac902. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for scikit-learn. The card lists the license as mit.
A supervised ensemble machine-learning model for detecting insider threats in Active Directory environments using behavioral features.
Downloads · 30 days
0
Access
Public
Updated Jan 28, 2026
Repo size
1.5 MB
Likes
0
Public
Click a slice to open those files.
.joblib1.5 MB · 100%
From the Hugging Face model README
A supervised ensemble machine-learning model for detecting insider threats in Active Directory environments using behavioral features.
This model classifies users as:
• Normal behavior
• Anomalous / insider-threat behavior
based on engineered activity features derived from AD logs.
It uses a weighted ensemble of Random Forest, XGBoost, and LightGBM with an optimized decision threshold.
The published file:
contains:
StandardScalerpip install -r requirements.txt
## 🚀 Basic usage
from huggingface_hub import hf_hub_download
import joblib
import pandas as pd
path = hf_hub_download(
repo_id="Mallikarjunac902/Insider_Threat_Detection",
filename="improved_threat_detector.joblib"
)
artifact = joblib.load(path)
model = artifact["model"]
scaler = artifact["scaler"]
features = artifact["feature_columns"]
threshold = artifact["optimal_threshold"]
df = pd.read_csv("new_features.csv")
X = df[features]
X_scaled = scaler.transform(X)
scores = model.predict_proba(X_scaled)[:,1]
preds = (scores >= threshold).astype(int)
print(preds[:10])