There could be many vectors including the compromise of the build server.
That Jenkins plugin you haven't updated in years. Or that maven package no one knows about.
Third party risk management is unfortunately not well funded cyber security vertical.