crypto-inventory 0.4.0: Swift and Kotlin detectors (CryptoKit, CommonCrypto, Security.framework, Android Keystore, Tink, OkHttp, the libsignal Swift and Android APIs), Apple and Android manifests; remediation recipes for Apache and HAProxy measured on real servers, HAProxy precondition fixed

This commit is contained in:
Aere Network committed 2026-10-18 08:53:13 +03:00
1 parent e453c0c42d
commit b6ed4d2b71
37 files changed
+1623 -82

No files matched your search

+3 -3
View File
@@ -29,8 +29,8 @@ const HSTS = 'max-age=31536000';
export const RETETE_MASURATE = {
node: 'measured end to end on 2026-09-28: a Node 24.14.1 / OpenSSL 3.5.5 server with the options of this recipe, scanned by the AERE scanner (proba-remediere.mjs)',
nginx: 'measured end to end on 2026-10-18: nginx 1.31.7 (nginx:alpine, OpenSSL 3.5.8/3.5.9) with exactly these directives, in a container on 127.0.0.1: a client offering only X25519MLKEM768 completes TLS 1.3, X25519 alone still works as the fallback, a TLS 1.2 client is refused, HSTS is sent (dovezi/retete-2026-10-18/)',
apache: 'the group names accepted by OpenSSL 3.5.5 (measured); the server directive from the mod_ssl documentation, not measured by us on a real Apache',
haproxy: 'the group names accepted by OpenSSL 3.5.5 (measured); the server directive from the HAProxy documentation, not measured by us on a real HAProxy',
apache: 'measured end to end on 2026-10-18: Apache 2.4.69 with OpenSSL 3.5.9 (httpd:alpine, mod_ssl + mod_headers) with exactly these directives in a <VirtualHost>, in a container on 127.0.0.1: a client offering only X25519MLKEM768 completes TLS 1.3, X25519 alone still works as the fallback, a TLS 1.2 client is refused, HSTS is sent, httpd -t says Syntax OK and the startup line names OpenSSL/3.5.9 as the precondition command expects (dovezi/retete-2026-10-18/)',
haproxy: 'measured end to end on 2026-10-18: HAProxy 3.4.7 built and running on OpenSSL 3.5.9 (haproxy:alpine) with exactly these lines, in a container on 127.0.0.1 in front of a plain HTTP backend without HSTS: a client offering only X25519MLKEM768 completes TLS 1.3, X25519 alone works as the fallback, a TLS 1.2 client is refused, haproxy -c accepts the file, and the HSTS header appears on the proxied response (it does not on a response HAProxy generates itself with http-request return: there only http-after-response rules apply) (dovezi/retete-2026-10-18/)',
go: 'measured end to end on 2026-10-18: a Go 1.26.5 (windows/amd64) net/http server with exactly this tls.Config and header, on 127.0.0.1: X25519MLKEM768 alone completes TLS 1.3, X25519 alone works as the fallback, a TLS 1.2 client is refused, HSTS is sent, and the AERE scanner reports pqKeyExchange X25519MLKEM768 / tls12Accepted false / hsts true (dovezi/retete-2026-10-18/); Linux not measured (the WSL Go is 1.22)',
};
@@ -104,7 +104,7 @@ const GENERATOARE = {
s.tlsMin && `ssl-default-bind-options ssl-min-ver TLSv${s.tlsMin}`,
s.hsts && `http-response set-header Strict-Transport-Security "${s.hsts}"`,
].filter(Boolean),
precondition: s.groups ? { what: 'HAProxy running on OpenSSL 3.5 or later', command: 'haproxy -vv | grep -i "running on openssl"' } : null,
precondition: s.groups ? { what: 'HAProxy running on OpenSSL 3.5 or later (haproxy -vv prints "Running on SSL library version : OpenSSL 3.5.x"; measured on 3.4.7)', command: 'haproxy -vv | grep -i "SSL library version"' } : null,
verify: 'haproxy -c -f /etc/haproxy/haproxy.cfg', reload: 'systemctl reload haproxy',
}),
node: (s) => {