View all Worklets
Linux

Linux - System Preferences - Disable USB Storage

Disables USB Storage access on Linux endpoints.

Worklet Details

Introduction to the Bash-Based Disable USB storage Worklet

The Disable USB storage Worklet is a Linux-compatible solution designed to prevent the use of USB storage devices on targeted endpoints. In today's cybersecurity landscape, unauthorized access and data leakage through external drives pose significant risks to organizations. 

This Worklet serves as an effective countermeasure against these threats by disabling the functionality of USB storage devices and maintaining a secure environment.

Why would you use the Disable USB storage Worklet?

There are several reasons why an organization might choose to implement the Disable USB storage Worklet, and disable USB storage. For instance, sensitive data could accidentally or intentionally be transferred to a removable storage device, potentially leading to a data breach. 

Malware can also be introduced into an organization's network through infected USB flash drives or other external devices. By blocking access to these types of removable storage devices, this Worklet reduces the attack surface for potential cyber threats.

Components of the Disable USB Storage Worklet

This Worklet consists of two main components: evaluation code and remediation code. The evaluation code checks if any changes should be made to disable USB ports in Linux systems while remediation code makes necessary changes based on evaluation results. 

This structure ensures that only necessary actions are taken if needed.

How does the Disable USB Storage Worklet work?

The Disable USB Storage Worklet operates by identifying and disabling USB storage modules on supported Linux systems. Upon execution, it searches for the relevant drivers associated with these modules and moves them to a secure location, preventing their reloading upon rebooting the system. If any currently loaded modules are detected, they are unloaded immediately.

What is the expected outcome when you use the Disable USB Storage Worklet?

When successfully executed, this Worklet effectively disables all connected and future connected removable storage devices such as USB flash drives from being used on targeted Linux systems. This Worklet is designed to prevent unauthorized users from exploiting USB ports for unauthorized purposes such as transferring sensitive information or introducing malware through removable storage access. It is important to note that this Worklet does not disable other USB devices such as keyboards or mice, ensuring that the usability of the system remains unaffected.

By leveraging this Worklet, administrators can effectively block USB storage devices, mitigate risks related to data leakage and infection by malicious software, and maintain compliance with various cybersecurity regulations.

View in app

Consider Worklets your easy button

What's a Worklet?

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.

do more with worklets