Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is port knocking really a security thing or is it theater?


Security is built in layers. Is it theoretically possible for someone on the network to observe the knock sequence? Yes. Is it likely to happen in any but the most adversarial of conditions? No. And if it’s implemented in a cryptographically secure way, like fwknop, then it’s really very good.


One of the oldest canards in security: "defense in depth", "security is built in layers", which you can use to justify any performative measure.


Can you expand on why you think it’s performative?


Why what's performative? Fail2ban? Because using passwords with SSH is malpractice, and if you aren't, fail2ban literally doesn't do anything.


Prevents some types of distributed slow brute force attack, port scans, and 99.98% of nuisance traffic on the ports. Most effective when interleaved with port-sequence-close and port-trip-wire firewall random-delayed black-hole rules. Note login time window restrictions and fail2ban should also be active.

Obfuscating your ssh traffic over SSL or Iodine tunnel traffic can punch through many sandbox networks that try to jack secure traffic.

People will argue time constrained tap sequences (think Morse code) are also easily logged with a sniffer, but in general fail2ban rules can email you as the ssh noise should be nearly nonexistent.

i.e. One can determine if a route/VPN is attacking secure traffic links, or has uncanny insight into internal security policy.

Some people post bad policies for setting up ssh, email, and web servers...

Setting up knocking should be the first step on a new server image, as many folks lock themselves out the first run (and on some occasions need to re-image the host). =3


In my opinion it's primarily for less noisy logs.


Pure theater.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: