Hat sounds like a particularly weak form of security by obscurity

Layers of an onion and all that.

Often connectors are even proprietary.

(This is partially to protect systems not from the enemy, but from the troops themselves...)