Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 938643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:40:36+00:00 2026-05-15T21:40:36+00:00

I was just pointed to a very interesting article ( archived ) about a

  • 0

I was just pointed to a very interesting article (archived) about a security problem called
Cross Build Injection (XBI). Bascially it is a fancy name for smuggling bad code
into an application at build time via automated build systems such as ant, maven or ivy.

The problem could be alleviated by introducing a cryptographic signature validation für dependencies as it is currently in place with many operating systems for downloading packages.

To be clear: I am not talking about simply providing md5 or sha1 hashes for the artifacts. That is already done, but those hashes are stored in the same location as the artifacts. So once a malicious hacker compromises the repository and can replace the artifact they can replace the hashes as well.

So what is acutally needed is some kind of PKI, that allows the developers to sign their artifacts and maven to verify these signatures. Since the signature is done using the private key of the developer it cannot be tampered with when only the repository is compromised.

Does anyone know the state of this in maven?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:40:37+00:00Added an answer on May 15, 2026 at 9:40 pm

    Update: The checksums mentioned below are indeed only for integrity checks and are indeed stored with the artifacts so they don’t answer the question.

    Actually, one need to sign artifacts using PGP to upload them to a repository that is synced with central (the Maven GPG Plugin can help for this step). To verify signatures at download time, you are invited to use a repository manager supporting this feature. From How to Generate PGP Signatures with Maven:

    If you use a tool that downloads
    artifacts from the Central Maven
    repository, you need to make sure that
    you are making an effort to validate
    that these artifacts have a valid PGP
    signature that can be verified against
    a public key server. If you don’t
    validate signatures, then you have no
    guarantee that what you are
    downloading is the original artifact.
    One way to to verify signatures on
    artifacts is to use a repository
    manager like Nexus Professional. In
    Nexus Professional you can configure
    the procurement suite to check every
    downloaded artifact for a valid PGP
    signature and validate the signature
    against a public keyserver.

    If you are developing software using
    Maven, you should generate a PGP
    signature for your releases.
    Releasing software with valid
    signatures means that your customers
    can verify that a software artifact
    was generated by the original author
    and that it hasn’t been modified by
    anyone in transit. Most large OSS
    forges like the Apache Software
    Foundation require all projects to be
    released by a release manager whose
    key has been signed by other members
    of the organization, and if you want
    to synchronize your software artifacts
    to Maven central you are required to
    provide pgp signatures.

    See also

    • How to Generate PGP Signatures with Maven
    • Uploading Artifacts to the Central Maven Repository: DIY


    The Maven Install Plugin can be configured to create integrity checksums (MD5, SHA-1) and you can configure a checksum policy per repository (see checksumPolicy).

    Maven repository managers can/should also be able to deal with them. See for example:

    • 6.5. Managing Repositories
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just need to be pointed in the right direction - I can research
Edit: It's not a bug as Martin pointed out. I'm just crossing the daylight
The Problem I have a very nifty menu Html helper written for WebFormViewEngine views.
At my company, we have a very small (<5) team. We build internal web
Otherwise than pointed out in this post I would like to act just before
I am learning .net mvc3 and I am very confused about how user authentication
This is not really a question about addressing a specific problem but more a
Normally when adding sprites to a layer in cocos2d I'd just add a pointer
I need to pass a pointer through a scripting language which just has a
I am just trying to get my head around various pointer concepts and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.