Catalina - Enable Firewall Stealth Mode

Information

Firewall Stealth Mode _MUST_ be enabled.

When stealth mode is enabled, the Mac will not respond to any probing requests, and only requests from authorized applications will still be authorized.

[IMPORTANT]
====
Enabling firewall stealth mode may prevent certain remote mechanisms used for maintenance and compliance scanning from properly functioning. Information System Security Officers (ISSOs) are advised to first fully weigh the potential risks posed to their organization before opting not to enable stealth mode.
====

Solution

[source,bash]
----
/usr/libexec/ApplicationFirewall/socketfilterfw --setstealthmode on
----

See Also

https://github.com/usnistgov/macos_security