Skip to content
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

[fix] JA4L: Handle "impure" TCP flags #24

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

vvv
Copy link
Collaborator

@vvv vvv commented Nov 9, 2023

Bug report: #22

@vvv vvv self-assigned this Nov 9, 2023
@vvv vvv requested a review from igr001-galactica November 9, 2023 16:16
Comment on lines -379 to -391
/// A fingerprint that was obtained from a single packet.
///
/// `PacketFingerprint` can represent JA4 (TLS client), JA4S (TLS server), or
/// JA4H (HTTP client) fingerprint. Other types of fingerprints are derived from
/// multiple packets.
#[derive(Debug, Serialize)]
// HACK: Use a configuration parameter to enable serialization of packet numbers.
#[cfg_attr(not(debug_assertions), serde(transparent))]
struct PacketFingerprint {
#[cfg_attr(not(debug_assertions), serde(skip_serializing), allow(dead_code))]
packet: PacketNum,
fp: String,
}
Copy link
Collaborator Author

@vvv vvv Nov 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dead code. I'm surprised that neither compiler nor clippy were able to detect it.

Comment on lines +14 to +15
ja4l_c: 62_64
ja4l_s: 17255_63
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Previous version (0.15.1) wouldn't generate these JA4L fingerprints.

@igr001-galactica igr001-galactica merged commit 6d4e5eb into FoxIO-LLC:main Nov 10, 2023
9 checks passed
@vvv vvv deleted the rs.fix.issue-22 branch November 20, 2023 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants