Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next/sv/533/20240716/v1 #1981

Merged
merged 1 commit into from
Jul 16, 2024
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: 2 additions & 0 deletions tests/ssh-banner-lt7/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# ssh.softwareversion is deprecated in favor of ssh.software this is just to check if it still works
alert ssh any any -> any any (ssh.softwareversion:OpenSSH_7.4; sid:2;)
23 changes: 23 additions & 0 deletions tests/ssh-banner-lt7/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
requires:
lt-version: 7

pcap: ../ssh-banner-only/input.pcap

args:
- -k none

checks:
# Check that we have the ssh event in eve.json
- filter:
count: 1
match:
event_type: ssh
ssh.client.proto_version: "2.0"
ssh.server.proto_version: "2.0"
ssh.client.software_version: "OpenSSH_for_Windows_7.7"
ssh.server.software_version: "OpenSSH_7.4"
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
2 changes: 0 additions & 2 deletions tests/ssh-banner-only/test.rules
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
alert ssh any any -> any any (ssh.software; content:"OpenSSH"; sid:1;)
# ssh.softwareversion is deprecated in favor of ssh.software this is just to check if it still works
alert ssh any any -> any any (ssh.softwareversion:OpenSSH_7.4; sid:2;)
alert ssh any any -> any any (ssh.proto; content:"2"; sid:3;)
8 changes: 0 additions & 8 deletions tests/ssh-banner-only/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
features:
- RUST

args:
- -k none

Expand All @@ -19,11 +16,6 @@ checks:
match:
event_type: alert
alert.signature_id: 1
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 2
- filter:
count: 2
match:
Expand Down
Loading