Rapid7

module

Linux RC4 Packer with In-Memory Execution (x86)

Disclosed
N/A
Created
Mar 3, 2026

Description

This evasion module packs Linux payloads using RC4 encryption
and executes them from memory using memfd_create for fileless execution.

The evasion module works on systems with Linux Kernel 3.17+ due to memfd_create support.

Features:
- RC4 encryption with configurable key size
- Fileless execution via memfd_create

Author

Massimo Bertocchi

Platform

Linux

Architectures

x86

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 evasion/linux/x86/rc4_packer
msf evasion(rc4_packer) > show actions
...actions...
msf evasion(rc4_packer) > set ACTION < action-name >
msf evasion(rc4_packer) > show options
...show and set options...
msf evasion(rc4_packer) > run

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.