Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scanners/ssh-audit/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: ssh-audit
description: A Helm chart for Kubernetes
type: application
version: v3.1.0-alpha1
appVersion: "v3.3.0"
appVersion: "v3.9.0"
kubeVersion: ">=v1.11.0-0"
annotations:
versionApi: https://api.github.com/repos/jtesta/ssh-audit/releases/latest
Expand Down
2 changes: 1 addition & 1 deletion scanners/ssh-audit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: "SSH-audit"
category: "scanner"
type: "SSH"
state: "released"
appVersion: "v3.3.0"
appVersion: "v3.9.0"
usecase: "SSH Configuration and Policy Scanner"
---

Expand Down
142 changes: 127 additions & 15 deletions scanners/ssh-audit/examples/dummy-ssh/findings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,10 @@
"default key exchange from OpenSSH 6.5 to 7.3",
"available since OpenSSH 6.4, Dropbear SSH 2013.62",
],
"warn":
[
"does not provide protection against post-quantum attacks",
],
},
},
{
Expand All @@ -219,6 +223,10 @@
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn":
[
"does not provide protection against post-quantum attacks",
],
},
},
{
Expand All @@ -230,6 +238,10 @@
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn":
[
"does not provide protection against post-quantum attacks",
],
},
},
{
Expand All @@ -241,6 +253,10 @@
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency",
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn":
[
"does not provide protection against post-quantum attacks",
],
},
},
{
Expand All @@ -253,6 +269,10 @@
"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).",
"available since OpenSSH 4.4",
],
"warn":
[
"does not provide protection against post-quantum attacks",
],
},
},
{
Expand All @@ -264,6 +284,7 @@
"warn":
[
"2048-bit modulus only provides 112-bits of symmetric strength",
"does not provide protection against post-quantum attacks",
],
},
},
Expand Down Expand Up @@ -302,8 +323,15 @@
},
],
},
"id": "d0005b42-7481-4dae-91b2-5d3293d78b3f",
"parsed_at": "2024-12-06T08:42:46.521Z",
"id": "536571c2-7808-4dae-b3fe-624ef7ac3df0",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH KEX Algorithms",
Expand All @@ -322,8 +350,15 @@
"ecdh-sha2-nistp521",
],
},
"id": "1d136f73-222a-49a5-9d24-73eff949e7fc",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "599fb34a-7bf9-484a-acf0-138d06eab0ef",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH Key Algorithms",
Expand All @@ -333,8 +368,15 @@
"category": "SSH Policy Violation",
"location": "ssh://dummy-ssh.demo-targets.svc",
"attributes": {"algorithms": ["ecdsa-sha2-nistp256", "ssh-rsa"]},
"id": "20b8e8c7-01f5-46ac-ae78-ca7b04d61100",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "f400ca69-9358-4ca9-bb1e-a4b63248a15b",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH MAC Algorithms",
Expand All @@ -344,8 +386,39 @@
"category": "SSH Policy Violation",
"location": "ssh://dummy-ssh.demo-targets.svc",
"attributes": {"algorithms": ["hmac-sha1", "hmac-sha1-etm@openssh.com"]},
"id": "1af1e73f-6244-4192-9c9b-8fe62796306e",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "399c5412-b124-47c4-9e4c-da42b28f4903",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "SSH KEX Algorithms must be changed",
"description": "Weak SSH key exchange algorithms in use",
"mitigation": "Change these KEX algorithms",
"severity": "MEDIUM",
"category": "SSH Policy Violation",
"location": "ssh://dummy-ssh.demo-targets.svc",
"attributes":
{
"algorithms":
[
"diffie-hellman-group-exchange-sha256 (Note: increase modulus size to 3072 bits or larger)",
],
},
"id": "c457158e-85b6-4799-ba56-619350355cb9",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "SSH Key Algorithms must be changed",
Expand All @@ -362,8 +435,15 @@
"rsa-sha2-512 (Note: increase modulus size to 3072 bits or larger)",
],
},
"id": "87516897-4ac4-4e9e-b74b-58835faf47c2",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "523a32d5-23d4-4a71-ad26-7f53ad419e10",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH Encryption Algorithms",
Expand All @@ -373,8 +453,33 @@
"category": "SSH Policy Violation",
"location": "ssh://dummy-ssh.demo-targets.svc",
"attributes": {"algorithms": ["chacha20-poly1305@openssh.com"]},
"id": "74b1328b-6e8d-49ad-a1ea-40319890ed13",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "4acb5432-eeb3-4d96-9fa3-dfc32b54d3f9",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH KEX Algorithms",
"description": "Discouraged SSH key exchange algorithms in use",
"mitigation": "Remove these KEX algorithms",
"severity": "MEDIUM",
"category": "SSH Policy Violation",
"location": "ssh://dummy-ssh.demo-targets.svc",
"attributes": {"algorithms": ["curve25519-sha256@libssh.org"]},
"id": "85df224b-c641-4133-9920-cead32925ce5",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
{
"name": "Insecure SSH MAC Algorithms",
Expand All @@ -394,7 +499,14 @@
"umac-64@openssh.com",
],
},
"id": "965e1a1f-9bf5-4066-9774-fbb4bde786c7",
"parsed_at": "2024-12-06T08:42:46.522Z",
"id": "fcec7eeb-e093-424b-9e40-649f3c42c217",
"parsed_at": "2026-07-10T11:56:12.770Z",
"scan":
{
"created_at": "2026-07-10T11:56:05Z",
"name": "ssh-ssh-demo-cluster-internal",
"namespace": "integration-tests",
"scan_type": "ssh-audit",
},
},
]
]
27 changes: 20 additions & 7 deletions scanners/ssh-audit/examples/dummy-ssh/ssh-audit-results.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"additional_notes": [
"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."
"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."
],
"banner": {
"comments": "Ubuntu-4ubuntu2.8",
Expand Down Expand Up @@ -83,7 +83,8 @@
"info": [
"default key exchange from OpenSSH 6.5 to 7.3",
"available since OpenSSH 6.4, Dropbear SSH 2013.62"
]
],
"warn": ["does not provide protection against post-quantum attacks"]
}
},
{
Expand All @@ -92,7 +93,8 @@
"fail": [
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn": ["does not provide protection against post-quantum attacks"]
}
},
{
Expand All @@ -101,7 +103,8 @@
"fail": [
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn": ["does not provide protection against post-quantum attacks"]
}
},
{
Expand All @@ -110,7 +113,8 @@
"fail": [
"using elliptic curves that are suspected as being backdoored by the U.S. National Security Agency"
],
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"]
"info": ["available since OpenSSH 5.7, Dropbear SSH 2013.62"],
"warn": ["does not provide protection against post-quantum attacks"]
}
},
{
Expand All @@ -120,7 +124,8 @@
"info": [
"OpenSSH's GEX fallback mechanism was triggered during testing. Very old SSH clients will still be able to create connections using a 2048-bit modulus, though modern clients will use 3072. This can only be disabled by recompiling the code (see https://github.com/openssh/openssh-portable/blob/V_9_4/dh.c#L477).",
"available since OpenSSH 4.4"
]
],
"warn": ["does not provide protection against post-quantum attacks"]
}
},
{
Expand All @@ -129,7 +134,8 @@
"fail": ["using broken SHA-1 hash algorithm"],
"info": ["available since OpenSSH 3.9, Dropbear SSH 0.53"],
"warn": [
"2048-bit modulus only provides 112-bits of symmetric strength"
"2048-bit modulus only provides 112-bits of symmetric strength",
"does not provide protection against post-quantum attacks"
]
}
}
Expand Down Expand Up @@ -269,6 +275,12 @@
},
"warning": {
"chg": {
"kex": [
{
"name": "diffie-hellman-group-exchange-sha256",
"notes": "increase modulus size to 3072 bits or larger"
}
],
"key": [
{
"name": "rsa-sha2-256",
Expand All @@ -282,6 +294,7 @@
},
"del": {
"enc": [{ "name": "chacha20-poly1305@openssh.com", "notes": "" }],
"kex": [{ "name": "curve25519-sha256@libssh.org", "notes": "" }],
"mac": [
{ "name": "hmac-sha2-256", "notes": "" },
{ "name": "hmac-sha2-512", "notes": "" },
Expand Down
6 changes: 3 additions & 3 deletions scanners/ssh-audit/integration-tests/ssh-audit.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ test(
["dummy-ssh.demo-targets.svc"],
90,
);
expect(count).toBe(7);
expect(count).toBe(9);
expect(categories).toMatchInlineSnapshot(`
{
"SSH Policy Violation": 6,
"SSH Policy Violation": 8,
"SSH Service": 1,
}
`);
expect(severities).toMatchInlineSnapshot(`
{
"high": 3,
"informational": 1,
"medium": 3,
"medium": 5,
}
`);
},
Expand Down
Loading
Loading