Skip to content

Normalize TLS fields and harden JA4 parsing#280

Merged
vlvkobal merged 2 commits intoFoxIO-LLC:mainfrom
vlvkobal:fix-python-ciphers
Jan 29, 2026
Merged

Normalize TLS fields and harden JA4 parsing#280
vlvkobal merged 2 commits intoFoxIO-LLC:mainfrom
vlvkobal:fix-python-ciphers

Conversation

@vlvkobal
Copy link
Member

Fixes #273

This PR introduces centralized normalization helpers for TLS fields (extensions, ciphers, versions, signature algorithms) to consistently handle mixed input types (ints, hex strings, decimal strings) in the Python implementation.

It simplifies JA4/JA4S code paths by removing ad-hoc formatting, fixes edge cases with empty or missing fields, and makes parsing more robust against malformed packets.

@vlvkobal vlvkobal merged commit e9f7104 into FoxIO-LLC:main Jan 29, 2026
1 check passed
@vlvkobal vlvkobal deleted the fix-python-ciphers branch January 29, 2026 14:55
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.

Python JA4 hash work incorrectly since ciphers are presented as decimals

1 participant