Abstract
This paper introduces Connor, a novel graph encryption scheme designed for approximate Constrained Shortest Distance (CSD) queries on encrypted cloud data. By integrating Order-Revealing Encryption (ORE) and Somewhat Homomorphic Encryption (SWHE) through a specialized tree-based comparison protocol, Connor enables cloud servers to perform cost-based path filtering and shortest distance computations without decrypting the underlying graph data.
Introduction and Problem Statement
As massive graph databases—such as road networks and social graphs—are increasingly outsourced to cloud environments, ensuring data privacy through encryption becomes paramount. However, standard encryption often renders fundamental operations like the Constrained Shortest Distance (CSD) query impossible.
In a CSD query, a user seeks the shortest path between two nodes (e.g., travel time) subject to a cost constraint (e.g., total tolls < $10). Performing this on encrypted data requires the server to sum encrypted costs and compare them against an encrypted threshold, a challenge previously unaddressed in literature. Connor addresses this by allowing the cloud server to process these queries while the costs, distances, and thresholds remain entirely encrypted.
Methodology
Connor leverages a precomputed 2-hop cover labeling index (2HCLI) and a hybrid cryptographic approach to handle the dual requirements of distance addition and cost comparison:
- Somewhat Homomorphic Encryption (SWHE): Encrypts edge distances, allowing the server to perform additive operations to find total path lengths without decryption.
- Order-Revealing Encryption (ORE): Encrypts edge costs to facilitate direct comparison of encrypted values.
Tree-Based Ciphertext Comparison Protocol
The core technical innovation is the Tree-Based Ciphertext Comparison Protocol. Since standard ORE does not support addition, the authors developed a "cost constraint tree" that partitions the threshold $\theta$ into smaller intervals (e.g., $\theta/2, \theta/4$). By traversing this tree using ORE ciphertexts of individual edge costs, the server can probabilistically determine if a path's total cost exceeds the threshold.
To further enhance security and prevent the server from inferring exact cost values, a secret amplification factor ($\phi$) is applied to all costs and thresholds, maintaining their relative order while obscuring the underlying data.
Evaluation and Key Results
The system was evaluated using four real-world datasets from the Stanford SNAP repository (Email-EuAll, soc-Epinions1, p2p-Gnutella25, and p2p-Gnutella04), with synthetic weights added to simulate distance and cost constraints.
- High Accuracy: The tree-based filtering achieved over 94% precision with a tree depth of 6. The final approximate distances remained highly accurate, with a deviation rate > 0.90 for over 80% of queries compared to plaintext baselines.
- Practical Performance: Query resolution is remarkably fast, typically taking between 10 and 60 milliseconds depending on the dataset and tree depth.
- Storage Overhead: The encrypted index is approximately 6x larger than the plaintext version, which is considered a reasonable trade-off for the strong CQA2-security guarantees provided.
Conclusion
Connor represents a significant step forward in privacy-preserving graph analytics by enabling complex constrained queries on encrypted data. While the current offline index construction is computationally intensive and limited to static graphs, it provides a practical framework for secure CSD queries. Future research will focus on supporting dynamic graph updates to accommodate evolving datasets without requiring full re-encryption of the index.
Summary updated