Explainable insider threat detection

RiskSage scores login, file, email, and USB activity across Isolation Forest, Autoencoder, and LSTM models, printing SHAP factors on CERT r6.2 at 0.964 AUC.

Evaluated on CMU CERT r5.2 and r6.2 with Kafka streaming and FastAPI.

RiskSage account queue and SHAP workbench

Security analysts review the prioritized user queue on the left and inspect exact feature attributions, model scores, and raw behavioral events on the right.

See full dashboard

Opaque risk scores stall investigations. RiskSage pairs three anomaly detectors with SHAP attributions so analysts verify unusual logins, file exports, and USB mounts in seconds.

RiskSage behavioral channels and detection features. Sudden spikes and gradual drift caught together.

Flags unusual login and USB events

Detects off-hours authentication, cross-host jumps, and unregistered removable drives as they happen.

Streams Kafka events through FastAPI

Ingests Windows logon, Google Drive, and email logs via Kafka topics into FastAPI scoring workers.

Measures multi-model ensemble agreement

Combines Isolation Forest, Autoencoder, and LSTM sequence memory to reduce false positives to 1.4%.

Controls channel alert policies

Configures per-channel anomaly thresholds and escalation triggers across departments.

One triage workflow from alert to resolution. Built for security analysts.

Every user risk score decomposes into signed Shapley values across login time, file volume, email recipients, and USB mounts so analysts verify why a model fired.

Inspect SHAP views

SHAP Attribution · Martin Vance

Predicted probability 0.94
Critical
After-hours login time (02:14)+0.31
Confidential R&D archive read+0.27
Unregistered USB mass storage mount+0.18
Sequence drift over 72h window+0.08
Internal corporate host origin-0.04

CERT r5.2 and r6.2 model comparison

Ensemble detection pairs Isolation Forest, Autoencoder, and LSTM sequence models against CMU CERT Insider Threat benchmarks.

RiskSage Ensemble

Weighted fusion + SHAP

  • AUC (r6.2)0.964
  • AUC (r5.2)0.971
  • Detection rate94.8%
  • False positive1.4%

LSTM Sequence

Multi-day sequence drift

  • AUC (r6.2)0.928
  • AUC (r5.2)0.936
  • Detection rate89.2%
  • False positive2.8%

Autoencoder

Feature reconstruction

  • AUC (r6.2)0.905
  • AUC (r5.2)0.914
  • Detection rate86.4%
  • False positive3.5%

Isolation Forest

Single-session outliers

  • AUC (r6.2)0.879
  • AUC (r5.2)0.888
  • Detection rate82.1%
  • False positive4.9%

Questions

How RiskSage ingests activity streams, runs ensemble scoring, and explains alerts.

Apache KafkaFastAPIPythonPostgreSQLReactDocker

Inspect live alerts

Which user behaviors does RiskSage monitor?

Workstation login times, file access volumes, outbound email activity, and removable USB mounts.

Why combine Isolation Forest, Autoencoder, and LSTM?

Isolation Forest catches sudden spikes while Autoencoders and LSTMs detect correlated and gradual drift.

How do SHAP explanations help security analysts?

SHAP prints signed feature values so analysts verify which login, file, or USB actions drove an alert.

Which datasets validate RiskSage model benchmarks?

AUC, detection rate, and false positive rate are evaluated on CMU CERT datasets r5.2 and r6.2.

How does the production pipeline process events?

Kafka streams telemetry into FastAPI scoring services that deliver SHAP vectors to React.