TMAegisBeta
Thêm quy tắc cho freebsd

FreeBSD

TMA-FREEBSD-1.1.1.2

Ensure msdosfs kernel module is not available

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

Mô tả

The msdosfs driver will permit the FreeBSD kernel to read and write MS-DOS based file systems. Removing support for unneeded file system types reduces the local attack surface of the system. This module is required only when reading or writing from MS-DOS based filesystems such as FAT16 or FAT32 file systems. Audit: `kldstat -q -m msdosfs` must report the module is not loaded.

Cách kiểm tra

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

shell
command -v kldstat >/dev/null 2>&1 || exit 1; kldstat -q -m msdosfs && echo "msdosfs kernel module is loaded" || echo compliant
Đầu ra mong đợi
compliant

Cách khắc phục

Phương pháp khắc phục: Hướng dẫn hoặc bản vá hạ tầng

kldunload -f msdosfs; printf 'msdosfs_load="NO"\n' >> /boot/loader.conf (remove any msdosfs_load="YES" and kld_list entry)

Thuộc tính

Hệ điều hành
Bất kỳ
Thẻ
freebsdhardening
Tham chiếu
CIS FreeBSD 14 Benchmark v1.0.1 - 1.1.1.2 Ensure msdosfs kernel module is not available

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 freebsd