Skip to content

Commit

Permalink
Modify Tls structure - client_cipher_suites, client_extensions, exten…
Browse files Browse the repository at this point in the history
…sions
  • Loading branch information
syncpark committed Apr 22, 2024
1 parent 7ba068e commit ed6ece9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ file is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and
this project adheres to [Semantic
Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Changed

- Modified tls event structure to store: `client_cipher_suites`, `client_extensions`,
`extensions`

## [0.16.0] - 2024-02-16

### Changed
Expand Down Expand Up @@ -225,6 +232,7 @@ Versioning](https://semver.org/spec/v2.0.0.html).

- Move from giganto

[Unreleased]: https://github.com/aicers/giganto-client/compare/0.16.0...main
[0.16.0]: https://github.com/aicers/giganto-client/compare/0.15.2...0.16.0
[0.15.2]: https://github.com/aicers/giganto-client/compare/0.15.1...0.15.2
[0.15.1]: https://github.com/aicers/giganto-client/compare/0.15.0...0.15.1
Expand Down
8 changes: 7 additions & 1 deletion src/ingest/network.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,10 @@ pub struct Tls {
pub alpn_protocol: String,
pub ja3: String,
pub version: String,
pub client_cipher_suites: Vec<u16>,
pub client_extensions: Vec<u16>,
pub cipher: u16,
pub extensions: Vec<u16>,
pub ja3s: String,
pub serial: String,
pub subject_country: String,
Expand All @@ -750,7 +753,7 @@ impl Display for Tls {
fn fmt(&self, f: &mut Formatter) -> std::fmt::Result {
write!(
f,
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
"{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}",
self.orig_addr,
self.orig_port,
self.resp_addr,
Expand All @@ -761,7 +764,10 @@ impl Display for Tls {
as_str_or_default(&self.alpn_protocol),
as_str_or_default(&self.ja3),
as_str_or_default(&self.version),
vec_to_string_or_default(&self.client_cipher_suites),
vec_to_string_or_default(&self.client_extensions),
self.cipher,
vec_to_string_or_default(&self.extensions),
as_str_or_default(&self.ja3s),
as_str_or_default(&self.serial),
as_str_or_default(&self.subject_country),
Expand Down

0 comments on commit ed6ece9

Please sign in to comment.