Skip to content
This repository was archived by the owner on Oct 13, 2025. It is now read-only.

Commit bd77a9f

Browse files
committed
Generate docs
1 parent 05ceaa3 commit bd77a9f

File tree

3 files changed

+201
-143
lines changed

3 files changed

+201
-143
lines changed

script-reference/autogenerated-protocol-analyzer-index.rst

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15387,7 +15387,7 @@ Events
1538715387
ssh_capabilities ssh2_server_host_key ssh1_server_host_key
1538815388
ssh_server_host_key ssh_encrypted_packet ssh2_dh_server_params
1538915389
ssh2_gss_error ssh2_ecc_key ssh2_ecc_init ssh2_dh_gex_init
15390-
ssh2_gss_init ssh2_rsa_secret
15390+
ssh2_gss_init ssh2_rsa_secret ssh_server_pre_banner_data
1539115391

1539215392
.. zeek:id:: ssh_client_version
1539315393
:source-code: base/bif/plugins/Zeek_SSH.events.bif.zeek 37 37
@@ -15810,6 +15810,27 @@ Events
1581015810
ssh2_gss_error ssh2_ecc_key ssh2_ecc_init ssh2_dh_gex_init
1581115811
ssh2_gss_init ssh2_rsa_secret
1581215812

15813+
.. zeek:id:: ssh_server_pre_banner_data
15814+
:source-code: base/bif/plugins/Zeek_SSH.events.bif.zeek 372 372
15815+
15816+
:Type: :zeek:type:`event` (c: :zeek:type:`connection`, data: :zeek:type:`string`)
15817+
15818+
SSH servers can send textual data to the client before sending
15819+
a banner. The primary use case of this are error messages of TCP
15820+
wrappers.
15821+
15822+
As this event happens before the SSH banner is exchanged, it is
15823+
possible that it contains data from different protocols; e.g. if
15824+
an SSH client connects to a non-SSH-server.
15825+
15826+
15827+
:param c: The connection.
15828+
15829+
15830+
:param data: The pre-banner data.
15831+
15832+
.. zeek:see:: ssh_server_version
15833+
1581315834
.. _plugin-zeek-ssl:
1581415835

1581515836
Zeek::SSL

scripts/base/bif/plugins/Zeek_SSH.events.bif.zeek.rst

