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
5 changes: 5 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rules": {
"quotes": ["warn", "single"]
}
}
24 changes: 7 additions & 17 deletions test/ssh.test.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
const { startSecurityTest, Time } = require('./sdk');

test(
'finds a few low severity findigns for securecodebox.io',
'finds a few low severity findings for securecodebox.io',
async () => {
const securityTest = await startSecurityTest({
context: 'securecodebox.io tls',
context: 'www.iteratec.de ssh',
metaData: {},
name: 'ssh',
target: {
name: 'securecodebox.io tls',
location: 'securecodebox.io',
name: 'www.iteratec.de ssh',
location: 'www.iteratec.de',
attributes: {},
},
});
Expand All @@ -28,33 +28,23 @@ test(

expect(findings).toContainEqual({
category: 'SSH Service',
description: undefined,
name: 'SSH Service Information',
osi_layer: 'NETWORK',
severity: 'INFORMATIONAL',
});

expect(findings).toContainEqual({
category: 'SSH Policy Violation',
description: 'Deprecated / discouraged SSH key algorithms are used',
name: 'Insecure SSH Key Algorithms',
osi_layer: 'NETWORK',
severity: 'MEDIUM',
});

expect(findings).toContainEqual({
category: 'SSH Policy Violation',
description: 'Deprecated / discouraged SSH MAC algorithms are used',
name: 'Insecure SSH MAC Algorithms',
description: 'Discouraged SSH authentication methods are used',
name: 'Discouraged SSH authentication methods',
osi_layer: 'NETWORK',
severity: 'MEDIUM',
});

expect(
findings
.filter(({ name }) => name !== 'SSH Service Information')
.filter(({ name }) => name !== 'Insecure SSH Key Algorithms')
.filter(({ name }) => name !== 'Insecure SSH MAC Algorithms')
.filter(({ name }) => name !== 'Discouraged SSH authentication methods')
).toEqual([]);
},
2 * Time.Minute
Expand Down
10 changes: 0 additions & 10 deletions test/sslyze.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,6 @@ test(
category: 'Resumption',
severity: 'INFORMATIONAL',
});
expect(findings).toContainEqual({
name: 'TLSv1 supported',
category: 'TLSv1',
severity: 'LOW',
});
expect(findings).toContainEqual({
name: 'TLSv1.1 supported',
category: 'TLSv1.1',
severity: 'INFORMATIONAL',
});
expect(findings).toContainEqual({
name: 'TLSv1.2 supported',
category: 'TLSv1.2',
Expand Down