Skip to main content
QUICK REVIEW

[Paper Review] Securing Your Transactions: Detecting Anomalous Patterns In XML Documents

Eitan Menahem, Alon Schclar|arXiv (Cornell University)|Sep 9, 2012
Network Security and Intrusion DetectionComputer Science34 references5 citations
TL;DR

This paper proposes XML-AD, a machine learning framework for detecting anomalous XML transactions by extracting structural and content-based features and transforming them into fixed-length vectors for anomaly detection. The framework uses a novel multi-univariate algorithm, ADIFA, achieving over 89% true positive detection with less than 0.2% false positive rate across four real-world XML datasets.

ABSTRACT

XML transactions are used in many information systems to store data and interact with other systems. Abnormal transactions, the result of either an on-going cyber attack or the actions of a benign user, can potentially harm the interacting systems and therefore they are regarded as a threat. In this paper we address the problem of anomaly detection and localization in XML transactions using machine learning techniques. We present a new XML anomaly detection framework, XML-AD. Within this framework, an automatic method for extracting features from XML transactions was developed as well as a practical method for transforming XML features into vectors of fixed dimensionality. With these two methods in place, the XML-AD framework makes it possible to utilize general learning algorithms for anomaly detection. Central to the functioning of the framework is a novel multi-univariate anomaly detection algorithm, ADIFA. The framework was evaluated on four XML transactions datasets, captured from real information systems, in which it achieved over 89% true positive detection rate with less than a 0.2% false positive rate.

Motivation & Objective

  • To address the security threat posed by anomalous XML transactions that may result from cyber-attacks or benign errors.
  • To develop a general-purpose anomaly detection framework applicable to XML documents in real-world information systems.
  • To enable endpoint detection of malicious or erroneous XML transactions prior to processing, complementing existing XML security protocols.
  • To overcome limitations of existing multivariate anomaly detection methods in high-dimensional XML feature spaces.
  • To create a practical, scalable solution suitable for integration into XML-firewall systems or security monitoring pipelines.

Proposed method

  • Proposes an automatic feature extraction method that captures both structural and content-based characteristics from XML documents.
  • Introduces a fixed-length feature vector transformation (instance flattening) to map complex XML features into a format compatible with general-purpose anomaly detection algorithms.
  • Develops ADIFA, a novel multi-univariate anomaly detection algorithm combining univariate models using aggregation functions (AM, GM, HM) for improved robustness.
  • Employs a hierarchical feature representation that preserves critical values during flattening to minimize information loss.
  • Applies standard machine learning anomaly detection algorithms (e.g., 1-SVM, LOF, OC-GDE, OC-PGA) on the transformed feature vectors.
  • Uses AUC and rank-based evaluation on UCI benchmark datasets to compare ADIFA against multivariate baselines.

Experimental results

Research questions

  • RQ1Can a general-purpose framework detect anomalies in XML transactions arising from both malicious attacks and benign errors?
  • RQ2How effective is the proposed feature extraction and flattening method in preserving discriminative information for anomaly detection?
  • RQ3Does the multi-univariate ADIFA algorithm outperform traditional multivariate anomaly detection methods in high-dimensional XML feature spaces?
  • RQ4What is the detection performance of XML-AD on real-world XML transaction datasets in terms of true positive and false positive rates?
  • RQ5Can ADIFA generalize across diverse data domains while maintaining high detection accuracy?

Key findings

  • The XML-AD framework achieved a true positive detection rate exceeding 89% across four real-world XML transaction datasets.
  • The framework maintained a false positive rate below 0.2%, indicating high precision in distinguishing normal from anomalous transactions.
  • ADIFA outperformed four multivariate anomaly detection algorithms (1-SVM, OC-PGA, OC-GDE, LOF) in terms of AUC, with ADIA-GM showing statistically significant superiority.
  • The non-parametric Bonferroni-Dunn test confirmed that ADIFA variations were significantly better than multivariate baselines, with no significant difference among ADIFA variants.
  • The fixed-length feature transformation preserved critical discriminative values, minimizing information loss despite dimensionality reduction.
  • The framework demonstrated strong generalization across diverse UCI benchmark datasets, indicating robustness beyond specific XML application domains.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.