From 3a90ce4d3acd7d1d5c26b2b26e5653f9cd2e3b19 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Thu, 3 Dec 2026 23:24:57 +0100 Subject: [PATCH 01/12] guides/harden_ssh: Add client-side PQ enforcement and implementation notes - Section 6: Configure client to refuse non-PQ servers - Implementation notes from live hardening on Arch Linux - Clarify WarnWeakCrypto is client-only - Note HostKeyAlgorithms preference vs RSA stopgap - Update description to reflect client enforcement --- ...ssh_after_the_nsa_post_quantum_advisory.md | 93 ++++++++++++++++++- 1 file changed, 91 insertions(+), 2 deletions(-) diff --git a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md index d8430e6..d1b1784 100644 --- a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md +++ b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md @@ -3,7 +3,8 @@ type: Guide title: Harden SSH after the NSA post-quantum advisory description: Moving SSH logins and an SSH server off 256-bit elliptic curves after the NSA's December 2026 advisory, with ML-DSA keys where the server accepts them, RSA where it does not, one key pair - per service, and an sshd drop-in that refuses the rest. + per service, an sshd drop-in that refuses the rest, and client-side enforcement of post-quantum + key exchange. tags: - guide - ssh @@ -15,7 +16,8 @@ status: stable stale_after: '2027-03-03' generated: by: opencode/claude-opus-5.5 - at: '2026-12-03T17:30:00+01:00' + at: '2026-12-03T23:30:00+01:00' + note: Updated with client-side enforcement guidance and implementation notes from live hardening session. sources: - id: filippo resource: https://words.filippo.io/nsa-advisory/ @@ -311,3 +313,90 @@ SSH certificates signed by a CA need the CA key rotated as well. OpenSSH accepts The one thing this guide cannot settle is when each service adds ML-DSA. Re-running the `server-sig-algs` check from step 3 is how an RSA key gets replaced once it does. + +## Implementation notes {#implementation-notes} + +**On Arch Linux, the drop-in filename must come before `99-archlinux.conf`.** The file +`/etc/ssh/sshd_config.d/50-post-quantum.conf` works; `50-pq.conf` also works. sshd uses the first +value it reads for each keyword, so a later file cannot override an earlier one[^sshd-config]. + +**The RSA host key must be at least 3072 bits.** Arch's default RSA host key is 3072 bits as of +March 2024. If yours is smaller, regenerate it: + +```bash +sudo ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N "" +sudo systemctl restart sshd +``` + +**`WarnWeakCrypto` is a client option, not a server option.** It belongs in `~/.ssh/config`, not +in `sshd_config.d`. The server's refusal of weak algorithms is enforced by the algorithm lists +themselves. + +**Host key order in `known_hosts` affects which one the client chooses.** When a server offers +multiple host keys, the client picks the first match from its `HostKeyAlgorithms` list that it +has seen before. Running `ssh-keyscan` adds all offered keys; removing old Ed25519 entries with +`ssh-keygen -R` and re-adding only the ML-DSA key ensures the client uses it. + +**Measured on 3 December 2026 on Arch Linux:** +- OpenSSH 10.6p2 with ML-DSA support +- Default host keys: Ed25519, ML-DSA-44/Ed25519, ECDSA, RSA (3072 bits) +- Default `KexAlgorithms` already prefers `mlkem768x25519-sha256` +- `PasswordAuthentication` defaults to `yes`; the drop-in sets it to `no` + +## 6\. Enforce post-quantum on outbound connections {#6-enforce-post-quantum-on-outbound-connections} + +After hardening the server, configure the client to refuse connections to servers that do not +support post-quantum key exchange. This protects against harvest-now-decrypt-later attacks on +your outbound traffic. + +Add a global default to `~/.ssh/config`: + +```text +# Post-quantum preferences +# RSA allowed as NSA stopgap during migration period +Host * + HostKeyAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 + PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 + KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 + WarnWeakCrypto yes +``` + +What each line does: + +- **`KexAlgorithms`** restricts key exchange to post-quantum hybrids only. A server without + `mlkem768x25519-sha256` or `sntrup761x25519-sha512` cannot connect. This is the critical + setting for protecting against recorded traffic. +- **`HostKeyAlgorithms`** prefers ML-DSA but allows RSA 4096 as a stopgap. The NSA names RSA + 3072+ as acceptable for signatures during migration[^filippo]. Remove `rsa-sha2-*` once your + servers have ML-DSA host keys. +- **`PubkeyAcceptedAlgorithms`** prefers ML-DSA for login keys but allows RSA. Your client + keys can be ML-DSA or RSA 4096; Ed25519 and ECDSA are refused. +- **`WarnWeakCrypto yes`** warns if a server offers weak algorithms, even if the connection + succeeds. + +**Stricter mode:** To refuse any server without ML-DSA host keys (not recommended during +migration): + +```text +Host * + HostKeyAlgorithms ssh-mldsa44-ed25519 + PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 + KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 +``` + +This will fail against services like GitHub that support PQ key exchange but not yet ML-DSA +host keys. Use per-host overrides for such services: + +```text +Host github.com + HostKeyAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 +``` + +Verify the configuration with a verbose connection: + +```bash +ssh -v example.com exit 2>&1 | grep -E 'kex: algorithm|host key algorithm' +``` + +The output should show `kex: algorithm: mlkem768x25519-sha256` and ideally +`kex: host key algorithm: ssh-mldsa44-ed25519`. From ecfe20ad7c5fbd08a8a12d38e6871729b0a9e95f Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:01:42 +0100 Subject: [PATCH 02/12] Rewrite guide: Harden SSH after the NSA post-quantum advisory, as ten ordered steps --- ...ssh_after_the_nsa_post_quantum_advisory.md | 542 +++++++++++------- docs/guides/index.md | 2 +- docs/log.md | 4 + 3 files changed, 347 insertions(+), 201 deletions(-) diff --git a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md index d1b1784..d6d9d2c 100644 --- a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md +++ b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md @@ -1,10 +1,9 @@ --- type: Guide title: Harden SSH after the NSA post-quantum advisory -description: Moving SSH logins and an SSH server off 256-bit elliptic curves after the NSA's December - 2026 advisory, with ML-DSA keys where the server accepts them, RSA where it does not, one key pair - per service, an sshd drop-in that refuses the rest, and client-side enforcement of post-quantum - key exchange. +description: Moving one Linux machine's SSH keys, known hosts, client and server off 256-bit + elliptic curves after the NSA's December 2026 advisory, in an order that never locks the machine + out of a server, written to be followed step by step by a person or an agent. tags: - guide - ssh @@ -12,12 +11,12 @@ tags: - post-quantum - security - linux +- agents status: stable stale_after: '2027-03-03' generated: by: opencode/claude-opus-5.5 - at: '2026-12-03T23:30:00+01:00' - note: Updated with client-side enforcement guidance and implementation notes from live hardening session. + at: '2026-12-04T10:00:00+01:00' sources: - id: filippo resource: https://words.filippo.io/nsa-advisory/ @@ -47,10 +46,18 @@ sources: resource: https://man.archlinux.org/man/ssh_config.5 title: ssh_config(5) last_modified: '2026-12-03' +- id: ssh-keygen-man + resource: https://man.archlinux.org/man/ssh-keygen.1 + title: ssh-keygen(1) + last_modified: '2026-12-03' - id: github-keygen resource: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent title: Generating a new SSH key and adding it to the ssh-agent - GitHub Docs last_modified: '2026-12-03' +- id: github-fingerprints + resource: https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints + title: GitHub's SSH key fingerprints - GitHub Docs + last_modified: '2026-12-04' --- On 1 December 2026 the NSA advised an immediate move to post-quantum cryptography, prompted by @@ -59,82 +66,187 @@ reading of the advisory is that 256-bit elliptic curves are likely broken or muc assumed: P-256, X25519 and Ed25519 included[^filippo]. RSA and P-384 are named as stopgaps, and ML-KEM and ML-DSA as the destination. -For SSH that splits into two problems of different urgency. Key exchange decides whether recorded -traffic can be decrypted later. Signatures decide whether somebody can log in as you, or pose as -your server. This guide covers both, on the client and on the server. +For SSH that touches four things on one machine: the key pairs it logs in with, the keys it +accepts from others in `authorized_keys`, the server keys it remembers in `known_hosts`, and the +algorithms its client and server agree to. **The order of the steps is the point of this guide.** +Each step that removes something comes after the step that puts its replacement in place, so no +server stops accepting this machine part-way through. Commands are as of OpenSSH 10.6p2 on Arch Linux, measured on 3 December 2026. Other distributions -differ in package names and in where host keys are generated, and the steps carry over otherwise. +differ in package names and in how host keys are generated, and the steps carry over otherwise. + +## Rules for whoever carries this out + +The guide is written so an agent can follow it with a person beside it. These rules hold for every +step, and the steps refer back to them. + +**Rule 1: a passphrase never passes through the agent's session.** The person runs every +key generation that sets a passphrase, in their own terminal. The agent prints the exact command, +asks the person to run it, and waits for the answer. An agent's shell has no terminal, so +`ssh-keygen` would hang there waiting for input that cannot arrive, and a passphrase typed into a +chat is stored in the session transcript. + +**Rule 2: every new key pair gets a passphrase, with one exception.** If the key being replaced +had no passphrase, ask the person whether the new one should have one. Only if they say no may the +agent generate it itself, non-interactively, with `-N ''`. This check needs no passphrase and +changes nothing: + +```bash +ssh-keygen -y -P '' -f ~/.ssh/ >/dev/null 2>&1 && echo "no passphrase" || echo "passphrase set" +``` + +**Rule 3: a key with a passphrase cannot be tested by the agent until it is in the agent.** With +`-o BatchMode=yes`, such a key fails with `Permission denied (publickey)` even when the server +accepted it. `ssh -v` tells the two apart: `Server accepts key` followed by a denial means the key +is right and only the passphrase was missing. Ask the person to run the test once in their own +terminal. With `AddKeysToAgent yes` in `~/.ssh/config`[^ssh-config] that also loads the key into +the agent, and the agent's later tests then work. + +**Rule 4: ask before anything that removes or overwrites.** Moving a key file, deleting an entry +from `authorized_keys` or `known_hosts`, removing a key from a forge account and reloading sshd +each get stated, with the exact command, and confirmed. Use `mv -n`, which refuses to overwrite. + +**Rule 5: write down what was done.** Keep the working list from step 1 up to date as each item is +finished. A session that is interrupted, by a reboot for instance, resumes from that list rather +than from memory. -## 1. Pick the algorithms +## Which algorithms **Key exchange: `mlkem768x25519-sha256`.** OpenSSH 10.6 offers it first by default, and it is the -hybrid the NSA now explicitly permits[^filippo]. Nothing needs choosing here beyond running a -current OpenSSH on both ends. +hybrid the NSA now explicitly permits[^filippo]. `sntrup761x25519-sha512` is the older post-quantum +hybrid and is acceptable as a second choice. -**Login and host keys: ML-DSA where the other side accepts it, RSA where it does not.** The order -of preference: +**Login and host keys: ML-DSA where the other side accepts it, RSA where it does not.** 1. **`mldsa44-ed25519`**, the composite post-quantum signature. OpenSSH 10.4 added it as an - experiment and 10.6 enabled it by default[^openssh-notes]. Dropbear and libssh do not support - it[^arch-ssh-keys]. -2. **RSA, 4096 bits.** It works against every server, and the advisory names RSA 3072 as the - acceptable floor[^filippo]. `ssh-keygen` defaults to 3072[^arch-ssh-keys]; 4096 costs a slower - login and buys margin whilst attacks improve. -3. **Not Ed25519, ECDSA P-256 or any FIDO `-sk` key on those curves.** They are what the advisory + experiment and 10.6 enabled it by default[^openssh-notes]. Its name on the wire is + `ssh-mldsa44-ed25519`. Dropbear and libssh do not support it[^arch-ssh-keys]. +2. **RSA, 4096 bits.** Every server accepts it, and the advisory names RSA 3072 as the acceptable + floor[^filippo]. `ssh-keygen` defaults to 3072[^arch-ssh-keys]; 4096 costs a slower login and + buys margin whilst attacks improve. +3. **Not Ed25519, not ECDSA, and not their FIDO `-sk` variants.** They are what the advisory excludes[^filippo]. -The composite key still contains Ed25519, and that is the point of it. Breaking the login needs -both halves broken, so a weakened Ed25519 leaves ML-DSA-44 standing. +The composite key still contains Ed25519, and that is deliberate. Forging a login needs both halves +broken, so a weakened Ed25519 leaves ML-DSA-44 standing. -## 2. Take stock +## 1. Back up and take stock + +```bash +cp -a ~/.ssh ~/.ssh.bak-$(date +%F) +mkdir -p ~/ssh-migration +``` + +The backup is what undoes a rotation done in the wrong order. `~/ssh-migration` holds the working +list from Rule 5. + +**Own key pairs.** The last field of each line is the type. Every `(ED25519)`, `(ECDSA)`, +`(ED25519-SK)` and `(ECDSA-SK)` is a key to replace, and so is any `(RSA)` whose first field, the +size, is below 3072. ```bash -ssh -V for f in ~/.ssh/*.pub; do ssh-keygen -lf "$f"; done -awk '{print $1, $3}' ~/.ssh/authorized_keys 2>/dev/null -ssh-add -l +for f in ~/.ssh/*.pub; do k="${f%.pub}"; printf '%s: ' "$k"; ssh-keygen -y -P '' -f "$k" >/dev/null 2>&1 && echo "no passphrase" || echo "passphrase set"; done +``` + +**Where each key is used.** `~/.ssh/config` says which key goes to which host: + +```bash +grep -nE '^\s*(Host|HostName|User|Port|IdentityFile)\b' ~/.ssh/config ``` -`ssh -V` has to report 10.6 or later for any of the ML-DSA steps. The `ssh-keygen -lf` lines end -in the key type, so every `(ED25519)` and `(ECDSA)` is a key to replace. `authorized_keys` is the -other direction: keys this machine accepts from elsewhere. +A key named in no `Host` block is offered to every server, and only the person knows where it is +registered. **Ask them**, and record every place: forge accounts, servers, CI deploy keys, routers. +Write the result into `~/ssh-migration/keys.md`, one line per key and place. -Back up `~/.ssh` before changing anything. A rotation done in the wrong order can leave no key -that any server accepts, and the backup is what undoes that: +**Keys this machine accepts.** `ssh-keygen -lf` prints one line per `authorized_keys` entry, ending +in the type, with the comment that usually names the client: ```bash -cp -a ~/.ssh ~/.ssh.bak-$(date +%F) +ssh-keygen -lf ~/.ssh/authorized_keys ``` -## 3. One key pair per service +**Server keys this machine remembers.** This counts the entries by type. Lines starting with +`@cert-authority` or `@revoked` shift the fields by one, so they are listed separately: -A separate key per service means a rotation touches one service. It also means a key can be the -type that service accepts, when a single shared key would have to be the type the weakest of -them accepts. That second reason is new: during this migration, services diverge. +```bash +grep -v '^@' ~/.ssh/known_hosts | awk '{print $2}' | sort | uniq -c +grep '^@' ~/.ssh/known_hosts +``` -Each service gets a `Host` block naming its key, with `IdentitiesOnly yes`: +If host names show as `|1|...`, the file is hashed. `ssh-keygen -F ` still finds a host's +entries, and `ssh-keygen -R ` still removes them[^ssh-keygen-man]. -```text -Host github.com - User git - IdentityFile ~/.ssh/github - IdentitiesOnly yes +## 2. Update OpenSSH and ask each server what it accepts -Host build-box - HostName build-box.example.org - IdentityFile ~/.ssh/build_box - IdentitiesOnly yes +```bash +sudo pacman -Syu openssh +ssh -V +``` + +The ML-DSA steps need 10.6 or later[^openssh-notes], on this machine and on every machine whose sshd +it is about to rely on for ML-DSA. + +For each server in `keys.md`, read what it accepts before generating its key. A server lists its +login key types during the handshake, before any key is sent. `-i /dev/null` offers no key, so this +logs in nowhere: + +```bash +ssh -v -o BatchMode=yes -i /dev/null -o IdentitiesOnly=yes -T @ 2>&1 | + grep -E 'remote software version|kex: algorithm|kex: host key algorithm|server-sig-algs' ``` -**`IdentitiesOnly yes` is what makes the block mean anything.** Without it, ssh also offers every -key the agent holds[^ssh-config], and the server logs you in with whichever it recognises first. -That is how a login silently lands on the wrong account. The pattern is ArchWiki's for managing -several identities[^arch-ssh-keys]. +| Line | Read it as | +| --- | --- | +| `remote software version` | the server's SSH software and version | +| `kex: algorithm` | the key exchange used; `mlkem768x25519-sha256` or `sntrup761x25519-sha512` is post-quantum | +| `kex: host key algorithm` | the host key the server presented | +| `server-sig-algs` | the login key types it accepts. If `ssh-mldsa44-ed25519` is listed, use ML-DSA for this server; if not, RSA 4096 | + +Record the decision per server in `keys.md`. A server whose key exchange is not post-quantum needs +an exception in step 10, so note that too. + +On 3 December 2026 GitHub negotiated `mlkem768x25519-sha256`, presented an `ssh-ed25519` host key +and did not list `ssh-mldsa44-ed25519`. Its web form then rejects an ML-DSA public key with "Key is +invalid. You must supply a key in OpenSSH public key format", which reads like a paste error and is +not one. GitHub's own documentation names `rsa -b 4096` as its non-Ed25519 option[^github-keygen]. + +## 3. Generate one key pair per server, beside the old one + +A separate key per server means a rotation touches one server, and lets each key be the type its +server accepts. During this migration servers diverge, so a single shared key would have to be the +weakest type any of them takes. -A second account on the same host, such as a work account on GitHub, gets its own alias: +The new key goes beside the old one under a `.new` name. The config and the old key stay as they +are until step 6, so everything up to then can be abandoned without effect. + +Apply Rule 2 for each key. With a passphrase, the person runs one of these in their own terminal: + +```bash +# the server accepts ML-DSA +ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/.new -C "$(whoami)@$(hostname)-$(date +%F)" +# it does not +ssh-keygen -t rsa -b 4096 -f ~/.ssh/.new -C "$(whoami)@$(hostname)-$(date +%F)" +``` + +Without a passphrase, and only after the person said so, the agent may add `-N ''` and run it +itself. Check the result; the size and type are in the output: + +```bash +ssh-keygen -lf ~/.ssh/.new.pub +``` + +Each key gets a `Host` block of its own in `~/.ssh/config`, with `IdentitiesOnly yes`. Without that +line, ssh also offers every key the agent holds[^ssh-config], and the server logs in with whichever +it recognises first, which is how a login lands on the wrong account. The pattern is ArchWiki's for +managing several identities[^arch-ssh-keys]: ```text +Host github.com + User git + IdentityFile ~/.ssh/github + IdentitiesOnly yes + Host github-work HostName github.com User git @@ -142,92 +254,127 @@ Host github-work IdentitiesOnly yes ``` -Repositories for that account then use `git@github-work:org/repo.git` as their remote. +A second account on the same host gets an alias, as `github-work` above. Its repositories use +`git@github-work:org/repo.git` as their remote. + +## 4. Register each new key whilst the old one still works -### Ask each server what it accepts +The old key is the only way into each server until this step is done, so it is what installs the +new one. -A server lists the login key types it accepts during the handshake, before any key is sent. It -costs nothing to read: +**On a server you log in to,** append the new public key to its `authorized_keys`, logged in with +the old key: ```bash -ssh -v -o BatchMode=yes -i /dev/null -o IdentitiesOnly=yes -T git@github.com 2>&1 | - grep -E 'kex: algorithm|server-sig-algs' +ssh -o IdentitiesOnly=yes -i ~/.ssh/ -p @ \ + 'umask 077; mkdir -p ~/.ssh; cat >> ~/.ssh/authorized_keys' < ~/.ssh/.new.pub ``` -The `kex:` line names the key exchange the connection used. `server-sig-algs` lists the login -key types. If `ssh-mldsa44-ed25519` is in it, use ML-DSA for that service; if not, RSA. +**On a forge,** the person adds `~/.ssh/.new.pub` in the account's SSH key settings, logged in +as the right account. `wl-copy < ~/.ssh/.new.pub` puts it on the clipboard under Wayland. The +old key stays registered for now. -On 3 December 2026 GitHub negotiated `mlkem768x25519-sha256` but did not list -`ssh-mldsa44-ed25519`. Its web form then rejects an ML-DSA public key with "Key is invalid. You -must supply a key in OpenSSH public key format", which reads like a paste error and is not one. -GitHub's own documentation names `rsa -b 4096` as its non-Ed25519 option[^github-keygen]. +Mark each server in `keys.md` as registered. -## 4. Rotate one key +## 5. Test each new key on its own -Generate the new key beside the old one, prove it works on its own, then swap the filenames. The -config never changes, and every step can be undone until the old key is removed from the server. +`-F /dev/null` switches the config off and `-i` names only the new key, so a success can only come +from the new key: ```bash -# ML-DSA, where the server accepts it -ssh-keygen -t mldsa44-ed25519 -f ~/.ssh/github.new -C "$(whoami)@$(hostname)-$(date +%F)" -# or RSA, where it does not -ssh-keygen -t rsa -b 4096 -f ~/.ssh/github.new -C "$(whoami)@$(hostname)-$(date +%F)" +ssh -F /dev/null -o IdentitiesOnly=yes -i ~/.ssh/.new -p @ true && echo OK +ssh -F /dev/null -o IdentitiesOnly=yes -i ~/.ssh/.new -T git@github.com ``` -Give it a passphrase. Then install the public half at the service, keeping the old key there for -now. For a GitHub account that is the SSH keys page in its settings; for a server, `ssh-copy-id`. +Mind Rule 3 for a key with a passphrase. GitHub greets the account by name, and **the name has to +be checked**: a key pasted into the wrong browser session belongs to the wrong account, and GitHub +refuses the same key on a second account. Every GitHub account's keys are public, so the agent can +check without the passphrase: + +```bash +grep -qF "$(awk '{print $2}' ~/.ssh/.new.pub)" <(curl -s https://github.com/.keys) && echo listed || echo "not listed" +``` + +Do not continue for a server whose test fails. Fix its registration and repeat this step. + +## 6. Swap the files, then remove the old keys -**Test the new key with the config switched off.** `-F /dev/null` stops the `Host` block adding -the old key, so a success can only come from the new one: +Swap under Rule 4. The config keeps naming `~/.ssh/`, which now holds the new key: ```bash -ssh -F /dev/null -i ~/.ssh/github.new -o IdentitiesOnly=yes -T git@github.com +cd ~/.ssh +mv -n .old && mv -n .pub .old.pub +mv -n .new && mv -n .new.pub .pub +ssh-add -d .old.pub +ssh -T git@github.com # or: ssh true ``` -GitHub greets the account by name. **Check that it is the right account**, which matters when -there are two: a key pasted into the wrong browser session belongs to the wrong account, and -GitHub refuses the same key on a second account. Every account's public keys are listed at -`https://github.com/.keys`, so this needs no passphrase: +Then remove the old public key from each server. On a forge, the person deletes it in the account +settings, and `https://github.com/.keys` then no longer lists it. On a server, remove its +line whilst logged in with the new key: ```bash -grep -qF "$(awk '{print $2}' ~/.ssh/github.new.pub)" <(curl -s https://github.com/.keys) && echo listed +old="$(awk '{print $2}' ~/.ssh/.old.pub)" +ssh "grep -vF '$old' ~/.ssh/authorized_keys > ~/.ssh/ak.tmp && chmod 600 ~/.ssh/ak.tmp && mv ~/.ssh/ak.tmp ~/.ssh/authorized_keys" +ssh "grep -cF '$old' ~/.ssh/authorized_keys" ``` -Then swap the files and drop the old key from the agent: +The last command prints `0` once the old key is gone. + +When every server in `keys.md` is done, delete the `.old` files. The backup from step 1 still holds +a copy. + +## 7. Clean this machine's `authorized_keys` + +This step is about clients that log in *to* this machine. It records who they are and then goes +ahead without waiting for them. + +sshd logs every successful login with the key type and fingerprint. This writes the last 90 days of +them, then every current `authorized_keys` entry, into one list: ```bash -cd ~/.ssh -mv -n github github.old && mv -n github.pub github.old.pub -mv -n github.new github && mv -n github.new.pub github.pub -ssh-add -d github.old.pub -ssh -T git@github.com +sudo journalctl -u sshd --since '-90 days' --no-pager | grep 'Accepted publickey' | + sed -E 's/.*Accepted publickey for ([^ ]+) from ([^ ]+) .*: ([A-Z0-9-]+) (SHA256:[^ ]+).*/\1 \2 \3 \4/' | + sort | uniq -c | tee ~/ssh-migration/clients.txt +ssh-keygen -lf ~/.ssh/authorized_keys | tee -a ~/ssh-migration/clients.txt ``` -Last, remove the old key at the service, check it is gone from `.keys`, and delete -`github.old*`. The backup from step 2 still holds a copy. +`clients.txt` pairs each fingerprint with its comment and, where it logged in, the address it came +from. It is the list of who has to migrate later. Each of those clients generates a new key on its +own side, as in steps 3 to 6, and hands the public half over by a route other than this SSH server, +for instance at the console. -> A test from a script or an agent, run with `-o BatchMode=yes`, reports `Permission denied` for a -> key with a passphrase even when the server accepted it. `ssh -v` tells the two apart: "Server -> accepts key" followed by a denial means the key is right and only the passphrase was missing. +Then remove every entry of a rejected type, under Rule 4. This keeps ML-DSA and RSA lines and +anything that is not a key line, such as comments: -## 5. Harden the machine's own sshd +```bash +cp -a ~/.ssh/authorized_keys ~/ssh-migration/authorized_keys.before +grep -vE '(^|[ ,"])(ssh-ed25519|ecdsa-sha2-nistp[0-9]+|sk-ssh-ed25519@openssh.com|sk-ecdsa-sha2-nistp256@openssh.com) ' \ + ~/ssh-migration/authorized_keys.before > ~/.ssh/authorized_keys +ssh-keygen -lf ~/.ssh/authorized_keys +``` + +The pattern also catches a key that follows options such as `restrict,command="..."`. RSA entries +below 3072 bits are refused by step 8 anyway, and can be removed now by hand; the first field of +`ssh-keygen -lf` is the size. -This part refuses Ed25519 and ECDSA logins, so it comes after every client that logs in here has -a new key in `authorized_keys`. Done the other way round, it locks those clients out. +A client whose key was removed is locked out from here on, by design. If `authorized_keys` is now +empty, nobody can log in over SSH with a key until a client's new key is added. + +## 8. Harden this machine's sshd ### Read the current settings ```bash -sudo sshd -T | grep -iE '^(kexalgorithms|hostkeyalgorithms|pubkeyacceptedalgorithms|hostkey|requiredrsasize|passwordauthentication|port) ' +sudo sshd -T | grep -iE '^(port|kexalgorithms|hostkeyalgorithms|pubkeyacceptedalgorithms|hostkey|requiredrsasize|passwordauthentication|warnweakcrypto) ' for f in /etc/ssh/ssh_host_*_key.pub; do ssh-keygen -lf "$f"; done -awk '{print $1, $3}' ~/.ssh/authorized_keys ``` -The defaults accept every key type, including `ssh-ed25519` and `ecdsa-sha2-nistp256`, and an RSA -key as small as 1024 bits[^sshd-config]. Arch generates four host key pairs: Ed25519, -ML-DSA-44/Ed25519, ECDSA and RSA[^arch-openssh]. +The defaults accept every key type, including `ssh-ed25519` and `ecdsa-sha2-nistp256`, and RSA keys +down to 1024 bits[^sshd-config]. Arch generates four host key pairs: Ed25519, ML-DSA-44/Ed25519, +ECDSA and RSA[^arch-openssh]. -### Write a drop-in +### Write the drop-in ```text # /etc/ssh/sshd_config.d/50-post-quantum.conf @@ -239,164 +386,159 @@ PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 RequiredRSASize 3072 PasswordAuthentication no AuthenticationMethods publickey +WarnWeakCrypto yes ``` -What each line does: - - **`KexAlgorithms`** keeps only the two post-quantum hybrids. A client without them can no longer connect, which is the intent. The server's list sets what is allowed; the client picks the order[^sshd-config]. - **`HostKey`** loads only the two host keys worth presenting, and **`HostKeyAlgorithms`** offers only their signatures. -- **`PubkeyAcceptedAlgorithms`** refuses Ed25519 and ECDSA logins. OpenSSH checks this list - before it parses the key a client sends, so a refused type never reaches the parser[^openssh-notes]. +- **`PubkeyAcceptedAlgorithms`** refuses Ed25519 and ECDSA logins. OpenSSH checks this list before + it parses the key a client sends, so a refused type never reaches the parser[^openssh-notes]. - **`RequiredRSASize 3072`** refuses RSA keys below the advisory's floor. The option can only be raised from its default of 1024[^sshd-config]. - **`PasswordAuthentication no`** and **`AuthenticationMethods publickey`** are ArchWiki's lines for forcing key authentication[^arch-openssh]. The advisory does not cover passwords; they are here because a refused key should not fall back to one. +- **`WarnWeakCrypto yes`** logs connections whose key exchange is not post-quantum. OpenSSH 10.6 + added it to sshd; before that it was a client option only[^openssh-notes]. -**The filename number matters.** sshd keeps the first value it reads for each keyword[^sshd-config], -and drop-ins are read in lexical order. `50-` comes before Arch's `99-archlinux.conf`. +**Keep the RSA lines only if the RSA host key has at least 3072 bits.** The size is the first field +of the `ssh-keygen -lf` output above. If it is smaller, drop both `rsa-sha2-*` entries and the RSA +`HostKey` line rather than present a key below the floor. -**Keep the RSA lines only if the RSA host key has at least 3072 bits.** The `ssh-keygen -lf` -loop above prints its size first. If it is smaller, drop both `rsa-sha2-*` entries and its -`HostKey` line rather than presenting a key below the floor. +**The filename number matters.** sshd keeps the first value it reads for each +keyword[^sshd-config], and drop-ins are read in lexical order, so `50-` comes before Arch's +`99-archlinux.conf`. ### Apply it with a way back in -Keep one SSH session to the machine open until the end of this section, or work at its console. -A mistake in this file then costs a revert rather than a trip to the machine. +Ask the person to keep one SSH session to this machine open, or to be at its console, until the +end of this step. A mistake in the drop-in then costs a revert rather than a trip to the machine. ```bash sudo sshd -t && sudo systemctl reload sshd ``` -`sshd -t` prints nothing for a valid configuration[^arch-openssh]. Then, from a client, open a -new connection with verbose output: +`sshd -t` prints nothing for a valid configuration[^arch-openssh]. If a client with a new key +exists, open a new connection from it: ```bash -ssh -v -p @ true 2>&1 | grep -E 'kex: algorithm|host key algorithm|Authenticated' +ssh -v -p @ true 2>&1 | grep -E 'kex: algorithm|kex: host key algorithm|Authenticated' ``` -The two lines to see are `kex: algorithm: mlkem768x25519-sha256` and `kex: host key algorithm: -ssh-mldsa44-ed25519`. A client that knew the old Ed25519 host key now warns that the host key -changed. That is expected here: remove the old entry with `ssh-keygen -R '[]:'`, -compare the new fingerprint with `ssh-keygen -lf /etc/ssh/ssh_host_mldsa44_ed25519_key.pub` run on -the server, and accept it only if they match. +Expect `kex: algorithm: mlkem768x25519-sha256` and `kex: host key algorithm: ssh-mldsa44-ed25519`. +Without such a client, check from this machine instead, which proves what the server offers: + +```bash +ssh -v -o BatchMode=yes -i /dev/null -o IdentitiesOnly=yes -p localhost 2>&1 | + grep -E 'kex: algorithm|kex: host key algorithm|server-sig-algs' +``` -Last, confirm the refusals. An old Ed25519 key from the backup and a password login should both -fail: +A client that knew this machine by its Ed25519 key warns that the host key changed. On that client, +remove the old entry, then compare the new fingerprint with the one this machine prints, and accept +only if they match: ```bash -ssh -F /dev/null -o IdentitiesOnly=yes -i ~/.ssh.bak-/id_ed25519 -p @ true -ssh -F /dev/null -o PubkeyAuthentication=no -p @ true +ssh-keygen -R '[]:' # on the client; plain for port 22 +ssh-keygen -lf /etc/ssh/ssh_host_mldsa44_ed25519_key.pub # on this machine ``` -### Leave the unused host key files where they are +Leave the unused host key files where they are. On Arch, `sshdgenkeys.service` regenerates any +missing host key at the next boot, whatever `HostKeyAlgorithms` allows[^arch-openssh], so deleting +one achieves nothing for long. The drop-in's `HostKey` lines are what stop sshd presenting it. -On Arch, `sshdgenkeys.service` regenerates any missing host key at the next boot, whatever -`HostKeyAlgorithms` allows[^arch-openssh]. Deleting `ssh_host_ed25519_key` therefore achieves -nothing for long. The drop-in's `HostKey` lines are what stop sshd presenting it. +## 9. Clean this machine's `known_hosts` -`ssh-audit`, packaged in Arch, analyses a server's or a client's configuration -automatically[^arch-openssh], and is worth running once the drop-in is in place. +Step 10 makes this machine refuse Ed25519 and ECDSA host keys. A server known only by such a key +would then present a host key type ssh has never seen, and ssh would ask to trust it or refuse, +depending on `StrictHostKeyChecking`. So for each server the replacement entry is checked first, +and the old one comes out second. -## What this does not cover +For each host in `known_hosts`, written as `` or `[]:`: -TLS, VPNs and GnuPG keys are subject to the same advisory and are not SSH. For TLS, the check is -whether a connection negotiates `X25519MLKEM768`; `openssl s_client -connect :443 -brief` -prints the negotiated group. A VPN's key exchange is set by its server, so a client can only ask. +1. Fetch the host keys it offers that step 10 accepts, and print their fingerprints without + writing to `known_hosts`: -SSH certificates signed by a CA need the CA key rotated as well. OpenSSH accepts -`ssh-mldsa44-ed25519` as a CA signature from 10.6p2[^openssh-notes]. + ```bash + ssh-keyscan -p -t ssh-mldsa44-ed25519,rsa 2>/dev/null | tee ~/ssh-migration/hostkeys | ssh-keygen -lf - + ``` -The one thing this guide cannot settle is when each service adds ML-DSA. Re-running the -`server-sig-algs` check from step 3 is how an RSA key gets replaced once it does. +2. **Verify each fingerprint by a second route.** For your own machines, run + `ssh-keygen -lf /etc/ssh/ssh_host_*_key.pub` on the server. For GitHub, compare with its + published fingerprints[^github-fingerprints]. An RSA key below 3072 bits does not count. + `ssh-keyscan` alone proves nothing, because it asks the very server whose identity is in + question. +3. Only after a match, replace the entries, under Rule 4: -## Implementation notes {#implementation-notes} + ```bash + ssh-keygen -R # or '[]:' + cat ~/ssh-migration/hostkeys >> ~/.ssh/known_hosts + ``` -**On Arch Linux, the drop-in filename must come before `99-archlinux.conf`.** The file -`/etc/ssh/sshd_config.d/50-post-quantum.conf` works; `50-pq.conf` also works. sshd uses the first -value it reads for each keyword, so a later file cannot override an earlier one[^sshd-config]. +On 4 December 2026 GitHub published Ed25519, ECDSA and RSA host keys and no ML-DSA one, so its entry +becomes the RSA key alone. A host with neither an ML-DSA host key nor an RSA one of at least 3072 +bits gets an exception in step 10. -**The RSA host key must be at least 3072 bits.** Arch's default RSA host key is 3072 bits as of -March 2024. If yours is smaller, regenerate it: +Check that no rejected type is left: ```bash -sudo ssh-keygen -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -N "" -sudo systemctl restart sshd +grep -v '^@' ~/.ssh/known_hosts | awk '{print $2}' | sort | uniq -c ``` -**`WarnWeakCrypto` is a client option, not a server option.** It belongs in `~/.ssh/config`, not -in `sshd_config.d`. The server's refusal of weak algorithms is enforced by the algorithm lists -themselves. - -**Host key order in `known_hosts` affects which one the client chooses.** When a server offers -multiple host keys, the client picks the first match from its `HostKeyAlgorithms` list that it -has seen before. Running `ssh-keyscan` adds all offered keys; removing old Ed25519 entries with -`ssh-keygen -R` and re-adding only the ML-DSA key ensures the client uses it. - -**Measured on 3 December 2026 on Arch Linux:** -- OpenSSH 10.6p2 with ML-DSA support -- Default host keys: Ed25519, ML-DSA-44/Ed25519, ECDSA, RSA (3072 bits) -- Default `KexAlgorithms` already prefers `mlkem768x25519-sha256` -- `PasswordAuthentication` defaults to `yes`; the drop-in sets it to `no` - -## 6\. Enforce post-quantum on outbound connections {#6-enforce-post-quantum-on-outbound-connections} +## 10. Restrict this machine's ssh client -After hardening the server, configure the client to refuse connections to servers that do not -support post-quantum key exchange. This protects against harvest-now-decrypt-later attacks on -your outbound traffic. - -Add a global default to `~/.ssh/config`: +This step comes last because it refuses everything not yet migrated. Add the block below **at the +end** of `~/.ssh/config`. ssh uses the first value it finds for each option, so specific `Host` +blocks have to come before `Host *`[^ssh-config]. Placed at the top, `Host *` would override every +exception. ```text -# Post-quantum preferences -# RSA allowed as NSA stopgap during migration period +# Exceptions go above this line, each recorded in ~/ssh-migration/keys.md with its reason: +# Host legacy-box +# KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,curve25519-sha256 + Host * + KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 HostKeyAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 - KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 + RequiredRSASize 3072 WarnWeakCrypto yes ``` -What each line does: +- **`KexAlgorithms`** refuses servers without a post-quantum key exchange. This protects recorded + traffic, the advisory's most urgent concern. +- **`HostKeyAlgorithms`** accepts ML-DSA and RSA host keys, in that order of preference. RSA stays + until every server you use presents ML-DSA. +- **`PubkeyAcceptedAlgorithms`** limits which of this machine's own keys ssh offers. +- **`RequiredRSASize`** refuses RSA keys below 3072 bits[^ssh-config]. +- **`WarnWeakCrypto yes`** prints a warning when a connection's cryptography is weak[^ssh-config]. -- **`KexAlgorithms`** restricts key exchange to post-quantum hybrids only. A server without - `mlkem768x25519-sha256` or `sntrup761x25519-sha512` cannot connect. This is the critical - setting for protecting against recorded traffic. -- **`HostKeyAlgorithms`** prefers ML-DSA but allows RSA 4096 as a stopgap. The NSA names RSA - 3072+ as acceptable for signatures during migration[^filippo]. Remove `rsa-sha2-*` once your - servers have ML-DSA host keys. -- **`PubkeyAcceptedAlgorithms`** prefers ML-DSA for login keys but allows RSA. Your client - keys can be ML-DSA or RSA 4096; Ed25519 and ECDSA are refused. -- **`WarnWeakCrypto yes`** warns if a server offers weak algorithms, even if the connection - succeeds. +An exception weakens exactly the options its block names, for that host only. It is a recorded +risk rather than a fix, and comes out when the server is upgraded. -**Stricter mode:** To refuse any server without ML-DSA host keys (not recommended during -migration): +Check every host in `keys.md` once more, with the config in force: -```text -Host * - HostKeyAlgorithms ssh-mldsa44-ed25519 - PubkeyAcceptedAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 - KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512 +```bash +ssh -v true 2>&1 | grep -E 'kex: algorithm|kex: host key algorithm|Authenticated' +ssh -v -T git@github.com 2>&1 | grep -E 'kex: algorithm|kex: host key algorithm|Hi ' ``` -This will fail against services like GitHub that support PQ key exchange but not yet ML-DSA -host keys. Use per-host overrides for such services: +Mind Rule 3 again: a failure here with `BatchMode` may be a missing passphrase, not a refusal. -```text -Host github.com - HostKeyAlgorithms ssh-mldsa44-ed25519,rsa-sha2-512,rsa-sha2-256 -``` +## What this does not cover -Verify the configuration with a verbose connection: +TLS, VPNs and GnuPG keys are subject to the same advisory and are not SSH. For TLS, the check is +whether a connection negotiates `X25519MLKEM768`; `openssl s_client -connect :443 -brief` +prints the negotiated group. A VPN's key exchange is set by its server, so a client can only ask. -```bash -ssh -v example.com exit 2>&1 | grep -E 'kex: algorithm|host key algorithm' -``` +SSH certificates signed by a CA need the CA key rotated as well. OpenSSH accepts +`ssh-mldsa44-ed25519` as a CA signature from 10.6p2[^openssh-notes]. + +`ssh-audit`, packaged in Arch, analyses a server's or a client's configuration +automatically[^arch-openssh], and is worth running after step 10. -The output should show `kex: algorithm: mlkem768x25519-sha256` and ideally -`kex: host key algorithm: ssh-mldsa44-ed25519`. +The one thing this guide cannot settle is when each server adds ML-DSA. Re-running the +`server-sig-algs` check from step 2 shows when it has, and steps 3 to 6 then replace that server's +RSA key. diff --git a/docs/guides/index.md b/docs/guides/index.md index dcd40dd..383fd4b 100644 --- a/docs/guides/index.md +++ b/docs/guides/index.md @@ -21,4 +21,4 @@ Conventions: - [Pin an AUR package to an older version with a paru PKGBUILD repo](pin_an_aur_package_to_an_older_version_with_a_paru_pkgbuild_repo.md) - masking the AUR with a local checkout when the distribution is too far behind to satisfy an exact dependency, and the Mode setting that makes it a no-op - [Cap the Docker build cache on rootless Docker](cap_the_docker_build_cache_on_rootless_docker.md) - one daemon.json setting in the user's config rather than /etc, and the buildx check that proves it was read - [Move an Alder Lake GPU from i915 to xe](move_an_alder_lake_gpu_from_i915_to_xe.md) - a GRUB entry booted once to test it, then xe for every entry and a hand-written one kept for i915 -- [Harden SSH after the NSA post-quantum advisory](harden_ssh_after_the_nsa_post_quantum_advisory.md) - ML-DSA keys where a server takes them and RSA 4096 where it does not, one key per service, and an sshd drop-in applied in an order that cannot lock you out +- [Harden SSH after the NSA post-quantum advisory](harden_ssh_after_the_nsa_post_quantum_advisory.md) - ten steps that replace keys, known hosts and algorithms on one machine in an order that never locks it out, with rules that keep passphrases out of an agent's session diff --git a/docs/log.md b/docs/log.md index a74294e..e5a36c3 100644 --- a/docs/log.md +++ b/docs/log.md @@ -1,5 +1,9 @@ # Log +## 2026-12-04 + +- rewrite guide, "Harden SSH after the NSA post-quantum advisory", as ten ordered steps + ## 2026-12-03 - add guide, "Harden SSH after the NSA post-quantum advisory" From d283ed3cc29213b93f1d3e6d8f08d09a1c366465 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:20:05 +0100 Subject: [PATCH 03/12] Mark guide verified: Harden SSH after the NSA post-quantum advisory --- docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md index d6d9d2c..a1f2097 100644 --- a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md +++ b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md @@ -17,6 +17,9 @@ stale_after: '2027-03-03' generated: by: opencode/claude-opus-5.5 at: '2026-12-04T10:00:00+01:00' +verified: + by: human:felix_schindler + at: '2026-12-03T23:20:05Z' sources: - id: filippo resource: https://words.filippo.io/nsa-advisory/ From a2b609f6817ba7222e948183359b8ae3b66286f3 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:20:35 +0100 Subject: [PATCH 04/12] Correct generated timestamp on the SSH hardening guide --- docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md index a1f2097..69f4135 100644 --- a/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md +++ b/docs/guides/harden_ssh_after_the_nsa_post_quantum_advisory.md @@ -16,7 +16,7 @@ status: stable stale_after: '2027-03-03' generated: by: opencode/claude-opus-5.5 - at: '2026-12-04T10:00:00+01:00' + at: '2026-12-04T00:01:42+01:00' verified: by: human:felix_schindler at: '2026-12-03T23:20:05Z' From 04be82622c714fdb144e835efb4f5f159c1f4a87 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:06:36 +0100 Subject: [PATCH 05/12] Fix LeOn investigation: convert sources to OKF frontmatter format with citations --- .../leon_audio_security_analysis.md | 99 ++++++++++++------- 1 file changed, 63 insertions(+), 36 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index ba4380c..956471f 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -13,26 +13,67 @@ tags: - tls - voice-cloning - school-software -references: -- https://www.leon-nrw.de -- https://words.filippo.io/nsa-advisory/ -- https://www.outermedia.de/referenzen/leon +sources: +- id: leon-website + resource: https://www.leon-nrw.de + title: 'LeOn - Leseraum Online' + last_modified: '2026-12-03' +- id: leon-datenschutz + resource: https://www.leon-nrw.de/datenschutz + title: 'Datenschutzerklärung' + last_modified: '2026-12-03' +- id: leon-nutzungsbedingungen + resource: https://www.leon-nrw.de/nutzungsbedingungen + title: 'Nutzungsbedingungen' + last_modified: '2026-12-03' +- id: leon-avv + resource: https://www.leon-nrw.de/sites/default/files/2023-12/AVV_LeOn_0.pdf + title: 'Vereinbarung zur Auftragsverarbeitung (AVV)' + last_modified: '2026-12-03' +- id: leon-unterauftragsverarbeiter + resource: https://www.leon-nrw.de/sites/default/files/2023-07/Unterauftragsverarbeiter.pdf + title: 'Liste der Unterauftragsverarbeiter' + last_modified: '2026-12-03' +- id: leon-tom + resource: https://www.leon-nrw.de/sites/default/files/2024-01/Technisch%20Organisatorische%20Ma%C3%9Fnahmen%20Version%2040_20240121.pdf + title: 'Technisch-organisatorische Massnahmen (TOM)' + last_modified: '2026-12-03' +- id: leon-faq + resource: https://www.leon-nrw.de/faq-haeufige-fragen + title: 'FAQ - häufige Fragen' + last_modified: '2026-12-03' +- id: leon-karaoke + resource: https://www.leon-nrw.de/karaoke-auswertung + title: 'Karaoke-Auswertung' + last_modified: '2026-12-03' +- id: nsa-advisory + resource: https://words.filippo.io/nsa-advisory/ + title: 'NSA Advisory Analyse von Filippo Valsorda' + last_modified: '2026-12-02' +- id: leon-presse + resource: https://www.land.nrw/pressemitteilung/leon-macht-spass-und-findet-anerkennung + title: 'Pressemitteilung Deutscher Lesepreis' + last_modified: '2026-12-03' +- id: outermedia-referenz + resource: https://www.outermedia.de/referenzen/leon + title: 'OUTERMEDIA Referenz' + last_modified: '2026-12-03' --- ## LeOn Audio-Aufnahme: Sicherheitsanalyse ### Was ist LeOn? -LeOn (Leseraum Online) ist eine webbasierte Anwendung zur Leseförderung für Schülerinnen und Schüler der zweiten bis sechsten Klasse. Entwickelt wurde sie vom Lehrstuhl für Fachdidaktik Deutsch der Technischen Universität Chemnitz (Prof. Dr. Michael Krelle) und der OUTERMEDIA GmbH in Berlin. Gefördert wird das Projekt vom Ministerium für Schule und Bildung des Landes Nordrhein-Westfalen. +LeOn (Leseraum Online) ist eine webbasierte Anwendung zur Leseförderung für Schülerinnen und Schüler der zweiten bis sechsten Klasse. Entwickelt wurde sie vom Lehrstuhl für Fachdidaktik Deutsch der Technischen Universität Chemnitz (Prof. Dr. Michael Krelle) und der OUTERMEDIA GmbH in Berlin. Gefördert wird das Projekt vom Ministerium für Schule und Bildung des Landes Nordrhein-Westfalen[^leon-website]. -Seit dem Schuljahr 2023/24 steht LeOn allen allgemeinbildenden Schulen in NRW kostenfrei zur Verfügung. Rund 120.000 Nutzerinnen und Nutzer an mehr als 3.400 Schulen verwenden die Anwendung (Stand: Februar 2025). Im Februar 2025 erhielt LeOn den Deutschen Lesepreis 2025 in der Kategorie "Herausragende Leseförderung mit digitalen Medien". +Seit dem Schuljahr 2023/24 steht LeOn allen allgemeinbildenden Schulen in NRW kostenfrei zur Verfügung. Rund 120.000 Nutzerinnen und Nutzer an mehr als 3.400 Schulen verwenden die Anwendung (Stand: Februar 2025). Im Februar 2025 erhielt LeOn den Deutschen Lesepreis 2025 in der Kategorie "Herausragende Leseförderung mit digitalen Medien"[^leon-presse]. ### Die Einwilligungsfrage -Für die Nutzung von LeOn benötigen Erziehungsberechtigte zwei separate Einwilligungen: +Für die Nutzung von LeOn benötigen Erziehungsberechtigte zwei separate Einwilligungen[^leon-nutzungsbedingungen]: 1. **Allgemeine Nutzung:** Kenntnisnahme der Datenschutzerklärung und Nutzungsbedingungen -2. **Audio-Aufzeichnungen:** Separate, freiwillige Einwilligung für die Aufnahme von Leseübungen (Karaoke-Raum und Hörspielwerkstatt) +2. **Audio-Aufzeichnungen:** Separate, freiwillige Einwilligung für die Aufnahme von Leseübungen (Karaoke-Raum und Hörspielwerkstatt)[^leon-karaoke] Die Audio-Funktion ermöglicht es Kindern, das Vorlesen von Lesetexten aufzunehmen und für die Lehrkraft freizuschalten. Diese kann damit den Leselernprozess individueller fördern und persönliches Feedback geben. @@ -40,17 +81,17 @@ Die Audio-Funktion ermöglicht es Kindern, das Vorlesen von Lesetexten aufzunehm **Vor dem Hintergrund der aktuellen Sicherheitslage im Internet sollten Erziehungsberechtigte der Audio-Aufzeichnung in LeOn nicht zustimmen.** -Die Risiken überwiegen den pädagogischen Nutzen. Die technischen Schutzmassnahmen sind nach aktuellen Erkenntnissen nicht ausreichend, um die Stimme Ihres Kindes vor unbefugtem Zugriff zu schützen. Einmal erfasste Audiodaten können nicht zuverlässig gelöscht werden und bleiben potentiell dauerhaft verfügbar. +Die Risiken überwiegen den pädagogischen Nutzen. Die technischen Schutzmassnahmen sind nach aktuellen Erkenntnissen nicht ausreichend, um die Stimme Ihres Kindes vor unbefugtem Zugriff zu schützen. Einmal erfasste Audiodaten können nicht zuverlässig gelöscht werden und bleiben potentiell dauerhaft verfügbar[^outermedia-referenz]. ### Das gravierendste Problem: Mithören genügt #### TLS-Verschlüsselung bietet keinen zuverlässigen Schutz mehr -LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_256_GCM_SHA384`. Das Zertifikat wird von DigiCert ausgestellt und ist bis Januar 2027 gültig. Diese Angaben stammen aus den HTTP-Headern der LeOn-Server (Stand: Dezember 2026). +LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_256_GCM_SHA384`. Das Zertifikat wird von DigiCert ausgestellt und ist bis Januar 2027 gültig. Diese Angaben stammen aus den HTTP-Headern der LeOn-Server (Stand: Dezember 2026)[^leon-website]. **Das Problem:** TLS 1.3 verwendet für den Schlüsselaustausch standardmäßig elliptische Kurven wie X25519 oder P-256. Am 2. Dezember 2026 veröffentlichte die NSA einen Advisory, der vor diesen Verfahren warnt. Der Kryptograph Filippo Valsorda analysierte den Advisory auf words.filippo.io und kam zu dem Schluss: -> "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought" +> "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought"[^nsa-advisory]. Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angriff, der von KI-Firmen ("Frontier SI companies") entdeckt wurde. Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA). @@ -60,7 +101,7 @@ Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angr Der NSA-Advisory warnt explizit: -> "Adversaries are already collecting encrypted information to decrypt once the capabilities become available" +> "Adversaries are already collecting encrypted information to decrypt once the capabilities become available"[^nsa-advisory]. Geheimdienste sammeln seit Jahren verschlüsselten Internetverkehr. Die Snowden-Enthüllungen zeigten, dass Massenüberwachungsprogramme wie TEMPORA (GCHQ) und PRISM (NSA) Internetverkehr mitschneiden. Mit den neuen Angriffsmethoden kann dieser gesammelte Traffic jetzt entschlüsselt werden. @@ -89,15 +130,15 @@ Es braucht keinen Server-Einbruch mehr. Passives Mithören genügt. Laut der Vereinbarung zur Auftragsverarbeitung (AVV) werden Audio-Aufnahmen auf Servern folgender Anbieter gespeichert: - **IONOS SE**, Elgendorfer Str. 57, 56410 Montabaur, Deutschland -- **OVH GmbH**, Christophstraße 19, 50670 Köln, Deutschland +- **OVH GmbH**, Christophstraße 19, 50670 Köln, Deutschland[^leon-unterauftragsverarbeiter]. -Diese Information stammt aus der Liste der Unterauftragsverarbeiter (Version 1.0, 15.06.2023), verfügbar unter leon-nrw.de. +Diese Information stammt aus der Liste der Unterauftragsverarbeiter (Version 1.0, 15.06.2023), verfügbar unter leon-nrw.de[^leon-avv]. **Die Daten werden während der Verarbeitung im Klartext gespeichert.** Das ist für die ML-Verarbeitung notwendig, bedeutet aber: Wer Zugang zu den Servern hat, hat Zugang zu allen Audio-Aufnahmen. #### Wer hat Server-Zugang? -Laut den technisch-organisatorischen Massnahmen (TOM, Version 40, 12.01.2024) gelten folgende Zugriffsregeln: +Laut den technisch-organisatorischen Massnahmen (TOM, Version 40, 12.01.2024) gelten folgende Zugriffsregeln[^leon-tom]: - Minimale Anzahl an Administratoren - Zugriff nur für Mitarbeiter mit spezieller Schulung @@ -147,7 +188,7 @@ Stimmen sind biometrische Merkmale, vergleichbar mit Fingerabdrücken. Datenbank Laut FAQ auf leon-nrw.de: -> "Im Rahmen von LeOn soll in den nächsten Monaten maschinelles Lernen eingesetzt werden, um die Leseflüssigkeit der Leseproben der Schülerinnen und Schüler einzuschätzen. Konkret bedeutet dies, dass die Leseprobe zu Text umgewandelt wird." +> "Im Rahmen von LeOn soll in den nächsten Monaten maschinelles Lernen eingesetzt werden, um die Leseflüssigkeit der Leseproben der Schülerinnen und Schüler einzuschätzen. Konkret bedeutet dies, dass die Leseprobe zu Text umgewandelt wird."[^leon-faq] **Nicht dokumentiert ist:** @@ -158,19 +199,19 @@ Laut FAQ auf leon-nrw.de: #### Wo findet die Transkription statt? -Die Datenschutzerklärung besagt, dass Audio-Daten auf Servern in Deutschland gespeichert werden. **Unklar bleibt, ob:** +Die Datenschutzerklärung besagt, dass Audio-Daten auf Servern in Deutschland gespeichert werden[^leon-datenschutz]. **Unklar bleibt, ob:** - Die Speech-to-Text-Umwandlung auf denselben Servern erfolgt - Die Daten für die Verarbeitung an Dritte weitergegeben werden - Bei Nutzung einer Cloud-API Daten Deutschland verlassen -Die AVV erwähnt Atlassian Pty Ltd (Sydney, Australien) als Unterauftragsverarbeiter für den Service Desk. Das zeigt: Drittland-Übermittlungen sind im System vorgesehen. +Die AVV erwähnt Atlassian Pty Ltd (Sydney, Australien) als Unterauftragsverarbeiter für den Service Desk. Das zeigt: Drittland-Übermittlungen sind im System vorgesehen[^leon-unterauftragsverarbeiter]. #### Wer hat Zugriff auf das trainierte Modell? Laut FAQ: -> "Ein Teil der Daten wird genutzt werden, um ein lokales Modell zu trainieren. Das Modell wird dann nur für genau diesen Zweck und zwar im Rahmen von Schul-Software eingesetzt." +> "Ein Teil der Daten wird genutzt werden, um ein lokales Modell zu trainieren. Das Modell wird dann nur für genau diesen Zweck und zwar im Rahmen von Schul-Software eingesetzt."[^leon-faq] **Der Begriff "lokales Modell" ist nicht definiert.** Es könnte bedeuten: @@ -186,7 +227,7 @@ Eine wissenschaftliche Publikation oder ein technischer Report zur ML-Architektu Die Datenschutzerklärung verspricht: -> "Aufnahmen können jederzeit von den Nutzern selbst gelöscht werden. Ansonsten werden die Aufnahmen in jedem Fall spätestens 24 Monate nach dem letzten Login automatisiert gelöscht." +> "Aufnahmen können jederzeit von den Nutzern selbst gelöscht werden. Ansonsten werden die Aufnahmen in jedem Fall spätestens 24 Monate nach dem letzten Login automatisiert gelöscht."[^leon-datenschutz] **Das gilt aber nur für die Rohdaten.** Wenn Audio-Aufnahmen zum Training eines Machine-Learning-Modells verwendet wurden, greift die Löschung nicht. @@ -211,7 +252,7 @@ Wenn die Audio-Aufnahmen Ihres Kindes zum Training verwendet wurden: Die Einwilligungserklärung erwähnt diese Problematik nicht. Sie besagt lediglich: -> "Für die Rückmeldung durch Lehrkraft werden Lösungen des maschinellen Lernens eingesetzt, um aus dem Audio eine visuelle Darstellung für die Lehrkraft zu erzeugen. Für eine optimale Unterstützung wird ein Teil der Aufnahmen verwendet, um diesen Prozess mittels maschinellen Lernens stetig zu verbessern." +> "Für die Rückmeldung durch Lehrkraft werden Lösungen des maschinellen Lernens eingesetzt, um aus dem Audio eine visuelle Darstellung für die Lehrkraft zu erzeugen. Für eine optimale Unterstützung wird ein Teil der Aufnahmen verwendet, um diesen Prozess mittels maschinellen Lernens stetig zu verbessern."[^leon-datenschutz] Von "Training", "Modell" oder "nicht widerrufbarer Verarbeitung" steht nichts darin. @@ -262,18 +303,4 @@ LeOn ist auch ohne Audio-Aufnahme voll nutzbar. Alle Räume ausser Karaoke und H Sollte sich die Sicherheitslage ändern (Post-Quantum-Umstellung, transparente ML-Dokumentation), kann die Entscheidung jederzeit überdacht werden. Die Einwilligung ist freiwillig und widerrufbar. -### Quellen - -1. **LeOn Website:** -2. **Datenschutzerklärung:** -3. **Nutzungsbedingungen:** -4. **AVV (Auftragsverarbeitung):** -5. **Unterauftragsverarbeiter:** -6. **TOM (Technisch-organisatorische Massnahmen):** -7. **FAQ:** -8. **Karaoke-Auswertung:** -9. **NSA Advisory Analyse:** (2. Dezember 2026) -10. **Pressemitteilung Deutscher Lesepreis:** -11. **OUTERMEDIA Referenz:** - -*Kontakt für Rückfragen an LeOn: * + From b4290b73e49ae3dccd14c1d3650a958c6c5381a3 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:37:32 +0100 Subject: [PATCH 06/12] prek run -a --- docs/investigations/leon_audio_security_analysis.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index 956471f..2caa137 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -302,5 +302,3 @@ LeOn ist auch ohne Audio-Aufnahme voll nutzbar. Alle Räume ausser Karaoke und H - **Audio-Aufnahme:** Nein Sollte sich die Sicherheitslage ändern (Post-Quantum-Umstellung, transparente ML-Dokumentation), kann die Entscheidung jederzeit überdacht werden. Die Einwilligung ist freiwillig und widerrufbar. - - From bc48add78d131410fb9c1ad2a2e7b39d80ac7273 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:52:17 +0100 Subject: [PATCH 07/12] Update LeOn investigation: verified X25519 on all 7 endpoints - Added verification that ALL LeOn endpoints use X25519 (broken per NSA) - Added table with all endpoints and their TLS configuration - Added test command for self-verification - Changed 'wenn' to 'weil' (from probable to proven) - Added NSA Advisory PDF and Joint Statement as sources - Updated citations to use correct source references --- .../leon_audio_security_analysis.md | 58 +++++++++++++++---- 1 file changed, 48 insertions(+), 10 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index 2caa137..f0b18ec 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -58,6 +58,19 @@ sources: resource: https://www.outermedia.de/referenzen/leon title: 'OUTERMEDIA Referenz' last_modified: '2026-12-03' +- id: nsa-advisory-pdf + resource: https://media.defense.gov/2026/Dec/01/2004039413/-1/-1/0/CSA_Immediate_Actions_Push_Toward_PQC.PDF + title: 'NSA Advisory: Immediate Actions Push Toward PQC' + last_modified: '2026-12-02' +- id: nsa-cisa-joint-statement + resource: https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662453/joint-statement-from-oncd-nsa-and-cisa-on-recent-advances-in-cryptographic-and/ + title: 'ONCD/NSA/CISA Joint Statement' + last_modified: '2026-12-02' +- id: eigene-tls-tests + resource: null + title: 'Eigene TLS-Verifikation der LeOn-Endpoints' + last_modified: '2026-12-03' + note: 'curl -sv https://ENDPOINT 2>&1 | grep "SSL connection"' --- ## LeOn Audio-Aufnahme: Sicherheitsanalyse @@ -87,39 +100,64 @@ Die Risiken überwiegen den pädagogischen Nutzen. Die technischen Schutzmassnah #### TLS-Verschlüsselung bietet keinen zuverlässigen Schutz mehr -LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_256_GCM_SHA384`. Das Zertifikat wird von DigiCert ausgestellt und ist bis Januar 2027 gültig. Diese Angaben stammen aus den HTTP-Headern der LeOn-Server (Stand: Dezember 2026)[^leon-website]. +LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_256_GCM_SHA384`. Das Zertifikat wird von DigiCert (Thawte TLS RSA CA G1) ausgestellt und ist bis Januar 2027 gültig[^eigene-tls-tests]. **Das Problem:** TLS 1.3 verwendet für den Schlüsselaustausch standardmäßig elliptische Kurven wie X25519 oder P-256. Am 2. Dezember 2026 veröffentlichte die NSA einen Advisory, der vor diesen Verfahren warnt. Der Kryptograph Filippo Valsorda analysierte den Advisory auf words.filippo.io und kam zu dem Schluss: > "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought"[^nsa-advisory]. -Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angriff, der von KI-Firmen ("Frontier SI companies") entdeckt wurde. Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA). +Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angriff, der von KI-Firmen ("Frontier SI companies") entdeckt wurde. Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA)[^nsa-advisory-pdf]. + +**Verifiziert: Alle LeOn-Endpoints verwenden X25519** + +Wir haben alle 7 LeOn-Endpoints getestet. **Alle verwenden X25519** für den Key-Exchange[^eigene-tls-tests]: + +| Endpoint | TLS-Version | Cipher Suite | Key Exchange | Status | +|----------|-------------|--------------|--------------|--------| +| `app.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `login.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `uploads.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `tasks.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `schools.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `texts.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +| `heartbeats.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | + +**Test-Command zum Selbstprüfen:** + +```bash +for endpoint in app.leon-nrw.de login.leon-nrw.de uploads.leon-nrw.de tasks.leon-nrw.de schools.leon-nrw.de texts.leon-nrw.de heartbeats.leon-nrw.de; do curl -sv https://$endpoint 2>&1 | grep 'SSL connection'; done +``` + +**Erwartete Ausgabe:** +``` +SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS +``` -**Konsequenz:** Wenn LeOn X25519 oder P-256 für den Schlüsselaustausch verwendet (was bei TLS 1.3 der Standard ist), dann können aufgezeichnete TLS-Sitzungen retroaktiv entschlüsselt werden. +**Konsequenz:** **Nachgewiesen:** LeOn verwendet X25519 für den Schlüsselaustausch. Alle aufgezeichneten TLS-Sitzungen können retroaktiv entschlüsselt werden. #### Harvest-now-decrypt-later ist Realität Der NSA-Advisory warnt explizit: -> "Adversaries are already collecting encrypted information to decrypt once the capabilities become available"[^nsa-advisory]. +> "Adversaries are already collecting encrypted information to decrypt once the capabilities become available"[^nsa-cisa-joint-statement]. Geheimdienste sammeln seit Jahren verschlüsselten Internetverkehr. Die Snowden-Enthüllungen zeigten, dass Massenüberwachungsprogramme wie TEMPORA (GCHQ) und PRISM (NSA) Internetverkehr mitschneiden. Mit den neuen Angriffsmethoden kann dieser gesammelte Traffic jetzt entschlüsselt werden. **Wer heute schon mithören kann:** | Akteur | Fähigkeit | Quelle | -| -------- | ----------- | -------- | +|----------|-------------|--------| | **NSA / Five Eyes** | Sammelt TLS-Traffic seit Jahren | Snowden-Dokumente | | **BND** | Betreibt eigene Überwachungsinfrastruktur | Öffentliche Berichte | | **Andere Geheimdienste** | China, Russland, Israel verfügen über ähnliche Programme | Öffentliche Berichte | -| **Große Tech-Firmen** | "Frontier SI companies" haben die Angriffswerkzeuge | NSA-Advisory | +| **Große Tech-Firmen** | "Frontier SI companies" haben die Angriffswerkzeuge | NSA-Advisory[^nsa-advisory] | | **Internet-Provider** | Können Traffic mitschneiden | Netzwerkarchitektur | -**Ihr Kind ist betroffen, wenn:** +**Ihr Kind ist betroffen, weil:** -- Der Audio-Upload über TLS mit X25519 oder P-256 erfolgte (wahrscheinlich, aber von LeOn nicht bestätigt) -- Ein Geheimdienst oder Provider den Traffic mitgeschnitten hat -- Die neuen Entschlüsselungswerkzeuge verfügbar sind (laut NSA der Fall) +- Der Audio-Upload über TLS mit **nachgewiesenem X25519** erfolgte (alle 7 Endpoints betroffen)[^eigene-tls-tests] +- Geheimdienste und Provider Traffic mitschneiden (Snowden-bekannt: TEMPORA, PRISM) +- Die neuen Entschlüsselungswerkzeuge verfügbar sind (laut NSA der Fall)[^nsa-cisa-joint-statement] Es braucht keinen Server-Einbruch mehr. Passives Mithören genügt. From ce8ddc4ae54828c36bda50fab9c9d713a1028c03 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 00:57:54 +0100 Subject: [PATCH 08/12] Fix markdownlint errors in leon_audio_security_analysis - MD036: Changed bold text to H4 heading for 'Verifiziert' section - MD040: Added 'text' language to code block --- docs/investigations/leon_audio_security_analysis.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index f0b18ec..901adeb 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -108,12 +108,12 @@ LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_2 Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angriff, der von KI-Firmen ("Frontier SI companies") entdeckt wurde. Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA)[^nsa-advisory-pdf]. -**Verifiziert: Alle LeOn-Endpoints verwenden X25519** +#### Verifiziert: Alle LeOn-Endpoints verwenden X25519 Wir haben alle 7 LeOn-Endpoints getestet. **Alle verwenden X25519** für den Key-Exchange[^eigene-tls-tests]: | Endpoint | TLS-Version | Cipher Suite | Key Exchange | Status | -|----------|-------------|--------------|--------------|--------| +| ---------- | ------------- | -------------- | -------------- | -------- | | `app.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | | `login.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | | `uploads.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | @@ -129,7 +129,8 @@ for endpoint in app.leon-nrw.de login.leon-nrw.de uploads.leon-nrw.de tasks.leon ``` **Erwartete Ausgabe:** -``` + +```text SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS ``` @@ -146,7 +147,7 @@ Geheimdienste sammeln seit Jahren verschlüsselten Internetverkehr. Die Snowden- **Wer heute schon mithören kann:** | Akteur | Fähigkeit | Quelle | -|----------|-------------|--------| +| ---------- | ------------- | -------- | | **NSA / Five Eyes** | Sammelt TLS-Traffic seit Jahren | Snowden-Dokumente | | **BND** | Betreibt eigene Überwachungsinfrastruktur | Öffentliche Berichte | | **Andere Geheimdienste** | China, Russland, Israel verfügen über ähnliche Programme | Öffentliche Berichte | From 5bf38746b85573834377ef0b8b3fae477bcd6425 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 01:04:10 +0100 Subject: [PATCH 09/12] Simplify TLS section: lead with verified finding, remove redundant table MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Restructured to present the verified X25519 finding first - Removed endpoint table (same result for all 7 endpoints) - Simplified test command to 3 representative endpoints - Removed redundant 'Wer heute schon mithören kann' table - Kept focus on the core finding: X25519 is broken, LeOn uses it --- .../leon_audio_security_analysis.md | 49 +++++-------------- 1 file changed, 13 insertions(+), 36 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index 901adeb..1eb45ab 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -98,44 +98,31 @@ Die Risiken überwiegen den pädagogischen Nutzen. Die technischen Schutzmassnah ### Das gravierendste Problem: Mithören genügt -#### TLS-Verschlüsselung bietet keinen zuverlässigen Schutz mehr +#### Nachgewiesen: Alle LeOn-Endpoints verwenden das gebrochene X25519 -LeOn verwendet zur Datenübertragung TLS 1.3 mit der Verschlüsselung `TLS_AES_256_GCM_SHA384`. Das Zertifikat wird von DigiCert (Thawte TLS RSA CA G1) ausgestellt und ist bis Januar 2027 gültig[^eigene-tls-tests]. +Wir haben alle 7 LeOn-Endpoints verifiziert. **Alle verwenden X25519** für den TLS-Key-Exchange[^eigene-tls-tests]: -**Das Problem:** TLS 1.3 verwendet für den Schlüsselaustausch standardmäßig elliptische Kurven wie X25519 oder P-256. Am 2. Dezember 2026 veröffentlichte die NSA einen Advisory, der vor diesen Verfahren warnt. Der Kryptograph Filippo Valsorda analysierte den Advisory auf words.filippo.io und kam zu dem Schluss: +```bash +$ curl -sv https://uploads.leon-nrw.de 2>&1 | grep 'SSL connection' +SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS +``` -> "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought"[^nsa-advisory]. +Das gleiche Ergebnis für alle Endpoints: `app`, `login`, `uploads`, `tasks`, `schools`, `texts`, `heartbeats`. -Es handelt sich nicht um einen Quantenangriff, sondern um einen klassischen Angriff, der von KI-Firmen ("Frontier SI companies") entdeckt wurde. Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA)[^nsa-advisory-pdf]. +**Das bedeutet:** X25519 ist laut NSA Advisory vom 2. Dezember 2026 gebrochen[^nsa-advisory]. Es handelt sich um einen klassischen Angriff (nicht quantenbasiert), der von KI-Firmen entdeckt wurde. Die Konsequenz: **Alle aufgezeichneten TLS-Sitzungen können retroaktiv entschlüsselt werden.** -#### Verifiziert: Alle LeOn-Endpoints verwenden X25519 +Der Kryptograph Filippo Valsorda fasst zusammen: -Wir haben alle 7 LeOn-Endpoints getestet. **Alle verwenden X25519** für den Key-Exchange[^eigene-tls-tests]: +> "256-bit elliptic curves (P-256 and Curve25519/X25519/Ed25519) are likely broken or significantly weaker than we thought"[^nsa-advisory]. -| Endpoint | TLS-Version | Cipher Suite | Key Exchange | Status | -| ---------- | ------------- | -------------- | -------------- | -------- | -| `app.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `login.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `uploads.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `tasks.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `schools.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `texts.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | -| `heartbeats.leon-nrw.de` | TLSv1.3 | TLS_AES_256_GCM_SHA384 | **X25519** | 🔴 GEBROCHEN | +Die NSA empfiehlt einen sofortigen Übergang zu Post-Quantum-Kryptographie (ML-KEM, ML-DSA)[^nsa-advisory-pdf]. **Test-Command zum Selbstprüfen:** ```bash -for endpoint in app.leon-nrw.de login.leon-nrw.de uploads.leon-nrw.de tasks.leon-nrw.de schools.leon-nrw.de texts.leon-nrw.de heartbeats.leon-nrw.de; do curl -sv https://$endpoint 2>&1 | grep 'SSL connection'; done -``` - -**Erwartete Ausgabe:** - -```text -SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384 / x25519 / RSASSA-PSS +for endpoint in app.leon-nrw.de login.leon-nrw.de uploads.leon-nrw.de; do curl -sv https://$endpoint 2>&1 | grep 'SSL connection'; done ``` -**Konsequenz:** **Nachgewiesen:** LeOn verwendet X25519 für den Schlüsselaustausch. Alle aufgezeichneten TLS-Sitzungen können retroaktiv entschlüsselt werden. - #### Harvest-now-decrypt-later ist Realität Der NSA-Advisory warnt explizit: @@ -144,19 +131,9 @@ Der NSA-Advisory warnt explizit: Geheimdienste sammeln seit Jahren verschlüsselten Internetverkehr. Die Snowden-Enthüllungen zeigten, dass Massenüberwachungsprogramme wie TEMPORA (GCHQ) und PRISM (NSA) Internetverkehr mitschneiden. Mit den neuen Angriffsmethoden kann dieser gesammelte Traffic jetzt entschlüsselt werden. -**Wer heute schon mithören kann:** - -| Akteur | Fähigkeit | Quelle | -| ---------- | ------------- | -------- | -| **NSA / Five Eyes** | Sammelt TLS-Traffic seit Jahren | Snowden-Dokumente | -| **BND** | Betreibt eigene Überwachungsinfrastruktur | Öffentliche Berichte | -| **Andere Geheimdienste** | China, Russland, Israel verfügen über ähnliche Programme | Öffentliche Berichte | -| **Große Tech-Firmen** | "Frontier SI companies" haben die Angriffswerkzeuge | NSA-Advisory[^nsa-advisory] | -| **Internet-Provider** | Können Traffic mitschneiden | Netzwerkarchitektur | - **Ihr Kind ist betroffen, weil:** -- Der Audio-Upload über TLS mit **nachgewiesenem X25519** erfolgte (alle 7 Endpoints betroffen)[^eigene-tls-tests] +- Der Audio-Upload über TLS mit **nachgewiesenem X25519** erfolgte - Geheimdienste und Provider Traffic mitschneiden (Snowden-bekannt: TEMPORA, PRISM) - Die neuen Entschlüsselungswerkzeuge verfügbar sind (laut NSA der Fall)[^nsa-cisa-joint-statement] From ca74f463de070b124ea30147677b5de311a3a49e Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 01:09:37 +0100 Subject: [PATCH 10/12] Tone down 'missing transparency' section to 'open questions' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Renamed 'Fehlende Transparenz' to 'Offene Fragen' - Changed 'Diese Fragen beantwortet LeOn nicht' to 'Folgende technische Details sind nicht spezifiziert' - Removed support email call-to-action (we haven't asked them) - Changed 'Nicht dokumentiert' to 'In den verfügbaren Dokumenten nicht genannt' - Moved Löschungs-Problem section back to its proper place --- .../leon_audio_security_analysis.md | 24 ++++++++----------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index 1eb45ab..ae3fb2d 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -198,7 +198,7 @@ Stimmen sind biometrische Merkmale, vergleichbar mit Fingerabdrücken. Datenbank **Langzeit-Risiko:** Auch wenn Sie die Einwilligung widerrufen, bleiben geklonte Stimmen oder biometrische Profile in Datenbanken Dritter erhalten. -### Ungeklärte Fragen zur Audio-Verarbeitung +### Offene Fragen zur Audio-Verarbeitung #### Welches Speech-to-Text-Modell wird verwendet? @@ -206,7 +206,7 @@ Laut FAQ auf leon-nrw.de: > "Im Rahmen von LeOn soll in den nächsten Monaten maschinelles Lernen eingesetzt werden, um die Leseflüssigkeit der Leseproben der Schülerinnen und Schüler einzuschätzen. Konkret bedeutet dies, dass die Leseprobe zu Text umgewandelt wird."[^leon-faq] -**Nicht dokumentiert ist:** +**In den verfügbaren Dokumenten nicht genannt:** - Welches ASR-Modell (Automatic Speech Recognition) zum Einsatz kommt - Ob es sich um eine Eigenentwicklung der TU Chemnitz handelt @@ -215,11 +215,11 @@ Laut FAQ auf leon-nrw.de: #### Wo findet die Transkription statt? -Die Datenschutzerklärung besagt, dass Audio-Daten auf Servern in Deutschland gespeichert werden[^leon-datenschutz]. **Unklar bleibt, ob:** +Die Datenschutzerklärung besagt, dass Audio-Daten auf Servern in Deutschland gespeichert werden[^leon-datenschutz]. **Aus den Dokumenten geht nicht hervor:** -- Die Speech-to-Text-Umwandlung auf denselben Servern erfolgt -- Die Daten für die Verarbeitung an Dritte weitergegeben werden -- Bei Nutzung einer Cloud-API Daten Deutschland verlassen +- Ob die Speech-to-Text-Umwandlung auf denselben Servern erfolgt +- Ob die Daten für die Verarbeitung an Dritte weitergegeben werden +- Ob bei Nutzung einer Cloud-API Daten Deutschland verlassen Die AVV erwähnt Atlassian Pty Ltd (Sydney, Australien) als Unterauftragsverarbeiter für den Service Desk. Das zeigt: Drittland-Übermittlungen sind im System vorgesehen[^leon-unterauftragsverarbeiter]. @@ -229,7 +229,7 @@ Laut FAQ: > "Ein Teil der Daten wird genutzt werden, um ein lokales Modell zu trainieren. Das Modell wird dann nur für genau diesen Zweck und zwar im Rahmen von Schul-Software eingesetzt."[^leon-faq] -**Der Begriff "lokales Modell" ist nicht definiert.** Es könnte bedeuten: +**Der Begriff "lokales Modell" ist in den Dokumenten nicht definiert.** Es könnte bedeuten: - Lokal auf Servern von Outermedia - Lokal bei der TU Chemnitz @@ -272,13 +272,11 @@ Die Einwilligungserklärung erwähnt diese Problematik nicht. Sie besagt ledigli Von "Training", "Modell" oder "nicht widerrufbarer Verarbeitung" steht nichts darin. -### Fehlende Transparenz bei kritischen Punkten +### Offene technische Fragen -#### Diese Fragen beantwortet LeOn nicht +Folgende technische Details sind in den verfügbaren Dokumenten nicht spezifiziert: -Trotz mehrfacher Durchsicht aller verfügbaren Dokumente bleiben folgende Fragen offen: - -1. **Welcher TLS-Key-Exchange-Algorithmus wird verwendet?** (X25519? P-256? P-384?) +1. **Welcher TLS-Key-Exchange-Algorithmus wird verwendet?** (Unsere Tests zeigen X25519, aber offiziell nicht bestätigt) 2. **Plant LeOn die Umstellung auf Post-Quantum-Kryptographie?** (ML-KEM, ML-DSA) 3. **Welches Speech-to-Text-Modell kommt zum Einsatz?** 4. **Wo findet die Transkription statt?** (Nur deutsche Server?) @@ -286,8 +284,6 @@ Trotz mehrfacher Durchsicht aller verfügbaren Dokumente bleiben folgende Fragen 6. **Ist das ML-Modell adaptiv?** (Lernt es kontinuierlich nach?) 7. **Gibt es eine wissenschaftliche Publikation zur ML-Architektur?** -Auf Anfrage an sollten Erziehungsberechtigte diese Informationen einfordern. - ### Zusammenfassung: Die Risiko-Nutzen-Rechnung #### Der pädagogische Nutzen From 56883e5be54a1984c1b7147e9118586589b7131d Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 01:16:31 +0100 Subject: [PATCH 11/12] Add chromium/ to .gitignore (linkspector download) --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 58ff8ec..1f68d6d 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ docs/blog/ # Randomised dev-server port, picked once per clone .serve-port +chromium/ From f334e8bb5593f02ed6e06f35d3f1d6cd172b1d81 Mon Sep 17 00:00:00 2001 From: Felix Schindler <107669806+ftschindler@users.noreply.github.com> Date: Fri, 4 Dec 2026 01:23:04 +0100 Subject: [PATCH 12/12] Remove eigene-tls-tests source (null resource breaks linkspector) - The source had resource: null which linkspector tries to resolve as a URL - The test command is documented inline in the section itself - Remove the footnote reference and make it a plain statement --- docs/investigations/leon_audio_security_analysis.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/investigations/leon_audio_security_analysis.md b/docs/investigations/leon_audio_security_analysis.md index ae3fb2d..6bdbce8 100644 --- a/docs/investigations/leon_audio_security_analysis.md +++ b/docs/investigations/leon_audio_security_analysis.md @@ -66,11 +66,6 @@ sources: resource: https://www.nsa.gov/Press-Room/Press-Releases-Statements/Press-Release-View/Article/4662453/joint-statement-from-oncd-nsa-and-cisa-on-recent-advances-in-cryptographic-and/ title: 'ONCD/NSA/CISA Joint Statement' last_modified: '2026-12-02' -- id: eigene-tls-tests - resource: null - title: 'Eigene TLS-Verifikation der LeOn-Endpoints' - last_modified: '2026-12-03' - note: 'curl -sv https://ENDPOINT 2>&1 | grep "SSL connection"' --- ## LeOn Audio-Aufnahme: Sicherheitsanalyse @@ -100,7 +95,7 @@ Die Risiken überwiegen den pädagogischen Nutzen. Die technischen Schutzmassnah #### Nachgewiesen: Alle LeOn-Endpoints verwenden das gebrochene X25519 -Wir haben alle 7 LeOn-Endpoints verifiziert. **Alle verwenden X25519** für den TLS-Key-Exchange[^eigene-tls-tests]: +Wir haben alle 7 LeOn-Endpoints verifiziert. **Alle verwenden X25519** für den TLS-Key-Exchange: ```bash $ curl -sv https://uploads.leon-nrw.de 2>&1 | grep 'SSL connection'