Skip to content

Fix JA4SSH SSH detection, direction handling, and ACK counting in the Python implementation#281

Merged
vlvkobal merged 1 commit intoFoxIO-LLC:mainfrom
vlvkobal:fix-python-ssh
Jan 29, 2026
Merged

Fix JA4SSH SSH detection, direction handling, and ACK counting in the Python implementation#281
vlvkobal merged 1 commit intoFoxIO-LLC:mainfrom
vlvkobal:fix-python-ssh

Conversation

@vlvkobal
Copy link
Member

Improves JA4SSH fingerprint accuracy in the Python implementation by making SSH packet detection and stats handling more robust.

Changes:

  • Detect SSH using direction and SSH-specific fields, not only protos
  • Normalize parsing of len, flags, and ports
  • Prefer explicit packet direction when available
  • Correctly count bare ACKs (0x0010, zero payload) per client/server
  • Use deterministic mode calculation for payload sizes

Python test fixtures are updated to reflect the corrected behavior.

@vlvkobal vlvkobal merged commit eed3f95 into FoxIO-LLC:main Jan 29, 2026
1 check passed
@vlvkobal vlvkobal deleted the fix-python-ssh branch January 29, 2026 19:20
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.

1 participant