You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the variable _options_er holds the echo reply value from the TCP options.
The tcpTimeStampEchoReply value is defined to be '' (an empty string) and is only populated if the TCP timestamps option is found within the parsed TCP options. However, the check for syn packets checks whenever this value is != 0 as seen above. So this check will evaluate to true for all syn packets that do not have the TCP timestamps option, because in those cases tcpTimeStampEchoReply == '' != 0.
I wanted to ask and verify whether or not this is the expected and intended behavior, as it affects which packets are parsed to signatures that have the 'T' oddity.
Thanks!
The text was updated successfully, but these errors were encountered:
This code was written and initially based off my understanding of p0f v1 back in the early 2000's:
Quirks section is usually an empty list ('.') of oddities or bugs of this
particular stack. List items are not separated in any way. Possible values:
P - options past EOL,
Z - zero IP ID,
I - IP options specified,
U - urg pointer non-zero,
X - unused (x2) field non-zero,
A - ACK number non-zero,
T - non-zero second timestamp,
F - unusual flags (PUSH, URG, etc),
D - data payload,
! - broken options segment.
T = "non-zero second timestamp" there, but with that said it sounds like it really needs looked at and potentially rewritten to do what was actually desired here. Though with that said the fingerprints still should be accurate here so even with the bug it hopefully isn't causing any actual issues with detection.
Thanks for the deep dive and information here, it gives me some good starting points!
There are many TCP signatures which have the 'T' oddity, for example in the signature below:
satori/fingerprints/tcp.xml
Line 1014 in 0637823
By looking at the code that generates these oddities, I noticed that the 'T' oddity is added in one of two cases:
The potential issue is in the second case:
satori/satoriTCP.py
Lines 225 to 226 in 0637823
where the variable _options_er holds the echo reply value from the TCP options.
The tcpTimeStampEchoReply value is defined to be '' (an empty string) and is only populated if the TCP timestamps option is found within the parsed TCP options. However, the check for syn packets checks whenever this value is != 0 as seen above. So this check will evaluate to true for all syn packets that do not have the TCP timestamps option, because in those cases tcpTimeStampEchoReply == '' != 0.
I wanted to ask and verify whether or not this is the expected and intended behavior, as it affects which packets are parsed to signatures that have the 'T' oddity.
Thanks!
The text was updated successfully, but these errors were encountered: