Maven-Hijack: Software Supply Chain Attack Exploiting Packaging Order
Frank Reyes, Federico Bono, Aman Sharma, Benoit Baudry, Martin Monperrus

TL;DR
Maven-Hijack reveals a new supply chain attack exploiting dependency resolution order in Maven, demonstrating real-world impact and evaluating mitigation strategies like Java Modules and Maven Enforcer.
Contribution
This paper introduces Maven-Hijack, a novel attack exploiting dependency order in Maven, and assesses effective mitigation strategies for Java projects.
Findings
The attack can silently override core application behavior.
Java Modules provide strong protection against the attack.
Maven Enforcer plugin effectively detects duplicate classes.
Abstract
Java projects frequently rely on package managers such as Maven to manage complex webs of external dependencies. While these tools streamline development, they also introduce subtle risks to the software supply chain. In this paper, we present Maven-Hijack, a novel attack that exploits the order in which Maven packages dependencies and the way the Java Virtual Machine resolves classes at runtime. By injecting a malicious class with the same fully qualified name as a legitimate one into a dependency that is packaged earlier, an attacker can silently override core application behavior without modifying the main codebase or library names. We demonstrate the real-world feasibility of this attack by compromising the Corona-Warn-App, a widely used open-source COVID-19 contact tracing system, and gaining control over its database connection logic. We evaluate three mitigation strategies, such…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware System Performance and Reliability · Advanced Malware Detection Techniques · Network Security and Intrusion Detection
