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/130/20230906/v1 #1378

Merged
merged 1 commit into from
Sep 7, 2023
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
3 changes: 3 additions & 0 deletions tests/community-id-ipv4/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Test Description

Community ID for IPv4 test.
Binary file added tests/community-id-ipv4/input.pcap
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/community-id-ipv4/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
community-id: true
community-id-seed: 7
types:
- tls:
extended: yes
- flow
28 changes: 28 additions & 0 deletions tests/community-id-ipv4/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
args:
- -k none

checks:
- filter:
count: 1
match:
community_id: 1:IwiTNfuO7aCaamMijl+7/X9uLx0=
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
tls.sni: ipv4.google.com
tls.version: TLS 1.3
- filter:
count: 1
match:
app_proto: tls
community_id: 1:IwiTNfuO7aCaamMijl+7/X9uLx0=
dest_ip: 172.217.14.206
dest_port: 443
event_type: flow
proto: TCP
src_ip: 172.26.0.39
src_port: 35958
7 changes: 7 additions & 0 deletions tests/community-id-ipv6/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Test Description

Community ID test with IPv6.

## Related Issue

https://redmine.openinfosecfoundation.org/issues/6276
Binary file added tests/community-id-ipv6/input.pcap
Binary file not shown.
12 changes: 12 additions & 0 deletions tests/community-id-ipv6/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
community-id: true
community-id-seed: 7
types:
- tls:
extended: yes
- flow
83 changes: 83 additions & 0 deletions tests/community-id-ipv6/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
args:
- -k none

checks:
- filter:
count: 1
match:
community_id: 1:ptJhMvufAbB5nLDNW77cB800wFM=
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
tls.sni: ipv6.google.com
tls.version: TLS 1.3
- filter:
count: 1
match:
community_id: 1:PGf+a0eBbs1OhuPtJmsF0Sm51v4=
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
tls.sni: dns.google
tls.version: TLS 1.3
- filter:
count: 1
match:
app_proto: tls
community_id: 1:PGf+a0eBbs1OhuPtJmsF0Sm51v4=
dest_ip: 2001:4860:4860:0000:0000:0000:0000:8888
dest_port: 443
event_type: flow
flow.age: 0
flow.alerted: false
flow.bytes_toclient: 7122
flow.bytes_toserver: 2303
flow.pkts_toclient: 17
flow.pkts_toserver: 17
flow.reason: shutdown
flow.state: established
proto: TCP
src_ip: 2600:1f13:00f8:d400:03a6:303c:e011:18eb
src_port: 33892
tcp.ack: true
tcp.psh: true
tcp.state: established
tcp.syn: true
tcp.tcp_flags: 1a
tcp.tcp_flags_tc: 1a
tcp.tcp_flags_ts: 1a
- filter:
count: 1
match:
app_proto: tls
community_id: 1:ptJhMvufAbB5nLDNW77cB800wFM=
dest_ip: 2607:f8b0:400a:0800:0000:0000:0000:200e
dest_port: 443
event_type: flow
flow.age: 0
flow.alerted: false
flow.bytes_toclient: 28862
flow.bytes_toserver: 2439
flow.pkts_toclient: 18
flow.pkts_toserver: 18
flow.reason: shutdown
flow.state: closed
proto: TCP
src_ip: 2600:1f13:00f8:d400:03a6:303c:e011:18eb
src_port: 60202
tcp.ack: true
tcp.fin: true
tcp.psh: true
tcp.state: closed
tcp.syn: true
tcp.tcp_flags: 1b
tcp.tcp_flags_tc: 1b
tcp.tcp_flags_ts: 1b
Loading