News for hackers. Stuff that matters.
Re:Linux Security Hardening and Other Tweaks by diablo1 on Friday May 29, 2020 @12:46PM (#23352285)
I always remove NTP functionality because even though NTP is innocuous, the servers still have a perfect opportunity to see when a box is online and keep logs of that. I just go to https://time.is/ and configure my clock manually.
Re:Linux Security Hardening and Other Tweaks by iso1631 on Friday May 29, 2020 @01:28PM (#23352853)
And DNS doesn't?
Re:Linux Security Hardening and Other Tweaks by diablo1 on Friday May 29, 2020 @01:40PM (#23353016)
Well since we're on the topic of hardening Linux, there are people who do this with UFW[0]:

    sudo ufw deny out to any port 80
    sudo ufw deny out to any port 53
[0] https://help.ubuntu.com/community/UFW

This ensures no plaintext http can be sniffed, nor plaintext DNS queries. Then you can just configure DoH in your browser to get DNS functionality back, (in encrypted form usually over port 443).

Doing that depends on your threat model though.

Re:Linux Security Hardening and Other Tweaks by Fnoord on Friday May 29, 2020 @09:50PM (#23357751)
> This ensures no plaintext http can be sniffed

It does not. It blocks all outgoing connections to TCP/UDP 53 and 80. There's no such thing as port 80 UDP HTTP traffic (there is QUIC, which uses TLS by default; your rules would block it by default), and HTTP traffic can be received over a different port than 80 TCP. Your example of NTP is also wrong, as it uses 123 UDP; not TCP. Furthermore, if someone were to skew the clock too much, your average NTP client does not accept such.

This stops only very archaic malware. I guess a poor man's NIDS.

Re:Linux Security Hardening and Other Tweaks by AnonC on Friday May 29, 2020 @02:31PM (#23353730)
This reply doesn’t match your comment on time servers tracking you by IP address. Even with encrypted DNS, your DNS servers can track you the same way your time servers can. I don’t understand your points clearly.
Re:Linux Security Hardening and Other Tweaks by diablo1 on Friday May 29, 2020 @02:42PM (#23353890)
Sorry I diverged a bit. You're right: DoH servers can still see when a box is online and possible keep logs/timestamps of requests. I would trust a DoH server more than a standard DNS server simply because it would be catastrophic for a DoH server's reputation if they were found to be handing over logs to third parties. Cloudflare keeps logs for 24 hours then deletes: but there's still that time window of a day to worry about :/

BTW: You can nuke NTP requests by doing:

        sudo ufw deny out to any port 123
Re:Linux Security Hardening and Other Tweaks by viraptor on Friday May 29, 2020 @10:57PM (#23358083)
What is it that your worried about there? And how is it different from likely sending the same information over in SNI a moment later?
Re:Linux Security Hardening and Other Tweaks by iso1631 on Monday June 01, 2020 @08:23AM (#23377689)
Sounds like he doesn't trust his NTP provider and doesn't want his IP address being sent to the NTP provider, because he wasnt to pretend his IP address is not online.

But he does trust cloudflare for his DNS requests.

Cloudflare run NTP, so just use their server.

The only threat I can see is if someone intercepts his NTP traffic, but they could intercept the DNS traffic too and see his SYNs (and indeed pass them on with you not even noticing)

His concern seems to be more about the IP leaking rather than the NTP result being incorrect, however in the latter case then yes, NTP isn't signed, so it's possible for someone to skew your clock by a few seconds if they were to intercept your traffic to all your NTP servers.

Re:Linux Security Hardening and Other Tweaks by Avamander on Friday May 29, 2020 @05:47PM (#23355940)
Use a trusted timer server the way you use a trusted update server and a trusted resolver.
Re:Linux Security Hardening and Other Tweaks by trop1x on Friday May 29, 2020 @01:03PM (#23352509)
Wise move. Letting any NTP transmissions out is a vulnerability, as you have described. I remove it completely as well.