From b.candler at pobox.com Fri Dec 4 04:10:00 2026 From: b.candler at pobox.com (Brian Candler) Date: Thu, 3 Dec 2026 17:10:00 +0000 Subject: Agent key restrictions and wildcards Message-ID: <0f851adb-7d21-4dcb-8873-4610e46f1b9e@pobox.com> I've been trying out the agent key restrictions, added in 8.9: https://www.openssh.org/agent-restrict.html I can't work out whether it's possible to add a key to an agent with the policy: "allow this key to authenticate to any host, but not to be forwarded". It says wildcards are supported, but I tried it with 10.6p2: % ssh-add -h "*" No host keys found for destination "*" I think this capability would be useful as-is, but the end game I was thinking of was: - one key which can be used to authenticate to any host, but not forwarded, or only forwarded according to specified policy - a different key which can be forwarded, but only used for sudo authentication: perhaps using a pseudo host, like -h "*>sudo" Regards, Brian. From savely at krasovs.ky Fri Dec 4 04:32:34 2026 From: savely at krasovs.ky (Savely Krasovsky) Date: Thu, 03 Dec 2026 18:32:34 +0100 Subject: Resident SK keys lose verify-required on download In-Reply-To: <7a43c877-8b36-4544-8a39-a39a97d538bf@app.fastmail.com> References: <0bbf4a8f-dadf-4ef0-8ce9-32cd5f36f9b0@app.fastmail.com> <7f10c758-80e1-4bc7-baf2-27a87f61fa17@app.fastmail.com> <7a43c877-8b36-4544-8a39-a39a97d538bf@app.fastmail.com> Message-ID: <4ad1132e-5bcf-44d8-a067-5aa487c5f61a@slotai15m17> Hi, I'm following up on PR #701, which I submitted on 25 July: https://github.com/openssh/openssh-portable/pull/701 The patch has now been open for over four months, and I haven't yet received maintainer feedback on the proposed fix. Could someone review it for inclusion and let me know if there are any blockers? To recap, ssh-keygen -K and ssh-add -K can lose SSH_SK_USER_VERIFICATION_REQD when loading resident credentials from authenticators with built-in UV, even though the credential has credProtect=UV_REQUIRED. In my Token2 Bio3 testing, the downloaded key failed with "device not found"; restoring the flag allowed UV and signing to succeed. The patch derives the flag from the credential's credProtect policy, independently of the device's UV capability, and retains compatibility with older libfido2 versions through HAVE_FIDO_CRED_PROT. Its scope is limited to reconstructing resident-key flags; the broader discussion about PIN versus internal-UV selection can be addressed separately. The PR documents hardware tests for both UV_REQUIRED and UV_OPTIONAL_WITH_ID credentials, as well as successful signing after downloading a newly enrolled verify-required key. Token2 also confirmed the issue on this list on 11 August and offered test hardware or further verification. If changes or additional tests are needed, please let me know the specific requirements so I can address them. Otherwise, could this be picked up for an upcoming release? I'm happy to rebase or resend the patch in the preferred format. Best regards, Savely Krasovsky On 2026-08-04T04:23:01+02:00, openssh-unix-dev wrote: > Humbly asking someone to review: I personally think this change is > straightforward, and this check is just unnecessary. I also updated the > PR description to address the questions. Hopefully, it's clear what I > am doing now. > > ??, 25.07.2026 ? 21:20 Savely Krasovsky ?????(?): >> To clarify, in my case this does not reach the PIN fallback. With flags >> 0x21, OpenSSH fails with device not found, apparently because it probes >> for the UV_REQUIRED credential without requesting UV. Changing the same >> key to 0x25 makes OpenSSH find the authenticator, perform UV, and sign >> successfully. >> >> ??, 25.07.2026 ? 20:59 Savely Krasovsky via openssh-unix-dev ?????(?): >>> Yes, UV_REQUIRED is enforced by both Token2 and YubiKey. The issue is >>> not enforcement but that losing the OpenSSH UV flag prevents built-in >>> UV from being explicitly requested, causing failure or PIN fallback. >>> Manually changing the downloaded key flags from 0x21 to 0x25 fixes it. >>> >>> I wrote a workaround for this a year ago: >>> https://github.com/savely-krasovsky/ssh-sk-rk-patcher. However, >>> installing it on every new machine is not convenient as you can >>> imagine, and ssh-add -K has the same problem but keeps the >>> reconstructed key only in memory. >>> >>> ??, 25.07.2026 ? 20:50 Jan Schermer ?????(?): >>>> Isn't this enforced by the Yubikey when used for signing? If not, then >>>> this looks like a Yubikey vulnerability or incorrect generation in the >>>> first place. Or is it just cosmetic? >>>> >>>> Jan >>>> >>>> >>>>> On 25. 7. 2026, at 20:40, Savely Krasovsky via openssh-unix-dev wrote: >>>>> >>>>> Hi, >>>>> >>>>> Resident credentials created with verify-required may lose the >>>>> SSH_SK_USER_VERIFICATION_REQD flag when downloaded using ssh-keygen -K >>>>> or ssh-add -K from authenticators with built-in UV. >>>>> >>>>> The credential retains FIDO_CRED_PROT_UV_REQUIRED, but the downloaded >>>>> OpenSSH key gets flags 0x21 instead of 0x25. >>>>> >>>>> I have opened a small patch with hardware validation here: >>>>> >>>>> https://github.com/openssh/openssh-portable/pull/701 >>>>> >>>>> I used Token2 Bio3 to verify, but this also an issue on YubiKey Bio, >>>>> but I don't have it on hands rn. >>>>> >>>>> Thanks, >>>>> Savely Krasovsky >>>>> _______________________________________________ >>>>> openssh-unix-dev mailing list >>>>> openssh-unix-dev at mindrot.org >>>>> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >>> >>> -- >>> Best regards, >>> Savely Krasovsky >>> _______________________________________________ >>> openssh-unix-dev mailing list >>> openssh-unix-dev at mindrot.org >>> https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev >> >> -- >> Best regards, >> Savely Krasovsky > > -- > Best regards, > Savely Krasovsky > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev From naddy at mips.inka.de Fri Dec 4 06:18:28 2026 From: naddy at mips.inka.de (Christian Weisgerber) Date: Thu, 3 Dec 2026 20:18:28 +0100 Subject: Resident SK keys lose verify-required on download In-Reply-To: <4ad1132e-5bcf-44d8-a067-5aa487c5f61a@slotai15m17> References: <0bbf4a8f-dadf-4ef0-8ce9-32cd5f36f9b0@app.fastmail.com> <7f10c758-80e1-4bc7-baf2-27a87f61fa17@app.fastmail.com> <7a43c877-8b36-4544-8a39-a39a97d538bf@app.fastmail.com> <4ad1132e-5bcf-44d8-a067-5aa487c5f61a@slotai15m17> Message-ID: Savely Krasovsky via openssh-unix-dev: > I'm following up on PR #701, which I submitted on 25 July: > https://github.com/openssh/openssh-portable/pull/701 > > The patch has now been open for over four months, and I haven't yet received maintainer feedback on the proposed fix. It was committed upstream on 2026-09-15 and is already included in OpenSSH 10.6. https://github.com/openssh/openssh-portable/commit/e1d1c95160f75e50890fad446aa2f89216037a9f -- Christian "naddy" Weisgerber naddy at mips.inka.de From savely at krasovs.ky Fri Dec 4 07:23:39 2026 From: savely at krasovs.ky (Savely Krasovsky) Date: Thu, 03 Dec 2026 21:23:39 +0100 Subject: Resident SK keys lose verify-required on download In-Reply-To: References: <0bbf4a8f-dadf-4ef0-8ce9-32cd5f36f9b0@app.fastmail.com> <7f10c758-80e1-4bc7-baf2-27a87f61fa17@app.fastmail.com> <7a43c877-8b36-4544-8a39-a39a97d538bf@app.fastmail.com> <4ad1132e-5bcf-44d8-a067-5aa487c5f61a@slotai15m17> Message-ID: <042edb68-fa31-4bbb-a70f-70d8fdd6ef0d@app.fastmail.com> Oh got it, I expected it to be somehow closed/merged on GitHub. Thank you! ??, 03.12.2026 ? 20:18 Christian Weisgerber ?????(?): > Savely Krasovsky via openssh-unix-dev: > >> I'm following up on PR #701, which I submitted on 25 July: >> https://github.com/openssh/openssh-portable/pull/701 >> >> The patch has now been open for over four months, and I haven't yet received maintainer feedback on the proposed fix. > > It was committed upstream on 2026-09-15 and is already included in > OpenSSH 10.6. > > https://github.com/openssh/openssh-portable/commit/e1d1c95160f75e50890fad446aa2f89216037a9f > > -- > Christian "naddy" Weisgerber naddy at mips.inka.de -- Best regards, Savely Krasovsky From cpatton at cloudflare.com Fri Dec 4 09:23:24 2026 From: cpatton at cloudflare.com (Christopher Patton) Date: Thu, 3 Dec 2026 14:23:24 -0800 Subject: Support for ssh-mldsa87-p384 Message-ID: Hi all, In response to yesterday's CISA joint statement [1], our organization is moving as quickly as possible to upgrade our OpenSSH deployments to support ML-DSA. Today our engineers authenticate using classical keys stored on hardware tokens (YubiKeys). While we wait for ML-DSA-capable hardware tokens to become widely available, we plan to sign with ML-DSA keys in software (in the SSH agent) while continuing to use the existing hardware tokens for defense in depth. (We also want to minimize changes to the user experience in the interim.) That means we need a hybrid signature algorithm for SSH authentication. We must support two YubiKey firmware versions: - 5.4, which implements ECDSA P-384 - 5.7, which implements Ed25519 and ECDSA P-384 Fortunately, the composite signatures draft defines hybrids for both [2]. However, OpenSSH (as of 10.6p2) currently supports only ssh-mldsa44-ed25519, which covers 5.7 but not the older 5.4 generation. For that we'll need a p384 hybrid. The draft currently specifies ssh-mldsa87-p384. We're agnostic about the ML-DSA security level; our goal is to maximize compatibility, and we're not concerned about the performance cost of larger signatures. In any case, it looks like YubiKeys will support ML-DSA [3]. I've started working on a PR to add support for ssh-mldsa87-p384. I'll update the thread when it's ready for review. We wanted to get the conversation going in the meantime, in case anyone has thought about this angle and has a better idea. Best, Chris Patton and June Slater (Cloudflare) [1] https://www.cisa.gov/news-events/news/joint-statement-recent-advances-cryptographic-and-cybersecurity-capabilities [2] https://datatracker.ietf.org/doc/draft-ietf-sshm-composite-sigs/ [3] https://developers.yubico.com/yubikey-manager/Release_Notes.html From naddy at mips.inka.de Fri Dec 4 11:47:25 2026 From: naddy at mips.inka.de (Christian Weisgerber) Date: Fri, 4 Dec 2026 01:47:25 +0100 Subject: Support for ssh-mldsa87-p384 In-Reply-To: References: Message-ID: Christopher Patton via openssh-unix-dev: > I've started working on a PR to add support for ssh-mldsa87-p384. I don't know what the plans are for integrating this, but Damien Miller already has an implementation ready: "Implement ssh-mldsa87-p384 and certificate format" https://github.com/djmdjm/openssh-portable-wip/pull/14 -- Christian "naddy" Weisgerber naddy at mips.inka.de From cpatton at cloudflare.com Fri Dec 4 12:18:32 2026 From: cpatton at cloudflare.com (Christopher Patton) Date: Thu, 3 Dec 2026 17:18:32 -0800 Subject: openssh-unix-dev Digest, Vol 284, Issue 3 In-Reply-To: References: Message-ID: Thanks Christian, I missed that. That's fantastic news! (I'm new to this list and still need to figure out where everything is. I appreciate the pointer!) Best, Chris P. On Thu, Dec 3, 2026 at 5:00?PM wrote: > Send openssh-unix-dev mailing list submissions to > openssh-unix-dev at mindrot.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev > or, via email, send a message with subject or body 'help' to > openssh-unix-dev-request at mindrot.org > > You can reach the person managing the list at > openssh-unix-dev-owner at mindrot.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of openssh-unix-dev digest..." > > > Today's Topics: > > 1. Re: Support for ssh-mldsa87-p384 (Christian Weisgerber) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 4 Dec 2026 01:47:25 +0100 > From: Christian Weisgerber > To: openssh-unix-dev at mindrot.org > Cc: Christopher Patton > Subject: Re: Support for ssh-mldsa87-p384 > Message-ID: > Content-Type: text/plain; charset=us-ascii > > Christopher Patton via openssh-unix-dev: > > > I've started working on a PR to add support for ssh-mldsa87-p384. > > I don't know what the plans are for integrating this, but Damien Miller > already has an implementation ready: > > "Implement ssh-mldsa87-p384 and certificate format" > https://github.com/djmdjm/openssh-portable-wip/pull/14 > > -- > Christian "naddy" Weisgerber naddy at mips.inka.de > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev > > > ------------------------------ > > End of openssh-unix-dev Digest, Vol 284, Issue 3 > ************************************************ > From zzq1015 at gmail.com Fri Dec 4 13:36:58 2026 From: zzq1015 at gmail.com (zzq1015) Date: Thu, 3 Dec 2026 21:36:58 -0500 Subject: Post Quantum (pq.html) Page Update Message-ID: Hi, On the https://www.openssh.org/pq.html page -> the FAQ -> "I received a warning from ssh that directed me to this page. What should I do?" section, the links should be updated: mlkem768x25519-sha256 -> https://datatracker.ietf.org/doc/rfc10042/ sntrup761x25519-sha512 -> https://datatracker.ietf.org/doc/rfc9941/ "What about signature algorithms? You said they were at risk too" section: ssh-mldsa44-ed25519 is supported since OpenSSH v10.6, please mention it. Best regards, Sam