Detecting Advanced Persistent Threat Indicators through Forensic Analysis of Email Header Metadata
Year: 2026
Type: dissertation
Abstract: Electronic mail (email) has been the primary initial access point for Advanced PersistentThreats (APTs), where attackers manipulate Simple Mail Transfer Protocol (SMTP) headermetadata to evade detection. Although payload analysis is the most common approach to emailforensics, its structural metadata also has vital footprints of malicious relay chaining andidentity spoofing that are frequently missed by defenders. The existing commercial securitygateway products are largely based on content scanning and static signature verification withno ability to identify APTs that use subtle metadata obfuscation to circumvent standardauthentication protocols such as Sender Policy Framework (SPF) and DomainKeys IdentifiedMail (DKIM). This study adopts an experimental research design to develop a forensic analysissystem that ingests raw headers and create features such as hop latency and geospatialinconsistencies that can be analysed to show indicators of compromise. The system makes useof the Isolation Forest algorithm which attained an accuracy of 84.22% to detect the presenceof unsupervised outliers and eXtreme Gradient Boosting (XGBoost) which had an accuracy of98.76% to do supervised attack patterns classification. Validation using the Enron and Nazariocorpora affirmed that XGBoost is better placed as the primary engine. The main deliverable isa Python based forensic system which automates header marking to show indicators ofcompromise at a high degree of accuracy. These machine learning models are effective thanbaseline static rule sets in the detection of complex anomalies like inconsistent hops. This studychanges the focus of detection to proactive metadata forensics, which offers analysts with aclear method of reconstructing the paths of attack that are overlooked by traditional tools. Keywords: Advanced Persistent Threats, Anomaly Detection, Email Forensics, Cybersecurity,SMTP Metadata Analysis, Machine Learning, XGBoost.
Authors: Brian, Kirui, Gavole, Vitalis
Institution: Strathmore University
Language: English
Topic: Digital and Cyber Forensics
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7204481122
