-
Notifications
You must be signed in to change notification settings - Fork 91
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
Verify bypass behavior under different traffic profiles v3 #2114
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Test Description | ||
|
||
Tests that no traffic is bypassed even with minimal reassembly depth | ||
|
||
## PCAP | ||
|
||
Source: https://wiki.wireshark.org/SampleCaptures | ||
File: dump.pcapng | ||
|
||
## Related issues | ||
|
||
Created with a work to decouple stream.bypass setting from TLS encrypted bypass. | ||
https://redmine.openinfosecfoundation.org/issues/6788 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
requires: | ||
min-version: 7 | ||
|
||
args: | ||
- -k none | ||
- --set app-layer.protocols.tls.encryption-handling=full | ||
- --set app-layer.protocols.ssh.encryption-handling=full | ||
- --set stream.reassembly.depth=1 | ||
- --set stream.bypass=false | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
- stats: | ||
flow_bypassed.local_pkts: 0 | ||
flow_bypassed.local_bytes: 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Test Description | ||
|
||
Tests that traffic is bypassed after reaching the reassembly depth | ||
|
||
## PCAP | ||
|
||
Source: https://wiki.wireshark.org/SampleCaptures | ||
File: dump.pcapng | ||
|
||
## Related issues | ||
|
||
Created with a work to decouple stream.bypass setting from TLS encrypted bypass. | ||
https://redmine.openinfosecfoundation.org/issues/6788 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
requires: | ||
min-version: 7 | ||
|
||
args: | ||
- -k none | ||
- --set app-layer.protocols.tls.encryption-handling=full | ||
- --set app-layer.protocols.ssh.encryption-handling=full | ||
- --set stream.reassembly.depth=1 | ||
- --set stream.bypass=true | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
- stats: | ||
flow_bypassed.local_pkts: 11 | ||
flow_bypassed.local_bytes: 6126 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Test Description | ||
|
||
Tests that the encrypted part of the SSH traffic is bypassed but it should not | ||
bypass based on the depth | ||
|
||
## PCAP | ||
|
||
Source: https://www.cloudshark.org/captures/9b72eb8febf9 | ||
File: ssh-server-client.pcapng | ||
|
||
## Related issues | ||
|
||
Created with a work to decouple stream.bypass setting from TLS encrypted bypass. | ||
https://redmine.openinfosecfoundation.org/issues/6788 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
args: | ||
- -k none | ||
- --set app-layer.protocols.tls.encryption-handling=full | ||
- --set app-layer.protocols.ssh.encryption-handling=bypass | ||
- --set stream.reassembly.depth=1MB | ||
- --set stream.bypass=false | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
- stats: | ||
flow_bypassed.local_pkts: 45 | ||
flow_bypassed.local_bytes: 3972 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Test Description | ||
|
||
Tests that no traffic is bypassed with disabled bypass settings | ||
|
||
## PCAP | ||
|
||
Source: https://wiki.wireshark.org/SampleCaptures | ||
File: dump.pcapng | ||
|
||
## Related issues | ||
|
||
Created with a work to decouple stream.bypass setting from TLS encrypted bypass. | ||
https://redmine.openinfosecfoundation.org/issues/6788 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
requires: | ||
min-version: 7 | ||
|
||
args: | ||
- -k none | ||
- --set app-layer.protocols.tls.encryption-handling=full | ||
- --set app-layer.protocols.ssh.encryption-handling=full | ||
- --set stream.reassembly.depth=1MB | ||
- --set stream.bypass=false | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
- stats: | ||
flow_bypassed.local_pkts: 0 | ||
flow_bypassed.local_bytes: 0 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Test Description | ||
|
||
Tests that the encrypted part of the traffic is bypassed but it should not | ||
bypass based on the depth | ||
|
||
## PCAP | ||
|
||
Source: https://wiki.wireshark.org/SampleCaptures | ||
File: dump.pcapng | ||
|
||
## Related issues | ||
|
||
Created with a work to decouple stream.bypass setting from TLS encrypted bypass. | ||
https://redmine.openinfosecfoundation.org/issues/6788 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
requires: | ||
min-version: 8 | ||
|
||
args: | ||
- -k none | ||
- --set app-layer.protocols.tls.encryption-handling=bypass | ||
- --set app-layer.protocols.ssh.encryption-handling=full | ||
- --set stream.reassembly.depth=1MB | ||
- --set stream.bypass=false | ||
|
||
checks: | ||
- filter: | ||
count: 1 | ||
match: | ||
event_type: stats | ||
- stats: | ||
flow_bypassed.local_pkts: 4 | ||
flow_bypassed.local_bytes: 275 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ features: | |
- RUST | ||
|
||
args: | ||
- -k none --set stream.bypass=yes | ||
- -k none --set stream.bypass=yes --set app-layer.protocols.ssh.encryption-handling=bypass | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this change ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. behavior change
Previously SSH was bypassed after the session turned encrypted, now we need to be more explicit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re
So previously when the SSH session turned encrypted and stream bypass was allowed then it bypassed the flow. This was not related to reaching the stream depth but only to the session state. |
||
|
||
checks: | ||
# Check that we have the following events in eve.json | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it reusing a pcap ?