kartikeya sharma
AI Verification · Applied Cryptography · AI Safety

Forging A Signature Without The Secret Key

Friday, September 18, 2026

CryptographyBitcoinDigital Signatures

So let's talk about digital signatures. Maybe a lot of you have heard what they are, but the key idea is I have some secret, and that secret basically identifies me, you could say. And if I create something using that secret, people are able to know, with some good level of certainty, that I was the one who created that new thing, because only I have that secret.

If we bring it back to the technical terms: you have a sender. The sender has a secret key. The sender uses the secret key to sign a message, and this produces a signature, and anyone with the sender's public key can verify that the message was signed by the sender.

There are a few properties that digital signatures preserve.

  1. Non-repudiation is a big thing. If I do an action, I'm not able to take it back. If I sign something, I can't say that I never signed this. This is pretty important in banks.
  2. Authenticity. Because only I have the secret key, you can be convinced that this message came from me.
  3. Integrity. The public key can verify that the message was signed by the sender, so it means that during the process the signature was not changed, because the secret key is tied to the public key.

Three algorithms

If we look at how to define the scheme, you can think of it in terms of three algorithms.

  • The first algorithm is called a key gen algorithm, or a key generation algorithm, which takes as input the security parameter: how many bits of security we're using in order to generate the public key and the secret key. Let's keep it abstract for now. You get a public key and a secret key.
  • Your second algorithm is a signing algorithm. This takes as input the secret key and the message, and the output is a signature.
  • Our third algorithm is called verify. Verify takes in the public key, which was generated in the key gen step, and it takes the message, which is also public, because we want to know if this message corresponds to this signature. It outputs either accept or reject.
KeyGen(1λ) → (pk, sk)    Sign(sk, m) → σ    Verify(pk, m, σ) → accept / reject

When we pass verify the public key, the message, and the output of the signing algorithm on the secret key and that message, the result is accept. This must hold true for any digital signature scheme to be correct. If you are not getting that, then you don't have a correct digital signature scheme.

Verify(pk, m, Sign(sk, m)) = accept

The more power the adversary gets, the more secure the scheme

Our goal for a digital signature scheme is that it should not be possible to forge signatures. We have many standards for what a digital signature scheme is secure against. The strongest standard, which gives the adversary the most power to do many things, is called existential unforgeability under chosen message attack (EUF-CMA).

The more power you give the adversary while still being able to defend against that very powerful adversary, the more secure your scheme is. If our scheme was only secure against an adversary that is not able to do a lot of things, then that's less secure than a scheme where an adversary is able to basically test out, or play around with, this scheme many times and still not be able to break it. That's an important intuition to understand, which carries on for all protocols.

The game

Power is usually defined with an interactive game. It's basically how much information we give the adversary and how much information we continue giving.

  1. It starts between a challenger and an adversary. The challenger calls the KeyGen algorithm and gets the secret key and public key, and he gives the adversary the public key. The adversary has the public key. The challenger keeps the secret key.
  2. The adversary creates a message, and the challenger signs that message with the secret key and sends back the signature for that message. The adversary is able to do this as many times as they want, but it has to be a different message every time.
  3. Imagine the adversary has created this whole dossier of messages and signatures. Now, to win, the adversary has to find a new message, which is not one of these, and output a valid signature for that new message. If this gives accept, then the scheme is broken. The adversary wins.

Without any interaction from the challenger, they have to create another message, which cannot be the same message that already has a signature, and they have to create a valid signature. Now, they can do this however they want. They can even guess. So if you're guessing, that's okay. You have like one in a billion chance of getting it correct, but there's a chance. It's not zero. It's very close to zero. That is what "not with more than negligible probability" means. How close to zero depends on the security parameter.

How lucky would an adversary who just guesses have to be?
chance one guess verifies
expected time to land one forgery
chance of success within the age of the universe
The adversary only gets one call to Verify in the real game. This widget is generous: it lets them keep guessing. Age of the universe taken as 1.38 × 1010 years.

Just think of it like signing checks at a bank. You do a signature and then you deposit the check or take money out. What I have the ability to do is look at that check as many times as I want, basically study your signature. And then the hundredth time I forge your signature and I go to the bank and pretend I'm you. If I'm able to do that, then I basically forged your signature, which is the whole point of the scheme. I should not be able to forge signatures.

The adversary doesn't need your secret key

I don't need to have your secret key, because if you look at this verify function, it only requires the public key, which is public knowledge, and the message-signature pair. If I can make these message-signature pairs follow the same distribution as the ones that are correct, then I win. I don't even need to know your secret key.

Notice here the requirement was not "when you create this signature, you have to use sign." I never said that. I'll just create some other function, fake sign, that takes in all my knowledge about what I learned from all of your interactions. The adversary just needs to create a valid message-signature pair. Like I said, they could even guess it. We don't care if they actually use sign.

There are two ways this could be accepted. One is the secret key was compromised. That's one case where I can always create valid signatures. The other way is: forget about the secret key. Learn about message-signature pairs enough to create your own message-signature pair.

You shouldn't take it for granted or assume that once a private key is generated, it's always safe and secure. There are ways to learn maybe bits of information about the private key, or maybe break it down into easier problems, and then solve for the private key.

A forgery against a scheme where signatures add up

Someone in the room gave an example of the second way: suppose the scheme has the property that the signature of m1 + m2 is σ1 + σ2. That's a much better explanation. If I just recap:

Step 1. We got two messages. Adversary said, "Hey, sign this message," and the challenger signed it. Adversary said, "Hey, sign this message," and the challenger signed it.

Step 2. Knowing these message-signature pairs, I tried to basically calculate: what could the formula actually be, where our signatures are created? So I try adding up the messages, and I realized that if I also add up the signatures, the sum of the signatures is the signature of the sum of the messages. This is my hypothesis.

Step 3. So now I ask for signature three with the challenger, and he gives me signature three, and I check this against what I hypothesized. And indeed it turns out that it was what I thought it was going to be.

Step 4. So now I can stop the interaction here. I can cut off my interaction with the challenger, and I can say, "Hey, I'm ready for the test." For the message, I'm going to choose m4, which, if you notice, we never chose. We chose m1, m2 and m3. Those are the only three messages we asked about. So m4 = m1 + m3, and σ4 = σ1 + σ3.

Verify(pk, m1 + m3, σ1 + σ3) → accept

So here we didn't even calculate anything ourselves. We just gave the addition of things we already had stored. And this should give accept.

If signatures add up, how many messages can you sign after asking for only a few?
You are the adversary. The challenger holds a secret key and signs with a scheme where σ(a + b) = σ(a) + σ(b). Ask for signatures on messages from 1 to 99, then sit the test.
your dossier (m → σ)
0signatures asked for
0new messages you can now sign
messages you never asked about, but can sign by adding
The test: pick a new message and forge its signature without the challenger
Ask for a few signatures first.
Messages are combined by adding distinct messages from your dossier, each at most once, exactly like m4 = m1 + m3. With n queries there are up to 2n − 1 − n new sums, so every signature you ask for roughly doubles what you can forge.

Here I'm just saying secret key and public key, but we'll look at actual digital signature protocols, with real formulas.

← Back to all articles