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

Ssh newkeys 6578 v2 #1498

Closed
wants to merge 2 commits into from
Closed
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
1 change: 0 additions & 1 deletion tests/community-id-ipv4/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ checks:
dest_ip: 172.217.14.206
dest_port: 443
event_type: tls
pcap_cnt: 7
proto: TCP
src_ip: 172.26.0.39
src_port: 35958
Expand Down
2 changes: 0 additions & 2 deletions tests/community-id-ipv6/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ checks:
dest_ip: 2607:f8b0:400a:0800:0000:0000:0000:200e
dest_port: 443
event_type: tls
pcap_cnt: 41
proto: TCP
src_ip: 2600:1f13:00f8:d400:03a6:303c:e011:18eb
src_port: 60202
Expand All @@ -22,7 +21,6 @@ checks:
dest_ip: 2001:4860:4860:0000:0000:0000:0000:8888
dest_port: 443
event_type: tls
pcap_cnt: 7
proto: TCP
src_ip: 2600:1f13:00f8:d400:03a6:303c:e011:18eb
src_port: 33892
Expand Down
8 changes: 8 additions & 0 deletions tests/ssh-newkeys/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Description

Test rule on ssh for new keys packet.
https://redmine.openinfosecfoundation.org/issues/6578

# PCAP

The pcap comes from https://forum.suricata.io/t/can-not-get-ssh-alert/4223/9
Binary file added tests/ssh-newkeys/input.pcap
Binary file not shown.
1 change: 1 addition & 0 deletions tests/ssh-newkeys/test.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alert ssh any any -> any 22 (msg:"This is a test"; content:"|15 00 00 00 00 00 00 00 00 00 00|"; classtype:protocol-command-decode; sid:1300013; rev:1; metadata:created_at 2023_05_23, updated_at 2023_05_24;)
9 changes: 9 additions & 0 deletions tests/ssh-newkeys/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
args:
- -k none

checks:
- filter:
count: 1
match:
event_type: alert
alert.signature_id: 1300013
Loading