Multi-Axis Trust Modeling for Interpretable Account Hijacking Detection
Organizations: Qatar University, Doha, Qatar
Abstract
This paper proposes a Hadith-inspired multi-axis trust modeling framework, motivated by a structurally analogous problem in classical Hadith scholarship: assessing the trustworthiness of information sources using interpretable, multidimensional criteria rather than a single anomaly score. We translate five trust axes - long-term integrity (adalah), behavioral precision (dabt), contextual continuity (isnad), cumulative reputation, and anomaly evidence - into a compact set of 26 semantically meaningful behavioral features for user accounts. In addition, we introduce lightweight temporal features that capture short-horizon changes in these trust signals across consecutive activity windows. We evaluate the framework on the CLUE-LDS cloud activity dataset with injected account hijacking scenarios. On 23,094 sliding windows, a Random Forest trained on the trust features achieves near-perfect detection performance, substantially outperforming models based on raw event counts, minimal statistical baselines, and unsupervised anomaly detection. Temporal features provide modest but consistent gains on CLUE-LDS, confirming their compatibility with the static trust representation. To assess robustness under more challenging conditions, we further evaluate the approach on the CERT Insider Threat Test Dataset r6.2, which exhibits extreme class imbalance and sparse malicious behavior. On a 500-user CERT subset, temporal features improve ROC-AUC from 0.776 to 0.844. On a leakage-controlled 4,000-user configuration, temporal modeling yields a substantial and consistent improvement over static trust features alone (ROC-AUC 0.627 to 0.715; PR-AUC 0.072 to 0.264).
Figures & tables
| Metric | Value |
|---|---|
| Total events | 500,000 |
| Number of users | 77 |
| Distinct event types | 24 |
| Time span | 13 days (Jul 7–21, 2017) |
| Model | ROC-AUC | PR-AUC | F 1 | Prec. / Rec. |
|---|---|---|---|---|
| Original Hadith + RF | 0.99997 | 0.99975 | 0.9948 | 0.993 / 0.996 |
| Combined (Hadith+Temporal) + RF | 0.99996 | 0.99963 | 0.9935 | 0.991 / 0.996 |
| Temporal Only + RF | 0.99989 | 0.99912 | 0.9869 | 0.986 / 0.988 |
| Raw Counts + RF | 0.98570 | 0.91691 | 0.8580 | 0.789 / 0.940 |
| Isolation Forest | 0.49358 | 0.10753 | 0.1996 | 0.111 / 0.990 |
| Setting / Model | ROC-AUC | PR-AUC | F 1 | Prec. / Rec. |
|---|---|---|---|---|
| CERT-500 (500 users; 6,666 windows) | ||||
| Hadith Only + RF | 0.7757 | 0.3479 | 0.3810 | 0.606 / 0.278 |
| Temporal Only + RF | 0.8088 | 0.3906 | 0.3972 | 0.406 / 0.389 |
| Combined (Hadith+Temporal) + RF | 0.8439 | 0.4989 | 0.5246 | 0.640 / 0.444 |
| CERT-4000 Balanced (4,000 users; 22,622 windows) | ||||
| Hadith Only + RF | 0.6267 | 0.0720 | 0.1132 | 0.176 / 0.083 |
| Setting | Axis | #Feat. | ROC-AUC | PR-AUC | F 1 | ROC |
| (A) Removing Individual Axes from Full Feature Set | ||||||
| Remove | ʿAdālah | 37 | 0.6993 | 0.2619 | 0.3696 | |
| Remove | Ḍabṭ | 35 | 0.7216 | 0.1924 | 0.3232 | |
| Remove | Isnād | 36 | 0.7185 | 0.2673 | 0.3542 | |
| Remove | Reputation | 38 | 0.7140 | 0.2647 | 0.3579 | |
| Remove | Anomaly | 38 | 0.7319 | 0.2553 | 0.3409 | |
| Axis | Feature computation (derived from implementation) |
|---|---|
| Integrity / Stability (ʿAdālah) | • Active days : Number of distinct calendar dates with at least one historical event prior to the window start. • Total events : Count of all user events before the window. • Account age : Number of days between the user’s earliest historical event and the window end timestamp. • Daily variability : Standard deviation of historical per-day event counts. • Activity density : Historical total events divided by the number of historical active days. |
| Precision / Hygiene (Ḍabṭ) | • Login success rate : Successful login/authentication events divided by total login/authentication attempts within the window. • Failure delta : Difference between the login failure rate in the window and the historical login failure rate. • Burstiness : Maximum number of events occurring within any single minute of the window. • Out-of-hours fraction : Proportion of window events occurring outside the historical 2.5–97.5 percentile activity-hour range. • Timing entropy : Shannon entropy of log-binned inter-event time gaps within the window. • Path divergence : Fraction of unique resource paths in the window that were never observed in historical activity. • Sensitive-action ratio : Proportion of window events whose event type or resource path contains sensitive-action keywords. |
| Chain Continuity / Context (Isnād) | • IP consistency : Inverse of the number of distinct IP addresses observed in the window. • Primary IP match : Fraction of window events whose IP matches the user’s most frequent historical IP. • Subnet match : Fraction of window IPs belonging to the user’s dominant historical /24 subnet. • Geo-impossible IP switches : Rate of IP changes occurring within less than five minutes. • Session discontinuity : Fraction of consecutive inter-event gaps within the window that exceed one hour. • New IP rate : Proportion of window IP addresses that have never appeared in the user’s history. |
| Reputation (Jarḥ wa-Taʿdīl) | • History duration : Total number of days spanned by the user’s historical activity. • Trust ratio : Ratio of successful historical login/authentication events to total authentication attempts. • Penalty rate : Fraction of historical events classified as failures. • Failure trend : Difference between late-history and early-history authentication failure rates. |
| Anomaly Evidence (Shudhūdh / ʿIllah) | • Event-type KL divergence : Kullback–Leibler divergence between window and historical event-type distributions. • Hour-of-day KL divergence : KL divergence between window and historical hour-of-day activity distributions. • Path novelty : Fraction of unique resource paths in the window that are absent from historical activity. • Event-type L2 distance : Euclidean distance between window and historical event-type frequency vectors. |
| Temporal Extensions (Sequence-Aware Trust Dynamics) | |
Anomaly Detection
Anomaly detection finds rare or unexpected patterns in data, from defective products and system faults to fraud and security threats.
See all 652 papers