Skip to content

Commit

Permalink
tests: showcase bug 7286 (tls)
Browse files Browse the repository at this point in the history
  • Loading branch information
jufajardini committed Oct 4, 2024
1 parent 3be0daf commit a752d0a
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/tls/bug-7286-tls-metadata-01/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Test

Showcase how TLS metadata is logged when JA4 is disabled.

### Pcap

Reused from test ja4-tls.

### Ticket

https://redmine.openinfosecfoundation.org/issues/7286
Binary file added tests/tls/bug-7286-tls-metadata-01/input.pcap
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/tls/bug-7286-tls-metadata-01/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
---


outputs:
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- tls:
extended: yes # enable this for extended logging information
custom: [subject, issuer, session_resumed, serial, fingerprint, sni, version, not_before, not_after, ja3, ja3s, ja4]
ja4: off
14 changes: 14 additions & 0 deletions tests/tls/bug-7286-tls-metadata-01/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
pcap: ../../ja4-tls/input.pcap

checks:
- filter:
count: 1
match:
event_type: tls
tls.subject: C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS
tls.issuerdn: C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS
tls.serial: 00:97:E6:47:09:8E:EA:C9:B4
tls.fingerprint: 3a:0b:3b:23:15:2c:44:5c:27:ac:6a:0c:41:d6:fa:74:af:b4:09:5b
tls.version: TLS 1.2
tls.notbefore: '2015-02-12T18:07:27'
tls.notafter: '2025-02-09T18:07:27'
11 changes: 11 additions & 0 deletions tests/tls/bug-7286-tls-metadata-02/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Test

Showcase how TLS metadata is logged when JA4 is enabled.

### Pcap

Reused from test ja4-tls.

### Ticket

https://redmine.openinfosecfoundation.org/issues/7286
Binary file added tests/tls/bug-7286-tls-metadata-02/input.pcap
Binary file not shown.
14 changes: 14 additions & 0 deletions tests/tls/bug-7286-tls-metadata-02/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
%YAML 1.1
---


outputs:
- eve-log:
enabled: yes
filetype: regular #regular|syslog|unix_dgram|unix_stream|redis
filename: eve.json
types:
- tls:
extended: yes # enable this for extended logging information
custom: [subject, issuer, session_resumed, serial, fingerprint, sni, version, not_before, not_after, ja3, ja3s, ja4]
ja4: on
15 changes: 15 additions & 0 deletions tests/tls/bug-7286-tls-metadata-02/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pcap: ../../ja4-tls/input.pcap

checks:
- filter:
count: 1
match:
event_type: tls
tls.subject: C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS
tls.issuerdn: C=FR, ST=IDF, L=Paris, O=Stamus, CN=SELKS
tls.serial: 00:97:E6:47:09:8E:EA:C9:B4
tls.fingerprint: 3a:0b:3b:23:15:2c:44:5c:27:ac:6a:0c:41:d6:fa:74:af:b4:09:5b
tls.version: TLS 1.2
tls.notbefore: '2015-02-12T18:07:27'
tls.notafter: '2025-02-09T18:07:27'

0 comments on commit a752d0a

Please sign in to comment.