Lines changed: 64 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -11,46 +11,48 @@ Summary
1111
~~~~~~~
1212
Events
1313
######
14-
==================================================== ==================================================================
15-
:zeek:id:`ssh1_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
16-
supplies its public host key.
17-
:zeek:id:`ssh2_dh_gex_init`: :zeek:type:`event` Generated if the connection uses a Diffie-Hellman Group Exchange
18-
key exchange method.
19-
:zeek:id:`ssh2_dh_server_params`: :zeek:type:`event` Generated if the connection uses a Diffie-Hellman Group Exchange
20-
key exchange method.
21-
:zeek:id:`ssh2_ecc_init`: :zeek:type:`event` The :abbr:`ECDH (Elliptic Curve Diffie-Hellman)` and
22-
:abbr:`ECMQV (Elliptic Curve Menezes-Qu-Vanstone)` key exchange
23-
algorithms use two ephemeral key pairs to generate a shared
24-
secret.
25-
:zeek:id:`ssh2_ecc_key`: :zeek:type:`event` The :abbr:`ECDH (Elliptic Curve Diffie-Hellman)` and
26-
:abbr:`ECMQV (Elliptic Curve Menezes-Qu-Vanstone)` key exchange
27-
algorithms use two ephemeral key pairs to generate a shared
28-
secret.
29-
:zeek:id:`ssh2_gss_error`: :zeek:type:`event` In the event of a GSS-API error on the server, the server MAY send
30-
send an error message with some additional details.
31-
:zeek:id:`ssh2_gss_init`: :zeek:type:`event` In the event of a GSS-API key exchange, this event is raised on
32-
SSH_MSG_KEXGSS_INIT message.
33-
:zeek:id:`ssh2_rsa_secret`: :zeek:type:`event` In the event of a GSS-API key exchange, this event is raised on
34-
SSH_MSG_KEXRSA_PUBKEY message.
35-
:zeek:id:`ssh2_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
36-
supplies its public host key.
37-
:zeek:id:`ssh_auth_attempted`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
38-
connection was determined to have had an authentication attempt.
39-
:zeek:id:`ssh_auth_successful`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
40-
connection was determined to have had a successful
41-
authentication.
42-
:zeek:id:`ssh_capabilities`: :zeek:type:`event` During the initial :abbr:`SSH (Secure Shell)` key exchange, each
43-
endpoint lists the algorithms that it supports, in order of
44-
preference.
45-
:zeek:id:`ssh_client_version`: :zeek:type:`event` An :abbr:`SSH (Secure Shell)` Protocol Version Exchange message
46-
from the client.
47-
:zeek:id:`ssh_encrypted_packet`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
48-
encrypted packet is seen.
49-
:zeek:id:`ssh_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
50-
supplies its public host key.
51-
:zeek:id:`ssh_server_version`: :zeek:type:`event` An :abbr:`SSH (Secure Shell)` Protocol Version Exchange message
52-
from the server.
53-
==================================================== ==================================================================
14+
========================================================= ==================================================================
15+
:zeek:id:`ssh1_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
16+
supplies its public host key.
17+
:zeek:id:`ssh2_dh_gex_init`: :zeek:type:`event` Generated if the connection uses a Diffie-Hellman Group Exchange
18+
key exchange method.
19+
:zeek:id:`ssh2_dh_server_params`: :zeek:type:`event` Generated if the connection uses a Diffie-Hellman Group Exchange
20+
key exchange method.
21+
:zeek:id:`ssh2_ecc_init`: :zeek:type:`event` The :abbr:`ECDH (Elliptic Curve Diffie-Hellman)` and
22+
:abbr:`ECMQV (Elliptic Curve Menezes-Qu-Vanstone)` key exchange
23+
algorithms use two ephemeral key pairs to generate a shared
24+
secret.
25+
:zeek:id:`ssh2_ecc_key`: :zeek:type:`event` The :abbr:`ECDH (Elliptic Curve Diffie-Hellman)` and
26+
:abbr:`ECMQV (Elliptic Curve Menezes-Qu-Vanstone)` key exchange
27+
algorithms use two ephemeral key pairs to generate a shared
28+
secret.
29+
:zeek:id:`ssh2_gss_error`: :zeek:type:`event` In the event of a GSS-API error on the server, the server MAY send
30+
send an error message with some additional details.
31+
:zeek:id:`ssh2_gss_init`: :zeek:type:`event` In the event of a GSS-API key exchange, this event is raised on
32+
SSH_MSG_KEXGSS_INIT message.
33+
:zeek:id:`ssh2_rsa_secret`: :zeek:type:`event` In the event of a GSS-API key exchange, this event is raised on
34+
SSH_MSG_KEXRSA_PUBKEY message.
35+
:zeek:id:`ssh2_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
36+
supplies its public host key.
37+
:zeek:id:`ssh_auth_attempted`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
38+
connection was determined to have had an authentication attempt.
39+
:zeek:id:`ssh_auth_successful`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
40+
connection was determined to have had a successful
41+
authentication.
42+
:zeek:id:`ssh_capabilities`: :zeek:type:`event` During the initial :abbr:`SSH (Secure Shell)` key exchange, each
43+
endpoint lists the algorithms that it supports, in order of
44+
preference.
45+
:zeek:id:`ssh_client_version`: :zeek:type:`event` An :abbr:`SSH (Secure Shell)` Protocol Version Exchange message
46+
from the client.
47+
:zeek:id:`ssh_encrypted_packet`: :zeek:type:`event` This event is generated when an :abbr:`SSH (Secure Shell)`
48+
encrypted packet is seen.
49+
:zeek:id:`ssh_server_host_key`: :zeek:type:`event` During the :abbr:`SSH (Secure Shell)` key exchange, the server
50+
supplies its public host key.
51+
:zeek:id:`ssh_server_pre_banner_data`: :zeek:type:`event` SSH servers can send textual data to the client before sending
52+
a banner.
53+
:zeek:id:`ssh_server_version`: :zeek:type:`event` An :abbr:`SSH (Secure Shell)` Protocol Version Exchange message
54+
from the server.
55+
========================================================= ==================================================================
5456

5557

5658
Detailed Interface
@@ -478,6 +480,27 @@ Events
478480
ssh2_gss_error ssh2_ecc_key ssh2_ecc_init ssh2_dh_gex_init
479481
ssh2_gss_init ssh2_rsa_secret
480482

483+
.. zeek:id:: ssh_server_pre_banner_data
484+
:source-code: base/bif/plugins/Zeek_SSH.events.bif.zeek 372 372
485+
486+
:Type: :zeek:type:`event` (c: :zeek:type:`connection`, data: :zeek:type:`string`)
487+
488+
SSH servers can send textual data to the client before sending
489+
a banner. The primary use case of this are error messages of TCP
490+
wrappers.
491+
492+
As this event happens before the SSH banner is exchanged, it is
493+
possible that it contains data from different protocols; e.g. if
494+
an SSH client connects to a non-SSH-server.
495+
496+
497+
:param c: The connection.
498+
499+
500+
:param data: The pre-banner data.
501+
502+
.. zeek:see:: ssh_server_version
503+
481504
.. zeek:id:: ssh_server_version
482505
:source-code: base/bif/plugins/Zeek_SSH.events.bif.zeek 19 19
483506

@@ -499,6 +522,6 @@ Events
499522
ssh_capabilities ssh2_server_host_key ssh1_server_host_key
500523
ssh_server_host_key ssh_encrypted_packet ssh2_dh_server_params
501524
ssh2_gss_error ssh2_ecc_key ssh2_ecc_init ssh2_dh_gex_init
502-
ssh2_gss_init ssh2_rsa_secret
525+
ssh2_gss_init ssh2_rsa_secret ssh_server_pre_banner_data
503526

504527

0 commit comments

Comments
 (0)