Rapid7

module

Yum Package Manager Persistence

Disclosed
Dec 17, 2003
Created
Sep 19, 2025

Description

This module will run a payload when the package manager is used.
This module modifies a yum plugin to launch a binary of choice.
grep -F 'enabled=1' /etc/yum/pluginconf.d/
will show what plugins are currently enabled on the system.
root persmissions are likely required.
Verified on Centos 7.1

Author

Aaron Ringo

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/yum_package_manager
msf exploit(yum_package_manager) > show targets
...targets...
msf exploit(yum_package_manager) > set TARGET < target-id >
msf exploit(yum_package_manager) > show options
...show and set options...
msf exploit(yum_package_manager) > 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.