TMAegis
Mais regras para pfsense

TMA-PFSENSE-SSH-KEY-ONLY

Ensure SSH, when enabled, accepts public key authentication only

AltaNível 1Automatizadapfsense

Descrição

FAILs when the <ssh> block has <enable>enabled</enable> and sshdkeyonly is absent or set to 'both' (password or key). Passes when SSH is disabled. Audited against the pfSense config.xml (Diagnostics > Backup & Restore > Download configuration, or /cf/conf/config.xml).

Como é verificado

Método de auditoria: Padrão de configuração

Padrão
<ssh>\s*(?:(?:<(?:port|sshport|sshdagentforwarding)>[^<]*</[a-z_]+>|<sshdkeyonly>(?:both|disabled)?</sshdkeyonly>|<[a-z_]+\s*/>)\s*)*<enable>enabled</enable>\s*(?:(?:<(?:port|sshport|sshdagentforwarding)>[^<]*</[a-z_]+>|<sshdkeyonly>(?:both|disabled)?</sshdkeyonly>|<[a-z_]+\s*/>)\s*)*</ssh>

Como é corrigido

Método de correção: Orientação ou patch de infraestrutura

GUI: System > Advanced > Admin Access > Secure Shell > SSHd Key Only = Public Key Only (add keys under System > User Manager first), Save. Or clear Enable Secure Shell.

Propriedades

Sistemas operacionais
Qualquer
Tags
pfsensemanagementsshauthentication
Referência
CIS pfSense Firewall Benchmark - Secure Shell - SSHd Key Only (verify section number for your pfSense release)

Verificar este host

Execute isto em uma máquina que você tenha permissão para auditar. A varredura é somente leitura.

shell
tmaegis scan --target pfsense