Rapid7’s 2026 Global Cybersecurity Summit is now available on-demand.Watch sessions.
Rapid7

module

Malicious Windows Registration Entries (.reg) File

Disclosed
Aug 24, 1995
Created
Jul 24, 2025

Description

This module creates a Windows Registration Entries (.reg) file which
adds the specified payload to the Windows Registry. The payload runs
upon Windows login for the current user. If the user has elevated
privileges when opening the file, the payload will run upon login
when any user logs in.

The user will receive a warning prompt to confirm Registry changes
when opening the file.

Author

Platform

Windows

Architectures

cmd

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