3 ms·
If this is a joke, it is very well executed.
by tptacek 6y ago
If this is a joke, it is very well executed.
- ffk 6y agoIt's not a joke, BGP servers used to authenticate each other with this in the late 90s. This was also before NAT was really a thing.
- walrus01 6y agoa very small percentage of ISPs at some major IX points still want MD5 auth on BGP sessions across the fabric. Usually a moot point these days since the IX operator should have solid, reliable documentation of exactly what switch port and fiber patch panel assignment goes to which cage/suite/cabinet and ISP. Or in the case of a PNI between two ISPs over their own cross connect, you absolutely want to have a mutual level of trust and cooperation between the BGP peers on both sides of the session. And then other more modern methods of verifying that the IP blocks you're seeing from some other AS are legit, like verifying their RPKI signatures, IRR entries, etc.
- thomashabets2 6y agoCitation needed. The ISPs I've worked for run this pretty much everywhere. I mean it's the only auth that exists for BGP, so why would you not want it?
- walrus01 6y agoCitation needed: I've maintained direct sessions over the fabric (not via route servers) between my AS and peers' ASes, with over a hundred ISPs, at some of the world's largest IXes. Out of those more than a hundred, maybe 3 used MD5. We also have a lot of PNIs direct with other carriers with POPs in the same building. Sorry I obviously can't provide a copy/paste of the junos config showing all the peers.
- thomashabets2 6y agoUh, they very much still do.
- thomashabets2 6y agoNot a joke. I'm suspecting you don't understand that this is using a kernel-level feature, so if you think the joke is MD5, then please add rfc5925 to every OS so that I can switch to a better algorithm. You use what actually exists. It's orders of magnitude better than portknocking BS.
- tptacek 6y agoDeploying a half-assed encrypted transport in front of a full-assed encrypted transport because you're afraid you might not know how to configure the full-assed encrypted transport is pretty funny, which is why I thought it might be a joke. Port knocking, fail2ban, nonstandard SSH ports, all of that stuff is theater.
- mlyle 6y agoThere is a benefit from this "half-assed" encrypted transport, though-- someone in the middle who can inject packets can't disrupt your connection.
- tptacek 6y agoWhatever they did to get into a vantage point where they can predict sequence numbers gives them a bunch of other tools to disrupt connectivity.
- mlyle 6y agoPerhaps, perhaps not.
- thomashabets2 6y agoAside from DDoS, no not really. Not if every single accepted packet needs to be signed.
- thomashabets2 6y agoWell, sorta. TCP MD5 hasn't had preauth exploits. OpenSSH has. But also, like I said in my blog post (https://blog.habets.se/2019/11/TCP-MD5.html https://blog.habets.se/2019/11/TCP-MD5.html) this isn't just about targeted attacks, but this also hides from things like Shodan, which connects to all your ports and records your headers. It helps with wide-scale scanning and wide exploitation. Security isn't a yes/no, and getting out these databases without restricting by IP address isn't without actual security value. E.g. if you do this then next time there's an OpenSSH bug, you won't be in Shodan and other more secret scanning databases to be picked off right away. Port knocking is just plain overengineered silliness. If plaintext password to unlock another port is what you want, set up a UDP server. "Connecting to random ports" is just fooling yourself about what you're doing. TCP MD5 least has the benefit that it prevents any kind of shenanigans happening to your connection. fail2ban, agreed. The value fail2ban adds is keeping your logs more quiet. nonstandard SSH ports, agreed. Especially after everyone and their dog scans all ports on the whole internet now anyway.