Questions tagged [code-signing]
Code Signing is the process of putting a signature on executables and patches to prove it is genuine, and to prevent attackers from injecting malicious code into end-user's systems.
177
questions
1
vote
1
answer
134
views
Why does AWS strongly recommend a non-self-signed, code-signing certificate?
I am developing a hardware device that utilizes AWS IoT OTA via FreeRTOS. On this AWS web page, it says
We recommend that you purchase a code-signing certificate from a
company with a good ...
0
votes
1
answer
113
views
Should my executable check that it has been signed with my certificate
We distribute a Windows application. The application is code signed with a certificate from a proper/trusted CA. This provides some guarantee that the application came from us (checked by the OS).
We ...
2
votes
1
answer
431
views
Why can an expired certificate be used to sign a JAR file?
How does a timestamp prevent use of a leaked expired certificate to sign a malignant executable?
If it is supposedly fine to share or leak expired certificates then why is it safe to allow use of such ...
0
votes
1
answer
96
views
Validate server-side code using hash?
If you have a client-side script (e.g client.py) communicating with a server-side script (e.g server.py). Using SSL certificates the identity of the server is automatically verified.
But how do you ...
1
vote
0
answers
196
views
Do code signing certificates build reputation only for Microsoft, and is reputation maintained across releases?
I have a Windows executable file that has been code signed with a certificate from a Certificate Authority. The CA is listed in the official Microsoft Trusted Root Program list of participants. The ...
0
votes
1
answer
125
views
How to provide signature for a thin client app?
If I have a Java thin client app that connects to a server, and I want to protect my client from a malicious use, so I want to implement a sort of signature.
Now the struggle is, if I want to sign the ...
0
votes
1
answer
394
views
What does the OID value in my CSR mean?
I am applying for a new code signing certificate and I specified to the CA I need a certificate that will be time stamped such that any assembly signed during the valid date range will still execute ...
0
votes
1
answer
149
views
How to Store Signed Source Code + Encrypted HASH +Code Signing Cert
I have been tasked with designing a solution for signing source code. I have not found much on whether or not there is a standard for storing the signed code and it's hash and code signing cert.
As I ...
0
votes
2
answers
542
views
How can code signing posibly be secure on Windows when signed executables act on unsigned input?
As a security measure, my Windows-based work computer has been configured to deny any application that hasn't been signed with a valid certificate; my system will run a signed executable from DropBox'...
0
votes
1
answer
115
views
How to create, use and backup android signing keys without trusting the computer?
I did a lot of research on how to securely create, use and backup android signing keys (when using Google Play Signing is not an option). The best option seams to be a Yubikey or a Nitrokey HSM 2 and ...
1
vote
2
answers
479
views
Does verifying a code signature require making a network connection?
Does Windows 11 need to make a network connection to verify a code signature for a .exe or .dll file?
1
vote
0
answers
284
views
Windows CSP for remote signing
I have a system (lets call it signer) that has private keys for doing Authenticode code signing. I have bunch of build systems that want to sign generated build artifacts. Obviously I can't use ...
2
votes
1
answer
453
views
Validating web app source code integrity
I am interested if it could be possible to validate source code integrity for web apps somehow.
For example:
Developer builds app and sign source code with his private key. Both signature and public ...
1
vote
1
answer
314
views
How does npm’s ECDSA signing system improve security?
I have not been able to find a single page that actually explains how npm’s
ECDSA signing system works.
The closest I could find is the official documentation, but as far as I can
tell from that ...
1
vote
1
answer
123
views
How to deal with targeted attacks from publisher when verifying the integrity of native applications and validating their source code?
I am trying to reason about how native apps can avoid the problems web apps have in dealing with the "Browser Cryptography Chicken and Egg" problem, which has been discussed numerous times ...
2
votes
0
answers
986
views
Can't sign commit with yubikey, GPG missing something
I don't know much about how yubikeys work, but I'm trying to sign a commit with one of them and I don't even know how to debug the problem. I got:
gpg --list-keys
/home/lz/.gnupg/pubring.kbx
----------...
1
vote
1
answer
540
views
Interaction of a Code Signature and a Timestamp token from a TSA
I'm currently in the process of writing a program that:
Reads a binary file (a C++ program) and creates a SHA256 hash of the data (like a checksum)
Use this calculated hash and a self signed CA ...
1
vote
1
answer
873
views
How do I compare a signed .exe file with the unsigned version of the same .exe file?
I have had some binary executable files (.exe) for Windows signed, I have checked the signature of the signed files, but I would also like to check that the file that I sent for signing is indeed ...
20
votes
4
answers
5k
views
Is signing a file better than issuing a checksum, and does it render a separate checksum useless?
Alternatively, the question could be asked: Does issuing a checksum for a file we sign anyways just duplicate work?
Use case: Firmware sent to an IoT device. We sign it, and form a separate checksum ...
10
votes
1
answer
2k
views
How do GPG smart card devices handle large GPG operations?
How do GPG smart card devices (such as a Yubikey) handle large GPG operations? Such as signing binary programs.
My first 2 pet theories are:
There's some way to chunk up GPG operations or use some ...
0
votes
1
answer
243
views
Are .NET runtime really not signed?
I'm doing a manual install on Linux of the .NET runtime which can be downloaded from dotnet.microsoft.com.
MS do provide a SHA512 checksum of the file on the site, but that can't be use to verify the ...
1
vote
2
answers
1k
views
TPM Endorsement Key usage in secure and trusted boot
Taking into account a Root of Trust in a device using a TPM.
My understanding is that the bootloader, firmware, operating system, applications etc. are all verified on startup by validating signatures ...
6
votes
1
answer
3k
views
How can a .exe be modified and still keep a valid digital signature?
When a Windows .exe installer is code-signed, I thought that modifying a single byte (thus changing its SHA256 hash) would make the digital signature invalid, but surprisingly, this is not true.
...
3
votes
1
answer
746
views
Secure boot after an OTA update confusion
My understanding is that secure boot works by verifying each stage in the boot process before proceeding. So first, UEFI or booting firmware will validate the signature of the bootloader, then kernel, ...
0
votes
0
answers
147
views
double hashing for code signing and verification
I have environmental constraints where the cyber and safety functions are segregated such that safety operations are handled by one unit and cyber operations such as firewall, HIDS, secure storage etc....
1
vote
1
answer
431
views
Why does Microsoft SmartScreen require OV certificates to be signed by a trusted CA?
Signing your applications with an OV code signing certificate enables them to build reputation together in Microsoft SmartScreen, rather than each binary building reputation separately. This allows ...
1
vote
1
answer
340
views
Sharing Yubikey via SSH
I have a MacBook which has a Yubikey. I usually don't use my MacBook for any development. I use a remote Linux server. I would like to sign my commits with Yubikey instead of a gpg key.
Can I share my ...
1
vote
1
answer
761
views
Signing Binaries in CI/CD
I've been considering how continuous integration/delivery environments handle code signing.
If I maintain some open source project which uses a CD environment to build binaries to ship to users, I may ...
1
vote
0
answers
182
views
How to stop 3rd party libraries from being reported as malicious, if they were part of malicious programs in the past?
Some are standard user space dll’s and another one is actually a windows driver. The libraries alone are not dangerous and are pure utilities but they can be used by bad guys, like most software tools....
1
vote
2
answers
225
views
Designing an updater with certificate renewal in mind
A program A downloads signed executables and other signed configuration files. Configuration files have a signature appended at the end. To verify their integrity and creator, it uses the public key ...
1
vote
1
answer
380
views
Software signing : multiple certificates
I'm quite new to the cryptography field, and I'm trying to understand a few things:
I used binwalk on Linux to analyse Minecraft.msi, and I found multiple certificates in the .msi See below:
I'm ...
1
vote
1
answer
4k
views
How to update certificates/CRL on Windows 7 systems that are without support contracts?
A quality answer to this question mentions:
"System is regularly updated with latest patch specifically certificate/CRL from trusted source such as Microsoft."
How does one update ...
0
votes
1
answer
828
views
If a file is digitally signed, is posting a hash very useful for security purposes?
In this question I asked about how to handle situations when SHA-256 hashes are not available for a file downloaded from the internet that contains executable code. Another community member ...
0
votes
1
answer
149
views
CSP DLLs still needed to be signed?
I'm developing a custom CSP and I want to use it from Adobe Reader but it is not very clear to me if it still needs to be signed because here there is a note:
"Starting with Windows 8, it is no ...
3
votes
1
answer
2k
views
What's the difference between an executable signed with a Windows Digital Signature and one signed with PGP?
I'm trying to figure out how to establish trust in Windows executables that I download from the internet.
Some software that I download, such as KeepassXC, has a Windows Digital Signature, but they ...
4
votes
2
answers
893
views
Why should I go to SHA512withRSA signature for my Android apps?
I have an Android 11 device and many of my apps and system apps use MD5withRSA or SHA1withRSA as signature algorithm by default.
Why should I take my apps SHA256withRSA or SHA512withRSA? Are there any ...
0
votes
1
answer
551
views
Spoof publisher info on Windows applications
Let me start by acknowledging that I have absolutely no experience with Windows development and this is purely for academic purposes. I apologize for incorrect terminology and welcome corrections or ...
1
vote
0
answers
314
views
Is it ok to store my Android app keystore password in a text file on my disk?
I am reading on how to sign and publish my flutter app on android.
When reading through the official docs, they suggest to make a configuration file where I put my password to the keystore in plain ...
1
vote
0
answers
109
views
Standard for verifying certificates that signed code
When one verifies a certificate that came alongside a signature for some sort of code, is there a standard that specifies what shall be verified?
For example, if I'm to verify a certificate that came ...
0
votes
0
answers
118
views
Switching CSC certificate issuer and SmartScreen
We have most of our SSL certificates hosted at GoDaddy but have Standard Code signing certificate from GlobalSign, we would like to switch to GoDaddy CSC since our CSC from GlobalSign is expiring in 3 ...
1
vote
1
answer
139
views
Which practices should i use while generating SMS codes for auth on my project?
Let's imagine that we have an SMS verification auth, and using random 4-digit codes,
i.e. 1234, 5925, 1342 and etc.
I'm using this random inclusive algorithm on my node.js server:
function ...
4
votes
1
answer
378
views
How to validate client side safety in a Zero Knowlegde model
What is sometimes called Zero Knowledge, sometimes end to end encryption occurs when a server only processes ciphered data (at least for sensitive data) with a result where a compromise of this server ...
1
vote
2
answers
395
views
Why infamous Addtrust certificate is still not expired (same private key) for code signing?
As many of you know Addtrust certificate https://crt.sh/?id=1 expired 30 May 2020 as well as many other intermediate certs and now we have to update certs on many servers to either root cert https://...
0
votes
2
answers
710
views
How can we verify an installer's validity by checking its signature?
I'm working on some software that can be self-hosted, and it includes a component that can be downloaded and installed on end user machines (Windows only). The download comes from the self-hosted ...
11
votes
2
answers
4k
views
gpg key size of 4096 and "the future is ECC"
My boss wants to sign our binary. I need to tell him how he can create the signing key.
Most if not all sites I have seen about signing binaries suggest using GPG.
OK, so GPG per default has 2048. ...
2
votes
1
answer
14k
views
How to verify a GPG file signature on Linux and Windows without connecting to the Internet?
Can you please hint me to the steps I need to verify a file's signature (without connecting to the Internet) on command line using GnuPG, when I have the required files ready:
-installation file (eg ...
0
votes
1
answer
379
views
File authentifications via PGP versus via unique file hashes
Many files that are available for download (eg in github) come along with "asc" signature files attached, or with a sha256 file hash. Can someone please explain difference of PGP signatures vs file ...
2
votes
0
answers
148
views
Create signed release binaries and distribute with custom repository (debian)
I have been tasked to create a custom repository with signed binaries for download. Our CEO explicitly mentioned that he wants the binary signed by himself and his business parther.
I set up a ...
3
votes
1
answer
938
views
Why does Windows consider a certificate valid even after its expiration time?
I downloaded Google's Cloud SDK installer today, and upon checking the certificate to validate it, I noticed something strange: the expiration date of the certificate appears to be December 22nd 2019 -...
1
vote
1
answer
595
views
Why does productsign use SHA1 instead of SHA256 to sign the pkg?
I have an application which is packed into a pkg file using productbuild and then is signed using productsign. However when I run pkgutil --check-signature only the SHA1 signature is shown. I also ...