L’outil de licence Creative Commons du formulaire de soumission ne fonctionne pas actuellement. Pour ajouter une licence CC à votre thèse ou publication, contactez ruor@uottawa.ca après le dépôt. -- The Creative Commons licence tool in the submission form is currently unavailable. To apply a CC licence to your thesis or publication, contact ruor@uottawa.ca after the deposit.

Taking Log Analysis to HEART: From Detection to Explanation in Heterogeneous Systems

En cours de chargement...
Vignette d'image

Nom de la revue

ISSN de la revue

Titre du volume

Éditeur

Université d'Ottawa | University of Ottawa

Résumé

Log anomaly detection is central to cyber-security and operations because logs record how heterogeneous systems behave, fail, and respond to attacks. Establishing defensible claims of reliable detection across systems remains difficult, however. Logs differ in vocabulary, format, structure, and granularity; parsing and feature-extraction pipelines can discard information or introduce artifacts; anomalous labels are scarce and highly imbalanced in many settings; and models that perform well on one benchmark may not transfer to another system. These difficulties are compounded by limited transparency: predictive performance alone does not establish whether a detector relies on anomaly-relevant evidence or on system-specific regularities. This thesis asks whether a log anomaly detector trained on some systems can be trusted on another system whose formats, vocabularies, and anomaly rates differ, and what evidence must be established before that trust is justified. It treats evaluation validity, representation validity, generalization, explanation, and controlled adaptation as a cumulative evidential problem. It first synthesizes evidence on Semi-Supervised Learning (SSL) in cyber-security, public datasets, and performance assessment to establish the methodological conditions under which later empirical claims are interpreted. It then examines representation directly through host-based intrusion detection and shows that common mean-pooled word-embedding pipelines can map distinct system call (syscall) traces to duplicate feature vectors, so that identical representations can appear in both training and test partitions and inflate performance estimates for unseen traces. Alternative constructions mitigate these effects in a dataset-dependent manner, demonstrating that representation validity must be established before classifier performance is trusted. Building on this foundation, the thesis develops HEterogeneous Log Anomaly Detection using Robust Transformers (HEART), a parser-independent Transformer framework that operates directly on raw log events with adapted tokenizers and both general-purpose and log-specific Transformer models. Strong intra-system results establish the viability of parser-independent modelling, while cross-system experiments show that this does not by itself yield dependable heterogeneous transfer. eXplainable HEterogeneous Log Anomaly Detection using Robust Transformers (X-HEART) expands the analysis to seven log systems, adds imbalance-aware and ranking-based evaluation, and introduces tokenizer-aware SHapley Additive exPlanations (SHAP) diagnostics. The results show that ranking discrimination and fixed-threshold anomaly detection can diverge substantially, and that prediction-level attributions expose reliance on collection-specific evidence, such as dates and deployment identifiers, without establishing semantic or causal correctness. The thesis next addresses explanation comparison through Rule-based Antecedent Inference for Symbolic Evidence (RAISE), a tokenizer-aware rule-based explainer evaluated with SHAP, Local Interpretable Model-agnostic Explanations (LIME), and Anchors under a controlled protocol that separates method-native configuration selection from shared-budget comparison. Explanation availability, empty outputs, faithfulness-oriented perturbation behaviour, agreement, output density, and runtime are evaluated explicitly. The evidence supports complementary explanatory profiles rather than a universal winner: compact symbolic rules, dense attribution maps, and sparse sufficient clauses provide different forms of diagnostic evidence under different availability and cost constraints. The final empirical stage tests controlled adaptation under the heterogeneous conditions exposed by the preceding chapters. Partial encoder adaptation, particularly final-two-layer adaptation, provides the clearest aggregate intra-system performance–cost compromise, whereas fully unfreezing the encoder often adds substantial training cost for comparatively modest additional predictive gain. Low-Rank Adaptation (LoRA) yields large reductions in trainable parameters but does not consistently reproduce the predictive or wall-clock behaviour of conventional adaptation. Cross-system transfer remains strongly target- and source-composition-dependent: increasing the source count is not uniformly beneficial, the identity of the source systems matters, and the evaluated similarity measures do not fully account for transfer. Adaptation can improve anomaly sensitivity while increasing false-alert burden, and attribution-guided regularization produces conditional rather than universal improvements. Overall, the thesis shows that reliable heterogeneous log anomaly detection cannot be reduced to predictive accuracy, a single transfer strategy, or a single explanation metric. Defensible conclusions require continuity between representation, evaluation regime, anomaly-sensitive and threshold-aware measurement, explanation diagnostics, source composition, adaptation capacity, and computational evidence. Treating these elements together provides a more rigorous basis for developing and assessing Transformer-based log anomaly detectors across heterogeneous systems.

Description

Mots-clés

Log anomaly detection, Transformer models, Domain generalization, Explainable artificial intelligence, Explanation faithfulness, Parameter-efficient fine-tuning, Data leakage, Class imbalance, Host-based intrusion detection, Semi-supervised learning

Citation

Approbation

Évaluation

Complété par

Référencé par