Metasploit Framework
- Capabilities
- ReconnaissanceScanningInitial accessPost exploitationDefense evasion
- Platforms
- WindowsLinuxmacOSAndroid
Metasploit Framework is an open-source penetration-testing and exploitation framework used for authorized security assessments and abused by threat actors to exploit vulnerable systems and obtain remote access. It is a dual-use security tool rather than a distinct malware family. Its modular functionality supports reconnaissance, port scanning, vulnerability exploitation, payload generation, session handling, and post-exploitation operations.
The framework includes msfvenom, which combines payload-generation and encoding functionality previously provided by msfpayload and msfencode. It supports architecture- and platform-specific payloads, multiple executable and scripting formats, configurable encoding, and executable templates. Metasploit can generate staged and stageless payloads, including Meterpreter and reverse-connection payloads, and provide matching handlers for remote sessions. Its payload ecosystem supports Windows, Linux, macOS, and Android. Compatible Metasploit exploits can also deliver external payloads such as Cobalt Strike Beacon. Payload encoding and template modification do not guarantee evasion of modern endpoint defenses.
Documented malicious use includes reconnaissance during DarkSide ransomware intrusions and inclusion in the toolset of IRGC-associated Iranian operators targeting aerospace, satellite technology, and government-related organizations. These associations reflect adoption of a broadly available framework, not exclusive attribution to any actor or industry.
Associated threat actors
2 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Judging by the characteristic column names that ended up in the event log, they may have used the Metasploit Framework penetration testing tool for port scanning.
Techniques & procedures
39 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
3 techniques
Initial Access
`Authenticating to 10.5.132.154:445 as user 'Administrator'...`
When an exception occurs during the database health check (db.check) and the environment variable MSF_WS_JSON_RPC_API_TOKEN is not explicitly set, the application resets the internal state flag msf.auth_initialized to false. The ApiToken Warden authentication strategy ... grant[s] unauthenticated local access to the JSON-RPC request dispatcher.
«Обнаруженный открытый сервис без аутентификации на внешнем периметре — Exploit Public-Facing Application (T1190, Initial Access)».
Execution
7 techniques
Execution
A fix for Windows local administrator logon rights had already been added, but it disappeared from the msf-only path when a SYSTEM scheduled task fallback was introduced.
CVE-2026-83549 : Injection de commande dans le script cmsSnmpTrap.sh permettant un RCE avec les privilèges root.
Support command execution, command staging, direct x64 payloads, and external or in-process PowerShell payload delivery.
“set PAYLOAD cmd/unix/reverse_bash” ... “Command shell session 3 opened” ... “uid=33(www-data).”
An exploit for CVE-2026-21655 affecting the unauthenticated CrossFire IClientSession WCF service used by C-CURE 9000 and victor. Support command execution, command staging, direct x64 payloads, and external or in-process PowerShell payload delivery.
Теперь попробуем собрать тестовый исполняемый файл и закинуть его на смартфон... После успешного создания файла ... перекидываем его ... на целевой смартфон.
`Creating the service... Successfully created the service` followed by `Starting the service...` and later `Removing the service...`.
Persistence
4 techniques
Persistence
A fix for Windows local administrator logon rights had already been added, but it disappeared from the msf-only path when a SYSTEM scheduled task fallback was introduced.
`Authenticating to 10.5.132.154:445 as user 'Administrator'...`
When an exception occurs during the database health check (db.check) and the environment variable MSF_WS_JSON_RPC_API_TOKEN is not explicitly set, the application resets the internal state flag msf.auth_initialized to false. The ApiToken Warden authentication strategy ... grant[s] unauthenticated local access to the JSON-RPC request dispatcher.
Le contenu liste T1505.003 comme TTP, mais décrit surtout l’activation du serveur de requêtes Erlang natif de CouchDB et le déploiement d’un payload, sans décrire explicitement l’installation ou le maintien d’un web shell.
Privilege Escalation
4 techniques
Privilege Escalation
A fix for Windows local administrator logon rights had already been added, but it disappeared from the msf-only path when a SYSTEM scheduled task fallback was introduced.
One of the most common underlying techniques used by C2 operators and frameworks is process injection... Sliver utilizes process injection as a core part of many default commands or capabilities, such as: migrate, spawndll, sideload, msf-inject, execute-assembly, getsystem.
`Authenticating to 10.5.132.154:445 as user 'Administrator'...`
Le module « dispatche le payload root via ctrl-service / cmsSnmpTrap » et ouvre une session Meterpreter avec « Server username: root ».
Stealth
9 techniques
Stealth
“Traversal succeeded with page-templates at depth 4” and “The target is vulnerable. Unauthenticated LFI outside the active theme confirmed.”
Generate a 32 bit raw shellcode in whatever framework you want... Run: cat payload.bin | base64 -w 0 ... Copy the base64 encoded payload into the code variable below
The presence of the dropped executable in a temporary directory further supports the conclusion that this file is indeed malicious and designed to evade detection.
One of the most common underlying techniques used by C2 operators and frameworks is process injection... Sliver utilizes process injection as a core part of many default commands or capabilities, such as: migrate, spawndll, sideload, msf-inject, execute-assembly, getsystem.
“Restoring CouchDB state” ... “[+] Cleanup complete.”
Чтобы на компьютерах и мобильных устройствах не осталось следов тестирования ... Удаление приложения ... Найдите созданные файлы логов ... Перенесите их в корзину и обязательно очистите ее.
`Authenticating to 10.5.132.154:445 as user 'Administrator'...`
This expanded chain of processes highlights the file’s ability to use various legitimate system utilities, such as rundll32.exe and icacls.exe, to execute its payloads and maintain persistence, demonstrating its sophistication in evading detection.
The updated sequence now includes: javaw.exe > rundll32.exe > icacls.exe > java.exe > conhost.exe > conhost.exe > java.exe > conhost.exe > phNGgjyA.exe
Defense Impairment
1 technique
Defense Impairment
Relay logs state: "Dropping MIC and removing flags: `Always Sign`, `Sign` and `Key Exchange`".
Credential Access
7 techniques
Credential Access
"What is the NTLM hash of the pirate user" followed by the Meterpreter command "hashdump" and the resulting Administrator, Guest, and pirate account NTLM hashes.
"Pentest team reported MSSQL and SSH login scanners were not printing target info"; referenced components include "auth_brute", "ssh_login.rb", and "mssql_login" with login results such as "msfadmin:msfadmin".
"Using the SMB login scanner and the provided wordlist" ... "set SMBUSER penny" ... "set PASS_FILE ... MetaploitWordlist.txt".
The test invokes "auxiliary/scanner/dcerpc/petitpotam" against 192.168.64.3 with a specified listener, after which the relay server receives SMB/NTLM authentication.
`[+] Identity: KERBEROS\Administrator - Successfully relayed NTLM authentication to SMB!` followed by an SMB session listing `ADMIN$`, `C$`, `NETLOGON`, and `SYSVOL` shares. | Metasploit's `http_to_ldap` and `http_to_smb` relay modules receive NTLM Type 1 and Type 3 messages from 172.16.199.100 and relay them to 172.16.199.200 over LDAP (389) and SMB (445). The relay succeeds as `KERBEROS\Administrator`.
Through these techniques, threat actors abuse certificate templates which don’t require manager approval and include enrollment rights for low privileged users / groups.
It can be used to detect misconfigurations, but also to issue certificates utilizing a large range of escalation techniques and leveraging them for domain authentication.
Discovery
4 techniques
Discovery
After exploiting stratford-srv01, the walkthrough executes "whoami" and receives "root".
The Metasploit auxiliary/scanner/mysql/mysql_ping module is configured with RHOSTS and checks TCP port 3306, reporting hosts where a MySQL service is running.
“id ... uid=33(www-data) ... hostname ... uname -a ... Linux ... x86_64.”
After the EternalBlue session is obtained, the walkthrough runs "search -f flag.txt" before reading "c:\\Users\\Administrator\\Desktop\\flag.txt".
Lateral Movement
3 techniques
Lateral Movement
The Metasploit `exploit/windows/smb/psexec` module connects to `10.5.132.154:445`, authenticates as `Administrator`, and binds to the `\svcctl` named pipe.
"use exploit/windows/smb/ms17_010_eternalblue" ... "run"; later, "use exploit/unix/ftp/vsftpd_234_backdoor".
The output captures and displays `NTLMv1-SSP Hash` and `NTLMv2-SSP Hash` values for `KERBEROS\Administrator`; the module option also supports storing John the Ripper-compatible hashes.
Collection
1 technique
Collection
`[+] Identity: KERBEROS\Administrator - Successfully relayed NTLM authentication to SMB!` followed by an SMB session listing `ADMIN$`, `C$`, `NETLOGON`, and `SYSVOL` shares. | Metasploit's `http_to_ldap` and `http_to_smb` relay modules receive NTLM Type 1 and Type 3 messages from 172.16.199.100 and relay them to 172.16.199.200 over LDAP (389) and SMB (445). The relay succeeds as `KERBEROS\Administrator`.
Command and Control
4 techniques
Command and Control
C2 Tracker is a free-to-use-community-driven IOC feed that uses Shodan and Censys searches to collect IP addresses of known malware/botnet/C2 infrastructure.
Le module vérifie la cible par une requête HTTP OPTIONS non authentifiée vers CouchDB, puis accède au CouchDB interne via le composant WorkPlace.
“Started reverse TCP handler on 192.168.86.70:4444” ... “Meterpreter session 1 opened (192.168.86.70:4444 -> 192.168.86.11:53128).”
Support command execution, command staging, direct x64 payloads, and external or in-process PowerShell payload delivery.
Recent activity
13 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.