TriSentry: Code for a Unified, Uncertainty-Calibrated Architecture for Cross-Domain Cyber-Threat Detection
Description
TriSentry is a single shared neural architecture that jointly detects network intrusions, dark web traffic, and blockchain fraud across four benchmark datasets — UNSW-NB15, CIC-IDS-2017, CIC-Darknet2020, and Elliptic++ — instead of training a separate model per domain. It aggregates two-hop, precomputed neighborhood-structural features per domain through a shared residual MLP trunk with domain-specific input projections and output heads, trained with focal loss, minority-class oversampling, and validation-calibrated decision thresholds, with predictive uncertainty estimated via Monte Carlo Dropout. This repository contains the full pipeline: preprocessing, the shared-model training script, 5-fold cross-validation, a 6-configuration ablation study, classical ML baselines (Random Forest, XGBoost), and figure/table generation (including XAI via Random Forest importance and SHAP). See README.md for pipeline order and usage.