Disables freevxfs filesystem mounting on Linux endpoints to reduce kernel attack surface
This Automox Worklet™ detects whether the freevxfs kernel module is loaded on your Linux endpoint and, if found, disables it. The Worklet creates a kernel module configuration file that prevents freevxfs from loading on future boots and unloads any currently loaded module.
The freevxfs filesystem is an obscure, rarely-used format that is not needed on most modern Linux systems. Removing unused filesystem drivers reduces the kernel's attack surface and eliminates potential security vulnerabilities from code paths that are unlikely to be actively maintained.
d/freevxfs.conf".
Unused kernel modules create unnecessary attack surface by introducing additional code paths that could contain exploitable vulnerabilities. The freevxfs filesystem is rarely used in modern Linux deployments, yet when left enabled, it consumes system resources and increases the complexity of your kernel.
The CIS Distribution Independent Linux Benchmark explicitly recommends disabling mounting of unused filesystem types to minimize security risks. By removing the freevxfs module, you reduce the kernel's attack surface and eliminate potential exploitation vectors.
Applying this Worklet across your Linux fleet maintains consistent security posture and demonstrates compliance with industry security standards.
Evaluation phase: The Worklet checks if the freevxfs filesystem is available on the system using modprobe -n -v freevxfs. If available, it then uses lsmod to determine whether the freevxfs module is currently loaded in the kernel.
Remediation phase: The Worklet creates a configuration file at /etc/modprobe.d/freevxfs.conf with the line install freevxfs /bin/true, which prevents the module from loading. It then unloads any currently loaded freevxfs module using rmmod freevxfs.
Linux operating system (all distributions supported)
Root or sudo access required for kernel module operations
freevxfs filesystem support must be compiled into the kernel or available as a loadable module
No active mounts using the freevxfs filesystem
After remediation, the freevxfs kernel module will no longer load on your endpoints. You can expect these specific outcomes:
The configuration file /etc/modprobe.d/freevxfs.conf exists with the line "install freevxfs /bin/true"
Running lsmod no longer shows the freevxfs module in the loaded kernel modules list
The module block persists across reboots through the modprobe configuration
Attempting to mount freevxfs filesystems will fail with an error
Run this Worklet on a pilot Linux endpoint and review evaluation output for verify mounting of freevxfs filesystems is disabled.
Confirm Automox activity logs show successful completion and exit code 0.
Verify endpoint state using checks aligned to evaluation script logic, such as else, exit.
Validate remediation effects from script operations such as function, touch, rmmod, then rerun evaluation for compliance.
For technical validation, compare endpoint state to the Worklet evaluation logic and remediation flow for verify mounting of freevxfs filesystems is disabled. This supports repeatable system preferences workflows, faster change control review, and auditable compliance evidence.
Useful script references for this Worklet include evaluation operations such as else, exit and remediation operations such as function, touch, rmmod. Use these indicators to verify that endpoint changes match intended policy outcomes.


By submitting this form you agree to our Master Services Agreement and Privacy Policy.
Already have an account? Log in
Consider Worklets your easy button
A Worklet is an automation script, written in Bash or PowerShell, designed for seamless execution on endpoints – at scale – within the Automox platform. Worklet automation scripts perform configuration, remediation, and the installation or removal of applications and settings across Windows, macOS, and Linux.

AUTOMOX + WORKLETS™
Uncover new possibilities with simple, powerful automation.
By submitting this form you agree to our Master Services Agreement and Privacy Policy