Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What benefit is conferred by TCP timestamp?

I have a security scan finding directing me to disable TCP timestamps. I understand the reasons for the recommendation: the timestamp can be used to calculate server uptime, which can be helpful to an attacker (good explanation under heading "TCP Timestamps" at http://www.silby.com/eurobsdcon05/eurobsdcon_silbersack.pdf).

However, it's my understanding that TCP timestamps are intended to enhance TCP performance. Naturally, in the cost/benefit analysis, performance degradation is a big, possibly too big, cost. I'm having a hard time understanding how much, if any, performance cost there is likely to be. Any nodes in the hivemind care to assist?

like image 829
Paul Degnan Avatar asked Oct 24 '11 18:10

Paul Degnan


People also ask

What are TCP timestamps used for?

What is a TCP Timestamp? The timestamps option in TCP enables the endpoints to keep a current measurement of the roundtrip time (RTT) of the network between them. This value helps each TCP stack to set and adjust its retransmission timer.

What is TCP timestamp response?

The TCP timestamp response can be used to approximate the remote host's uptime, potentially aiding in further attacks. Additionally, some operating systems can be fingerprinted based on the behavior of their TCP timestamps.

Why is TCP timestamp a vulnerability?

Vulnerabilities in TCP Timestamps Retrieval is a Low risk vulnerability that is also high frequency and high visibility. This is the most severe combination of security factors that exists and it is extremely important to find it on your network and fix it as soon as possible.

Should you disable TCP timestamps?

Disable TCP Timestamps[edit] To prevent this information leaking to an adversary, it is recommended to disable TCP timestamps on any operating systems in use. The less information available to attackers, the better the security.


1 Answers

The answer is most succinctly expressed in RFC 1323 - Round-Trip Measurement... The introduction to the RFC also provides some relevant historical context...

   Introduction     The introduction of fiber optics is resulting in ever-higher    transmission speeds, and the fastest paths are moving out of the    domain for which TCP was originally engineered.  This memo defines a    set of modest extensions to TCP to extend the domain of its    application to match this increasing network capability.  It is based    upon and obsoletes RFC-1072 [Jacobson88b] and RFC-1185 [Jacobson90b].     (3)  Round-Trip Measurement         TCP implements reliable data delivery by retransmitting        segments that are not acknowledged within some retransmission        timeout (RTO) interval.  Accurate dynamic determination of an        appropriate RTO is essential to TCP performance.  RTO is        determined by estimating the mean and variance of the        measured round-trip time (RTT), i.e., the time interval        between sending a segment and receiving an acknowledgment for        it [Jacobson88a].         Section 4 introduces a new TCP option, "Timestamps", and then        defines a mechanism using this option that allows nearly        every segment, including retransmissions, to be timed at        negligible computational cost.  We use the mnemonic RTTM        (Round Trip Time Measurement) for this mechanism, to        distinguish it from other uses of the Timestamps option. 

The specific performance penalty you incur by disabling timestamps would depend on your specific server operating system and how you do it (for examples, see this PSC doc on performance tuning). Some OS require that you either enable or disable all RFC1323 options at once... others allow you to selectively enable RFC 1323 options.

If your data transfer is somehow throttled by your virtual server (maybe you only bought the cheap vhost plan), then perhaps you couldn't possibly use higher performance anyway... perhaps it's worth turning them off to try. If you do, be sure to benchmark your before and after performance from several different locations, if possible.

like image 167
Mike Pennington Avatar answered Oct 03 '22 04:10

Mike Pennington