I'm in the works of purchasing authenticode certs from Digicert for an open source Electron project. However I'm concerned with how Electron is built if my certificates will remain safe. From what I can see electron-builder, code signing is only done to the executable files like Electron.exe
. What about the ASAR archive? Technicially couldn't someone maliciously swap out the asar archive, rename the executable, and then redistribute the newly formed application with my certificates attached?
How would one go about preventing something like that?