Skip to content

Commit

Permalink
SSH audit events and contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Jun 27, 2023
1 parent d0fa2ed commit 1e0e520
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions docs/logging-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,35 @@ and TLS probe points.
| `tls::key_exchange_algorithm` | uint16 | Key exchange mode: ECDHE(0), DHE(1), PSK(2), ECDHE-PSK(3), DHE-PSK(4) |
| `tls::group` | uint16 | Groups used in the handshake (as in IANA [registry][iana-tls-supported-groups]) |

##### SSH context names

| name | description |
|------------------------|-----------------------------|
| `ssh::handshake_client`| SSH handshake for client |
| `ssh::handshake_server`| SSH handshake for server |
| `ssh::client_key_sign` | SSH client key proof |
| `ssh::server_key_sign` | SSH server key proof |
| `ssh::key_exchange` | SSH key exchange |

##### SSH keys

All the keys except `rsa_bits` have `string` type.

| key | description | example |
|---------------------------------|--------------------------------------------------|-------------------------------------------------------------|
| `ssh::ident_string` | Software identity string | `SSH-2.0-OpenSSH_8.8` |
| `ssh::key_algorithm` | Key used in handshake | `ssh-ed25519` |
| `ssh::rsa_bits` | Key bits (RSA only) | 2048 |
| `ssh::cert_signature_algorithm` | If cert is used, signature algorithm of the cert | `ecdsa-sha2-nistp521` |
| `ssh::kex_algorithm` | Negotiated key exchange algorithm | `curve25519-sha256` |
| `ssh::kex_group` | Group used for key exchange | For DH from moduli - modulus itself. Otherwise group name. |
| `ssh::c2s_cipher` | Data cipher algorithm | `[email protected]` |
| `ssh::s2c_cipher` | | |
| `ssh::c2s_mac` | Data integrity algorithm | empty string for "implicit" |
| `ssh::s2c_mac` | | |
| `ssh::c2s_compression` | Data compression algorithm | empty string for "none" |
| `ssh::s2c_compression` | | |

### CBOR based logging format definition

The recommended format of storing events is to use a sequence of
Expand Down

0 comments on commit 1e0e520

Please sign in to comment.