Skip to content

Commit e0b0262

Browse files
Reet00Weltraumschaf
authored andcommitted
Update tests and examples for v3.9.0
Note: SSHv1 support is removed for v3.9.0. If used, the scanner willl only issue a failure, the algorithms will not be mentioned separately Signed-off-by: Samreet Singh <samreet.singh@iteratec.com>
1 parent ade20b9 commit e0b0262

6 files changed

Lines changed: 982 additions & 797 deletions

File tree

‎scanners/ssh-audit/examples/dummy-ssh/findings.yaml‎

Lines changed: 127 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,10 @@
208208
"default key exchange from OpenSSH 6.5 to 7.3",
209209
"available since OpenSSH 6.4, Dropbear SSH 2013.62",
210210
],
211+
"warn":
212+
[
213+
"does not provide protection against post-quantum attacks",
214+
],
211215
},
212216
},
213217
{
@@ -219,6 +223,10 @@
219223
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
220224
],
221225
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
226+
"warn":
227+
[
228+
"does not provide protection against post-quantum attacks",
229+
],
222230
},
223231
},
224232
{
@@ -230,6 +238,10 @@
230238
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
231239
],
232240
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
241+
"warn":
242+
[
243+
"does not provide protection against post-quantum attacks",
244+
],
233245
},
234246
},
235247
{
@@ -241,6 +253,10 @@
241253
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
242254
],
243255
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
256+
"warn":
257+
[
258+
"does not provide protection against post-quantum attacks",
259+
],
244260
},
245261
},
246262
{
@@ -253,6 +269,10 @@
253269
"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).",
254270
"available since OpenSSH 4.4",
255271
],
272+
"warn":
273+
[
274+
"does not provide protection against post-quantum attacks",
275+
],
256276
},
257277
},
258278
{
@@ -264,6 +284,7 @@
264284
"warn":
265285
[
266286
"2048-bit modulus only provides 112-bits of symmetric strength",
287+
"does not provide protection against post-quantum attacks",
267288
],
268289
},
269290
},
@@ -302,8 +323,15 @@
302323
},
303324
],
304325
},
305-
"id": "d0005b42-7481-4dae-91b2-5d3293d78b3f",
306-
"parsed_at": "2024-12-06T08:42:46.521Z",
326+
"id": "536571c2-7808-4dae-b3fe-624ef7ac3df0",
327+
"parsed_at": "2026-07-10T11:56:12.770Z",
328+
"scan":
329+
{
330+
"created_at": "2026-07-10T11:56:05Z",
331+
"name": "ssh-ssh-demo-cluster-internal",
332+
"namespace": "integration-tests",
333+
"scan_type": "ssh-audit",
334+
},
307335
},
308336
{
309337
"name": "Insecure SSH KEX Algorithms",
@@ -322,8 +350,15 @@
322350
"ecdh-sha2-nistp521",
323351
],
324352
},
325-
"id": "1d136f73-222a-49a5-9d24-73eff949e7fc",
326-
"parsed_at": "2024-12-06T08:42:46.522Z",
353+
"id": "599fb34a-7bf9-484a-acf0-138d06eab0ef",
354+
"parsed_at": "2026-07-10T11:56:12.770Z",
355+
"scan":
356+
{
357+
"created_at": "2026-07-10T11:56:05Z",
358+
"name": "ssh-ssh-demo-cluster-internal",
359+
"namespace": "integration-tests",
360+
"scan_type": "ssh-audit",
361+
},
327362
},
328363
{
329364
"name": "Insecure SSH Key Algorithms",
@@ -333,8 +368,15 @@
333368
"category": "SSH Policy Violation",
334369
"location": "ssh://dummy-ssh.demo-targets.svc",
335370
"attributes": {"algorithms": ["ecdsa-sha2-nistp256", "ssh-rsa"]},
336-
"id": "20b8e8c7-01f5-46ac-ae78-ca7b04d61100",
337-
"parsed_at": "2024-12-06T08:42:46.522Z",
371+
"id": "f400ca69-9358-4ca9-bb1e-a4b63248a15b",
372+
"parsed_at": "2026-07-10T11:56:12.770Z",
373+
"scan":
374+
{
375+
"created_at": "2026-07-10T11:56:05Z",
376+
"name": "ssh-ssh-demo-cluster-internal",
377+
"namespace": "integration-tests",
378+
"scan_type": "ssh-audit",
379+
},
338380
},
339381
{
340382
"name": "Insecure SSH MAC Algorithms",
@@ -344,8 +386,39 @@
344386
"category": "SSH Policy Violation",
345387
"location": "ssh://dummy-ssh.demo-targets.svc",
346388
"attributes": {"algorithms": ["hmac-sha1", "hmac-sha1-etm@openssh.com"]},
347-
"id": "1af1e73f-6244-4192-9c9b-8fe62796306e",
348-
"parsed_at": "2024-12-06T08:42:46.522Z",
389+
"id": "399c5412-b124-47c4-9e4c-da42b28f4903",
390+
"parsed_at": "2026-07-10T11:56:12.770Z",
391+
"scan":
392+
{
393+
"created_at": "2026-07-10T11:56:05Z",
394+
"name": "ssh-ssh-demo-cluster-internal",
395+
"namespace": "integration-tests",
396+
"scan_type": "ssh-audit",
397+
},
398+
},
399+
{
400+
"name": "SSH KEX Algorithms must be changed",
401+
"description": "Weak SSH key exchange algorithms in use",
402+
"mitigation": "Change these KEX algorithms",
403+
"severity": "MEDIUM",
404+
"category": "SSH Policy Violation",
405+
"location": "ssh://dummy-ssh.demo-targets.svc",
406+
"attributes":
407+
{
408+
"algorithms":
409+
[
410+
"diffie-hellman-group-exchange-sha256 (Note: increase modulus size to 3072 bits or larger)",
411+
],
412+
},
413+
"id": "c457158e-85b6-4799-ba56-619350355cb9",
414+
"parsed_at": "2026-07-10T11:56:12.770Z",
415+
"scan":
416+
{
417+
"created_at": "2026-07-10T11:56:05Z",
418+
"name": "ssh-ssh-demo-cluster-internal",
419+
"namespace": "integration-tests",
420+
"scan_type": "ssh-audit",
421+
},
349422
},
350423
{
351424
"name": "SSH Key Algorithms must be changed",
@@ -362,8 +435,15 @@
362435
"rsa-sha2-512 (Note: increase modulus size to 3072 bits or larger)",
363436
],
364437
},
365-
"id": "87516897-4ac4-4e9e-b74b-58835faf47c2",
366-
"parsed_at": "2024-12-06T08:42:46.522Z",
438+
"id": "523a32d5-23d4-4a71-ad26-7f53ad419e10",
439+
"parsed_at": "2026-07-10T11:56:12.770Z",
440+
"scan":
441+
{
442+
"created_at": "2026-07-10T11:56:05Z",
443+
"name": "ssh-ssh-demo-cluster-internal",
444+
"namespace": "integration-tests",
445+
"scan_type": "ssh-audit",
446+
},
367447
},
368448
{
369449
"name": "Insecure SSH Encryption Algorithms",
@@ -373,8 +453,33 @@
373453
"category": "SSH Policy Violation",
374454
"location": "ssh://dummy-ssh.demo-targets.svc",
375455
"attributes": {"algorithms": ["chacha20-poly1305@openssh.com"]},
376-
"id": "74b1328b-6e8d-49ad-a1ea-40319890ed13",
377-
"parsed_at": "2024-12-06T08:42:46.522Z",
456+
"id": "4acb5432-eeb3-4d96-9fa3-dfc32b54d3f9",
457+
"parsed_at": "2026-07-10T11:56:12.770Z",
458+
"scan":
459+
{
460+
"created_at": "2026-07-10T11:56:05Z",
461+
"name": "ssh-ssh-demo-cluster-internal",
462+
"namespace": "integration-tests",
463+
"scan_type": "ssh-audit",
464+
},
465+
},
466+
{
467+
"name": "Insecure SSH KEX Algorithms",
468+
"description": "Discouraged SSH key exchange algorithms in use",
469+
"mitigation": "Remove these KEX algorithms",
470+
"severity": "MEDIUM",
471+
"category": "SSH Policy Violation",
472+
"location": "ssh://dummy-ssh.demo-targets.svc",
473+
"attributes": {"algorithms": ["curve25519-sha256@libssh.org"]},
474+
"id": "85df224b-c641-4133-9920-cead32925ce5",
475+
"parsed_at": "2026-07-10T11:56:12.770Z",
476+
"scan":
477+
{
478+
"created_at": "2026-07-10T11:56:05Z",
479+
"name": "ssh-ssh-demo-cluster-internal",
480+
"namespace": "integration-tests",
481+
"scan_type": "ssh-audit",
482+
},
378483
},
379484
{
380485
"name": "Insecure SSH MAC Algorithms",
@@ -394,7 +499,14 @@
394499
"umac-64@openssh.com",
395500
],
396501
},
397-
"id": "965e1a1f-9bf5-4066-9774-fbb4bde786c7",
398-
"parsed_at": "2024-12-06T08:42:46.522Z",
502+
"id": "fcec7eeb-e093-424b-9e40-649f3c42c217",
503+
"parsed_at": "2026-07-10T11:56:12.770Z",
504+
"scan":
505+
{
506+
"created_at": "2026-07-10T11:56:05Z",
507+
"name": "ssh-ssh-demo-cluster-internal",
508+
"namespace": "integration-tests",
509+
"scan_type": "ssh-audit",
510+
},
399511
},
400-
]
512+
]

