Just strip the signature before comparing the rebuilt artifacts?
Just strip the signature before comparing the rebuilt artifacts?
Posted Mar 12, 2025 3:37 UTC (Wed) by dbnichol (subscriber, #39622)In reply to: Just strip the signature before comparing the rebuilt artifacts? by Foxboron
Parent article: Hash-based module integrity checking
      Posted Mar 12, 2025 10:44 UTC (Wed)
                               by bluca (subscriber, #118303)
                              [Link] 
       
Tools like diffoscope already deep dive into binaries being inspected, it shouldn't be hard to make them ignore difference in signatures. There is no point whatsoever in comparing signature data when comparing binaries anyway, it's completely pointless and doesn't provide any useful information or data. In fact, being forced to do so downgrades security of the target systems, as you are no longer able to, for example, use ephemeral keys for kernel modules, which is much better and safer (generate key at beginning of the build, throw it away at the end, no way for attackers to use it). 
     
    Just strip the signature before comparing the rebuilt artifacts?
      
 
           