Supporting XML Security Models Using Relational Databases: A Vision

Dongwon Lee, Wang-Chien Lee, Peng LiuXsym 2003

TL;DR

This paper proposes a vision for securely managing XML data by leveraging existing relational database security mechanisms. Instead of reinventing XML security, it advocates for converting XML data and its associated security policies into relational formats, allowing relational database systems to handle access control and query processing efficiently. This approach aims to bridge the gap between the growing use of XML and the mature security infrastructure of relational databases.

What Problem Does This Paper Address?

The increasing adoption of XML for data exchange and storage on the web has led to a surge in research on XML security models. However, a significant oversight in many of these proposals is the fact that XML data is often stored in relational databases. This disconnect means that existing, robust security models and implementations for relational databases are largely ignored, forcing researchers to "reinvent the wheel" for XML security. The paper addresses this by proposing a framework that integrates XML security with relational database security, aiming to provide a more practical and efficient solution.

Methods

The paper outlines a framework that involves several key steps:

  1. XML to Relational Conversion: XML documents and their associated DTDs/schemas are converted into relational tables. The paper discusses two main approaches:
  2. Structure-based conversions: Generating a relational schema from an XML schema.
  3. Data-based conversions: Directly converting XML documents into relational tuples, which is more flexible but may lose schema semantics.
  4. XML Security Model to Relational Security Model Mapping: Authorization rules defined for XML documents (often using XPath) are translated into a format understandable by relational databases. This is a crucial and challenging step, as XML security models often offer finer granularity (e.g., node-level) than traditional relational models (table or column-level).
  5. Security Check and Query Evaluation in RDBMS: User queries, initially expressed in XML (e.g., XPath), are rewritten into SQL. Security checks are then performed within the relational database system, either through its native access control mechanisms (like GRANT/REVOKE) or by using views to simulate finer-grained control.
  6. Pruning and Rewriting: User queries are pruned and rewritten to ensure that only authorized data is accessed and returned. This process can happen externally, internally within the RDBMS, or through a hybrid approach.

The paper highlights the need to consider "where," "how," and "when" security evaluation occurs, suggesting strategies like external evaluation, internal evaluation, and hybrid approaches.

Datasets

Not discussed in the paper. The paper uses a hypothetical DTD and XML document for an illustrative example.

Key Insights and Ideas

  • Leveraging Existing Infrastructure: The core idea is that we don't need entirely new XML security solutions; we can adapt and extend the well-established security features of relational databases. This is a pragmatic approach to a widespread problem.
  • Granularity Mismatch: A significant challenge is the difference in access control granularity between XML (node-level) and relational databases (table/column-level). The paper explores how to bridge this gap, noting that while views can help, they introduce maintenance complexities.
  • XPath to SQL Translation for Security: The paper emphasizes the importance of translating XML query expressions (like XPath) not just for data retrieval but also for security enforcement. This involves mapping XPath-based access rules to SQL queries that can be processed by the RDBMS.
  • "Reinventing the Wheel" is Inefficient: The authors argue that current XML security research often overlooks existing relational database security, leading to redundant efforts.

Key Results

This paper presents a vision and a framework rather than empirical results. The "results" are conceptual:

  • A proposed framework for integrating XML security with relational databases.
  • Identification of key research issues, including theoretical studies of XML and relational security models, schema-level vs. instance-level authorization, and appropriate XML-to-relational conversion methods.
  • An illustrative example demonstrating how XML authorization rules can be mapped to relational database operations using a path-based conversion method (XRel) and auxiliary tables.

Limitations and Future Work

  • Complexity of Fine-Grained Control: The paper acknowledges that supporting finer-grained XML security models (like tuple-level or cell-level) in relational databases using views can lead to a large number of views, making maintenance and updates difficult and potentially inefficient.
  • Twig Query Support: The paper notes that some XML authorization rules (twig queries) are difficult to support with simple path-based conversion methods, requiring more sophisticated approaches like storing node IDs in auxiliary tables.
  • Need for More Extensive Research: The authors explicitly state that this paper is a preliminary work and that more extensive and systematic research is needed to fully realize their vision. Future work should delve deeper into the pros and cons of various approaches for conversion, security mapping, and evaluation strategies. They also suggest exploring hybrid security check mechanisms and efficient ways to manage authorization information.

Summary updated

BibTeX
@inproceedings{lee2003supporting,
  author = {Dongwon Lee and Wang-Chien Lee and Peng Liu},
  title = {{Supporting XML Security Models Using Relational Databases: A Vision}},
  booktitle = {Xsym},
  year = {2003},
  doi = {10.1007/978-3-540-39429-7\_18},
}
Figure