‎scanners/ssh-audit/examples/dummy-ssh/ssh-audit-results.json‎

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"additional_notes": [
3-
"Potentially insufficient connection throttling detected, resulting in possible vulnerability to the DHEat DoS attack (CVE-2002-20001). 38 connections were created in 0.202 seconds, or 188.1 conns/sec; server must respond with a rate less than 20.0 conns/sec per IPv4/IPv6 source address to be considered safe. For rate-throttling options, please see <https://www.ssh-audit.com/hardening_guides.html>. Be aware that using 'PerSourceMaxStartups 1' properly protects the server from this attack, but will cause this test to yield a false positive. Suppress this test and message with the --skip-rate-test option."
3+
"Potentially insufficient connection throttling detected, resulting in possible vulnerability to the DHEat DoS attack (CVE-2002-20001). 38 connections were created in 0.058 seconds, or 656.9 conns/sec; server must respond with a rate less than 20.0 conns/sec per IPv4/IPv6 source address to be considered safe. For rate-throttling options, please see <https://www.ssh-audit.com/hardening_guides.html>. Be aware that using 'PerSourceMaxStartups 1' properly protects the server from this attack, but will cause this test to yield a false positive. Suppress this test and message with the --skip-rate-test option."
44
],
55
"banner": {
66
"comments": "Ubuntu-4ubuntu2.8",
@@ -83,7 +83,8 @@
8383
"info": [
8484
"default key exchange from OpenSSH 6.5 to 7.3",
8585
"available since OpenSSH 6.4, Dropbear SSH 2013.62"
86-
]
86+
],
87+
"warn": ["does not provide protection against post-quantum attacks"]
8788
}
8889
},
8990
{
@@ -92,7 +93,8 @@
9293
"fail": [
9394
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
9495
],
95-
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
96+
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
97+
"warn": ["does not provide protection against post-quantum attacks"]
9698
}
9799
},
98100
{
@@ -101,7 +103,8 @@
101103
"fail": [
102104
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
103105
],
104-
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
106+
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
107+
"warn": ["does not provide protection against post-quantum attacks"]
105108
}
106109
},
107110
{
@@ -110,7 +113,8 @@
110113
"fail": [
111114
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
112115
],
113-
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
116+
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
117+
"warn": ["does not provide protection against post-quantum attacks"]
114118
}
115119
},
116120
{
@@ -120,7 +124,8 @@
120124
"info": [
121125
"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).",
122126
"available since OpenSSH 4.4"
123-
]
127+
],
128+
"warn": ["does not provide protection against post-quantum attacks"]
124129
}
125130
},
126131
{
@@ -129,7 +134,8 @@
129134
"fail": ["using broken SHA-1 hash algorithm"],
130135
"info": ["available since OpenSSH 3.9, Dropbear SSH 0.53"],
131136
"warn": [
132-
"2048-bit modulus only provides 112-bits of symmetric strength"
137+
"2048-bit modulus only provides 112-bits of symmetric strength",
138+
"does not provide protection against post-quantum attacks"
133139
]
134140
}
135141
}
@@ -269,6 +275,12 @@
269275
},
270276
"warning": {
271277
"chg": {
278+
"kex": [
279+
{
280+
"name": "diffie-hellman-group-exchange-sha256",
281+
"notes": "increase modulus size to 3072 bits or larger"
282+
}
283+
],
272284
"key": [
273285
{
274286
"name": "rsa-sha2-256",
@@ -282,6 +294,7 @@
282294
},
283295
"del": {
284296
"enc": [{ "name": "chacha20-poly1305@openssh.com", "notes": "" }],
297+
"kex": [{ "name": "curve25519-sha256@libssh.org", "notes": "" }],
285298
"mac": [
286299
{ "name": "hmac-sha2-256", "notes": "" },
287300
{ "name": "hmac-sha2-512", "notes": "" },

‎scanners/ssh-audit/integration-tests/ssh-audit.test.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ test(
1313
["dummy-ssh.demo-targets.svc"],
1414
90,
1515
);
16-
expect(count).toBe(7);
16+
expect(count).toBe(9);
1717
expect(categories).toMatchInlineSnapshot(`
1818
{
19-
"SSH Policy Violation": 6,
19+
"SSH Policy Violation": 8,
2020
"SSH Service": 1,
2121
}
2222
`);
2323
expect(severities).toMatchInlineSnapshot(`
2424
{
2525
"high": 3,
2626
"informational": 1,
27-
"medium": 3,
27+
"medium": 5,
2828
}
2929
`);
3030
},

0 commit comments

Comments
 (0)