Access Control of SVG Documents

Ernesto Damiani, Sabrina De Capitani di Vimercati, Eduardo Fernández‐Medina, Pierangela SamaratiIFIP 2003 · DOI · OpenAlex

Introduction

Traditional digital image formats, such as JPEG or PNG, operate on an "all-or-nothing" security principle. Once a user has access to a file, they have access to every pixel within it. This monolithic nature poses a significant challenge in environments where sensitive information must be selectively shared. This paper introduces a framework for fine-grained access control in Scalable Vector Graphics (SVG), enabling a single file to serve multiple, customized "views" based on the viewer's identity and role.

The Problem of Monolithic Graphics

In raster graphics, selectively hiding internal features—such as sensitive patient data on a hospital floor plan while showing the building's wiring to a maintenance worker—requires creating and synchronizing multiple versions of the same file. This process is inefficient, prone to errors, and difficult to manage at scale.

Because SVG is an XML-based vector format, images are represented as structured trees of objects rather than simple grids of pixels. The authors leverage this inherent structure to develop a formal security model that allows for "feature protection," controlling access to specific elements within a graphic based on complex user attributes.

Proposed Framework

The authors propose a comprehensive model for SVG access control consisting of three core components: Subject Modeling, Object Identification, and an Enforcement Algorithm.

Subject and Profile Modeling

Rather than relying solely on simple usernames, the system utilizes a combination of hierarchical groups and semi-structured user profiles. This allows for nuanced authorization rules. For instance, access can be granted based on specific conditions, such as "European citizens who are also doctors," by using path expressions to query these profiles.

Hierarchical user groups and semi-structured user profiles.

Object Identification with Semantic Predicates

To simplify rule administration, the authors extend standard SVG with a typeElement attribute. This allows administrators to write broad rules for categories of objects (e.g., all "beds" or all "computers"). Furthermore, they introduce spatial and logical predicates:

  • inside(obj): Targets elements within a specific container.
  • together_with(obj): Targets elements that share a parent with another specific object, such as "phones located in the same room as a computer."

The Enforcement Algorithm

The enforcement process occurs in two phases:

  1. Node Labeling: The system evaluates authorization rules and assigns a "permit" (+) or "deny" (-) label to nodes in the SVG's Document Object Model (DOM) tree. Conflicts are resolved using "most specific takes precedence" and "denials take precedence" logic.
  2. Tree Transformation: The algorithm propagates these labels and prunes unauthorized branches, resulting in a new, valid SVG document tailored to the specific requester.

Case Study: The Oncology Floor Plan

The paper demonstrates the model's effectiveness using a running example of a hospital oncology floor plan. This graphic contains layers of information ranging from architectural outlines to highly sensitive patient data (names, diagnoses, and treatments) triggered by interactive events.

The oncology floor plan serving as the primary case study.

By applying different authorization rules to this master document, the system can generate distinct views:

  • Medical Staff View: A full view showing all patient data and medical equipment.
  • Maintenance View: A filtered version that removes sensitive patient details but retains the locations of fire emergency controls, electricity points, and general room layouts.

Key Insights

  • Graphics as Data: By treating a graphic as an XML database, rigorous access control logic can be applied to visual information just as it is to financial or medical records.
  • Spatial Context: The location of an object often defines its security requirements. The inclusion of predicates like together_with allows for context-aware security that simple object-level rules cannot achieve.
  • Visual Consistency: The algorithm ensures that if a container is hidden, its entire sub-structure is removed, preventing "broken" images where doors might appear without rooms.

Limitations and Future Work

While robust, the model currently relies on the logical structure of the XML tree rather than intelligent coordinate-based checking. It cannot automatically detect if two objects overlap if they are not logically grouped in the code. Future work may involve extending this framework into Digital Rights Management (DRM) for technical drawings and blueprints, as well as optimizing performance for complex, real-time interactive graphics.

Summary updated

BibTeX
@inproceedings{damiani2003access,
  author = {Ernesto Damiani and Sabrina De Capitani di Vimercati and Eduardo Fernández‐Medina and Pierangela Samarati},
  title = {{Access Control of SVG Documents}},
  booktitle = {IFIP},
  year = {2003},
  doi = {10.1007/978-0-387-35697-6\_17},
}
Figure