Malicious Maven plugins have become a growing threat to software development.
Real-world cases of malicious Maven plugins include the 'Maven Wagon' backdoor, which exfiltrated SSH credentials and connected to a remote server for further payloads.
Sandboxing Maven builds with Docker is one way to defend against malicious plugins.
Using Software Bill of Materials (SBOM) tools like CycloneDX Maven Plugin and Dependency-Track can help detect threats and vulnerabilities.