Maven-Hijack Exposes Hidden Risks in Java Dependency Resolution
The study introduces Maven-Hijack, a supply-chain attack that exploits how Apache Maven and the Java Virtual Machine resolve dependencies. By inserting a malicious class with the same fully qualified name as a trusted one earlier in the dependency chain, attackers can override legitimate functionality without altering project code or library names. Researchers demonstrated the attack by hijacking the Corona-Warn-App’s database logic. They assessed countermeasures such as sealed JARs, Java Modules, and Maven’s Enforcer plugin, concluding that Java Modules offer the strongest defense while the Enforcer plugin provides the most practical mitigation.
Comments
Post a Comment