TMAegis
Thêm quy tắc cho linux

TMA-LNX-NET-ACCEPT-REDIRECTS

Ensure ICMP redirects are not accepted

Trung bìnhCấp 1Tự độnglinux

Mô tả

Kernel parameter net.ipv4.conf.all.accept_redirects should be 0.

Cách kiểm tra

Phương pháp kiểm tra: Lệnh shell

shell
sysctl -n net.ipv4.conf.all.accept_redirects
Đầu ra mong đợi
0

Cách khắc phục

Phương pháp khắc phục: Lệnh shell

shell
sysctl -w net.ipv4.conf.all.accept_redirects=0 && printf 'net.ipv4.conf.all.accept_redirects = 0\n' > /etc/sysctl.d/60-tmaegis-net_ipv4_conf_all_accept_redirects.conf

Thuộc tính

Hệ điều hành
ubuntu-22.04, ubuntu-24.04, rocky-9
Thẻ
kernelsysctlnetwork
Tham chiếu
CIS Linux Benchmark - Network Configuration / Kernel Parameters (verify section number for your distro release)

Kiểm tra máy này

Chạy lệnh này trên máy bạn được phép kiểm tra. Lần quét chỉ ở chế độ đọc.

shell
tmaegis scan --target linux