Rapid7

module

udev Persistence

Disclosed
Nov 1, 2003
Created
Jan 9, 2026

Description

This module will add a script in /lib/udev/rules.d/ in order to execute a payload written on disk.
It'll be executed with root privileges everytime a network interface other than l0 comes up.
Execution is triggered through at command, so it must be installed on the target.

Author

Julien Voisin

Platform

Linux,Unix

Architectures

cmd, x86, x64, armle, aarch64, ppc, mipsle, mipsbe

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use exploit/linux/persistence/udev
msf exploit(udev) > show targets
...targets...
msf exploit(udev) > set TARGET < target-id >
msf exploit(udev) > show options
...show and set options...
msf exploit(udev) > exploit

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.