documentation/modules/post/linux/gather/enum_protections.md
This module enumerates system hardening and security protections on a Linux target. It requires an existing session on any Linux host.
It checks for:
Results are saved as notes in the database when a database is connected.
use post/linux/gather/enum_protectionsset SESSION <session>runmsf6 post(linux/gather/enum_protections) > set SESSION 1
SESSION => 1
msf6 post(linux/gather/enum_protections) > run
[*] Running module against 192.168.200.158 [ubuntu-22-04-amd64]
[*] Info:
[*] Ubuntu 22.04 LTS
[*] Linux ubuntu-22-04-amd64 5.19.0-38-generic #39~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 17 21:16:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
[*] Finding system protections...
[+] ASLR is enabled
[+] SMEP is enabled
[+] SMAP is enabled
[+] Unprivileged BPF is disabled
[+] Kernel pointer restriction is enabled
[+] dmesg restriction is enabled
[+] Yama is installed and enabled
[+] User namespaces are enabled (unprivileged may be available)
[*] Finding installed applications via their executables...
[+] aa-status found: /usr/sbin/aa-status
[+] iptables found: /usr/sbin/iptables
[+] logrotate found: /usr/sbin/logrotate
[+] nft found: /usr/sbin/nft
[+] tcpdump found: /usr/bin/tcpdump
[+] ufw found: /usr/sbin/ufw
[*] Finding installed applications via their configuration files...
[+] nftables found: /etc/nftables.conf
[*] Post module execution completed