Enhancing Privacy in Graph Algorithms: Data-Oblivious Approaches to DFS and Dijkstra's Algorithm

Koteswararao Ch, Kunwar Singh, Anoop KumarJournal of Computer Science and Engineering (JCSE) 2023

Abstract

Data obliviousness is characterized by a consistent sequence of operations irrespective of input data and data-independent memory accesses, making it a suitable solution for users utilizing outsourced storage data services who aim to conceal their data access patterns. In this study, we present novel data-oblivious algorithms designed for depth-first search (DFS) and single-source shortest path (Dijkstra’s algorithm). Our proposed algorithms demonstrate efficiency comparable to non-data-oblivious counterparts, particularly for graphs containing fewer than 1,000 nodes. This research contributes to advancing data privacy in outsourced storage services by providing effective data-oblivious solutions for common graph algorithms.

Introduction: The Privacy Gap in Cloud Computing

As individuals and businesses increasingly outsource data to cloud environments, encryption has become the standard for protecting content. However, encryption alone is insufficient to prevent information leakage. An untrusted server can still observe access patterns—the specific sequence and location of memory addresses a program touches. In graph algorithms, these patterns are often data-dependent; for instance, a search algorithm's traversal path can reveal the underlying network topology. This research addresses the challenge of making fundamental graph traversals "oblivious" to the underlying data structure.

Methodology: Designing for Obliviousness

The core objective is to ensure that the sequence of operations and memory accesses remains constant, regardless of the input graph. To achieve this, the authors employ several key techniques:

Arithmetic Branching

Standard if-else statements cause CPU instruction jumps that leak data-dependent information. To mitigate this, the authors utilize mathematical expressions to handle conditional logic. As shown in the following figure, a conditional assignment is transformed into a linear combination of the potential values, ensuring the same number of operations occur regardless of the condition's truth value.

Oblivious execution of a conditional statement using arithmetic branching.

Adjacency Matrix and Random Permutations

The algorithms represent graphs using an $|V| \times |V|$ adjacency matrix where values are stored in a protected form. To further obscure the graph structure, the authors implement a random permutation ($\pi$) of node indices. This ensures that even when an index is accessed, it refers to a permuted position that carries no structural meaning to an external observer.

Performance Evaluation

The researchers evaluated the algorithms using synthetically generated sparse and dense graphs, scaling from 100 to 10,000 nodes. The goal was to measure the "oblivious tax"—the computational overhead required to maintain privacy.

Key Results and the 1,000-Node Sweet Spot

The study reveals a significant performance threshold. For graphs with fewer than 1,000 nodes, the execution time of the oblivious DFS and Dijkstra algorithms is remarkably close to their non-oblivious counterparts. However, as the node count increases, the overhead becomes more pronounced.

Execution time comparison between general and oblivious algorithms as the number of nodes increases.

As illustrated in the graph above, the execution time for oblivious versions grows significantly faster than general algorithms as the node count approaches 10,000. This is because oblivious algorithms must perform a full scan of the vertex set in every step to hide their intent, resulting in an $O(|V|^2)$ complexity. While this is theoretically optimal for matrix-based approaches, it creates a practical bottleneck for very large graphs.

Conclusion and Future Directions

While data-oblivious algorithms provide provable security by making memory accesses indistinguishable across different inputs, they face scalability challenges for very large graphs (VLGs). Future work will focus on optimizing these methods for larger scales and integrating them with secure multi-party computation (MPC) platforms to enhance privacy in complex production environments.

Summary updated

BibTeX
@article{ch2023enhancing,
  author = {Koteswararao Ch and Kunwar Singh and Anoop Kumar},
  title = {{Enhancing Privacy in Graph Algorithms: Data-Oblivious Approaches to DFS and Dijkstra's Algorithm}},
  journal = {Journal of Computer Science and Engineering (JCSE)},
  year = {2023},
  doi = {10.36596/jcse.v4i2.277},
}
Figure