In a course research project in spring 2026 (CSI 5388, University of Ottawa, supervised by Dr. Paula Branco), our four-person team built an insider-threat detector over the CERT r4.2 dataset. I led the project. The design lesson worth keeping is not any single model — it is the funnel.
The problem shape
CERT r4.2 gives you enterprise audit logs. Aggregated into user-day behavior windows, our split contained 330,285 windows, and almost all of them are boring. Any detector that asks a human — or an expensive model — to look at every window is dead on arrival. The real objective is not "classify well"; it is spend review effort where it matters.
Stage one: a cheap screen that refuses to miss
Stage one is an XGBoost screen over engineered features (logon patterns, device usage, file and email activity, with SMOTE-family resampling for the class imbalance). Its only job is recall: compress 330,285 windows into a 9,908-window suspicious pool while keeping 89.74% of the malicious windows inside the pool. Precision at this stage is terrible by design — that is what stage two is for.
Stage two: spend reasoning only inside the pool
Inside the pool we compared four second-stage approaches: hand rules, TF-IDF similarity, an LLM with chain-of-thought scoring, and fusions of the three. Judged on recall, precision, review cost, and inference cost together:
- The strongest single model lifted suspicious-pool precision from 12.9% to 31.5%, with F1 0.450 under a deliberate high-recall, low-precision trade-off.
- The best fusion reached Recall 0.810.
Neither number is glamorous in isolation. The point is that they are measured after a 33× reduction in what anyone has to look at, and every number ships in the repository result tables where it can be checked.
What I would tell past me
- Decide what each stage is allowed to be bad at. Stage one is allowed terrible precision; stage two is allowed to be slow. Trouble comes from asking one component to be good at everything.
- Cost is a metric, not a footnote. We evaluated approaches on review cost and inference cost as first-class criteria. That is what made "rules vs. LLM" a real comparison instead of a vibes contest.
- Honest caveats travel further than round numbers. The dataset's EULA means the repo cannot ship the data, so results are verifiable against our tables but not one-click reproducible. Saying that plainly has been worth more than implying otherwise.