TMA-COS-1.1.13
Disable Automounting
MoyenneNiveau 1Automatiséecos
Description
autofs allows automatic mounting of devices, typically including CD/DVDs and USB drives. With automounting enabled anyone with physical access could attach a USB drive or disc and have its contents available in system even if they lacked permissions to mount it themselves.
Méthode de vérification
Méthode d'audit: Commande shell
shell
alt0() { command -v systemctl >/dev/null 2>&1 || { echo "step1: systemctl not installed"; return 1; }; o=$(bash -c 'systemctl is-enabled autofs' 2>&1); printf '%s\n' "$o" | tr -s ' \t' ' ' | sed 's/^ //;s/ $//' | grep -Fxq -- disabled || { echo step1: missing disabled; return 1; }; }; if alt0; then echo compliant; fi- Sortie attendue
compliant
Méthode de correction
Méthode de correction: Recommandation ou correctif d'infrastructure
Run the following command to disable autofs: # systemctl disable autofs
Propriétés
- Systèmes d'exploitation
- Tous
- Étiquettes
- container-optimized-oscos
- Référence
- CIS Google Container-Optimized OS Benchmark v1.2.0 - 1.1.13 Disable Automounting
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 cos