TL;DR
This paper exposes critical security vulnerabilities in Knowledge Representation Learning (KRL) by introducing ROAR, a novel framework for attacking knowledge graph reasoning. By combining knowledge poisoning and query perturbation, the authors demonstrate that these systems can be misled with over 99% success rates in sensitive domains like cybersecurity and healthcare, while also proposing the first steps toward robust defenses.
What Problem Does This Paper Address?
Knowledge Graphs (KGs) are structured representations of facts, used extensively in fields like cyber-threat hunting and drug discovery. To handle the massive scale of these graphs, researchers use Knowledge Representation Learning (KRL), which embeds entities and queries into a continuous latent space. In this space, answering a complex logical query becomes a simple task of finding the closest entity embeddings.
While KRL has seen a surge in popularity due to its efficiency, its security remains largely unexplored. This is a major concern: if a security analyst uses KRL to identify the most likely vulnerability being exploited in a network, could an attacker "poison" the graph or "perturb" the query to hide their tracks? This paper systematizes these threats and provides a framework to test the robustness of KRL systems.
Methods
The authors introduce ROAR (Reasoning Over Adversarial Representations), a class of attacks based on a novel Optimization-then-Approximation (OTA) framework.
- Optimization: Since KRL operates in a continuous latent space, the attacker first uses backpropagation to find the "ideal" embeddings that would force the system to return a specific, incorrect answer.
- Approximation: Because KGs are discrete (you can't add "half a fact"), ROAR uses heuristics to map these ideal embeddings back to the input space.
- Knowledge Poisoning: Adding a small number of carefully crafted facts to the KG before training.
- Query Perturbation: Adding misleading logical constraints to the query at inference time.
The framework also includes a co-optimization strategy where poisoning and perturbation are optimized jointly, making the attack even more potent.
Datasets
The authors evaluated ROAR on two representative, security-critical use cases:
- CyberKG: A newly constructed knowledge graph for cyber-threat hunting. It integrates data from public CVE reports, the BRON threat graph, and the National Vulnerability Database (NVD).
- DRKG (Drug Repurposing Knowledge Graph): A large-scale KG synthesized from public medical databases, containing relationships between drugs, diseases, and human genes.
Key Insights and Ideas
- A Taxonomy of Threats: The paper categorizes 12 types of attacks based on the adversary's capability and their knowledge of the target system (e.g., whether they know the specific encoder or operator used).
- Mutual Reinforcement: One of the most striking findings is that poisoning and perturbation reinforce each other. Poisoning the graph "primes" the latent space, making even minor query perturbations highly effective at steering the model toward a wrong answer.
- Stealth and Locality: Attacks can be incredibly surgical. By adding facts only around specific "anchor" entities, an attacker can achieve a near-perfect success rate on target queries while leaving the system's performance on all other queries completely untouched. This makes detection via standard accuracy metrics nearly impossible.
- Transferability: Attacks are often "transferable." An adversary can craft an attack using a simpler surrogate model and still successfully compromise a more complex, proprietary KRL system.
Key Results
- High Success Rates: In the cyber-threat hunting scenario, ROAR achieved over a 99% attack success rate in misleading the engine to provide pre-defined answers for target queries.
- Minimal Collateral Damage: The impact on non-target queries was negligible (often less than a 3% change in performance), highlighting the evasive nature of the attack.
- Efficiency: Even with a very limited "budget"—adding as few as 100 facts to a graph containing millions—the reasoning process could be completely subverted.
- Defense Trade-offs: The authors tested countermeasures like filtering anomalous facts and adversarial training. While these methods improve resilience, they often introduce a "robustness-accuracy trade-off," slightly degrading the system's performance on legitimate queries.
Limitations and Future Work
The authors acknowledge several areas for future exploration:
- Complex Reasoning Tasks: This work focuses on entity and relation queries. Future research is needed to see if "path reasoning" (finding a sequence of links) is similarly vulnerable.
- Input-Space Constraints: ROAR operates in the logical space of the graph. In some real-world scenarios, an attacker might be limited by what "facts" are physically possible to inject (e.g., they can't claim a software version exists if it doesn't).
- Optimal Defense Integration: While the paper suggests filtering and robust training, finding the optimal way to integrate these defenses without sacrificing too much utility remains an open challenge.
Summary updated