Confusing diffie-hellman-group-exchange-sha256 recommendation/output

オープン
#334 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 17 日以内に返信

まだ誰も着手していません。

  • #390 @hakarrr による — マージされずにクローズ

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
python
領域
security

調査の方向性

Start by tracing how the audit output reports the negotiated group exchange modulus and how the OpenSSH recommendation is generated; the issue gives no file or test names. Compare the wording for a server with hardened moduli against the recommendation threshold, then add or update a regression test that demonstrates the confusing output and confirms the clarified recommendation.

索引モデルが issue の本文から書いたものです。

説明

I see this in current (git master, 5ddd8cca5bb45dba4ebf313f437759def3859f27) ssh-audit output

[...]
# key exchange algorithms
[...]
(kex) diffie-hellman-group-exchange-sha256 (3072-bit) -- [warn] does not provide protection against post-quantum attacks
                                                      `- [info] available since OpenSSH 4.4
                                                      `- [info] OpenSSH's GEX fallback mechanism was triggered during testing. Very old SSH clients will still be able to create connections using a 2048-bit modulus, though modern clients will use 3072. This can only be disabled by recompiling the code (see https://github.com/openssh/openssh-portable/blob/V_9_4/dh.c#L477).
[...]
# algorithm recommendations (for OpenSSH 9.9)
(rec) !diffie-hellman-group-exchange-sha256 -- kex algorithm to change (increase modulus size to 3072 bits or larger) 

This is in a setup that has the moduli hardenings from https://www.sshaudit.com/hardening_guides.html already made ($5 >= 3071...).

What I find curious is that it first seems to say a 3072-bit diffie-hellman-group-exchange-sha256 is already in use, and then recommends to increase its modulus size to >= 3072.

Removing diffie-hellman-group-exchange-sha256 altogether gets rid of the warning, but it doesn't seem that's what's being recommended.

Could this be clarified somehow?

主要言語
Python
スター
4.3k
フォーク
233
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

jtesta/ssh-audit のほかの issue

jtesta/ssh-audit の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。