zeek/testing/btest/scripts/base/protocols
Johanna Amann e14eddeb97 SSL Analyzer: track connection direction by messages
This PR changes the way in which the SSL analyzer tracks the direction
of connections. So far, the SSL analyzer assumed that the originator of
a connection would send the client hello (and other associated
client-side events), and that the responder would be the SSL servers.

In some circumstances this is not true, and the initiator of a
connection is the server, with the responder being the client. So far
this confused some of the internal statekeeping logic and could lead to
mis-parsing of extensions.

This reversal of roles can happen in DTLS, if a connection uses STUN -
and potentially in some StartTLS protocols.

This PR tracks the direction of a TLS connection using the hello
request, client hello and server hello handshake messages. Furthermore,
it changes the SSL events from providing is_orig to providing is_client,
where is_client is true for the client_side of a connection. Since the
argument positioning in the event has not changed, old scripts will
continue to work seamlessly - the new semantics are what everyone
writing SSL scripts will have expected in any case.

There is a new event that is raised when a connection is flipped. A
weird is raised if a flip happens repeatedly.

Addresses GH-2198.
2022-06-24 18:35:44 +01:00
..
arp Initial implementation of Lower-Level analyzers 2020-09-23 11:13:25 -07:00
bittorrent Adding test for BitTorrent tracker. 2021-12-21 17:48:26 +01:00
conn GH-1252: rename files with colons for Windows compatibility 2020-11-04 10:29:52 -08:00
dce-rpc Fix protocol forwarding in dce_rpc-auth 2021-09-23 08:50:11 -04:00
dhcp regularize test suite names to avoid custom/outdated suffices 2022-05-12 13:32:49 -07:00
dnp3 General btest cleanup 2020-08-11 11:26:22 -07:00
dns add svcb test case 2021-10-12 17:43:32 -04:00
ftp Implement X509 certificate log caching 2021-06-29 09:41:40 +01:00
http Fix HTTP evasion 2021-07-23 09:28:29 +02:00
icmp Remove deprecated ICMP events 2021-01-27 10:52:40 -07:00
imap Baseline updates for recent SSL changes. 2021-06-29 15:03:03 +01:00
irc General btest cleanup 2020-08-11 11:26:22 -07:00
krb General btest cleanup 2020-08-11 11:26:22 -07:00
modbus General btest cleanup 2020-08-11 11:26:22 -07:00
mount GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
mqtt GH-474: change MQTT::max_payload_size to be a runtime option 2019-08-05 18:11:54 -07:00
mysql Add btest for GH-1084 2020-07-24 09:28:11 -05:00
ncp General btest cleanup 2020-08-11 11:26:22 -07:00
nfs GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
ntp General btest cleanup 2020-08-11 11:26:22 -07:00
pop3 GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00
portmap GH-684: Fix parsing of RPC calls with non-AUTH_UNIX flavors 2019-11-13 13:14:14 -08:00
radius Convert pcapng test suite files to pcap format 2019-11-08 13:08:06 -08:00
rdp Baseline updates for recent SSL changes. 2021-06-29 15:03:03 +01:00
rfb regularize test suite names to avoid custom/outdated suffices 2022-05-12 13:32:49 -07:00
sip GH-1507: Tolerate junk data before SIP requests 2021-04-14 15:34:07 -07:00
smb Merge remote-tracking branch 'origin/topic/vlad/gh-1286' 2020-12-07 16:08:04 -08:00
smtp GH-1352: Added flag to stop processing SMTP headers in attached 2021-01-21 14:55:10 -05:00
snmp General btest cleanup 2020-08-11 11:26:22 -07:00
socks General btest cleanup 2020-08-11 11:26:22 -07:00
ssh Change SSH version field to be &optional. 2021-06-17 09:24:46 +02:00
ssl SSL Analyzer: track connection direction by messages 2022-06-24 18:35:44 +01:00
syslog General btest cleanup 2020-08-11 11:26:22 -07:00
tcp Add testcase for TCP segment offloading. 2021-11-23 12:37:55 +00:00
xmpp GH-239: Rename bro to zeek, bro-config to zeek-config, and bro-path-dev to zeek-path-dev. 2019-05-01 21:43:45 +00:00