Abstract
Insider threat is a serious and increasing concern for many organizations. The group of individuals who operate within the organization have access to highly confidential and sensitive information; however, if they choose to act against the organization, with their privileged access authority and their extensive knowledge, they are well positioned to cause serious damage. Compared with vast amounts of normal daily operations, malicious behaviors are indeed small probability events and are easily ignored. Thus, there is a desperate need to explore an effective approach to detect such suspicious behaviors. In order to solve this problem, we propose a two-stage algorithm to detect anomaly through analyzing user behavior based on activity log data collected in a real office automation system. In the first stage, we compare users' behavioral activities with activities of his/her belonging role, and in the second stage, we compare individual behavioral activities with his/her activities in a window period. By adopting several effective features to describe users' regular behavioral patterns, the analyst is capable of refining underlying abnormal users and abnormal periods to better support the network security administration.
Introduction
While traditional cybersecurity focuses on external perimeter defense, the "insider threat"—malicious activity by authorized users—remains one of the most difficult challenges to address. Insiders possess legitimate credentials and deep knowledge of internal systems, allowing their harmful actions to blend seamlessly into the background of daily operations. This paper focuses on Office Automation (OA) systems, which serve as the digital backbone for document management and workflow coordination in modern enterprises. Detecting anomalies in these systems requires distinguishing between legitimate variations in work habits and actual malicious deviations.
Methodology
The proposed detection framework utilizes a two-stage unsupervised learning approach to identify "who" is acting suspiciously and "when" the suspicious activity occurs.
Stage 1: Role-Based Detection
The first stage identifies potential abnormal users by comparing their behavior against their peers. A Random Forest classifier is initially used for feature selection to identify the most discriminative behavioral metrics. Subsequently, the Local Outlier Factor (LOF) algorithm calculates the local density of each user's activity relative to others in the same organizational role. Users with a significantly lower density (higher LOF score) than their peers are flagged for further investigation.
Stage 2: Individual-Based Detection
Once a user is flagged, the second stage analyzes their personal historical behavior using an Isolation Forest (iForest). This stage partitions the user's activity into 24-hour time bins to detect temporal deviations. By isolating anomalies in a tree structure, the system identifies specific dates or hours where the user’s behavior significantly diverged from their own established routine.
Experimental Setup and Datasets
The study analyzed a real-world dataset from an enterprise OA system covering 228 days (March to October). The dataset included activity logs for 198 active users categorized into three roles:
- Senior Managers ($y_1$): 36 users.
- Department Managers ($y_2$): 21 users.
- Staff ($y_3$): 141 users.
Log data captured various operations such as creating, reading, requesting, and replying to documents and notifications. Feature engineering included both frequency-based metrics (e.g., number of documents read) and temporal ratios (e.g., weekend vs. weekday activity).
Results and Discussion
The effectiveness of the two-stage approach was demonstrated through the identification of role-specific thresholds and individual outliers.
As shown in the LOF analysis, each role required a distinct threshold to accurately separate normal behavior from potential threats. For instance, the threshold for senior managers ($y_1$) was set at 2.733, while the staff role ($y_3$) used 1.7625. In the staff category, several users clearly exceeded the threshold, marking them as candidates for Stage 2 analysis.
Feature importance analysis revealed that the number of notifications read ($N_2$) and the number of workflows requested or replied to ($N_4$) were the most critical indicators for role classification and anomaly detection.
Conclusion
This research presents a robust two-stage framework for insider threat detection in OA systems. By combining role-based peer comparison with individual-based temporal analysis, the system effectively filters out normal operational noise to highlight truly suspicious behavior. Future work will focus on transitioning this offline analysis into a real-time monitoring system and expanding the feature set to include more domain-specific context.
Summary updated