TMAegisBêta
Plus de règles pour freebsd

FreeBSD

TMA-FREEBSD-5.3.2

Ensure filesystem integrity is regularly checked

MoyenneNiveau 1Automatiséefreebsd

Description

Periodic checking of the filesystem integrity is needed to detect changes to the filesystem. Periodic file checking allows the system administrator to determine on a regular basis if critical files have been changed in an unauthorized fashion. Audit: automated read-only check derived from the CIS audit procedure; it prints "compliant" when the control is met.

Méthode de vérification

Méthode d'audit: Commande shell

shell
{ crontab -l -u root 2>/dev/null; cat /etc/crontab /etc/cron.d/* 2>/dev/null; } | grep -v "^[[:space:]]*#" | grep -Eq "aide[[:space:]].*--(check|update)" && echo compliant || echo "no aide --check cron job"
Sortie attendue
compliant

Méthode de correction

Méthode de correction: Recommandation ou correctif d'infrastructure

Run the following command: # crontab -u root -e Add the following line to the crontab: @daily /usr/bin/lockf -s -t 0 /var/run/aide.lock /usr/local/bin/aide --check

Propriétés

Systèmes d'exploitation
Tous
Étiquettes
freebsdpermissions
Référence
CIS FreeBSD 14 Benchmark v1.0.1 - 5.3.2 Ensure filesystem integrity is regularly checked

Vérifier cet hôte

Exécutez cette commande sur une machine que vous êtes autorisé à auditer. L'analyse est en lecture seule.

shell
tmaegis scan --target freebsd