Rapid7

module

Windows AArch64 Command Execution

Disclosed
N/A
Created
Jul 11, 2025

Description

Executes an arbitrary command on a Windows on ARM (AArch64) target.
This payload is a foundational example of position-independent shellcode for the AArch64 architecture.
It dynamically resolves the address of the `WinExec` function from `kernel32.dll` by parsing the
Process Environment Block (PEB) and the module's Export Address Table (EAT) at runtime.
This technique avoids static imports and hardcoded function addresses, increasing resilience.

Authors

alanfoster
Alexander "xaitax" Hagenah

Platform

Windows

Architectures

aarch64

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 payload/windows/aarch64/exec
msf payload(exec) > show actions
...actions...
msf payload(exec) > set ACTION < action-name >
msf payload(exec) > show options
...show and set options...
msf payload(exec) > 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.